-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Spawn 5 random entities" effect, fix some issues
- Loading branch information
1 parent
0d2f390
commit 8c52e47
Showing
12 changed files
with
98 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "includes.h" | ||
|
||
void CFeatureSpawn5RandomEntities::Init() | ||
{ | ||
CChaosFeature::Init(); | ||
} | ||
|
||
void CFeatureSpawn5RandomEntities::ActivateFeature() | ||
{ | ||
for (int i = 0; i < 5; i++) | ||
CFeatureSpawnRandomEntity::ActivateFeature(); | ||
} | ||
|
||
void CFeatureSpawn5RandomEntities::DeactivateFeature() | ||
{ | ||
CChaosFeature::DeactivateFeature(); | ||
} | ||
|
||
const char* CFeatureSpawn5RandomEntities::GetFeatureName() | ||
{ | ||
return "Spawn 5 random entities"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Copyright - ScriptedSnark, 2024. | ||
* CFeatureSpawn5RandomEntities.h | ||
* | ||
* Project (GSChaos) header file | ||
* Authors: ScriptedSnark. | ||
* Do not delete this comment block. Respect others' work! | ||
*/ | ||
|
||
#ifdef CFEATURESPAWN5RANDOMENTITIES_H_RECURSE_GUARD | ||
#error Recursive header files inclusion detected in CFeatureSpawn5RandomEntities.h | ||
#else //CFEATURESPAWN5RANDOMENTITIES_H_RECURSE_GUARD | ||
|
||
#define CFEATURESPAWN5RANDOMENTITIES_H_RECURSE_GUARD | ||
|
||
#ifndef CFEATURESPAWN5RANDOMENTITIES_H_GUARD | ||
#define CFEATURESPAWN5RANDOMENTITIES_H_GUARD | ||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
|
||
class CFeatureSpawn5RandomEntities : public CFeatureSpawnRandomEntity | ||
{ | ||
void Init() override; | ||
void ActivateFeature() override; | ||
void DeactivateFeature() override; | ||
const char* GetFeatureName() override; | ||
}; | ||
|
||
#else //!__cplusplus | ||
#error C++ compiler required to compile CFeatureSpawn5RandomEntities.h | ||
#endif //__cplusplus | ||
|
||
#endif //CFEATURESPAWN5RANDOMENTITIES_H_GUARD | ||
|
||
#undef CFEATURESPAWN5RANDOMENTITIES_H_RECURSE_GUARD | ||
#endif //CFEATURESPAWN5RANDOMENTITIES_H_RECURSE_GUARD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters