mirror of
https://github.com/MonsterDruide1/OdysseyDecomp.git
synced 2024-11-23 13:29:49 +00:00
PlacementId::init
This commit is contained in:
parent
fc1545f481
commit
2534d6cada
@ -22,7 +22,7 @@ namespace al
|
||||
PlacementId();
|
||||
PlacementId(const char *, const char *, const char *);
|
||||
|
||||
void set(const al::PlacementInfo &);
|
||||
void init(const al::PlacementInfo &);
|
||||
bool isEqual(const al::PlacementId &) const;
|
||||
static bool isEqual(const al::PlacementId &, const al::PlacementId &);
|
||||
bool isValid() const;
|
||||
|
@ -23,6 +23,16 @@ namespace al
|
||||
: _0(p_0), mUnitConfigName(pUnitConfig), mID(pID), mCommonID(nullptr)
|
||||
{ }
|
||||
|
||||
void PlacementId::init(const al::PlacementInfo &rInfo)
|
||||
{
|
||||
_0 = nullptr, mID = nullptr, mUnitConfigName = nullptr, mCommonID = nullptr;
|
||||
|
||||
rInfo._0.tryGetStringByKey(&mCommonID, "CommonId");
|
||||
rInfo.mZoneIter.tryGetStringByKey(&mUnitConfigName, "UnitConfigName");
|
||||
rInfo.mZoneIter.tryGetStringByKey(&mID, "Id");
|
||||
rInfo._0.tryGetStringByKey(&_0, "Id");
|
||||
}
|
||||
|
||||
bool PlacementId::isValid() const
|
||||
{
|
||||
bool ret;
|
||||
|
Loading…
Reference in New Issue
Block a user