public void Register(LivingBeing lb, ActionDoable action) { if (!PossibleActions.ContainsKey(lb.UniqueIdentifier)) { PossibleActions.Add(lb.UniqueIdentifier, new List <ActionDoable>()); } PossibleActions[lb.UniqueIdentifier].Add(action); }
public void UnRegister(LivingBeing lb, ActionDoable action) { PossibleActions[lb.UniqueIdentifier].Remove(action); }