-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d7aba8
commit ed6e8a5
Showing
66 changed files
with
6,018 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/MetroidPrime/ScriptLoader/SLdrTBallTransitionResources.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#include "MetroidPrime/ScriptLoader/SLdrTBallTransitionResources.hpp" | ||
|
||
SLdrTBallTransitionResources::SLdrTBallTransitionResources() {} | ||
|
||
SLdrTBallTransitionResources::~SLdrTBallTransitionResources() {} | ||
|
||
void LoadTypedefSLdrTBallTransitionResources(SLdrTBallTransitionResources& sldrThis, CInputStream& input) { | ||
int propertyCount = input.ReadUint16(); | ||
for (int i = 0; i < propertyCount; ++i) { | ||
uint propertyId = (uint)input.ReadInt32(); | ||
u16 propertySize = input.ReadUint16(); | ||
|
||
switch (propertyId) { | ||
case 0xd48e4124: | ||
sldrThis.unknown_0xd48e4124 = rstl::string(input); | ||
break; | ||
case 0x01e12c84: | ||
LoadTypedefSLdrTGunResources(sldrThis.unknown_0x01e12c84, input); | ||
break; | ||
case 0xf24b055d: | ||
LoadTypedefSLdrTGunResources(sldrThis.unknown_0xf24b055d, input); | ||
break; | ||
case 0xa342c3a6: | ||
sldrThis.unknown_0xa342c3a6 = SLdrSpline(input, propertySize); | ||
break; | ||
case 0x15b6840d: | ||
sldrThis.unknown_0x15b6840d = SLdrSpline(input, propertySize); | ||
break; | ||
case 0x23fb0e93: | ||
sldrThis.unknown_0x23fb0e93 = SLdrSpline(input, propertySize); | ||
break; | ||
case 0x564262f0: | ||
sldrThis.unknown_0x564262f0 = SLdrSpline(input, propertySize); | ||
break; | ||
case 0x9183a262: | ||
sldrThis.movementControl = SLdrSpline(input, propertySize); | ||
break; | ||
default: | ||
input.ReadBytes(nullptr, propertySize); | ||
break; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "MetroidPrime/ScriptLoader/SLdrTBeamInfo.hpp" | ||
|
||
SLdrTBeamInfo::SLdrTBeamInfo() { | ||
cooldown = 0.2f; | ||
} | ||
|
||
SLdrTBeamInfo::~SLdrTBeamInfo() {} | ||
|
||
void LoadTypedefSLdrTBeamInfo(SLdrTBeamInfo& sldrThis, CInputStream& input) { | ||
int propertyCount = input.ReadUint16(); | ||
for (int i = 0; i < propertyCount; ++i) { | ||
uint propertyId = (uint)input.ReadInt32(); | ||
u16 propertySize = input.ReadUint16(); | ||
|
||
switch (propertyId) { | ||
case 0x102e085f: | ||
sldrThis.cooldown = input.ReadFloat(); | ||
break; | ||
case 0xfaa71e25: | ||
LoadTypedefSLdrTWeaponDamage(sldrThis.damageInfo, input); | ||
break; | ||
default: | ||
input.ReadBytes(nullptr, propertySize); | ||
break; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#include "MetroidPrime/ScriptLoader/SLdrTDamageInfo.hpp" | ||
|
||
SLdrTDamageInfo::SLdrTDamageInfo() { | ||
weaponType = 0; | ||
damageAmount = 10.0f; | ||
radiusDamageAmount = 5.0f; | ||
damageRadius = 1.0f; | ||
knockBackPower = 1.0f; | ||
} | ||
|
||
SLdrTDamageInfo::~SLdrTDamageInfo() {} | ||
|
||
void LoadTypedefSLdrTDamageInfo(SLdrTDamageInfo& sldrThis, CInputStream& input) { | ||
int propertyCount = input.ReadUint16(); | ||
for (int i = 0; i < propertyCount; ++i) { | ||
uint propertyId = (uint)input.ReadInt32(); | ||
u16 propertySize = input.ReadUint16(); | ||
|
||
switch (propertyId) { | ||
case 0x4d577910: | ||
sldrThis.weaponType = input.ReadInt32(); | ||
break; | ||
case 0xf3ec8748: | ||
sldrThis.damageAmount = input.ReadFloat(); | ||
break; | ||
case 0x37b6df3d: | ||
sldrThis.radiusDamageAmount = input.ReadFloat(); | ||
break; | ||
case 0x0f598739: | ||
sldrThis.damageRadius = input.ReadFloat(); | ||
break; | ||
case 0x56f98c49: | ||
sldrThis.knockBackPower = input.ReadFloat(); | ||
break; | ||
default: | ||
input.ReadBytes(nullptr, propertySize); | ||
break; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include "MetroidPrime/ScriptLoader/SLdrTGunResources.hpp" | ||
|
||
SLdrTGunResources::SLdrTGunResources() {} | ||
|
||
SLdrTGunResources::~SLdrTGunResources() {} | ||
|
||
void LoadTypedefSLdrTGunResources(SLdrTGunResources& sldrThis, CInputStream& input) { | ||
int propertyCount = input.ReadUint16(); | ||
for (int i = 0; i < propertyCount; ++i) { | ||
uint propertyId = (uint)input.ReadInt32(); | ||
u16 propertySize = input.ReadUint16(); | ||
|
||
switch (propertyId) { | ||
case 0x2705318d: | ||
sldrThis.powerBeam = rstl::string(input); | ||
break; | ||
case 0x7cc2879f: | ||
sldrThis.iceBeam = rstl::string(input); | ||
break; | ||
case 0x382765b0: | ||
sldrThis.waveBeam = rstl::string(input); | ||
break; | ||
case 0xcb269ac8: | ||
sldrThis.plasmaBeam = rstl::string(input); | ||
break; | ||
case 0xa3890335: | ||
sldrThis.phazonBeam = rstl::string(input); | ||
break; | ||
default: | ||
input.ReadBytes(nullptr, propertySize); | ||
break; | ||
} | ||
} | ||
} |
56 changes: 56 additions & 0 deletions
56
src/MetroidPrime/ScriptLoader/SLdrTIcon_Configurations.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#include "MetroidPrime/ScriptLoader/SLdrTIcon_Configurations.hpp" | ||
|
||
SLdrTIcon_Configurations::SLdrTIcon_Configurations() { | ||
unknown_0x3058aff2 = 0.0f; | ||
unknown_0xf1d67032 = 0.0f; | ||
unknown_0x68341633 = 0.0f; | ||
unknown_0xa9bac9f3 = 0.0f; | ||
unknown_0x8081dc70 = 0.0f; | ||
unknown_0x410f03b0 = 0.0f; | ||
unknown_0xd8ed65b1 = 0.0f; | ||
unknown_0x1963ba71 = 0.0f; | ||
unknown_0x8a9b4eb7 = 0.0f; | ||
} | ||
|
||
SLdrTIcon_Configurations::~SLdrTIcon_Configurations() {} | ||
|
||
void LoadTypedefSLdrTIcon_Configurations(SLdrTIcon_Configurations& sldrThis, CInputStream& input) { | ||
int propertyCount = input.ReadUint16(); | ||
for (int i = 0; i < propertyCount; ++i) { | ||
uint propertyId = (uint)input.ReadInt32(); | ||
u16 propertySize = input.ReadUint16(); | ||
|
||
switch (propertyId) { | ||
case 0x3058aff2: | ||
sldrThis.unknown_0x3058aff2 = input.ReadFloat(); | ||
break; | ||
case 0xf1d67032: | ||
sldrThis.unknown_0xf1d67032 = input.ReadFloat(); | ||
break; | ||
case 0x68341633: | ||
sldrThis.unknown_0x68341633 = input.ReadFloat(); | ||
break; | ||
case 0xa9bac9f3: | ||
sldrThis.unknown_0xa9bac9f3 = input.ReadFloat(); | ||
break; | ||
case 0x8081dc70: | ||
sldrThis.unknown_0x8081dc70 = input.ReadFloat(); | ||
break; | ||
case 0x410f03b0: | ||
sldrThis.unknown_0x410f03b0 = input.ReadFloat(); | ||
break; | ||
case 0xd8ed65b1: | ||
sldrThis.unknown_0xd8ed65b1 = input.ReadFloat(); | ||
break; | ||
case 0x1963ba71: | ||
sldrThis.unknown_0x1963ba71 = input.ReadFloat(); | ||
break; | ||
case 0x8a9b4eb7: | ||
sldrThis.unknown_0x8a9b4eb7 = input.ReadFloat(); | ||
break; | ||
default: | ||
input.ReadBytes(nullptr, propertySize); | ||
break; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "MetroidPrime/ScriptLoader/SLdrTWeaponDamage.hpp" | ||
|
||
SLdrTWeaponDamage::SLdrTWeaponDamage() {} | ||
|
||
SLdrTWeaponDamage::~SLdrTWeaponDamage() {} | ||
|
||
void LoadTypedefSLdrTWeaponDamage(SLdrTWeaponDamage& sldrThis, CInputStream& input) { | ||
int propertyCount = input.ReadUint16(); | ||
for (int i = 0; i < propertyCount; ++i) { | ||
uint propertyId = (uint)input.ReadInt32(); | ||
u16 propertySize = input.ReadUint16(); | ||
|
||
switch (propertyId) { | ||
case 0x8ac4278a: | ||
LoadTypedefSLdrTDamageInfo(sldrThis.normal, input); | ||
break; | ||
case 0xc9ac01d2: | ||
LoadTypedefSLdrTDamageInfo(sldrThis.charged, input); | ||
break; | ||
default: | ||
input.ReadBytes(nullptr, propertySize); | ||
break; | ||
} | ||
} | ||
} |
Oops, something went wrong.