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; }
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); }
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); }
public static void SetGame(game gam) { m_game = gam; m_room = null; if (gam != null) { m_rooms = gam.rooms; } else { m_rooms = null; } }
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; }
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); }
public static void SetGame(game gam) { m_game=gam; m_room=null; if(gam!=null) m_rooms=gam.rooms; else m_rooms=null; }