예제 #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);
        }
예제 #2
0
 public static IDecision InterfaceFromSerializedInstance(Serialization.SerializableDecision instance)
 {
     return(FromSerializedInstance(instance));
 }
예제 #3
0
 public static Decision FromSerializedInstance(Serialization.SerializableDecision instance)
 {
     return(new Decision(instance.DecisionHistoryOrder, instance.ChosenFrame));
 }