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

@ -145,7 +145,7 @@ var private const array<WeaponDataRecord> storedValues;
// Sell value of the last seen pickup in 'OverridePickupQuery'
var private int nextSellValue;
public function OnEnabled()
protected function OnEnabled()
{
local KFWeapon nextWeapon;
// Find all frags, that spawned when this fix wasn't running.
@ -156,7 +156,7 @@ public function OnEnabled()
level.game.AddGameModifier(Spawn(class'DualiesCostRule'));
}
public function OnDisabled()
protected function OnDisabled()
{
local GameRules rulesIter;
local DualiesCostRule ruleToDestroy;