Example #1
0
		public static room JsonToRoom(string json, room rm) {
			m_context.SetParameter("newRoom", rm);
			m_context.SetParameter("roomJson", json);
			m_context.Run("JsonToRoom(roomJson, newRoom);");
			
			return rm;
		}
Example #2
0
        public static room JsonToRoom(string json, room rm)
        {
            m_context.SetParameter("newRoom", rm);
            m_context.SetParameter("roomJson", json);
            m_context.Run("JsonToRoom(roomJson, newRoom);");

            return(rm);
        }
Example #3
0
        public static void Main(string[] args)
        {
            Init();
            string str = "{ \"name\": \"Rachel\" }";
            room   rm  = JsonToRoom(str);

            C.MsgBox("str=" + str);
            C.MsgBox("rm.name=" + rm.name);
        }
Example #4
0
 public static void SetGame(game gam)
 {
     m_game = gam;
     m_room = null;
     if (gam != null)
     {
         m_rooms = gam.rooms;
     }
     else
     {
         m_rooms = null;
     }
 }
Example #5
0
		public static game Load() {
			game rv=new game();
			room rm;
			menu mnu;
			
			rv.startRoom="home";
			
			rm=new room();
			rm.name="home";
			rm.m_loaded=true;
			
			rv.rooms.Add(rm.name, rm);
			
			return rv;
		}
Example #6
0
        public static game Load()
        {
            game rv = new game();
            room rm;
            menu mnu;

            rv.startRoom = "home";

            rm          = new room();
            rm.name     = "home";
            rm.m_loaded = true;

            rv.rooms.Add(rm.name, rm);

            return(rv);
        }
Example #7
0
		public static void SetGame(game gam) {
			m_game=gam;
			m_room=null;
			if(gam!=null) m_rooms=gam.rooms;
			else m_rooms=null;
		}