public void RemoveRecieveBattleGridDelegate(AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe) { switch (mode) { case AgentDelegateMode.ThreadSafe: _recieveBattleGridDelegate_TS = null; break; case AgentDelegateMode.NotThreadSafe: _recieveBattleGridDelegate_NTS = null; break; } }
//recieve delegates public void SetRecievePathDelegate(Action <Path> pathDelegate, AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe) { switch (mode) { case AgentDelegateMode.ThreadSafe: _recievePathDelegate_TS = pathDelegate; break; case AgentDelegateMode.NotThreadSafe: _recievePathDelegate_NTS = pathDelegate; break; } }
public void RemoveRecieveCoverDelegate(AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe) { switch (mode) { case AgentDelegateMode.ThreadSafe: _recieveCoverPointDelegate_TS = null; _recieveCoverPointUsed = true; break; case AgentDelegateMode.NotThreadSafe: _recieveCoverPointDelegate_NTS = null; break; } }
public void SetRecieveCoverDelegate(Action <IEnumerable <NodeCoverPoint> > coverDelegate, AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe) { switch (mode) { case AgentDelegateMode.ThreadSafe: _recieveCoverPointDelegate_TS = coverDelegate; break; case AgentDelegateMode.NotThreadSafe: _recieveCoverPointDelegate_NTS = coverDelegate; break; } }
public void SetRecieveBattleGridDelegate(Action <IEnumerable <BattleGridPoint> > gridDelegate, AgentDelegateMode mode = AgentDelegateMode.NotThreadSafe) { switch (mode) { case AgentDelegateMode.ThreadSafe: _recieveBattleGridDelegate_TS = gridDelegate; _recieveBattleGridUsed = true; break; case AgentDelegateMode.NotThreadSafe: _recieveBattleGridDelegate_NTS = gridDelegate; break; } }