示例#1
0
 public void AddCommand(string command, string help, LuaInterface.LuaFunction function, Room room)
 {
     room.AddCommand (command, help, function);
 }
示例#2
0
 /// <summary>
 /// Enters a room. Will raise OnRoomExit and OnRoomEnter.
 /// </summary>
 /// <param name='current'>
 /// The room to enter.
 /// </param>
 public void EnterRoom(Room current)
 {
     if (room != null)
     {
         room.OnRoomExit ();
     }
     room = current;
     if (room == null)
     {
         return;
     }
     Notify (room, Observers.EventList.OnRoomEnter);
     room.OnRoomEnter ();
 }