mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Implement GTest and change windows output path
Implement GTest as a testing infrastructure. Make windows output binaries to the build folder instead of the release type folder (potentially issue further down the line) Add a simple unit test for DestroyableComponent
This commit is contained in:
@@ -239,7 +239,7 @@ public:
|
||||
* Sets the multiplier for the explosion that's visible when the bricks fly out when this entity is smashed
|
||||
* @param value the multiplier for the explosion that's visible when the bricks fly out when this entity is smashed
|
||||
*/
|
||||
void SetExplodeFactor(float value);
|
||||
void SetExplodeFactor(float value) { m_ExplodeFactor = value; };
|
||||
|
||||
/**
|
||||
* Returns the current multiplier for explosions
|
||||
@@ -414,6 +414,14 @@ public:
|
||||
*/
|
||||
void AddOnHitCallback(const std::function<void(Entity*)>& callback);
|
||||
|
||||
/**
|
||||
* Pushes a faction back to the list of factions.
|
||||
* @param value Faction to add to list.
|
||||
*
|
||||
* This method should only be used for testing. Use AddFaction(int32_t, bool) for adding a faction properly.
|
||||
*/
|
||||
void AddFactionNoLookup(int32_t faction) { m_FactionIDs.push_back(faction); };
|
||||
|
||||
private:
|
||||
/**
|
||||
* Whether or not the health should be serialized
|
||||
|
Reference in New Issue
Block a user