public void Visit(ImageElem el) { using (var scope = new JsonScopeObjectWriter(writer)) { scope.WriteKeyValue("url", el.URL); scope.WriteKeyValue("uuid", el.Uuid); scope.WriteKeyValue("name", el.Name); } }
void RegisterTexture(TextureContainer n) { // create image var imageNode = new ImageElem(n); root.SharedNodeTable.Add(imageNode, n.InstanceId); // create texture var texNode = new TextureElem(n); texNode.Image = imageNode; root.SharedNodeTable.Add(texNode, n.InstanceId); }
void RegisterLightmap(LightmapContainer n) { // create image var imageNode = new ImageElem(n); imageNode.Uuid = n.Guid + "-image"; root.SharedNodeTable.Add(imageNode, n.InstanceId); var texNode = new TextureElem(n); texNode.Uuid = n.Guid + "-texture"; root.SharedNodeTable.Add(texNode, n.InstanceId); texNode.Image = imageNode; }
public void Visit(ImageElem el) { Debug.Assert(false, "do not reach"); throw new NotImplementedException(); }