Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Warning/Error Summary
- ---------------------
- D:\SteamLibrary\SteamApps\common\XCOM 2 War of the Chosen SDK\Development\Src\SquaddieXCOMSkills\Classes\X2Effect_Sentinel_LW.uc(30) :
- Error, 'ResetUses' mismatches delegate 'OnEventDelegate'
- D:\SteamLibrary\SteamApps\common\XCOM 2 War of the Chosen SDK\Development\Src\SquaddieXCOMSkills\Classes\X2Effect_TraverseFire.uc(36) :
- Error, 'ResetUses' mismatches delegate 'OnEventDelegate'
- simulated function XComGameState.EventListenerReturn ResetUses(Object EventData, Object EventSource, XComGameState GameState, Name EventID)
- {
- local XComGameState NewGameState;
- local XComGameState_Effect_EffectCounter ThisEffect;
- if(uses != 0)
- {
- NewGameState = class'XComGameStateContext_ChangeContainer'.static.CreateChangeState("Update: Reset Effect Counter");
- ThisEffect=XComGameState_Effect_EffectCounter(NewGameState.CreateStateObject(Class,ObjectID));
- ThisEffect.uses = 0;
- NewGameState.AddStateObject(ThisEffect);
- }
- return ELR_NoInterrupt;
- }
- ListenerObj = Sentinel_LWEffectState;
- if (ListenerObj == none)
- {
- `Redscreen("Sentinel_LW: Failed to find Sentinel_LW Component when registering listener");
- return;
- }
- EventMgr.RegisterForEvent(ListenerObj, 'PlayerTurnBegun', Sentinel_LWEffectState.ResetUses, ELD_OnStateSubmitted);
- EventMgr.RegisterForEvent(EffectObj, 'Sentinel_LWTriggered', NewEffectState.TriggerAbilityFlyover, ELD_OnStateSubmitted, , UnitState);
- }
- ListenerObj = TFEffectState;
- if (ListenerObj == none)
- {
- `Redscreen("TF: Failed to find TF Component when registering listener");
- return;
- }
- EventMgr.RegisterForEvent(ListenerObj, 'PlayerTurnBegun', TFEffectState.ResetUses, ELD_OnStateSubmitted);
- EventMgr.RegisterForEvent(EffectObj, 'TraverseFire', NewEffectState.TriggerAbilityFlyover, ELD_OnStateSubmitted, , UnitState);
- }
- WOTC X2EventManager.uc
- /////////////////////////////////////////////////////////////////////////////////////////
- // The master Event Delegate prototype
- //
- // EventData, EventSource: Objects passed to TriggerEvent when the event was fired.
- // GameState: The current game state at the time the event was fired.
- // EventID: Name of the event as passed to TriggerEvent.
- // CallbackData: Object that is user specified when registering to listen for an event.
- delegate EventListenerReturn OnEventDelegate(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackData);
Add Comment
Please, Sign In to add comment