public void AddCommand(string command, string help, LuaInterface.LuaFunction function, Room room) { room.AddCommand (command, help, function); }
/// <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 (); }