kregano

WOTC-LWS-perk-code

Sep 23rd, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. Warning/Error Summary
  2. ---------------------
  3. D:\SteamLibrary\SteamApps\common\XCOM 2 War of the Chosen SDK\Development\Src\SquaddieXCOMSkills\Classes\X2Effect_Sentinel_LW.uc(30) :
  4. Error, 'ResetUses' mismatches delegate 'OnEventDelegate'
  5. D:\SteamLibrary\SteamApps\common\XCOM 2 War of the Chosen SDK\Development\Src\SquaddieXCOMSkills\Classes\X2Effect_TraverseFire.uc(36) :
  6. Error, 'ResetUses' mismatches delegate 'OnEventDelegate'
  7.  
  8. simulated function XComGameState.EventListenerReturn ResetUses(Object EventData, Object EventSource, XComGameState GameState, Name EventID)
  9. {
  10. local XComGameState NewGameState;
  11. local XComGameState_Effect_EffectCounter ThisEffect;
  12.  
  13. if(uses != 0)
  14. {
  15. NewGameState = class'XComGameStateContext_ChangeContainer'.static.CreateChangeState("Update: Reset Effect Counter");
  16. ThisEffect=XComGameState_Effect_EffectCounter(NewGameState.CreateStateObject(Class,ObjectID));
  17. ThisEffect.uses = 0;
  18. NewGameState.AddStateObject(ThisEffect);
  19.  
  20. }
  21. return ELR_NoInterrupt;
  22. }
  23.  
  24. ListenerObj = Sentinel_LWEffectState;
  25. if (ListenerObj == none)
  26. {
  27. `Redscreen("Sentinel_LW: Failed to find Sentinel_LW Component when registering listener");
  28. return;
  29. }
  30. EventMgr.RegisterForEvent(ListenerObj, 'PlayerTurnBegun', Sentinel_LWEffectState.ResetUses, ELD_OnStateSubmitted);
  31. EventMgr.RegisterForEvent(EffectObj, 'Sentinel_LWTriggered', NewEffectState.TriggerAbilityFlyover, ELD_OnStateSubmitted, , UnitState);
  32. }
  33.  
  34. ListenerObj = TFEffectState;
  35. if (ListenerObj == none)
  36. {
  37. `Redscreen("TF: Failed to find TF Component when registering listener");
  38. return;
  39. }
  40. EventMgr.RegisterForEvent(ListenerObj, 'PlayerTurnBegun', TFEffectState.ResetUses, ELD_OnStateSubmitted);
  41. EventMgr.RegisterForEvent(EffectObj, 'TraverseFire', NewEffectState.TriggerAbilityFlyover, ELD_OnStateSubmitted, , UnitState);
  42. }
  43.  
  44.  
  45. WOTC X2EventManager.uc
  46. /////////////////////////////////////////////////////////////////////////////////////////
  47. // The master Event Delegate prototype
  48. //
  49. // EventData, EventSource: Objects passed to TriggerEvent when the event was fired.
  50. // GameState: The current game state at the time the event was fired.
  51. // EventID: Name of the event as passed to TriggerEvent.
  52. // CallbackData: Object that is user specified when registering to listen for an event.
  53. delegate EventListenerReturn OnEventDelegate(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackData);
Add Comment
Please, Sign In to add comment