|
1 | 1 | import { DefinedUsing } from "../Types/Defined Using/DefinedUsing";
|
2 | 2 | import { Using } from "../Types/Defined Using/include";
|
3 |
| -import { Sets } from "./Molang/include"; |
| 3 | +import { Context, Queries, Temps, Variables, Geometries, Textures, Materials } from "./Molang/include"; |
4 | 4 |
|
5 | 5 | /** */
|
6 | 6 | export interface MolangSet {
|
@@ -47,8 +47,14 @@ export namespace MolangSet {
|
47 | 47 | export function harvest(object: any): MolangSet {
|
48 | 48 | const out = create();
|
49 | 49 |
|
50 |
| - Sets.getUsing(object, out); |
51 |
| - Sets.getDefined(object, out); |
| 50 | + Queries.getUsing(object, out.queries.using); |
| 51 | + Context.getUsing(object, out.contexts.using); |
| 52 | + |
| 53 | + Variables.getUsing(object, out.variables.using); |
| 54 | + Variables.getDefined(object, out.variables.defined); |
| 55 | + |
| 56 | + Temps.getUsing(object, out.temps.using); |
| 57 | + Temps.getDefined(object, out.temps.defined); |
52 | 58 |
|
53 | 59 | return out;
|
54 | 60 | }
|
@@ -94,8 +100,18 @@ export namespace MolangFullSet {
|
94 | 100 | export function harvest(object: object | string): MolangFullSet {
|
95 | 101 | const out = create();
|
96 | 102 |
|
97 |
| - Sets.getUsingFull(object, out); |
98 |
| - Sets.getDefined(object, out); |
| 103 | + Queries.getUsing(object, out.queries.using); |
| 104 | + Context.getUsing(object, out.contexts.using); |
| 105 | + |
| 106 | + Variables.getUsing(object, out.variables.using); |
| 107 | + Variables.getDefined(object, out.variables.defined); |
| 108 | + |
| 109 | + Temps.getUsing(object, out.temps.using); |
| 110 | + Temps.getDefined(object, out.temps.defined); |
| 111 | + |
| 112 | + Textures.getUsing(object, out.textures.using); |
| 113 | + Geometries.getUsing(object, out.textures.using); |
| 114 | + Materials.getUsing(object, out.textures.using); |
99 | 115 |
|
100 | 116 | return out;
|
101 | 117 | }
|
|
0 commit comments