mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-26 06:30:17 +00:00
holy mother of const
Use const everywhere that makes sense return const variables when it makes sense const functions and variables again, where it makes sense No raw access and modifications to protected members Move template definitions to tcc file idk how I feel about this one
This commit is contained in:
@@ -20,7 +20,7 @@ public:
|
||||
|
||||
User* GetParentUser() const override;
|
||||
|
||||
SystemAddress GetSystemAddress() const override;
|
||||
const SystemAddress GetSystemAddress() const override { return m_SystemAddress; }
|
||||
|
||||
NiPoint3 GetRespawnPosition() const override;
|
||||
|
||||
@@ -44,9 +44,9 @@ public:
|
||||
|
||||
void SetSystemAddress(const SystemAddress& value) override;
|
||||
|
||||
void SetRespawnPos(NiPoint3 position) override;
|
||||
void SetRespawnPos(const NiPoint3& position) override;
|
||||
|
||||
void SetRespawnRot(NiQuaternion rotation) override;
|
||||
void SetRespawnRot(const NiQuaternion& rotation) override;
|
||||
|
||||
void SetGhostReferencePoint(const NiPoint3& value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user