-
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
c88c5c4
commit 1d7cd59
Showing
4 changed files
with
80 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#include "MetroidPrime/ScriptLoader/SLdrTweakTargeting_Scan.hpp" | ||
|
||
SLdrTweakTargeting_Scan::SLdrTweakTargeting_Scan() | ||
: unknown(CColor::Green()) | ||
, scanLockLockedColor(CColor::Green()) | ||
, scanLockUnlockedColor(CColor::Green()) { | ||
scanLockScale = 1.0f; | ||
scanLockTransitionTime = 0.30000001f; | ||
scanLockTranslation = 1.0f; | ||
} | ||
|
||
SLdrTweakTargeting_Scan::~SLdrTweakTargeting_Scan() {} | ||
|
||
void LoadTypedefSLdrTweakTargeting_Scan(SLdrTweakTargeting_Scan& 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 0xa0857b6e: | ||
sldrThis.scanLockScale = input.ReadFloat(); | ||
break; | ||
case 0xa4cce30f: | ||
sldrThis.scanLockTransitionTime = input.ReadFloat(); | ||
break; | ||
case 0x8e9bfea3: | ||
sldrThis.scanLockTranslation = input.ReadFloat(); | ||
break; | ||
case 0x768110cd: | ||
sldrThis.unknown = CColor(input); | ||
break; | ||
case 0x319f966b: | ||
sldrThis.scanLockLockedColor = CColor(input); | ||
break; | ||
case 0xa81f378c: | ||
sldrThis.scanLockUnlockedColor = CColor(input); | ||
break; | ||
default: | ||
input.ReadBytes(nullptr, propertySize); | ||
break; | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
src/MetroidPrime/ScriptLoader/SLdrTweakTargeting_VulnerabilityIndicator.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,28 @@ | ||
#include "MetroidPrime/ScriptLoader/SLdrTweakTargeting_VulnerabilityIndicator.hpp" | ||
|
||
SLdrTweakTargeting_VulnerabilityIndicator::SLdrTweakTargeting_VulnerabilityIndicator() { | ||
indicatorAngle = 0.0f; | ||
indicatorColor = CColor::Black(); | ||
} | ||
|
||
SLdrTweakTargeting_VulnerabilityIndicator::~SLdrTweakTargeting_VulnerabilityIndicator() {} | ||
|
||
void LoadTypedefSLdrTweakTargeting_VulnerabilityIndicator(SLdrTweakTargeting_VulnerabilityIndicator& 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 0x4c86af42: | ||
sldrThis.indicatorAngle = input.ReadFloat(); | ||
break; | ||
case 0x436b66ac: | ||
sldrThis.indicatorColor = CColor(input); | ||
break; | ||
default: | ||
input.ReadBytes(nullptr, propertySize); | ||
break; | ||
} | ||
} | ||
} |