Browse Source

Fix certain game rules' signals not working

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
4c5dd9ce28
  1. 4
      sources/Unreal/GameRulesAPI/GameRulesAPI.uc
  2. 20
      sources/Unreal/UnrealService.uc

4
sources/Unreal/GameRulesAPI/GameRulesAPI.uc

@ -1,7 +1,7 @@
/** /**
* Low-level API that provides set of utility methods for working with * Low-level API that provides set of utility methods for working with
* `GameRule`s. * `GameRule`s.
* Copyright 2021 Anton Tarasenko * Copyright 2021-2022 Anton Tarasenko
*------------------------------------------------------------------------------ *------------------------------------------------------------------------------
* This file is part of Acedia. * This file is part of Acedia.
* *
@ -94,7 +94,7 @@ public final function GameRules_OnCheckEndGame_Slot OnCheckEndGame(
local Signal signal; local Signal signal;
local UnrealService service; local UnrealService service;
service = UnrealService(class'UnrealService'.static.Require()); service = UnrealService(class'UnrealService'.static.Require());
signal = service.GetSignal(class'GameRules_OnHandleRestartGame_Signal'); signal = service.GetSignal(class'GameRules_OnCheckEndGame_Signal');
return GameRules_OnCheckEndGame_Slot(signal.NewSlot(receiver)); return GameRules_OnCheckEndGame_Slot(signal.NewSlot(receiver));
} }

20
sources/Unreal/UnrealService.uc

@ -1,7 +1,7 @@
/** /**
* Service for the needs of `UnrealAPI`. Mainly tasked with creating API's * Service for the needs of `UnrealAPI`. Mainly tasked with creating API's
* `Signal`s. * `Signal`s.
* Copyright 2021 Anton Tarasenko * Copyright 2021-2022 Anton Tarasenko
*------------------------------------------------------------------------------ *------------------------------------------------------------------------------
* This file is part of Acedia. * This file is part of Acedia.
* *
@ -112,12 +112,14 @@ defaultproperties
serviceSignals(3) = (signalClass=class'GameRules_OnCheckScore_Signal') serviceSignals(3) = (signalClass=class'GameRules_OnCheckScore_Signal')
serviceSignals(4) = (signalClass=class'GameRules_OnOverridePickupQuery_Signal') serviceSignals(4) = (signalClass=class'GameRules_OnOverridePickupQuery_Signal')
serviceSignals(5) = (signalClass=class'GameRules_OnNetDamage_Signal') serviceSignals(5) = (signalClass=class'GameRules_OnNetDamage_Signal')
serviceSignals(6) = (signalClass=class'Broadcast_OnBroadcastCheck_Signal') serviceSignals(6) = (signalClass=class'GameRules_OnPreventDeath_Signal')
serviceSignals(7) = (signalClass=class'Broadcast_OnHandleLocalized_Signal') serviceSignals(7) = (signalClass=class'GameRules_OnScoreKill_Signal')
serviceSignals(8) = (signalClass=class'Broadcast_OnHandleLocalizedFor_Signal') serviceSignals(8) = (signalClass=class'Broadcast_OnBroadcastCheck_Signal')
serviceSignals(9) = (signalClass=class'Broadcast_OnHandleText_Signal') serviceSignals(9) = (signalClass=class'Broadcast_OnHandleLocalized_Signal')
serviceSignals(10) = (signalClass=class'Broadcast_OnHandleTextFor_Signal') serviceSignals(10) = (signalClass=class'Broadcast_OnHandleLocalizedFor_Signal')
serviceSignals(11) = (signalClass=class'Mutator_OnCheckReplacement_Signal') serviceSignals(11) = (signalClass=class'Broadcast_OnHandleText_Signal')
serviceSignals(12) = (signalClass=class'Mutator_OnMutate_Signal') serviceSignals(12) = (signalClass=class'Broadcast_OnHandleTextFor_Signal')
serviceSignals(13) = (signalClass=class'Mutator_OnModifyLogin_Signal') serviceSignals(13) = (signalClass=class'Mutator_OnCheckReplacement_Signal')
serviceSignals(14) = (signalClass=class'Mutator_OnMutate_Signal')
serviceSignals(15) = (signalClass=class'Mutator_OnModifyLogin_Signal')
} }
Loading…
Cancel
Save