mirror of https://github.com/zeldaret/botw.git
ksys/map: Return references for some Object getters
mFlags0 is stored as an atomic u32 so return a reference to avoid unnecessary atomic copies
This commit is contained in:
parent
8e868dc2c3
commit
9ad7d5f982
|
@ -137,10 +137,10 @@ public:
|
|||
Object* findSrcLODLinkObject() const;
|
||||
bool isRevivalGameDataFlagOn() const;
|
||||
|
||||
auto getFlags0() const { return mFlags0; }
|
||||
auto getFlags() const { return mFlags; }
|
||||
auto getActorFlags8() const { return mActorFlags8; }
|
||||
auto getHardModeFlags() const { return mHardModeFlags; }
|
||||
const auto& getFlags0() const { return mFlags0; }
|
||||
const auto& getFlags() const { return mFlags; }
|
||||
const auto& getActorFlags8() const { return mActorFlags8; }
|
||||
const auto& getHardModeFlags() const { return mHardModeFlags; }
|
||||
|
||||
auto getActorDataIdx() const { return mActorDataIdx; }
|
||||
auto getIdx() const { return mIdx; }
|
||||
|
|
Loading…
Reference in New Issue