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:
Anton Tarasenko 2020-04-08 01:49:17 +07:00
commit 3969eb3824
7 changed files with 14 additions and 14 deletions

View file

@ -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;