Пример #1
0
        public void Register(LivingBeing lb, ActionDoable action)
        {
            if (!PossibleActions.ContainsKey(lb.UniqueIdentifier))
            {
                PossibleActions.Add(lb.UniqueIdentifier, new List <ActionDoable>());
            }

            PossibleActions[lb.UniqueIdentifier].Add(action);
        }
Пример #2
0
 public void UnRegister(LivingBeing lb, ActionDoable action)
 {
     PossibleActions[lb.UniqueIdentifier].Remove(action);
 }