Example #1
0
 public virtual bool SetOptionsFor(Player player, Hashtable options)
 {
     if (m_optionTable.ContainsKey(player))
     {
         m_optionTable[player] = options;
     }
     else
     {
         m_optionTable.Add(player, options);
     }
     Messenger.Emit(GameMessages.Kind.SetOptionsFor.ToString(), player, options);
     return(true);
 }
Example #2
0
 static public void Emit <T, U, V>(Kind kind, T t, U u, V v)
 {
     Messenger.Emit <T, U, V>(kind.ToString(), t, u, v);
 }
Example #3
0
 static public void Emit <T, U>(Kind kind, T t, U u)
 {
     Messenger.Emit <T, U>(kind.ToString(), t, u);
 }
Example #4
0
 static public void Emit <T>(Kind kind, T t)
 {
     Messenger.Emit <T>(kind.ToString(), t);
 }
Example #5
0
 static public void Emit(Kind kind)
 {
     Messenger.Emit(kind.ToString());
 }
Example #6
0
 public virtual void OnMapLoaded()
 {
     Messenger.Emit(GameMessages.Kind.WorldLoaded.ToString(), this);
 }
Example #7
0
 public void RemoveThing(GameThing gt)
 {
     Messenger.Emit(GameMessages.Kind.ThingRemoved.ToString(), gt);
     m_thingList.Add(gt);
 }
Example #8
0
 public void AddThing(GameThing gt)
 {
     m_thingList.Add(gt);
     Messenger.Emit(GameMessages.Kind.ThingAdded.ToString(), gt);
 }