class ScriptInvokerSource
ScriptInvoker Class provide list of callbacks
usage:
class Player
{
ref ScriptInvoker m_DeathInvoker = new ScriptInvoker();
void OnKilled()
{
m_DeathInvoker.Invoke(this);
}
}
void LogPlayerDeath(p)
{
Print("RIP " + p);
}
class Game
{
void RemovePlayer(Player p)
{
}
void GameOver()
{
}
}
void OnPlayerSpaned(Player p)
{
Game game = g_Game;
p.m_DeathInvoker.Insert(LogPlayerDeath);
p.m_DeathInvoker.Insert(game.RemovePlayer);
p.m_DeathInvoker.Insert(game.GameOver);
}Methods 5
proto void Invoke(void param1 = NULL, void param2 = NULL, void param3 = NULL, void param4 = NULL, void param5 = NULL, void param6 = NULL, void param7 = NULL, void param8 = NULL, void param9 = NULL)invoke call on all inserted methods with given arguments
Referenced by AbstractWave.OnEnd(), AbstractWave.OnHeaderLoad(), AbstractWave.OnLoad(), and 119 more
insert method to list
Referenced by ActionTargetsCursor.ActionTargetsCursor(), AnalyticsManagerClient.RegisterEvents(), Attachments.Attachments(), and 100 more
remove specific call from list
Referenced by AnalyticsManagerClient.UnregisterEvents(), Attachments.~Attachments(), BoxDraw.~BoxDraw(), and 57 more
proto native void Clear()remove all calls from list