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);
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
 public void Visit(ImageElem el)
 {
     Debug.Assert(false, "do not reach");
     throw new NotImplementedException();
 }