canhorn / EventHorizon.Blazor.TypeScript.Interop.Generator

This project is a Blazor Interop C# Generator, has a sample against the BabylonJS library.
https://wonderful-pond-05f7b3b10.azurestaticapps.net/
MIT License
132 stars 19 forks source link

Generate JavaScript object for a CacheEntity created for an Interface #60

Open canhorn opened 2 years ago

canhorn commented 2 years ago

To the default constructor for Interfaces that have a CachedEntity create should create a default object in the JavaScript layer. This will make it so the cached entity can be easily created and referenced.

public InterfacedCachedEntity()
{
    var entity = EventHorizonBlazorInterop.New(new string[] { "Object" }, null);
    ___guid = entity.___guid;
}