// Update is called once per frame void Update() { if (Input.GetKey("escape")) { Application.Quit(); } Glyphics.DestroyObjects(); Glyphics.DecodeToGrid(Glyphics.HttpGet("http://localhost:3838/api/srects?PrintableNexus"), 0, 0, 0); return; if (Input.GetKeyDown("1")) { Glyphics.DestroyObjects(); Glyphics.DecodeToGrid(Glyphics.HttpGet("http://localhost:3838/api/srects?PrintableNexus"), 0, 0, 0); } if (Input.GetKeyUp("2")) { Glyphics.DestroyObjects(); Glyphics.DecodeToGrid(Glyphics.HttpGet("http://localhost:3838/api/srects?Decoder"), 0, 0, 0); } if (Input.GetKeyUp("3")) { Glyphics.DestroyObjects(); Glyphics.DecodeToGrid(Glyphics.HttpGet("http://localhost:3838/api/srects?PinkGreenArena"), 0, 0, 0); } if (Input.GetKeyUp("4")) { Glyphics.DestroyObjects(); Glyphics.DecodeToGrid(Glyphics.HttpGet("http://localhost:3838/api/srects?Ascent"), 0, 0, 0); } if (Input.GetKeyUp("5")) { Glyphics.DestroyObjects(); Glyphics.DecodeToGrid(Glyphics.HttpGet("http://localhost:3838/api/srects?Arena"), 0, 0, 0); } if (Input.GetKeyUp("6")) { Glyphics.DestroyObjects(); Glyphics.DecodeToGrid(Glyphics.HttpGet("http://localhost:3838/api/srects?Workspace"), 0, 0, 0); } if (Input.GetKeyUp("7")) { Glyphics.DestroyObjects(); Glyphics.DecodeToGrid(Glyphics.HttpGet("http://localhost:3838/api/srects?MegaGrid"), 0, 0, 0); } if (Input.GetKeyUp("8")) { Glyphics.DestroyObjects(); Glyphics.DecodeToGrid(Glyphics.HttpGet("http://localhost:3838/api/srects?Map"), 0, 0, 0); } }
private static void AddLookup(int X, int Y, int Z) { string url = "http://localhost:3838/api/"; string gridSpaceAddress = CreateGridSpaceAddress(X, Y, Z); string name = null; if (!GridSpaceAddress2Name.ContainsKey(gridSpaceAddress)) { name = Glyphics.HttpGet(url + "megagrid?" + gridSpaceAddress); GridSpaceAddress2Name.Add(gridSpaceAddress, name); } if (!Name2Serialized.ContainsKey(name)) { string srects = Glyphics.HttpGet(url + "srects?" + name); Name2Serialized.Add(name, srects); } }