@woosh/meep-engine 2.121.8 → 2.121.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/src/core/binary/to_half_float_uint16.d.ts +1 -2
  3. package/src/core/binary/to_half_float_uint16.d.ts.map +1 -1
  4. package/src/core/binary/to_half_float_uint16.js +1 -2
  5. package/src/core/geom/ConicRay.d.ts +8 -0
  6. package/src/core/geom/ConicRay.d.ts.map +1 -1
  7. package/src/core/geom/ConicRay.js +11 -0
  8. package/src/core/geom/Quaternion.d.ts.map +1 -1
  9. package/src/core/geom/Quaternion.js +102 -49
  10. package/src/core/geom/Vector1.d.ts.map +1 -1
  11. package/src/core/geom/Vector1.js +11 -8
  12. package/src/core/geom/Vector2.d.ts.map +1 -1
  13. package/src/core/geom/Vector2.js +89 -59
  14. package/src/core/geom/Vector3.d.ts.map +1 -1
  15. package/src/core/geom/Vector3.js +108 -68
  16. package/src/core/geom/Vector4.d.ts +230 -40
  17. package/src/core/geom/Vector4.d.ts.map +1 -1
  18. package/src/core/geom/Vector4.js +36 -1
  19. package/src/core/geom/packing/max-rect/cutArea.d.ts.map +1 -1
  20. package/src/core/geom/packing/max-rect/cutArea.js +7 -8
  21. package/src/core/geom/packing/miniball/Miniball.d.ts +188 -11
  22. package/src/core/geom/packing/miniball/PointSet.d.ts +46 -3
  23. package/src/core/geom/vec3/v3_slerp.d.ts.map +1 -1
  24. package/src/core/geom/vec3/v3_slerp.js +2 -0
  25. package/src/core/math/EPSILON.d.ts.map +1 -1
  26. package/src/core/math/EPSILON.js +1 -1
  27. package/src/engine/ecs/EntityManager.d.ts +181 -35
  28. package/src/engine/ecs/EntityManager.d.ts.map +1 -1
  29. package/src/engine/ecs/EntityManager.js +11 -9
  30. package/src/engine/graphics/ecs/trail2d/Trail2D.d.ts +6 -1
  31. package/src/engine/graphics/ecs/trail2d/Trail2D.d.ts.map +1 -1
  32. package/src/engine/graphics/impostors/octahedral/bake/compute_bounding_sphere.d.ts +1 -1
  33. package/src/engine/graphics/impostors/octahedral/bake/compute_bounding_sphere.d.ts.map +1 -1
  34. package/src/engine/graphics/texture/sampler/sampler2d_to_f16.d.ts.map +1 -1
  35. package/src/generation/markers/transform/MarkerNodeTransformRotateRandom.js +1 -1
  36. package/editor/tools/GridPaintTool.d.ts +0 -17
  37. package/editor/tools/GridPaintTool.d.ts.map +0 -1
  38. package/editor/tools/SelectionTool.d.ts +0 -27
  39. package/editor/tools/SelectionTool.d.ts.map +0 -1
  40. package/editor/tools/TopDownCameraControlTool.d.ts +0 -13
  41. package/editor/tools/TopDownCameraControlTool.d.ts.map +0 -1
@@ -1,35 +1,181 @@
1
- import {EntityComponentDataset} from "./EntityComponentDataset";
2
- import {System} from "./System";
3
-
4
- interface Type<T> extends Function {
5
- new(...args: any[]): T;
6
- }
7
-
8
-
9
- export class EntityManager {
10
- dataset: EntityComponentDataset
11
- fixedUpdateStepSize: number
12
-
13
- getComponentTypeMap(): any[]
14
-
15
- addSystem<T>(system: System<T>): Promise<void>
16
-
17
- removeSystem<T>(system: System<T>): Promise<void>
18
-
19
- getSystem<T>(systemClass: Type<T>): T | null
20
-
21
- attachDataSet(dataset: EntityComponentDataset): void
22
-
23
- detachDataSet(): void
24
-
25
- startup(complete_callback: () => void, failure_callback: (reason: string) => void): void
26
-
27
- shutdown(complete_callback: () => void, failure_callback: (reason: string) => void): void
28
-
29
- /**
30
- *
31
- * Advance simulation forward by a specified amount of time
32
- * @param time_delta in seconds, real number
33
- */
34
- simulate(time_delta: number): void
35
- }
1
+ export type EntityManagerState = number;
2
+ export namespace EntityManagerState {
3
+ let Initial: number;
4
+ let Starting: number;
5
+ let Running: number;
6
+ let Failed: number;
7
+ let Stopping: number;
8
+ let Stopped: number;
9
+ }
10
+ /**
11
+ * Brings together {@link System}s and an {@link EntityComponentDataset}
12
+ * Main entry point into the simulation process
13
+ */
14
+ export class EntityManager {
15
+ /**
16
+ * @readonly
17
+ * @type {System[]}
18
+ */
19
+ readonly systems: System<any, any, any, any, any>[];
20
+ /**
21
+ * @readonly
22
+ * @private
23
+ * @type {System[]}
24
+ */
25
+ private readonly systemsExecutionOrder;
26
+ /**
27
+ * @readonly
28
+ * @private
29
+ * @type {EntityObserver[]}
30
+ */
31
+ private readonly systemObservers;
32
+ /**
33
+ * @readonly
34
+ */
35
+ readonly on: {
36
+ systemStarted: Signal<any, any, any, any, any, any, any, any>;
37
+ systemStopped: Signal<any, any, any, any, any, any, any, any>;
38
+ /**
39
+ * @type {Signal<System>}
40
+ */
41
+ systemAdded: Signal<System<any, any, any, any, any>>;
42
+ systemRemoved: Signal<any, any, any, any, any, any, any, any>;
43
+ };
44
+ /**
45
+ *
46
+ * @type {EntityManagerState}
47
+ */
48
+ state: EntityManagerState;
49
+ /**
50
+ * Track remainders of simulation time for fixed step
51
+ * Needed for accurate time keeping
52
+ * @private
53
+ * @readonly
54
+ * @type {Map<System, number>}
55
+ */
56
+ private readonly systemAccumulatedFixedStepTime;
57
+ /**
58
+ * Value used to execute {@link System#fixedUpdate}
59
+ * In seconds
60
+ * @type {number}
61
+ */
62
+ fixedUpdateStepSize: number;
63
+ /**
64
+ * How long can any given system run it's fixedUpdate, per simulation update
65
+ * This is value allows us to avoid cases where fixedUpdate takes longer that its time step and causes a runaway freeze
66
+ * In milliseconds
67
+ * @type {number}
68
+ */
69
+ fixedUpdatePerSystemExecutionTimeLimit: number;
70
+ /**
71
+ *
72
+ * @type {EntityComponentDataset}
73
+ */
74
+ dataset: EntityComponentDataset;
75
+ /**
76
+ * Whenever a system is added or removed, optimal execution plan changes, this flag tells us to rebuild the current plan
77
+ * see {@link #systemsExecutionOrder}
78
+ * @type {boolean}
79
+ * @private
80
+ */
81
+ private __execution_order_needs_update;
82
+ /**
83
+ * Rebuild execution order
84
+ * @private
85
+ */
86
+ private updateExecutionOrder;
87
+ detachDataSet(): void;
88
+ /**
89
+ * Get list of all components referenced by active systems
90
+ * @returns {Class[]}
91
+ */
92
+ getComponentTypeMap(): Class[];
93
+ /**
94
+ *
95
+ * @param {EntityComponentDataset} dataset
96
+ * @throws {Error} if another dataset is attached
97
+ * @throws {Error} if dataset is incompatible with current system set
98
+ */
99
+ attachDataSet(dataset: EntityComponentDataset): void;
100
+ /**
101
+ * @template T
102
+ * @param {Class<T>} systemClass
103
+ * @returns {boolean}
104
+ */
105
+ hasSystem<T>(systemClass: Class<T>): boolean;
106
+ /**
107
+ * @template T
108
+ * @param {Class<T>} systemClass
109
+ * @returns {T|null}
110
+ */
111
+ getSystem<T>(systemClass: Class<T>): T | null;
112
+ /**
113
+ * @deprecated use {@link EntityComponentDataset.getComponentClassByName} instead
114
+ * @template T
115
+ * @param {string} className
116
+ * @returns {null|Class<T>}
117
+ */
118
+ getComponentClassByName<T>(className: string): null | Class<T>;
119
+ /**
120
+ * Advance simulation forward by a specified amount of time
121
+ * @param {number} timeDelta in seconds
122
+ */
123
+ simulate(timeDelta: number): void;
124
+ /**
125
+ * If the {@link EntityManager} is already started, the system will be started automatically before being added
126
+ * @param {System} system
127
+ * @returns {Promise}
128
+ * @throws {IllegalStateException}
129
+ */
130
+ addSystem(system: System<any, any, any, any, any>): Promise<any>;
131
+ /**
132
+ *
133
+ * @param {System} system
134
+ * @returns {Promise<boolean>}
135
+ */
136
+ removeSystem(system: System<any, any, any, any, any>): Promise<boolean>;
137
+ /**
138
+ * @private
139
+ * @param {System} system
140
+ * @param {function(system: System)} successCallback
141
+ * @param {function(reason:*)} errorCallback
142
+ */
143
+ private stopSystem;
144
+ /**
145
+ * @private
146
+ * @param {System} system
147
+ * @param {function(system: System)} successCallback
148
+ * @param {function(reason:*)} errorCallback
149
+ */
150
+ private startSystem;
151
+ /**
152
+ * This method is asynchronous by nature, it has to wait for each individual system to finish its own statup.
153
+ * Make sure to register callback in order to be notified when the startup has finished
154
+ * @param {function} [readyCallback] executed once entity manager successfully completes startup
155
+ * @param {function} [errorCallback] executed if entity manager encounters an error during startup
156
+ */
157
+ startup(readyCallback?: Function, errorCallback?: Function): void;
158
+ /**
159
+ *
160
+ * @param {Class} systemClass
161
+ * @returns {Promise.<System>}
162
+ */
163
+ promiseSystem(systemClass: Class): Promise<System<any, any, any, any, any>>;
164
+ /**
165
+ *
166
+ * @param {Class} systemClass
167
+ * @param {SystemState} state
168
+ * @returns {Promise.<System>}
169
+ */
170
+ promiseSystemInState(systemClass: Class, state: SystemState): Promise<System<any, any, any, any, any>>;
171
+ /**
172
+ * This method is asynchronous by nature, it will not be done until each individual system has finished its shutdown
173
+ * Make sure to use callback to be notified when the shutdown has completed
174
+ * @param {function} [readyCallback] Called when shutdown finishes successfully. defaults to no-operation
175
+ * @param {function} [errorCallback] Called when an error occurs during shutdown process. defaults to console error output
176
+ */
177
+ shutdown(readyCallback?: Function, errorCallback?: Function): void;
178
+ }
179
+ import { System } from "./System.js";
180
+ import Signal from "../../core/events/signal/Signal.js";
181
+ //# sourceMappingURL=EntityManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityManager.d.ts","sourceRoot":"","sources":["../../../../src/engine/ecs/EntityManager.js"],"names":[],"mappings":"iCAeU,MAAM;;;;;;;;;AAWhB;;;GAGG;AACH;IAEI;;;OAGG;IACH,kBAFU,iCAAQ,CAEL;IAEb;;;;OAIG;IACH,uCAA2B;IAE3B;;;;OAIG;IACH,iCAAqB;IAErB;;OAEG;IACH;;;QAGI;;WAEG;qBADO,MAAM,iCAAQ;;MAI1B;IAEF;;;OAGG;IACH,OAFU,kBAAkB,CAEO;IAEnC;;;;;;OAMG;IACH,gDAA2C;IAE3C;;;;OAIG;IACH,qBAFU,MAAM,CAEY;IAE5B;;;;;OAKG;IACH,wCAFU,MAAM,CAE4B;IAE5C;;;OAGG;IACH,SAFU,sBAAsB,CAEjB;IAEf;;;;;OAKG;IACH,uCAAsC;IAEtC;;;OAGG;IACH,6BA8EC;IAED,sBAcC;IAED;;;OAGG;IACH,uBAFa,KAAK,EAAE,CAuBnB;IAED;;;;;OAKG;IACH,uBAJW,sBAAsB,QA0BhC;IAED;;;;OAIG;IACH,UAJa,CAAC,eACH,KAAK,CAAC,CAAC,CAAC,GACN,OAAO,CAInB;IAED;;;;OAIG;IACH,UAJa,CAAC,eACH,KAAK,CAAC,CAAC,CAAC,GACN,CAAC,GAAC,IAAI,CAgBlB;IAED;;;;;OAKG;IACH,wBAJa,CAAC,aACH,MAAM,GACJ,IAAI,GAAC,KAAK,CAAC,CAAC,CAAC,CAezB;IAGD;;;OAGG;IACH,oBAFW,MAAM,QAkEhB;IAED;;;;;OAKG;IACH,iEA0EC;IAED;;;;OAIG;IACH,uDAFa,OAAO,CAAC,OAAO,CAAC,CAyC5B;IAED;;;;;OAKG;IACH,mBA6BC;IAED;;;;;OAKG;IACH,oBAwCC;IAED;;;;OAIG;IACH,gEAwEC;IAED;;;;OAIG;IACH,2BAHW,KAAK,GACH,OAAO,iCAAS,CA0B5B;IAED;;;;;OAKG;IACH,kCAJW,KAAK,SACL,WAAW,GACT,OAAO,iCAAS,CAsB5B;IAED;;;;OAIG;IACH,iEAsEC;CACJ;uBAtyBmC,aAAa;mBAP9B,oCAAoC"}
1
+ {"version":3,"file":"EntityManager.d.ts","sourceRoot":"","sources":["../../../../src/engine/ecs/EntityManager.js"],"names":[],"mappings":"iCAeU,MAAM;;;;;;;;;AAWhB;;;GAGG;AACH;IAEI;;;OAGG;IACH,kBAFU,iCAAQ,CAEL;IAEb;;;;OAIG;IACH,uCAA2B;IAE3B;;;;OAIG;IACH,iCAAqB;IAErB;;OAEG;IACH;;;QAGI;;WAEG;qBADO,MAAM,iCAAQ;;MAI1B;IAEF;;;OAGG;IACH,OAFU,kBAAkB,CAEO;IAEnC;;;;;;OAMG;IACH,gDAA2C;IAE3C;;;;OAIG;IACH,qBAFU,MAAM,CAEY;IAE5B;;;;;OAKG;IACH,wCAFU,MAAM,CAE4B;IAE5C;;;OAGG;IACH,SAFU,sBAAsB,CAEjB;IAEf;;;;;OAKG;IACH,uCAAsC;IAEtC;;;OAGG;IACH,6BA8EC;IAED,sBAcC;IAED;;;OAGG;IACH,uBAFa,KAAK,EAAE,CAuBnB;IAED;;;;;OAKG;IACH,uBAJW,sBAAsB,QA0BhC;IAED;;;;OAIG;IACH,UAJa,CAAC,eACH,KAAK,CAAC,CAAC,CAAC,GACN,OAAO,CAInB;IAED;;;;OAIG;IACH,UAJa,CAAC,eACH,KAAK,CAAC,CAAC,CAAC,GACN,CAAC,GAAC,IAAI,CAgBlB;IAED;;;;;OAKG;IACH,wBAJa,CAAC,aACH,MAAM,GACJ,IAAI,GAAC,KAAK,CAAC,CAAC,CAAC,CAezB;IAGD;;;OAGG;IACH,oBAFW,MAAM,QAkEhB;IAED;;;;;OAKG;IACH,iEA0EC;IAED;;;;OAIG;IACH,uDAFa,OAAO,CAAC,OAAO,CAAC,CAyC5B;IAED;;;;;OAKG;IACH,mBA6BC;IAED;;;;;OAKG;IACH,oBAwCC;IAED;;;;;OAKG;IACH,kEAwEC;IAED;;;;OAIG;IACH,2BAHW,KAAK,GACH,OAAO,iCAAS,CA0B5B;IAED;;;;;OAKG;IACH,kCAJW,KAAK,SACL,WAAW,GACT,OAAO,iCAAS,CAsB5B;IAED;;;;;OAKG;IACH,mEAsEC;CACJ;uBAxyBmC,aAAa;mBAP9B,oCAAoC"}
@@ -600,11 +600,12 @@ export class EntityManager {
600
600
  }
601
601
 
602
602
  /**
603
- *
604
- * @param {function} readyCallback executed once entity manager successfully completes startup
605
- * @param {function} errorCallback executed if entity manager encounters an error during startup
603
+ * This method is asynchronous by nature, it has to wait for each individual system to finish its own statup.
604
+ * Make sure to register callback in order to be notified when the startup has finished
605
+ * @param {function} [readyCallback] executed once entity manager successfully completes startup
606
+ * @param {function} [errorCallback] executed if entity manager encounters an error during startup
606
607
  */
607
- startup(readyCallback, errorCallback) {
608
+ startup(readyCallback = noop, errorCallback = console.error) {
608
609
  if (this.state === EntityManagerState.Starting) {
609
610
  throw new IllegalStateException(`System is currently in starting state`);
610
611
  }
@@ -738,12 +739,13 @@ export class EntityManager {
738
739
  }
739
740
 
740
741
  /**
741
- *
742
- * @param {function} readyCallback
743
- * @param {function} errorCallback
742
+ * This method is asynchronous by nature, it will not be done until each individual system has finished its shutdown
743
+ * Make sure to use callback to be notified when the shutdown has completed
744
+ * @param {function} [readyCallback] Called when shutdown finishes successfully. defaults to no-operation
745
+ * @param {function} [errorCallback] Called when an error occurs during shutdown process. defaults to console error output
744
746
  */
745
- shutdown(readyCallback, errorCallback) {
746
- if(this.state !== EntityManagerState.Running){
747
+ shutdown(readyCallback = noop, errorCallback= console.error) {
748
+ if (this.state !== EntityManagerState.Running) {
747
749
  throw new IllegalStateException(`System is wrong state, expected '${EntityManagerState.Running}'`);
748
750
  }
749
751
 
@@ -105,7 +105,12 @@ declare class Trail2D {
105
105
  toJSON(): {
106
106
  maxAge: number;
107
107
  width: number;
108
- color: any;
108
+ color: {
109
+ x: number;
110
+ y: number;
111
+ z: number;
112
+ w: number;
113
+ };
109
114
  textureURL: string;
110
115
  offset: any;
111
116
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Trail2D.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/ecs/trail2d/Trail2D.js"],"names":[],"mappings":";AAmBA;IAkJI,oCAMC;IAtJD;;;OAGG;IACH,QAFU,MAAM,CAES;IAEzB;;;OAGG;IACH,OAFU,MAAM,CAEM;IAEtB;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;OAGG;IACH,eAFU,MAAM,CAEE;IAElB;;;OAGG;IACH,qBAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,gBAFU,OAAO,CAEe;IAEhC;;;;OAIG;IACH,iBAFU,OAAO,CAEM;IAEvB;;;OAGG;IACH,QAFU,OAAO,GAAC,IAAI,CAER;IAEd;;;OAGG;IACH,UAFU,mBAAmB,CAEQ;IAErC;;;OAGG;IACH,cAFU,SAAS,CAEG;IAEtB;;;OAGG;IACH,cAAsB;IAEtB,gBAQC;IAMD,0BAEC;IAND,yBAEC;IAMD;;;;OAIG;IACH,cAHW,MAAM,GAAC,YAAY,GACjB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,YAAY,GACjB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,YAAY,SACnB,OAAO,QAQjB;IAED;;;;OAIG;IACH,cAHW,MAAM,GAAC,YAAY,GACjB,OAAO,CAInB;IAED;;;OAGG;IACH,qBAFW,MAAM,QAehB;IADG,kHAAgB;IAWpB;;;;;;;;;;;aAcC;IAGD;;;;;;MAQC;IAED;;;OAGG;IACH,cAFW,OAAO,WASjB;IAED;;;;;;;OAOG;IACH,cANW,MAAM,KACN,MAAM,KACN,MAAM,YACN,MAAM,GACJ,OAAO,CA0CnB;CAEJ;;;;;;oBArQmB,kCAAkC;oBADlC,kCAAkC;wBAK9B,0BAA0B;oCACd,sCAAsC;0BAPhD,yCAAyC;6BAStC,mBAAmB;kCADd,wBAAwB"}
1
+ {"version":3,"file":"Trail2D.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/ecs/trail2d/Trail2D.js"],"names":[],"mappings":";AAmBA;IAkJI,oCAMC;IAtJD;;;OAGG;IACH,QAFU,MAAM,CAES;IAEzB;;;OAGG;IACH,OAFU,MAAM,CAEM;IAEtB;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;OAGG;IACH,eAFU,MAAM,CAEE;IAElB;;;OAGG;IACH,qBAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,gBAFU,OAAO,CAEe;IAEhC;;;;OAIG;IACH,iBAFU,OAAO,CAEM;IAEvB;;;OAGG;IACH,QAFU,OAAO,GAAC,IAAI,CAER;IAEd;;;OAGG;IACH,UAFU,mBAAmB,CAEQ;IAErC;;;OAGG;IACH,cAFU,SAAS,CAEG;IAEtB;;;OAGG;IACH,cAAsB;IAEtB,gBAQC;IAMD,0BAEC;IAND,yBAEC;IAMD;;;;OAIG;IACH,cAHW,MAAM,GAAC,YAAY,GACjB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,YAAY,GACjB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,YAAY,SACnB,OAAO,QAQjB;IAED;;;;OAIG;IACH,cAHW,MAAM,GAAC,YAAY,GACjB,OAAO,CAInB;IAED;;;OAGG;IACH,qBAFW,MAAM,QAehB;IADG,kHAAgB;IAWpB;;;;;;;;;;;aAcC;IAGD;;;;;;;;;;;MAQC;IAED;;;OAGG;IACH,cAFW,OAAO,WASjB;IAED;;;;;;;OAOG;IACH,cANW,MAAM,KACN,MAAM,KACN,MAAM,YACN,MAAM,GACJ,OAAO,CA0CnB;CAEJ;;;;;;oBArQmB,kCAAkC;oBADlC,kCAAkC;wBAK9B,0BAA0B;oCACd,sCAAsC;0BAPhD,yCAAyC;6BAStC,mBAAmB;kCADd,wBAAwB"}
@@ -5,5 +5,5 @@
5
5
  export function compute_bounding_sphere(objects: {
6
6
  mesh: ShadedGeometry;
7
7
  transform: mat4;
8
- }[]): any[];
8
+ }[]): number[];
9
9
  //# sourceMappingURL=compute_bounding_sphere.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compute_bounding_sphere.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/impostors/octahedral/bake/compute_bounding_sphere.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH,iDAFW;IAAC,IAAI,EAAC,cAAc,CAAC;IAAC,SAAS,EAAC,IAAI,CAAA;CAAC,EAAE,SAsCjD"}
1
+ {"version":3,"file":"compute_bounding_sphere.d.ts","sourceRoot":"","sources":["../../../../../../../src/engine/graphics/impostors/octahedral/bake/compute_bounding_sphere.js"],"names":[],"mappings":"AAIA;;;GAGG;AACH,iDAFW;IAAC,IAAI,EAAC,cAAc,CAAC;IAAC,SAAS,EAAC,IAAI,CAAA;CAAC,EAAE,YAsCjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"sampler2d_to_f16.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/texture/sampler/sampler2d_to_f16.js"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wCAHW,SAAS,GACP,SAAS,CAcrB;0BAnByB,gBAAgB"}
1
+ {"version":3,"file":"sampler2d_to_f16.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/texture/sampler/sampler2d_to_f16.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wCAHW,SAAS,GACP,SAAS,CAcrB;0BAnByB,gBAAgB"}
@@ -22,7 +22,7 @@ export class MarkerNodeTransformRotateRandom extends MarkerNodeTransformer {
22
22
  transform(node, grid) {
23
23
  const result = node.clone();
24
24
 
25
- result.transform.rotation.setRandom(this.random);
25
+ result.transform.rotation.random(this.random);
26
26
 
27
27
  return result;
28
28
  }
@@ -1,17 +0,0 @@
1
- export default GridPaintTool;
2
- declare class GridPaintTool extends Tool {
3
- name: string;
4
- terrain: import("../../src/engine/ecs/terrain/ecs/Terrain.js").default;
5
- cameraController: {
6
- start: Function;
7
- stop: Function;
8
- };
9
- buildColor(): Vector4;
10
- paint(): void;
11
- traverse(callback: any): void;
12
- affectTile(_x: any, _y: any): void;
13
- affectTileByMousePosition(position: any): void;
14
- }
15
- import Tool from "./engine/Tool.js";
16
- import Vector4 from "../../src/core/geom/Vector4.js";
17
- //# sourceMappingURL=GridPaintTool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GridPaintTool.d.ts","sourceRoot":"","sources":["GridPaintTool.js"],"names":[],"mappings":";AAiBA;IAGQ,aAAwB;IAexB,uEAEE;IAcF;;;MAA2E;IAI/E,sBAQC;IAED,cAyBC;IAED,8BAyBC;IAiBD,mCAuCC;IAED,+CAQC;CAcJ;iBAtLgB,kBAAkB;oBAZf,gCAAgC"}
@@ -1,27 +0,0 @@
1
- /**
2
- *
3
- * @param {Vector2} point
4
- * @param {Engine} engine
5
- * @param {THREE.Camera} camera
6
- * @returns {number[]} entities
7
- */
8
- export function pickingEntitySelection(point: Vector2, engine: Engine, camera: THREE.Camera): number[];
9
- export default SelectionTool;
10
- import Vector2 from '../../src/core/geom/Vector2.js';
11
- import { Camera } from '../../src/engine/graphics/ecs/camera/Camera.js';
12
- declare class SelectionTool extends Tool {
13
- name: string;
14
- anchorPoint: Vector2;
15
- targetPoint: Vector2;
16
- box: AABB2;
17
- selectionMarker: SelectionView;
18
- readPosition(target: any): void;
19
- }
20
- import Tool from './engine/Tool.js';
21
- import AABB2 from '../../src/core/geom/2d/aabb/AABB2.js';
22
- declare class SelectionView extends View<HTMLElement> {
23
- constructor();
24
- el: HTMLDivElement;
25
- }
26
- import View from '../../src/view/View.js';
27
- //# sourceMappingURL=SelectionTool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectionTool.d.ts","sourceRoot":"","sources":["SelectionTool.js"],"names":[],"mappings":"AA8MA;;;;;;GAMG;AACH,8CALW,OAAO,0BAEP,YAAY,GACV,MAAM,EAAE,CAkEpB;;oBAnRmB,gCAAgC;uBAE7B,gDAAgD;AA6BvE;IAGQ,aAA+B;IAE/B,qBAAgC;IAChC,qBAAgC;IAChC,WAAsB;IAEtB,+BAA0C;IAG9C,gCAIC;CA2GJ;iBAhJgB,kBAAkB;kBAXjB,sCAAsC;AAaxD;IACI,cAcC;IAZG,mBAAuC;CAa9C;iBAvBgB,wBAAwB"}
@@ -1,13 +0,0 @@
1
- export default TopDownCameraControlTool;
2
- declare class TopDownCameraControlTool extends Tool {
3
- name: string;
4
- system: any;
5
- /**
6
- *
7
- * @type {Entity}
8
- * @private
9
- */
10
- private __controller;
11
- }
12
- import Tool from './engine/Tool.js';
13
- //# sourceMappingURL=TopDownCameraControlTool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TopDownCameraControlTool.d.ts","sourceRoot":"","sources":["TopDownCameraControlTool.js"],"names":[],"mappings":";AAMA;IAGQ,aAA4B;IAC5B,YAAkB;IAGlB;;;;OAIG;IACH,qBAAwB;CAkC/B;iBAhDgB,kBAAkB"}