|
| 1 | +using System.Text.Json.Serialization; |
| 2 | +using BabylonJS; |
| 3 | +using EventHorizon.Blazor.Interop; |
| 4 | + |
| 5 | +namespace EventHorizon.Blazor.BabylonJS.Model |
| 6 | +{ |
| 7 | + [JsonConverter(typeof(CachedEntityConverter<SceneLoaderImportMeshEntity>))] |
| 8 | + public class SceneLoaderImportMeshEntity |
| 9 | + : CachedEntity |
| 10 | + { |
| 11 | + public AbstractMesh[] meshes |
| 12 | + { |
| 13 | + get |
| 14 | + { |
| 15 | + return EventHorizonBlazorInterop.GetArrayClass<AbstractMesh>( |
| 16 | + this.___guid, |
| 17 | + "meshes", |
| 18 | + entity => new AbstractMesh() { ___guid = entity.___guid } |
| 19 | + ); |
| 20 | + } |
| 21 | + set |
| 22 | + { |
| 23 | + EventHorizonBlazorInterop.Set( |
| 24 | + this.___guid, |
| 25 | + "meshes", |
| 26 | + value |
| 27 | + ); |
| 28 | + } |
| 29 | + } |
| 30 | + public AnimationGroup[] animationGroups |
| 31 | + { |
| 32 | + get |
| 33 | + { |
| 34 | + return EventHorizonBlazorInterop.GetArrayClass<AnimationGroup>( |
| 35 | + this.___guid, |
| 36 | + "animationGroups", |
| 37 | + entity => new AnimationGroup() { ___guid = entity.___guid } |
| 38 | + ); |
| 39 | + } |
| 40 | + set |
| 41 | + { |
| 42 | + EventHorizonBlazorInterop.Set( |
| 43 | + this.___guid, |
| 44 | + "animationGroups", |
| 45 | + value |
| 46 | + ); |
| 47 | + } |
| 48 | + } |
| 49 | + |
| 50 | + //#region Static Accessors |
| 51 | + |
| 52 | + //#endregion |
| 53 | + |
| 54 | + //#region Static Properties |
| 55 | + |
| 56 | + //#endregion |
| 57 | + |
| 58 | + //#region Static Methods |
| 59 | + |
| 60 | + //#endregion |
| 61 | + |
| 62 | + //#region Accessors |
| 63 | + |
| 64 | + //#endregion |
| 65 | + |
| 66 | + //#region Properties |
| 67 | + |
| 68 | + //public bool isRecording |
| 69 | + //{ |
| 70 | + // get |
| 71 | + // { |
| 72 | + // return EventHorizonBlazorInterop.Get<bool>( |
| 73 | + // this.___guid, |
| 74 | + // "isRecording" |
| 75 | + // ); |
| 76 | + // } |
| 77 | + // set |
| 78 | + // { |
| 79 | + |
| 80 | + // EventHorizonBlazorInterop.Set( |
| 81 | + // this.___guid, |
| 82 | + // "isRecording", |
| 83 | + // value |
| 84 | + // ); |
| 85 | + // } |
| 86 | + //} |
| 87 | + //#endregion |
| 88 | + |
| 89 | + //#region Constructor |
| 90 | + //public HTMLCanvasElementCachedEntity() : base() { } |
| 91 | + |
| 92 | + //public HTMLCanvasElementCachedEntity( |
| 93 | + // ICachedEntity entity |
| 94 | + //) : base(entity) |
| 95 | + //{ |
| 96 | + //} |
| 97 | + |
| 98 | + |
| 99 | + //#endregion |
| 100 | + |
| 101 | + //#region Methods |
| 102 | + //public void requestPointerLock() |
| 103 | + //{ |
| 104 | + // EventHorizonBlazorInterop.Func<CachedEntity>( |
| 105 | + // new object[] |
| 106 | + // { |
| 107 | + // new string[] { this.___guid, "requestPointerLock" } |
| 108 | + // } |
| 109 | + // ); |
| 110 | + //} |
| 111 | + |
| 112 | + //public void msRequestPointerLock() |
| 113 | + //{ |
| 114 | + // EventHorizonBlazorInterop.Func<CachedEntity>( |
| 115 | + // new object[] |
| 116 | + // { |
| 117 | + // new string[] { this.___guid, "msRequestPointerLock" } |
| 118 | + // } |
| 119 | + // ); |
| 120 | + //} |
| 121 | + |
| 122 | + //public void mozRequestPointerLock() |
| 123 | + //{ |
| 124 | + // EventHorizonBlazorInterop.Func<CachedEntity>( |
| 125 | + // new object[] |
| 126 | + // { |
| 127 | + // new string[] { this.___guid, "mozRequestPointerLock" } |
| 128 | + // } |
| 129 | + // ); |
| 130 | + //} |
| 131 | + |
| 132 | + //public void webkitRequestPointerLock() |
| 133 | + //{ |
| 134 | + // EventHorizonBlazorInterop.Func<CachedEntity>( |
| 135 | + // new object[] |
| 136 | + // { |
| 137 | + // new string[] { this.___guid, "webkitRequestPointerLock" } |
| 138 | + // } |
| 139 | + // ); |
| 140 | + //} |
| 141 | + |
| 142 | + //public MediaStream captureStream(System.Nullable<decimal> fps = null) |
| 143 | + //{ |
| 144 | + // return EventHorizonBlazorInterop.FuncClass<MediaStream>( |
| 145 | + // entity => new MediaStream() { ___guid = entity.___guid }, |
| 146 | + // new object[] |
| 147 | + // { |
| 148 | + // new string[] { this.___guid, "captureStream" }, fps |
| 149 | + // } |
| 150 | + // ); |
| 151 | + //} |
| 152 | + //#endregion |
| 153 | + } |
| 154 | +} |
0 commit comments