public void removeBlock(NodeMaterialBlock block)
 {
     EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "removeBlock" }, block
     }
         );
 }
Exemplo n.º 2
0
 public async ValueTask removeBlock(NodeMaterialBlock block)
 {
     await EventHorizonBlazorInterop.Func <CachedEntity>(
         new object[]
     {
         new string[] { this.___guid, "removeBlock" }, block
     }
         );
 }
        public NodeMaterialConnectionPoint(
            string name, NodeMaterialBlock ownerBlock, int direction
            )
        {
            var entity = EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "NodeMaterialConnectionPoint" },
                name, ownerBlock, direction
                );

            ___guid = entity.___guid;
        }
        public static async ValueTask <NodeMaterialConnectionPoint> NewNodeMaterialConnectionPoint(
            string name, NodeMaterialBlock ownerBlock, int direction
            )
        {
            var entity = await EventHorizonBlazorInterop.New(
                new string[] { "BABYLON", "NodeMaterialConnectionPoint" },
                name, ownerBlock, direction
                );

            return(new NodeMaterialConnectionPoint(entity));
        }
Exemplo n.º 5
0
 public async ValueTask <NodeMaterial> removeOutputNode(NodeMaterialBlock node)
 {
     return(await EventHorizonBlazorInterop.FuncClass <NodeMaterial>(
                entity => new NodeMaterial()
     {
         ___guid = entity.___guid
     },
                new object[]
     {
         new string[] { this.___guid, "removeOutputNode" }, node
     }
                ));
 }
Exemplo n.º 6
0
 public async ValueTask <NodeMaterialBlock> connectTo(NodeMaterialBlock other, object options = null)
 {
     return(await EventHorizonBlazorInterop.FuncClass <NodeMaterialBlock>(
                entity => new NodeMaterialBlock()
     {
         ___guid = entity.___guid
     },
                new object[]
     {
         new string[] { this.___guid, "connectTo" }, other, options
     }
                ));
 }
Exemplo n.º 7
0
 public async ValueTask <NodeMaterialConnectionPoint> getFirstAvailableOutput(NodeMaterialBlock forBlock = null)
 {
     return(await EventHorizonBlazorInterop.FuncClass <NodeMaterialConnectionPoint>(
                entity => new NodeMaterialConnectionPoint()
     {
         ___guid = entity.___guid
     },
                new object[]
     {
         new string[] { this.___guid, "getFirstAvailableOutput" }, forBlock
     }
                ));
 }
 public NodeMaterial addOutputNode(NodeMaterialBlock node)
 {
     return(EventHorizonBlazorInterop.FuncClass <NodeMaterial>(
                entity => new NodeMaterial()
     {
         ___guid = entity.___guid
     },
                new object[]
     {
         new string[] { this.___guid, "addOutputNode" }, node
     }
                ));
 }
 public async ValueTask <NodeMaterialBlock> get_sourceBlock()
 {
     if (__sourceBlock == null)
     {
         __sourceBlock = await EventHorizonBlazorInterop.GetClass <NodeMaterialBlock>(
             this.___guid,
             "sourceBlock",
             (entity) =>
         {
             return(new NodeMaterialBlock()
             {
                 ___guid = entity.___guid
             });
         }
             );
     }
     return(__sourceBlock);
 }