/
contractComponents.ts
82 lines (80 loc) · 2.07 KB
/
contractComponents.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* Autogenerated file. Do not edit manually. */
import {
defineComponent,
Type as RecsType,
type World,
} from "@latticexyz/recs";
export function defineContractComponents(world: World) {
return {
Number: (() => {
return defineComponent(
world,
{
value: RecsType.Number,
},
{
id: "0x000000000000000000000000000000004e756d62657200000000000000000000",
metadata: {
componentName: "Number",
tableName: ":Number",
keySchema: { key: "uint32" },
valueSchema: { value: "uint32" },
},
} as const
);
})(),
Vector: (() => {
return defineComponent(
world,
{
x: RecsType.Number,
y: RecsType.Number,
},
{
id: "0x00000000000000000000000000000000566563746f7200000000000000000000",
metadata: {
componentName: "Vector",
tableName: ":Vector",
keySchema: { key: "uint32" },
valueSchema: { x: "int32", y: "int32" },
},
} as const
);
})(),
NumberList: (() => {
return defineComponent(
world,
{
value: RecsType.NumberArray,
},
{
id: "0x000000000000000000000000000000004e756d6265724c697374000000000000",
metadata: {
componentName: "NumberList",
tableName: ":NumberList",
keySchema: {},
valueSchema: { value: "uint32[]" },
},
} as const
);
})(),
Multi: (() => {
return defineComponent(
world,
{
num: RecsType.BigInt,
value: RecsType.Boolean,
},
{
id: "0x000000000000000000000000000000004d756c74690000000000000000000000",
metadata: {
componentName: "Multi",
tableName: ":Multi",
keySchema: { a: "uint32", b: "bool", c: "uint256", d: "int120" },
valueSchema: { num: "int256", value: "bool" },
},
} as const
);
})(),
};
}