mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-23 13:10:19 +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:
@@ -195,14 +195,14 @@ public:
|
||||
* @param tamer the entity that's currently taming
|
||||
* @return the pet component of the entity that's being tamed
|
||||
*/
|
||||
static std::shared_ptr<PetComponent> GetTamingPet(LWOOBJID tamer);
|
||||
static PetComponent* GetTamingPet(LWOOBJID tamer);
|
||||
|
||||
/**
|
||||
* Returns the pet that's currently spawned for some entity (if any)
|
||||
* @param owner the owner of the pet that's spawned
|
||||
* @return the pet component of the entity that was spawned by the owner
|
||||
*/
|
||||
static std::shared_ptr<PetComponent> GetActivePet(LWOOBJID owner);
|
||||
static PetComponent* GetActivePet(LWOOBJID owner);
|
||||
|
||||
/**
|
||||
* Adds the timer to the owner of this pet to drain imagination at the rate
|
||||
|
||||
Reference in New Issue
Block a user