mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 19:47:44 +00:00
Runtime: Make const/non-const getters have the same name
Makes for a more consistent interface, as getters won't have different names to remember based off whether or not they're const qualified.
This commit is contained in:
@@ -288,7 +288,7 @@ public:
|
||||
|
||||
CAssetId GetAreaAssetId() const { return x84_mrea; }
|
||||
const CAreaFog* GetAreaFog() const { return GetPostConstructed()->x10c4_areaFog.get(); }
|
||||
CAreaFog* AreaFog() { return const_cast<CAreaFog*>(GetAreaFog()); }
|
||||
CAreaFog* GetAreaFog() { return const_cast<CAreaFog*>(GetAreaFog()); }
|
||||
float GetXRayFogDistance() const;
|
||||
EEnvFxType DoesAreaNeedEnvFx() const;
|
||||
bool DoesAreaNeedSkyNow() const;
|
||||
@@ -338,8 +338,8 @@ public:
|
||||
|
||||
const std::vector<Dock>& GetDocks() const { return xcc_docks; }
|
||||
const Dock* GetDock(s32 dock) const { return &xcc_docks[dock]; }
|
||||
Dock* GetDock(s32 dock) { return &xcc_docks[dock]; }
|
||||
s32 GetDockCount() const { return xcc_docks.size(); }
|
||||
Dock* DockNC(s32 dock) { return &xcc_docks[dock]; }
|
||||
|
||||
bool IsPostConstructed() const { return xf0_24_postConstructed; }
|
||||
const CPostConstructed* GetPostConstructed() const {
|
||||
|
||||
Reference in New Issue
Block a user