Esempio n. 1
0
        public void StoreDecision(Guid decision)
        {
            var d = new SerializableDecision(this.next_id(), decision);

            logger.InfoFormat("A game frame choice decision was stored for character {0}. The chosen frame was {1}", this.ID, decision);
            this.decisions.Add(d);
        }
Esempio n. 2
0
 public static IDecision InterfaceFromSerializedInstance(Serialization.SerializableDecision instance)
 {
     return(FromSerializedInstance(instance));
 }
Esempio n. 3
0
 public static Decision FromSerializedInstance(Serialization.SerializableDecision instance)
 {
     return(new Decision(instance.DecisionHistoryOrder, instance.ChosenFrame));
 }