Refactor Feature
Make events functions `OnEnabled()` and `OnEnabled()` protected rather than public. Move initialization and clean up logic into `OnCreated()` and `OnDestroyed()` event functions.
This commit is contained in:
parent
dd0bdc8904
commit
3969eb3824
7 changed files with 14 additions and 14 deletions
|
|
@ -56,12 +56,12 @@ var private config const array< class<DamageType> > alwaysScale;
|
|||
// Damage types, for which we should never reapply friendly fire scaling.
|
||||
var private config const array< class<DamageType> > neverScale;
|
||||
|
||||
public function OnEnabled()
|
||||
protected function OnEnabled()
|
||||
{
|
||||
level.game.AddGameModifier(Spawn(class'FFHackRule'));
|
||||
}
|
||||
|
||||
public function OnDisabled()
|
||||
protected function OnDisabled()
|
||||
{
|
||||
local GameRules rulesIter;
|
||||
local FFHackRule ruleToDestroy;
|
||||
|
|
|
|||
Reference in a new issue