@dcl/playground-assets 7.0.6-4055981423.commit-60b7f6f → 7.0.6-4076330908.commit-cd40e5f
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.
- package/dist/alpha.d.ts +487 -602
- package/dist/beta.d.ts +487 -606
- package/dist/index.bundled.d.ts +487 -606
- package/dist/index.d.ts +1 -1
- package/dist/index.js +582 -250
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +487 -614
- package/etc/playground-assets.api.json +8156 -10095
- package/etc/playground-assets.api.md +276 -947
- package/package.json +3 -3
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import _m0 from 'protobufjs/minimal';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* @public
|
|
5
3
|
*/
|
|
6
4
|
export declare type AlignType = 'auto' | 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline' | 'space-between' | 'space-around';
|
|
7
5
|
|
|
8
|
-
export declare const AMOUNT_VERSION_AVAILABLE: number;
|
|
9
|
-
|
|
10
6
|
export declare const Animator: AnimatorComponentDefinitionExtended;
|
|
11
7
|
|
|
12
8
|
/**
|
|
13
9
|
* @public
|
|
14
10
|
*/
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*/
|
|
20
|
-
export declare interface AnimatorComponentDefinitionExtended extends AnimatorComponentDefinition {
|
|
11
|
+
export declare interface AnimatorComponentDefinitionExtended extends ComponentDefinition<PBAnimator> {
|
|
21
12
|
/**
|
|
22
13
|
* @public
|
|
23
14
|
*
|
|
@@ -63,6 +54,9 @@ export declare const AudioSource: ComponentDefinition<PBAudioSource>;
|
|
|
63
54
|
/** @public */
|
|
64
55
|
export declare const AudioStream: ComponentDefinition<PBAudioStream>;
|
|
65
56
|
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
66
60
|
export declare const enum AvatarAnchorPointType {
|
|
67
61
|
AAPT_POSITION = 0,
|
|
68
62
|
AAPT_NAME_TAG = 1,
|
|
@@ -76,6 +70,9 @@ export declare const AvatarAttach: ComponentDefinition<PBAvatarAttach>;
|
|
|
76
70
|
/** @public */
|
|
77
71
|
export declare const AvatarModifierArea: ComponentDefinition<PBAvatarModifierArea>;
|
|
78
72
|
|
|
73
|
+
/**
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
79
76
|
export declare const enum AvatarModifierType {
|
|
80
77
|
AMT_HIDE_AVATARS = 0,
|
|
81
78
|
AMT_DISABLE_PASSPORTS = 1
|
|
@@ -84,6 +81,9 @@ export declare const enum AvatarModifierType {
|
|
|
84
81
|
/** @public */
|
|
85
82
|
export declare const AvatarShape: ComponentDefinition<PBAvatarShape>;
|
|
86
83
|
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
87
|
export declare interface AvatarTexture {
|
|
88
88
|
userId: string;
|
|
89
89
|
/** default = TextureWrapMode.Clamp */
|
|
@@ -93,13 +93,8 @@ export declare interface AvatarTexture {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
|
-
export declare const AvatarTexture: {
|
|
99
|
-
encode(message: AvatarTexture, writer?: _m0.Writer): _m0.Writer;
|
|
100
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): AvatarTexture;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
98
|
export declare const enum BackgroundTextureMode {
|
|
104
99
|
/**
|
|
105
100
|
* NINE_SLICES - https://docs.unity3d.com/Manual/UIE-USS-SupportedProperties.html (Slicing section)
|
|
@@ -124,6 +119,9 @@ export declare const enum BackgroundTextureMode {
|
|
|
124
119
|
/** @public */
|
|
125
120
|
export declare const Billboard: ComponentDefinition<PBBillboard>;
|
|
126
121
|
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
127
125
|
export declare const enum BillboardMode {
|
|
128
126
|
BM_NONE = 0,
|
|
129
127
|
BM_X = 1,
|
|
@@ -133,6 +131,9 @@ export declare const enum BillboardMode {
|
|
|
133
131
|
}
|
|
134
132
|
|
|
135
133
|
/** Defines indents from respective edges */
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
136
137
|
export declare interface BorderRect {
|
|
137
138
|
top: number;
|
|
138
139
|
left: number;
|
|
@@ -141,22 +142,23 @@ export declare interface BorderRect {
|
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
/**
|
|
144
|
-
*
|
|
145
|
-
*/
|
|
146
|
-
export declare const BorderRect: {
|
|
147
|
-
encode(message: BorderRect, writer?: _m0.Writer): _m0.Writer;
|
|
148
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BorderRect;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
/**
|
|
145
|
+
*
|
|
152
146
|
* @public
|
|
147
|
+
* Button component
|
|
148
|
+
*
|
|
149
|
+
* A Button indicates a possible user action.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* <Button variant="primary" value="Click me!" />
|
|
153
|
+
*
|
|
154
|
+
* @category Component
|
|
153
155
|
*/
|
|
154
|
-
export declare function Button(props:
|
|
156
|
+
export declare function Button(props: UiButtonProps): ReactEcs.JSX.Element;
|
|
155
157
|
|
|
156
158
|
/**
|
|
157
159
|
* @public
|
|
158
160
|
*/
|
|
159
|
-
export declare
|
|
161
|
+
export declare interface ByteBuffer {
|
|
160
162
|
/**
|
|
161
163
|
* @returns The entire current Uint8Array.
|
|
162
164
|
*
|
|
@@ -256,8 +258,12 @@ export declare type ByteBuffer = {
|
|
|
256
258
|
setUint16(offset: number, value: number): void;
|
|
257
259
|
setUint32(offset: number, value: number): void;
|
|
258
260
|
setUint64(offset: number, value: bigint): void;
|
|
259
|
-
}
|
|
261
|
+
}
|
|
260
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Callback function to be triggered on a specified event
|
|
265
|
+
* @public
|
|
266
|
+
*/
|
|
261
267
|
export declare type Callback = () => void;
|
|
262
268
|
|
|
263
269
|
/** @public */
|
|
@@ -266,15 +272,19 @@ export declare const CameraMode: ComponentDefinition<PBCameraMode>;
|
|
|
266
272
|
/** @public */
|
|
267
273
|
export declare const CameraModeArea: ComponentDefinition<PBCameraModeArea>;
|
|
268
274
|
|
|
275
|
+
/**
|
|
276
|
+
* @public
|
|
277
|
+
*/
|
|
269
278
|
export declare const enum CameraType {
|
|
270
279
|
CT_FIRST_PERSON = 0,
|
|
271
280
|
CT_THIRD_PERSON = 1
|
|
272
281
|
}
|
|
273
282
|
|
|
274
|
-
export declare const CANVAS_ROOT_ENTITY = 0;
|
|
275
|
-
|
|
276
283
|
export declare type Children = unknown;
|
|
277
284
|
|
|
285
|
+
/**
|
|
286
|
+
* @public
|
|
287
|
+
*/
|
|
278
288
|
export declare const enum ColliderLayer {
|
|
279
289
|
CL_NONE = 0,
|
|
280
290
|
CL_POINTER = 1,
|
|
@@ -986,15 +996,10 @@ export declare type Color4Type = {
|
|
|
986
996
|
a: number;
|
|
987
997
|
};
|
|
988
998
|
|
|
989
|
-
export declare type CommonProps = {
|
|
990
|
-
key?: Key;
|
|
991
|
-
children?: Children;
|
|
992
|
-
};
|
|
993
|
-
|
|
994
999
|
/**
|
|
995
1000
|
* @public
|
|
996
1001
|
*/
|
|
997
|
-
export declare
|
|
1002
|
+
export declare interface ComponentDefinition<T> {
|
|
998
1003
|
readonly componentId: number;
|
|
999
1004
|
readonly componentName: string;
|
|
1000
1005
|
/**
|
|
@@ -1051,7 +1056,7 @@ export declare type ComponentDefinition<T> = {
|
|
|
1051
1056
|
*/
|
|
1052
1057
|
getMutableOrNull(entity: Entity): T | null;
|
|
1053
1058
|
writeToByteBuffer(entity: Entity, buffer: ByteBuffer): void;
|
|
1054
|
-
}
|
|
1059
|
+
}
|
|
1055
1060
|
|
|
1056
1061
|
export declare type ComponentGetter<T extends ComponentDefinition<any>> = (engine: Pick<IEngine, 'defineComponentFromSchema'>) => T;
|
|
1057
1062
|
|
|
@@ -1062,49 +1067,14 @@ export declare type ComponentSchema<T extends [ComponentDefinition<any>, ...Comp
|
|
|
1062
1067
|
[K in keyof T]: T[K] extends ComponentDefinition<any> ? ReturnType<T[K]['getMutable']> : never;
|
|
1063
1068
|
};
|
|
1064
1069
|
|
|
1065
|
-
export declare const CRDT_MESSAGE_HEADER_LENGTH = 8;
|
|
1066
|
-
|
|
1067
|
-
export declare type CrdtMessage = PutComponentMessage | DeleteComponentMessage | DeleteEntityMessage;
|
|
1068
|
-
|
|
1069
|
-
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessage;
|
|
1070
|
-
|
|
1071
1070
|
/**
|
|
1072
|
-
*
|
|
1073
|
-
* All message length including
|
|
1074
|
-
* @param length - Uint32 the length of all message (including the header)
|
|
1075
|
-
* @param type - define the function which handles the data
|
|
1071
|
+
* @public
|
|
1076
1072
|
*/
|
|
1077
|
-
export declare type
|
|
1078
|
-
length: Uint32;
|
|
1079
|
-
type: Uint32;
|
|
1080
|
-
};
|
|
1081
|
-
|
|
1082
|
-
export declare namespace CrdtMessageProtocol {
|
|
1083
|
-
/**
|
|
1084
|
-
* Validate if the message incoming is completed
|
|
1085
|
-
* @param buf - ByteBuffer
|
|
1086
|
-
*/
|
|
1087
|
-
export function validate(buf: ByteBuffer): boolean;
|
|
1088
|
-
/**
|
|
1089
|
-
* Get the current header, consuming the bytes involved.
|
|
1090
|
-
* @param buf - ByteBuffer
|
|
1091
|
-
* @returns header or null if there is no validated message
|
|
1092
|
-
*/
|
|
1093
|
-
export function readHeader(buf: ByteBuffer): CrdtMessageHeader | null;
|
|
1094
|
-
/**
|
|
1095
|
-
* Get the current header, without consuming the bytes involved.
|
|
1096
|
-
* @param buf - ByteBuffer
|
|
1097
|
-
* @returns header or null if there is no validated message
|
|
1098
|
-
*/
|
|
1099
|
-
export function getHeader(buf: ByteBuffer): CrdtMessageHeader | null;
|
|
1100
|
-
/**
|
|
1101
|
-
* Consume the incoming message without processing it.
|
|
1102
|
-
* @param buf - ByteBuffer
|
|
1103
|
-
* @returns true in case of success or false if there is no valid message.
|
|
1104
|
-
*/
|
|
1105
|
-
export function consumeMessage(buf: ByteBuffer): boolean;
|
|
1106
|
-
}
|
|
1073
|
+
export declare type CrdtMessageBody = PutComponentMessageBody | DeleteComponentMessageBody | DeleteEntityMessageBody;
|
|
1107
1074
|
|
|
1075
|
+
/**
|
|
1076
|
+
* @public
|
|
1077
|
+
*/
|
|
1108
1078
|
export declare enum CrdtMessageType {
|
|
1109
1079
|
RESERVED = 0,
|
|
1110
1080
|
PUT_COMPONENT = 1,
|
|
@@ -1113,66 +1083,11 @@ export declare enum CrdtMessageType {
|
|
|
1113
1083
|
MAX_MESSAGE_TYPE = 4
|
|
1114
1084
|
}
|
|
1115
1085
|
|
|
1116
|
-
export declare function createComponentDefinitionFromSchema<T>(componentName: string, componentId: number, schema: ISchema<T>): ComponentDefinition<T>;
|
|
1117
|
-
|
|
1118
1086
|
export declare function createEthereumProvider(): {
|
|
1119
1087
|
send(message: RPCSendableMessage, callback?: ((error: Error | null, result?: any) => void) | undefined): void;
|
|
1120
1088
|
sendAsync(message: RPCSendableMessage, callback: (error: Error | null, result?: any) => void): void;
|
|
1121
1089
|
};
|
|
1122
1090
|
|
|
1123
|
-
export declare function createInputSystem(engine: IEngine): IInputSystem;
|
|
1124
|
-
|
|
1125
|
-
export declare function createPointerEventSystem(engine: IEngine, inputSystem: IInputSystem): {
|
|
1126
|
-
/**
|
|
1127
|
-
* @internal
|
|
1128
|
-
* Remove the callback for onClick event
|
|
1129
|
-
* @param entity - Entity where the callback was attached
|
|
1130
|
-
*/
|
|
1131
|
-
removeOnClick(entity: Entity): void;
|
|
1132
|
-
/**
|
|
1133
|
-
* @public
|
|
1134
|
-
* Remove the callback for onPointerDown event
|
|
1135
|
-
* @param entity - Entity where the callback was attached
|
|
1136
|
-
*/
|
|
1137
|
-
removeOnPointerDown(entity: Entity): void;
|
|
1138
|
-
/**
|
|
1139
|
-
* @public
|
|
1140
|
-
* Remove the callback for onPointerUp event
|
|
1141
|
-
* @param entity - Entity where the callback was attached
|
|
1142
|
-
*/
|
|
1143
|
-
removeOnPointerUp(entity: Entity): void;
|
|
1144
|
-
/**
|
|
1145
|
-
* @internal
|
|
1146
|
-
* Execute callback when the user clicks the entity.
|
|
1147
|
-
* @param entity - Entity to attach the callback
|
|
1148
|
-
* @param cb - Function to execute when onPointerDown fires
|
|
1149
|
-
* @param opts - Opts to trigger Feedback and Button
|
|
1150
|
-
*/
|
|
1151
|
-
onClick(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1152
|
-
/**
|
|
1153
|
-
* @public
|
|
1154
|
-
* Execute callback when the user press the InputButton pointing at the entity
|
|
1155
|
-
* @param entity - Entity to attach the callback
|
|
1156
|
-
* @param cb - Function to execute when click fires
|
|
1157
|
-
* @param opts - Opts to trigger Feedback and Button
|
|
1158
|
-
*/
|
|
1159
|
-
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1160
|
-
/**
|
|
1161
|
-
* @public
|
|
1162
|
-
* Execute callback when the user releases the InputButton pointing at the entity
|
|
1163
|
-
* @param entity - Entity to attach the callback
|
|
1164
|
-
* @param cb - Function to execute when click fires
|
|
1165
|
-
* @param opts - Opts to trigger Feedback and Button
|
|
1166
|
-
*/
|
|
1167
|
-
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
1168
|
-
};
|
|
1169
|
-
|
|
1170
|
-
export declare function createReactBasedUiSystem(engine: IEngine, pointerSystem: PointerEventsSystem): ReactBasedUiSystem;
|
|
1171
|
-
|
|
1172
|
-
export declare function createTaskSystem(engine: IEngine): {
|
|
1173
|
-
executeTask(task: Task): void;
|
|
1174
|
-
};
|
|
1175
|
-
|
|
1176
1091
|
/**
|
|
1177
1092
|
* Transform parenting: cyclic dependency checker
|
|
1178
1093
|
* It checks only in modified Transforms
|
|
@@ -1218,17 +1133,9 @@ export declare type DeepReadonlySet<T> = ReadonlySet<DeepReadonly<T>>;
|
|
|
1218
1133
|
*/
|
|
1219
1134
|
export declare const DEG2RAD: number;
|
|
1220
1135
|
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
* Write DeleteComponent message
|
|
1225
|
-
*/
|
|
1226
|
-
export function write(entity: Entity, componentId: number, timestamp: number, buf: ByteBuffer): void;
|
|
1227
|
-
export function read(buf: ByteBuffer): DeleteComponentMessage | null;
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
export declare type DeleteComponentMessage = CrdtMessageHeader & DeleteComponentMessageBody;
|
|
1231
|
-
|
|
1136
|
+
/**
|
|
1137
|
+
* @public
|
|
1138
|
+
*/
|
|
1232
1139
|
export declare type DeleteComponentMessageBody = {
|
|
1233
1140
|
type: CrdtMessageType.DELETE_COMPONENT;
|
|
1234
1141
|
entityId: Entity;
|
|
@@ -1236,16 +1143,9 @@ export declare type DeleteComponentMessageBody = {
|
|
|
1236
1143
|
timestamp: number;
|
|
1237
1144
|
};
|
|
1238
1145
|
|
|
1239
|
-
export declare namespace DeleteEntity {
|
|
1240
|
-
const MESSAGE_HEADER_LENGTH = 4;
|
|
1241
|
-
export function write(entity: Entity, buf: ByteBuffer): void;
|
|
1242
|
-
export function read(buf: ByteBuffer): DeleteEntityMessage | null;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
export declare type DeleteEntityMessage = CrdtMessageHeader & DeleteEntityMessageBody;
|
|
1246
|
-
|
|
1247
1146
|
/**
|
|
1248
|
-
* @param entity -
|
|
1147
|
+
* @param entity - uint32 number of the entity
|
|
1148
|
+
* @public
|
|
1249
1149
|
*/
|
|
1250
1150
|
export declare type DeleteEntityMessageBody = {
|
|
1251
1151
|
type: CrdtMessageType.DELETE_ENTITY;
|
|
@@ -1259,18 +1159,46 @@ export declare type DisplayType = 'flex' | 'none';
|
|
|
1259
1159
|
|
|
1260
1160
|
/**
|
|
1261
1161
|
* @public
|
|
1162
|
+
* Dropdown component
|
|
1163
|
+
*
|
|
1164
|
+
* A dropdown allows a user to select a value from a series of options.
|
|
1165
|
+
*
|
|
1166
|
+
* @example
|
|
1167
|
+
* <Dropdown
|
|
1168
|
+
options={['Red', 'Blue']}
|
|
1169
|
+
color={Color4.Red()}
|
|
1170
|
+
font="sans-serif"
|
|
1171
|
+
fontSize={14}
|
|
1172
|
+
selectedIndex={value}
|
|
1173
|
+
onChange={(index) => value = index}
|
|
1174
|
+
/>
|
|
1175
|
+
*
|
|
1176
|
+
* @category Component
|
|
1262
1177
|
*/
|
|
1263
|
-
export declare function Dropdown(props:
|
|
1264
|
-
|
|
1265
|
-
export declare type EcsElements = {
|
|
1266
|
-
entity: Partial<EntityComponents & CommonProps>;
|
|
1267
|
-
};
|
|
1178
|
+
export declare function Dropdown(props: UiDropdownProps): ReactEcs.JSX.Element;
|
|
1268
1179
|
|
|
1269
1180
|
/**
|
|
1270
1181
|
* @public
|
|
1271
1182
|
*/
|
|
1272
|
-
export declare
|
|
1183
|
+
export declare interface EcsElements {
|
|
1184
|
+
entity: Partial<EntityComponents> & {
|
|
1185
|
+
children?: Children;
|
|
1186
|
+
key?: Key;
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1273
1189
|
|
|
1190
|
+
/**
|
|
1191
|
+
* @public
|
|
1192
|
+
* The engine is the part of the scene that sits in the middle and manages all of the other parts.
|
|
1193
|
+
* It determines what entities are rendered and how players interact with them.
|
|
1194
|
+
* It also coordinates what functions from systems are executed and when.
|
|
1195
|
+
*
|
|
1196
|
+
* @example
|
|
1197
|
+
* import { engine } from '@dcl/sdk/ecs'
|
|
1198
|
+
* const entity = engine.addEntity()
|
|
1199
|
+
* engine.addSystem(someSystemFunction)
|
|
1200
|
+
*
|
|
1201
|
+
*/
|
|
1274
1202
|
export declare const engine: IEngine;
|
|
1275
1203
|
|
|
1276
1204
|
export declare type EngineEvent<T extends IEventNames = IEventNames, V = IEvents[T]> = {
|
|
@@ -1294,6 +1222,9 @@ export declare type Entity = number & {
|
|
|
1294
1222
|
__entity_type: '';
|
|
1295
1223
|
};
|
|
1296
1224
|
|
|
1225
|
+
/**
|
|
1226
|
+
* @public
|
|
1227
|
+
*/
|
|
1297
1228
|
export declare type EntityComponents = {
|
|
1298
1229
|
uiTransform: PBUiTransform;
|
|
1299
1230
|
uiText: PBUiText;
|
|
@@ -1304,8 +1235,9 @@ export declare type EntityComponents = {
|
|
|
1304
1235
|
onMouseUp: Callback;
|
|
1305
1236
|
};
|
|
1306
1237
|
|
|
1307
|
-
|
|
1308
|
-
|
|
1238
|
+
/**
|
|
1239
|
+
* @intenral
|
|
1240
|
+
*/
|
|
1309
1241
|
export declare type EntityContainer = {
|
|
1310
1242
|
generateEntity(): Entity;
|
|
1311
1243
|
removeEntity(entity: Entity): boolean;
|
|
@@ -1318,11 +1250,16 @@ export declare type EntityContainer = {
|
|
|
1318
1250
|
|
|
1319
1251
|
/**
|
|
1320
1252
|
* @public
|
|
1253
|
+
* Common props to all components
|
|
1321
1254
|
*/
|
|
1322
|
-
export declare
|
|
1255
|
+
export declare interface EntityPropTypes extends Listeners {
|
|
1256
|
+
/** Layout component, to position things in the canvas */
|
|
1323
1257
|
uiTransform?: UiTransformProps;
|
|
1258
|
+
/** To define a background color or image */
|
|
1324
1259
|
uiBackground?: UiBackgroundProps;
|
|
1325
|
-
|
|
1260
|
+
/** Uinique key to identiy elments when iterating arrays */
|
|
1261
|
+
key?: Key;
|
|
1262
|
+
}
|
|
1326
1263
|
|
|
1327
1264
|
/**
|
|
1328
1265
|
* @public
|
|
@@ -1343,25 +1280,20 @@ export declare enum EntityState {
|
|
|
1343
1280
|
Reserved = 3
|
|
1344
1281
|
}
|
|
1345
1282
|
|
|
1346
|
-
export declare namespace EntityUtils {
|
|
1347
|
-
/**
|
|
1348
|
-
* @returns [entityNumber, entityVersion]
|
|
1349
|
-
*/
|
|
1350
|
-
export function fromEntityId(entityId: Entity): [number, number];
|
|
1351
|
-
/**
|
|
1352
|
-
* @returns compound number from entityNumber and entityVerison
|
|
1353
|
-
*/
|
|
1354
|
-
export function toEntityId(entityNumber: number, entityVersion: number): Entity;
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
1283
|
/**
|
|
1358
1284
|
* Constant used to define the minimal number value in Babylon.js
|
|
1359
1285
|
* @public
|
|
1360
1286
|
*/
|
|
1361
1287
|
export declare const Epsilon = 0.000001;
|
|
1362
1288
|
|
|
1289
|
+
/**
|
|
1290
|
+
* @public
|
|
1291
|
+
*/
|
|
1363
1292
|
export declare type EventSystemCallback = (event: PBPointerEventsResult_PointerCommand) => void;
|
|
1364
1293
|
|
|
1294
|
+
/**
|
|
1295
|
+
* @public
|
|
1296
|
+
*/
|
|
1365
1297
|
export declare type EventSystemOptions = {
|
|
1366
1298
|
button: InputAction;
|
|
1367
1299
|
hoverText?: string;
|
|
@@ -1369,13 +1301,17 @@ export declare type EventSystemOptions = {
|
|
|
1369
1301
|
showFeedback?: boolean;
|
|
1370
1302
|
};
|
|
1371
1303
|
|
|
1372
|
-
/**
|
|
1304
|
+
/**
|
|
1305
|
+
* Excludes property keys from T where the property is assignable to U
|
|
1306
|
+
* @public
|
|
1307
|
+
*/
|
|
1373
1308
|
export declare type ExcludeUndefined<T> = {
|
|
1374
1309
|
[P in keyof T]: undefined extends T[P] ? never : P;
|
|
1375
1310
|
}[keyof T];
|
|
1376
1311
|
|
|
1377
1312
|
/**
|
|
1378
1313
|
* @public
|
|
1314
|
+
* Runs an async function
|
|
1379
1315
|
*/
|
|
1380
1316
|
export declare const executeTask: (task: Task<unknown>) => void;
|
|
1381
1317
|
|
|
@@ -1392,6 +1328,9 @@ export declare type FlexWrapType = 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
|
1392
1328
|
/** @public */
|
|
1393
1329
|
export declare type FloatArray = number[];
|
|
1394
1330
|
|
|
1331
|
+
/**
|
|
1332
|
+
* @public
|
|
1333
|
+
*/
|
|
1395
1334
|
export declare const enum Font {
|
|
1396
1335
|
F_SANS_SERIF = 0,
|
|
1397
1336
|
F_SERIF = 1,
|
|
@@ -1424,19 +1363,16 @@ export declare const GltfContainer: ComponentDefinition<PBGltfContainer>;
|
|
|
1424
1363
|
/**
|
|
1425
1364
|
* @public
|
|
1426
1365
|
*/
|
|
1427
|
-
export declare
|
|
1428
|
-
|
|
1429
|
-
/**
|
|
1430
|
-
* @public
|
|
1431
|
-
*/
|
|
1432
|
-
export declare type IEngine = {
|
|
1366
|
+
export declare interface IEngine {
|
|
1433
1367
|
/**
|
|
1368
|
+
* @public
|
|
1434
1369
|
* Increment the used entity counter and return the next one.
|
|
1435
1370
|
* @param dynamic - whether or no the entity should be considered as Dynamic (vs Static)
|
|
1436
1371
|
* @returns the next entity unused
|
|
1437
1372
|
*/
|
|
1438
1373
|
addEntity(dynamic?: boolean): Entity;
|
|
1439
1374
|
/**
|
|
1375
|
+
* @public
|
|
1440
1376
|
* Remove all components of an entity
|
|
1441
1377
|
* @param entity - entity
|
|
1442
1378
|
*/
|
|
@@ -1447,18 +1383,21 @@ export declare type IEngine = {
|
|
|
1447
1383
|
*/
|
|
1448
1384
|
removeEntityWithChildren(firstEntity: Entity): void;
|
|
1449
1385
|
/**
|
|
1386
|
+
*
|
|
1387
|
+
* @public
|
|
1450
1388
|
* Check the state of an entityin the engine
|
|
1451
1389
|
* @param entity - the entity to validate
|
|
1452
|
-
* @returns
|
|
1390
|
+
* @returns EntityState enum
|
|
1453
1391
|
*/
|
|
1454
1392
|
getEntityState(entity: Entity): EntityState;
|
|
1455
1393
|
/**
|
|
1394
|
+
* @public
|
|
1456
1395
|
* Add the system to the engine. It will be called every tick updated.
|
|
1457
1396
|
* @param system - function that receives the delta time between last tick and current one.
|
|
1458
1397
|
* @param priority - a number with the priority, big number are called before smaller ones
|
|
1459
1398
|
* @param name - optional: a unique name to identify it
|
|
1460
1399
|
*
|
|
1461
|
-
*
|
|
1400
|
+
* @example
|
|
1462
1401
|
* ```ts
|
|
1463
1402
|
* function mySystem(dt: number) {
|
|
1464
1403
|
* const entitiesWithMeshRenderer = engine.getEntitiesWith(MeshRenderer, Transform)
|
|
@@ -1471,26 +1410,30 @@ export declare type IEngine = {
|
|
|
1471
1410
|
*/
|
|
1472
1411
|
addSystem(system: SystemFn, priority?: number, name?: string): void;
|
|
1473
1412
|
/**
|
|
1413
|
+
* @public
|
|
1474
1414
|
* Remove a system from the engine.
|
|
1475
1415
|
* @param selector - the function or the unique name to identify
|
|
1476
1416
|
* @returns if it was found and removed
|
|
1477
1417
|
*/
|
|
1478
1418
|
removeSystem(selector: string | SystemFn): boolean;
|
|
1479
1419
|
/**
|
|
1420
|
+
* @public
|
|
1480
1421
|
* Registers a custom component definition.
|
|
1481
1422
|
* @param componentName - unique name to identify the component, a hash is calculated for it, it will fail if the hash has collisions.
|
|
1482
1423
|
* @param componentDefinition - The component definition
|
|
1483
1424
|
*/
|
|
1484
1425
|
registerComponentDefinition<T>(componentName: string, componentDefinition: ComponentDefinition<T>): ComponentDefinition<T>;
|
|
1485
1426
|
/**
|
|
1427
|
+
* @public
|
|
1486
1428
|
* Define a component and add it to the engine.
|
|
1487
|
-
* @param spec - An object with schema fields
|
|
1488
1429
|
* @param componentName - unique name to identify the component, a hash is calculated for it, it will fail if the hash has collisions.
|
|
1430
|
+
* @param spec - An object with schema fields
|
|
1489
1431
|
* @param constructorDefault - the initial value prefilled when a component is created without a value
|
|
1490
1432
|
* @returns The component definition
|
|
1491
1433
|
*
|
|
1434
|
+
* @example
|
|
1492
1435
|
* ```ts
|
|
1493
|
-
* const
|
|
1436
|
+
* const CustomComponent = engine.defineComponent("my-scene::custom-name", {
|
|
1494
1437
|
* id: Schemas.Int,
|
|
1495
1438
|
* name: Schemas.String
|
|
1496
1439
|
* })
|
|
@@ -1498,11 +1441,13 @@ export declare type IEngine = {
|
|
|
1498
1441
|
*/
|
|
1499
1442
|
defineComponent<T extends Spec>(componentName: string, spec: T, constructorDefault?: Partial<MapResult<T>>): MapComponentDefinition<MapResult<T>>;
|
|
1500
1443
|
/**
|
|
1444
|
+
* @public
|
|
1501
1445
|
* Define a component and add it to the engine.
|
|
1502
1446
|
* @param componentName - unique name to identify the component, a hash is calculated for it, it will fail if the hash has collisions.
|
|
1503
1447
|
* @param spec - An object with schema fields
|
|
1504
1448
|
* @returns The component definition
|
|
1505
1449
|
*
|
|
1450
|
+
* @example
|
|
1506
1451
|
* ```ts
|
|
1507
1452
|
* const StateComponentId = 10023
|
|
1508
1453
|
* const StateComponent = engine.defineComponentFromSchema("my-lib::VisibleComponent", Schemas.Bool)
|
|
@@ -1510,6 +1455,7 @@ export declare type IEngine = {
|
|
|
1510
1455
|
*/
|
|
1511
1456
|
defineComponentFromSchema<T>(componentName: string, spec: ISchema<T>): ComponentDefinition<T>;
|
|
1512
1457
|
/**
|
|
1458
|
+
* @public
|
|
1513
1459
|
* Get the component definition from the component id.
|
|
1514
1460
|
* @param componentId - component number or name used to identify the component descriptor
|
|
1515
1461
|
* @returns the component definition, throw an error if it doesn't exist
|
|
@@ -1530,6 +1476,7 @@ export declare type IEngine = {
|
|
|
1530
1476
|
*/
|
|
1531
1477
|
getComponentOrNull<T>(componentId: number): ComponentDefinition<T> | null;
|
|
1532
1478
|
/**
|
|
1479
|
+
* @public
|
|
1533
1480
|
* Get a iterator of entities that has all the component requested.
|
|
1534
1481
|
* @param components - a list of component definitions
|
|
1535
1482
|
* @returns An iterator of an array with the [entity, component1, component2, ...]
|
|
@@ -1543,6 +1490,7 @@ export declare type IEngine = {
|
|
|
1543
1490
|
*/
|
|
1544
1491
|
getEntitiesWith<T extends [ComponentDefinition<any>, ...ComponentDefinition<any>[]]>(...components: T): Iterable<[Entity, ...ReadonlyComponentSchema<T>]>;
|
|
1545
1492
|
/**
|
|
1493
|
+
* @public
|
|
1546
1494
|
* @param deltaTime - deltaTime in seconds
|
|
1547
1495
|
*/
|
|
1548
1496
|
update(deltaTime: number): Promise<void>;
|
|
@@ -1562,14 +1510,12 @@ export declare type IEngine = {
|
|
|
1562
1510
|
*/
|
|
1563
1511
|
readonly CameraEntity: Entity;
|
|
1564
1512
|
/**
|
|
1513
|
+
* @alpha
|
|
1565
1514
|
* @param transport - transport which changes its onmessage to process CRDT messages
|
|
1566
1515
|
*/
|
|
1567
1516
|
addTransport(transport: Transport): void;
|
|
1568
1517
|
/**
|
|
1569
|
-
*
|
|
1570
|
-
*/
|
|
1571
|
-
entityContainer: EntityContainer;
|
|
1572
|
-
/**
|
|
1518
|
+
* @public
|
|
1573
1519
|
* Iterator of registered components
|
|
1574
1520
|
*/
|
|
1575
1521
|
componentsIter(): Iterable<ComponentDefinition<unknown>>;
|
|
@@ -1578,19 +1524,7 @@ export declare type IEngine = {
|
|
|
1578
1524
|
* components that will be available to this engine and to run optimizations.
|
|
1579
1525
|
*/
|
|
1580
1526
|
seal(): void;
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
/**
|
|
1584
|
-
* @public
|
|
1585
|
-
*/
|
|
1586
|
-
export declare type IEngineOptions = {
|
|
1587
|
-
onChangeFunction: OnChangeFunction;
|
|
1588
|
-
};
|
|
1589
|
-
|
|
1590
|
-
/**
|
|
1591
|
-
* @public
|
|
1592
|
-
*/
|
|
1593
|
-
export declare function IEnum<T>(type: ISchema<any>): ISchema<T>;
|
|
1527
|
+
}
|
|
1594
1528
|
|
|
1595
1529
|
export declare type IEventNames = keyof IEvents;
|
|
1596
1530
|
|
|
@@ -1759,20 +1693,35 @@ export declare type IInputSystem = {
|
|
|
1759
1693
|
};
|
|
1760
1694
|
|
|
1761
1695
|
/**
|
|
1696
|
+
* Include property keys from T where the property is assignable to U
|
|
1762
1697
|
* @public
|
|
1763
1698
|
*/
|
|
1764
|
-
export declare function IMap<T extends Spec>(spec: T, defaultValue?: Partial<MapResult<T>>): ISchema<MapResult<T>>;
|
|
1765
|
-
|
|
1766
|
-
/** Include property keys from T where the property is assignable to U */
|
|
1767
1699
|
export declare type IncludeUndefined<T> = {
|
|
1768
1700
|
[P in keyof T]: undefined extends T[P] ? P : never;
|
|
1769
1701
|
}[keyof T];
|
|
1770
1702
|
|
|
1771
1703
|
/**
|
|
1772
1704
|
* @public
|
|
1773
|
-
|
|
1774
|
-
|
|
1705
|
+
* Input component
|
|
1706
|
+
*
|
|
1707
|
+
* An Input is a field used to obtain a response from a user.
|
|
1708
|
+
*
|
|
1709
|
+
* @example
|
|
1710
|
+
<Input
|
|
1711
|
+
placeholder="Please enter your email"
|
|
1712
|
+
onChange={(value) => {
|
|
1713
|
+
email = value
|
|
1714
|
+
}}
|
|
1715
|
+
uiBackground={{ color: Color4.Red() }}
|
|
1716
|
+
uiTransform={{ width: 200, height: 36 }}
|
|
1717
|
+
/>
|
|
1718
|
+
*
|
|
1719
|
+
* @category Component
|
|
1720
|
+
*/ export declare function Input(props: EntityPropTypes & Partial<UiInputProps>): ReactEcs.JSX.Element;
|
|
1775
1721
|
|
|
1722
|
+
/**
|
|
1723
|
+
* @public
|
|
1724
|
+
*/
|
|
1776
1725
|
export declare const enum InputAction {
|
|
1777
1726
|
IA_POINTER = 0,
|
|
1778
1727
|
IA_PRIMARY = 1,
|
|
@@ -1804,25 +1753,29 @@ export declare type InputEventResult = {
|
|
|
1804
1753
|
};
|
|
1805
1754
|
};
|
|
1806
1755
|
|
|
1807
|
-
export declare const inputSystem: IInputSystem;
|
|
1808
|
-
|
|
1809
1756
|
/**
|
|
1810
1757
|
* @public
|
|
1758
|
+
* Input system manager. Check for button events
|
|
1759
|
+
* @example
|
|
1760
|
+
* inputSystem.isTriggered: Returns true if an input action ocurred since the last tick.
|
|
1761
|
+
* inputSystem.isPressed: Returns true if an input is currently being pressed down. It will return true on every tick until the button goes up again.
|
|
1762
|
+
* inputSystem.getInputCommand: Returns an object with data about the input action.
|
|
1811
1763
|
*/
|
|
1812
|
-
export declare
|
|
1764
|
+
export declare const inputSystem: IInputSystem;
|
|
1813
1765
|
|
|
1814
1766
|
/**
|
|
1815
1767
|
* @public
|
|
1816
1768
|
*/
|
|
1817
|
-
export declare
|
|
1769
|
+
export declare interface ISchema<T = any> {
|
|
1818
1770
|
serialize(value: T, builder: ByteBuffer): void;
|
|
1819
1771
|
deserialize(reader: ByteBuffer): T;
|
|
1820
1772
|
create(): T;
|
|
1821
1773
|
extend?: (base?: T) => T;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
export declare const isListener: (key: string) => key is keyof Listeners;
|
|
1774
|
+
}
|
|
1825
1775
|
|
|
1776
|
+
/**
|
|
1777
|
+
* @hidden
|
|
1778
|
+
*/
|
|
1826
1779
|
export declare namespace JSX {
|
|
1827
1780
|
export type Element = {} | null;
|
|
1828
1781
|
export type IntrinsicElements = EcsElements;
|
|
@@ -1835,18 +1788,42 @@ export declare namespace JSX {
|
|
|
1835
1788
|
*/
|
|
1836
1789
|
export declare type JustifyType = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
|
|
1837
1790
|
|
|
1791
|
+
/**
|
|
1792
|
+
* Keys help React identify which items have changed, are added, or are removed.
|
|
1793
|
+
* Keys should be given to the elements inside the array to give the elements a stable identity:
|
|
1794
|
+
* @public
|
|
1795
|
+
*/
|
|
1838
1796
|
export declare type Key = number | string;
|
|
1839
1797
|
|
|
1840
1798
|
/**
|
|
1799
|
+
*
|
|
1841
1800
|
* @public
|
|
1801
|
+
* Label component
|
|
1802
|
+
*
|
|
1803
|
+
* A label displays text content
|
|
1804
|
+
*
|
|
1805
|
+
* @example
|
|
1806
|
+
* <Label value="SDK 7" uiTransform={{ margin: { left: 10 } }} />
|
|
1807
|
+
*
|
|
1808
|
+
* @category Component
|
|
1842
1809
|
*/
|
|
1843
1810
|
export declare function Label(props: EntityPropTypes & UiLabelProps): ReactEcs.JSX.Element;
|
|
1844
1811
|
|
|
1812
|
+
/**
|
|
1813
|
+
* User key event Listeners
|
|
1814
|
+
* @public
|
|
1815
|
+
*/
|
|
1845
1816
|
export declare type Listeners = {
|
|
1817
|
+
/** triggered on mouse down event */
|
|
1846
1818
|
onMouseDown?: Callback;
|
|
1819
|
+
/** triggered on mouse up event */
|
|
1847
1820
|
onMouseUp?: Callback;
|
|
1848
1821
|
};
|
|
1849
1822
|
|
|
1823
|
+
/**
|
|
1824
|
+
* @public
|
|
1825
|
+
* Overrides component definition to support partial default values
|
|
1826
|
+
*/
|
|
1850
1827
|
export declare interface MapComponentDefinition<T> extends ComponentDefinition<T> {
|
|
1851
1828
|
/**
|
|
1852
1829
|
* Add the current component to an entity, throw an error if the component already exists (use `createOrReplace` instead).
|
|
@@ -1871,19 +1848,12 @@ export declare type MapResult<T extends Spec> = ToOptional<{
|
|
|
1871
1848
|
[K in keyof T]: T[K] extends ISchema ? ReturnType<T[K]['deserialize']> : T[K] extends Spec ? MapResult<T[K]> : never;
|
|
1872
1849
|
}>;
|
|
1873
1850
|
|
|
1874
|
-
export declare const MASK_UPPER_16_ON_32 = 4294901760;
|
|
1875
|
-
|
|
1876
1851
|
export declare const Material: MaterialComponentDefinitionExtended;
|
|
1877
1852
|
|
|
1878
1853
|
/**
|
|
1879
1854
|
* @public
|
|
1880
1855
|
*/
|
|
1881
|
-
export declare
|
|
1882
|
-
|
|
1883
|
-
/**
|
|
1884
|
-
* @public
|
|
1885
|
-
*/
|
|
1886
|
-
export declare interface MaterialComponentDefinitionExtended extends MaterialComponentDefinition {
|
|
1856
|
+
export declare interface MaterialComponentDefinitionExtended extends ComponentDefinition<PBMaterial> {
|
|
1887
1857
|
/**
|
|
1888
1858
|
* Texture helpers with constructor
|
|
1889
1859
|
*/
|
|
@@ -1902,6 +1872,9 @@ export declare interface MaterialComponentDefinitionExtended extends MaterialCom
|
|
|
1902
1872
|
setPbrMaterial: (entity: Entity, material: PBMaterial_PbrMaterial) => void;
|
|
1903
1873
|
}
|
|
1904
1874
|
|
|
1875
|
+
/**
|
|
1876
|
+
* @public
|
|
1877
|
+
*/
|
|
1905
1878
|
export declare const enum MaterialTransparencyMode {
|
|
1906
1879
|
MTM_OPAQUE = 0,
|
|
1907
1880
|
MTM_ALPHA_TEST = 1,
|
|
@@ -2641,24 +2614,12 @@ export declare namespace Matrix {
|
|
|
2641
2614
|
export function toggleProjectionMatrixHandInPlace(self: MutableMatrix): void;
|
|
2642
2615
|
}
|
|
2643
2616
|
|
|
2644
|
-
/**
|
|
2645
|
-
* @public
|
|
2646
|
-
*/
|
|
2647
|
-
export declare const MAX_ENTITY_NUMBER = 65535;
|
|
2648
|
-
|
|
2649
|
-
export declare const MAX_U16 = 65535;
|
|
2650
|
-
|
|
2651
2617
|
export declare const MeshCollider: MeshColliderComponentDefinitionExtended;
|
|
2652
2618
|
|
|
2653
2619
|
/**
|
|
2654
2620
|
* @public
|
|
2655
2621
|
*/
|
|
2656
|
-
export declare
|
|
2657
|
-
|
|
2658
|
-
/**
|
|
2659
|
-
* @public
|
|
2660
|
-
*/
|
|
2661
|
-
export declare interface MeshColliderComponentDefinitionExtended extends MeshColliderComponentDefinition {
|
|
2622
|
+
export declare interface MeshColliderComponentDefinitionExtended extends ComponentDefinition<PBMeshCollider> {
|
|
2662
2623
|
/**
|
|
2663
2624
|
* @public
|
|
2664
2625
|
* Set a box in the MeshCollider component
|
|
@@ -2696,12 +2657,7 @@ export declare const MeshRenderer: MeshRendererComponentDefinitionExtended;
|
|
|
2696
2657
|
/**
|
|
2697
2658
|
* @public
|
|
2698
2659
|
*/
|
|
2699
|
-
export declare
|
|
2700
|
-
|
|
2701
|
-
/**
|
|
2702
|
-
* @public
|
|
2703
|
-
*/
|
|
2704
|
-
export declare interface MeshRendererComponentDefinitionExtended extends MeshRendererComponentDefinition {
|
|
2660
|
+
export declare interface MeshRendererComponentDefinitionExtended extends ComponentDefinition<PBMeshRenderer> {
|
|
2705
2661
|
/**
|
|
2706
2662
|
* @public
|
|
2707
2663
|
* Set a box in the MeshRenderer component
|
|
@@ -2741,6 +2697,9 @@ export declare class MessageBus {
|
|
|
2741
2697
|
private flush;
|
|
2742
2698
|
}
|
|
2743
2699
|
|
|
2700
|
+
/**
|
|
2701
|
+
* @public
|
|
2702
|
+
*/
|
|
2744
2703
|
export declare const enum NftFrameType {
|
|
2745
2704
|
NFT_CLASSIC = 0,
|
|
2746
2705
|
NFT_BAROQUE_ORNAMENT = 1,
|
|
@@ -2835,10 +2794,16 @@ export declare const onLeaveSceneObservable: Observable<{
|
|
|
2835
2794
|
userId: string;
|
|
2836
2795
|
}>;
|
|
2837
2796
|
|
|
2797
|
+
/**
|
|
2798
|
+
* @public
|
|
2799
|
+
*/
|
|
2838
2800
|
export declare type OnlyNonUndefinedTypes<T> = {
|
|
2839
2801
|
[K in ExcludeUndefined<T>]: T[K];
|
|
2840
2802
|
};
|
|
2841
2803
|
|
|
2804
|
+
/**
|
|
2805
|
+
* @public
|
|
2806
|
+
*/
|
|
2842
2807
|
export declare type OnlyOptionalUndefinedTypes<T> = {
|
|
2843
2808
|
[K in IncludeUndefined<T>]?: T[K];
|
|
2844
2809
|
};
|
|
@@ -2890,9 +2855,13 @@ export declare const onVideoEvent: Observable<{
|
|
|
2890
2855
|
|
|
2891
2856
|
/**
|
|
2892
2857
|
* @public
|
|
2858
|
+
* The overflow property controls what happens to content that is too big to fit into an area.
|
|
2893
2859
|
*/
|
|
2894
2860
|
export declare type OverflowType = 'hidden' | 'scroll' | 'visible';
|
|
2895
2861
|
|
|
2862
|
+
/**
|
|
2863
|
+
* @public
|
|
2864
|
+
*/
|
|
2896
2865
|
export declare interface PBAnimationState {
|
|
2897
2866
|
name: string;
|
|
2898
2867
|
clip: string;
|
|
@@ -2907,25 +2876,15 @@ export declare interface PBAnimationState {
|
|
|
2907
2876
|
}
|
|
2908
2877
|
|
|
2909
2878
|
/**
|
|
2910
|
-
*
|
|
2879
|
+
* @public
|
|
2911
2880
|
*/
|
|
2912
|
-
export declare const PBAnimationState: {
|
|
2913
|
-
encode(message: PBAnimationState, writer?: _m0.Writer): _m0.Writer;
|
|
2914
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimationState;
|
|
2915
|
-
};
|
|
2916
|
-
|
|
2917
2881
|
export declare interface PBAnimator {
|
|
2918
2882
|
states: PBAnimationState[];
|
|
2919
2883
|
}
|
|
2920
2884
|
|
|
2921
2885
|
/**
|
|
2922
|
-
*
|
|
2886
|
+
* @public
|
|
2923
2887
|
*/
|
|
2924
|
-
export declare const PBAnimator: {
|
|
2925
|
-
encode(message: PBAnimator, writer?: _m0.Writer): _m0.Writer;
|
|
2926
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
|
|
2927
|
-
};
|
|
2928
|
-
|
|
2929
2888
|
export declare interface PBAudioSource {
|
|
2930
2889
|
playing?: boolean | undefined;
|
|
2931
2890
|
/** default=1.0f */
|
|
@@ -2937,13 +2896,8 @@ export declare interface PBAudioSource {
|
|
|
2937
2896
|
}
|
|
2938
2897
|
|
|
2939
2898
|
/**
|
|
2940
|
-
*
|
|
2899
|
+
* @public
|
|
2941
2900
|
*/
|
|
2942
|
-
export declare const PBAudioSource: {
|
|
2943
|
-
encode(message: PBAudioSource, writer?: _m0.Writer): _m0.Writer;
|
|
2944
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioSource;
|
|
2945
|
-
};
|
|
2946
|
-
|
|
2947
2901
|
export declare interface PBAudioStream {
|
|
2948
2902
|
playing?: boolean | undefined;
|
|
2949
2903
|
/** default=1.0f */
|
|
@@ -2952,13 +2906,8 @@ export declare interface PBAudioStream {
|
|
|
2952
2906
|
}
|
|
2953
2907
|
|
|
2954
2908
|
/**
|
|
2955
|
-
*
|
|
2909
|
+
* @public
|
|
2956
2910
|
*/
|
|
2957
|
-
export declare const PBAudioStream: {
|
|
2958
|
-
encode(message: PBAudioStream, writer?: _m0.Writer): _m0.Writer;
|
|
2959
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBAudioStream;
|
|
2960
|
-
};
|
|
2961
|
-
|
|
2962
2911
|
export declare interface PBAvatarAttach {
|
|
2963
2912
|
/** default's to current player avatar id if not provided */
|
|
2964
2913
|
avatarId?: string | undefined;
|
|
@@ -2966,13 +2915,8 @@ export declare interface PBAvatarAttach {
|
|
|
2966
2915
|
}
|
|
2967
2916
|
|
|
2968
2917
|
/**
|
|
2969
|
-
*
|
|
2918
|
+
* @public
|
|
2970
2919
|
*/
|
|
2971
|
-
export declare const PBAvatarAttach: {
|
|
2972
|
-
encode(message: PBAvatarAttach, writer?: _m0.Writer): _m0.Writer;
|
|
2973
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarAttach;
|
|
2974
|
-
};
|
|
2975
|
-
|
|
2976
2920
|
export declare interface PBAvatarModifierArea {
|
|
2977
2921
|
area: PBVector3 | undefined;
|
|
2978
2922
|
excludeIds: string[];
|
|
@@ -2980,13 +2924,8 @@ export declare interface PBAvatarModifierArea {
|
|
|
2980
2924
|
}
|
|
2981
2925
|
|
|
2982
2926
|
/**
|
|
2983
|
-
*
|
|
2927
|
+
* @public
|
|
2984
2928
|
*/
|
|
2985
|
-
export declare const PBAvatarModifierArea: {
|
|
2986
|
-
encode(message: PBAvatarModifierArea, writer?: _m0.Writer): _m0.Writer;
|
|
2987
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarModifierArea;
|
|
2988
|
-
};
|
|
2989
|
-
|
|
2990
2929
|
export declare interface PBAvatarShape {
|
|
2991
2930
|
id: string;
|
|
2992
2931
|
/** default = NPC */
|
|
@@ -3018,51 +2957,31 @@ export declare interface PBAvatarShape {
|
|
|
3018
2957
|
}
|
|
3019
2958
|
|
|
3020
2959
|
/**
|
|
3021
|
-
*
|
|
2960
|
+
* @public
|
|
3022
2961
|
*/
|
|
3023
|
-
export declare const PBAvatarShape: {
|
|
3024
|
-
encode(message: PBAvatarShape, writer?: _m0.Writer): _m0.Writer;
|
|
3025
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBAvatarShape;
|
|
3026
|
-
};
|
|
3027
|
-
|
|
3028
2962
|
export declare interface PBBillboard {
|
|
3029
2963
|
/** default=BM_ALL */
|
|
3030
2964
|
billboardMode?: BillboardMode | undefined;
|
|
3031
2965
|
}
|
|
3032
2966
|
|
|
3033
2967
|
/**
|
|
3034
|
-
*
|
|
2968
|
+
* @public
|
|
3035
2969
|
*/
|
|
3036
|
-
export declare const PBBillboard: {
|
|
3037
|
-
encode(message: PBBillboard, writer?: _m0.Writer): _m0.Writer;
|
|
3038
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBBillboard;
|
|
3039
|
-
};
|
|
3040
|
-
|
|
3041
2970
|
export declare interface PBCameraMode {
|
|
3042
2971
|
mode: CameraType;
|
|
3043
2972
|
}
|
|
3044
2973
|
|
|
3045
2974
|
/**
|
|
3046
|
-
*
|
|
2975
|
+
* @public
|
|
3047
2976
|
*/
|
|
3048
|
-
export declare const PBCameraMode: {
|
|
3049
|
-
encode(message: PBCameraMode, writer?: _m0.Writer): _m0.Writer;
|
|
3050
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraMode;
|
|
3051
|
-
};
|
|
3052
|
-
|
|
3053
2977
|
export declare interface PBCameraModeArea {
|
|
3054
2978
|
area: PBVector3 | undefined;
|
|
3055
2979
|
mode: CameraType;
|
|
3056
2980
|
}
|
|
3057
2981
|
|
|
3058
2982
|
/**
|
|
3059
|
-
*
|
|
2983
|
+
* @public
|
|
3060
2984
|
*/
|
|
3061
|
-
export declare const PBCameraModeArea: {
|
|
3062
|
-
encode(message: PBCameraModeArea, writer?: _m0.Writer): _m0.Writer;
|
|
3063
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBCameraModeArea;
|
|
3064
|
-
};
|
|
3065
|
-
|
|
3066
2985
|
export declare interface PBColor3 {
|
|
3067
2986
|
r: number;
|
|
3068
2987
|
g: number;
|
|
@@ -3070,13 +2989,8 @@ export declare interface PBColor3 {
|
|
|
3070
2989
|
}
|
|
3071
2990
|
|
|
3072
2991
|
/**
|
|
3073
|
-
*
|
|
2992
|
+
* @public
|
|
3074
2993
|
*/
|
|
3075
|
-
export declare const PBColor3: {
|
|
3076
|
-
encode(message: PBColor3, writer?: _m0.Writer): _m0.Writer;
|
|
3077
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBColor3;
|
|
3078
|
-
};
|
|
3079
|
-
|
|
3080
2994
|
export declare interface PBColor4 {
|
|
3081
2995
|
r: number;
|
|
3082
2996
|
g: number;
|
|
@@ -3085,26 +2999,16 @@ export declare interface PBColor4 {
|
|
|
3085
2999
|
}
|
|
3086
3000
|
|
|
3087
3001
|
/**
|
|
3088
|
-
*
|
|
3002
|
+
* @public
|
|
3089
3003
|
*/
|
|
3090
|
-
export declare const PBColor4: {
|
|
3091
|
-
encode(message: PBColor4, writer?: _m0.Writer): _m0.Writer;
|
|
3092
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBColor4;
|
|
3093
|
-
};
|
|
3094
|
-
|
|
3095
3004
|
export declare interface PBGltfContainer {
|
|
3096
3005
|
/** which file to load */
|
|
3097
3006
|
src: string;
|
|
3098
3007
|
}
|
|
3099
3008
|
|
|
3100
3009
|
/**
|
|
3101
|
-
*
|
|
3010
|
+
* @public
|
|
3102
3011
|
*/
|
|
3103
|
-
export declare const PBGltfContainer: {
|
|
3104
|
-
encode(message: PBGltfContainer, writer?: _m0.Writer): _m0.Writer;
|
|
3105
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBGltfContainer;
|
|
3106
|
-
};
|
|
3107
|
-
|
|
3108
3012
|
export declare interface PBMaterial {
|
|
3109
3013
|
material?: {
|
|
3110
3014
|
$case: "unlit";
|
|
@@ -3116,13 +3020,8 @@ export declare interface PBMaterial {
|
|
|
3116
3020
|
}
|
|
3117
3021
|
|
|
3118
3022
|
/**
|
|
3119
|
-
*
|
|
3023
|
+
* @public
|
|
3120
3024
|
*/
|
|
3121
|
-
export declare const PBMaterial: {
|
|
3122
|
-
encode(message: PBMaterial, writer?: _m0.Writer): _m0.Writer;
|
|
3123
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial;
|
|
3124
|
-
};
|
|
3125
|
-
|
|
3126
3025
|
export declare interface PBMaterial_PbrMaterial {
|
|
3127
3026
|
/** default = null */
|
|
3128
3027
|
texture?: TextureUnion | undefined;
|
|
@@ -3159,13 +3058,8 @@ export declare interface PBMaterial_PbrMaterial {
|
|
|
3159
3058
|
}
|
|
3160
3059
|
|
|
3161
3060
|
/**
|
|
3162
|
-
*
|
|
3061
|
+
* @public
|
|
3163
3062
|
*/
|
|
3164
|
-
export declare const PBMaterial_PbrMaterial: {
|
|
3165
|
-
encode(message: PBMaterial_PbrMaterial, writer?: _m0.Writer): _m0.Writer;
|
|
3166
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial_PbrMaterial;
|
|
3167
|
-
};
|
|
3168
|
-
|
|
3169
3063
|
export declare interface PBMaterial_UnlitMaterial {
|
|
3170
3064
|
/** default = null */
|
|
3171
3065
|
texture?: TextureUnion | undefined;
|
|
@@ -3176,13 +3070,8 @@ export declare interface PBMaterial_UnlitMaterial {
|
|
|
3176
3070
|
}
|
|
3177
3071
|
|
|
3178
3072
|
/**
|
|
3179
|
-
*
|
|
3073
|
+
* @public
|
|
3180
3074
|
*/
|
|
3181
|
-
export declare const PBMaterial_UnlitMaterial: {
|
|
3182
|
-
encode(message: PBMaterial_UnlitMaterial, writer?: _m0.Writer): _m0.Writer;
|
|
3183
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMaterial_UnlitMaterial;
|
|
3184
|
-
};
|
|
3185
|
-
|
|
3186
3075
|
export declare interface PBMeshCollider {
|
|
3187
3076
|
/** default = ColliderLayer.Physics | ColliderLayer.Pointer */
|
|
3188
3077
|
collisionMask?: number | undefined;
|
|
@@ -3202,24 +3091,14 @@ export declare interface PBMeshCollider {
|
|
|
3202
3091
|
}
|
|
3203
3092
|
|
|
3204
3093
|
/**
|
|
3205
|
-
*
|
|
3094
|
+
* @public
|
|
3206
3095
|
*/
|
|
3207
|
-
export declare const PBMeshCollider: {
|
|
3208
|
-
encode(message: PBMeshCollider, writer?: _m0.Writer): _m0.Writer;
|
|
3209
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider;
|
|
3210
|
-
};
|
|
3211
|
-
|
|
3212
3096
|
export declare interface PBMeshCollider_BoxMesh {
|
|
3213
3097
|
}
|
|
3214
3098
|
|
|
3215
3099
|
/**
|
|
3216
|
-
*
|
|
3100
|
+
* @public
|
|
3217
3101
|
*/
|
|
3218
|
-
export declare const PBMeshCollider_BoxMesh: {
|
|
3219
|
-
encode(_: PBMeshCollider_BoxMesh, writer?: _m0.Writer): _m0.Writer;
|
|
3220
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_BoxMesh;
|
|
3221
|
-
};
|
|
3222
|
-
|
|
3223
3102
|
export declare interface PBMeshCollider_CylinderMesh {
|
|
3224
3103
|
/** default=1.0 */
|
|
3225
3104
|
radiusTop?: number | undefined;
|
|
@@ -3228,35 +3107,20 @@ export declare interface PBMeshCollider_CylinderMesh {
|
|
|
3228
3107
|
}
|
|
3229
3108
|
|
|
3230
3109
|
/**
|
|
3231
|
-
*
|
|
3110
|
+
* @public
|
|
3232
3111
|
*/
|
|
3233
|
-
export declare const PBMeshCollider_CylinderMesh: {
|
|
3234
|
-
encode(message: PBMeshCollider_CylinderMesh, writer?: _m0.Writer): _m0.Writer;
|
|
3235
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_CylinderMesh;
|
|
3236
|
-
};
|
|
3237
|
-
|
|
3238
3112
|
export declare interface PBMeshCollider_PlaneMesh {
|
|
3239
3113
|
}
|
|
3240
3114
|
|
|
3241
3115
|
/**
|
|
3242
|
-
*
|
|
3116
|
+
* @public
|
|
3243
3117
|
*/
|
|
3244
|
-
export declare const PBMeshCollider_PlaneMesh: {
|
|
3245
|
-
encode(_: PBMeshCollider_PlaneMesh, writer?: _m0.Writer): _m0.Writer;
|
|
3246
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_PlaneMesh;
|
|
3247
|
-
};
|
|
3248
|
-
|
|
3249
3118
|
export declare interface PBMeshCollider_SphereMesh {
|
|
3250
3119
|
}
|
|
3251
3120
|
|
|
3252
3121
|
/**
|
|
3253
|
-
*
|
|
3122
|
+
* @public
|
|
3254
3123
|
*/
|
|
3255
|
-
export declare const PBMeshCollider_SphereMesh: {
|
|
3256
|
-
encode(_: PBMeshCollider_SphereMesh, writer?: _m0.Writer): _m0.Writer;
|
|
3257
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshCollider_SphereMesh;
|
|
3258
|
-
};
|
|
3259
|
-
|
|
3260
3124
|
export declare interface PBMeshRenderer {
|
|
3261
3125
|
mesh?: {
|
|
3262
3126
|
$case: "box";
|
|
@@ -3274,25 +3138,15 @@ export declare interface PBMeshRenderer {
|
|
|
3274
3138
|
}
|
|
3275
3139
|
|
|
3276
3140
|
/**
|
|
3277
|
-
*
|
|
3141
|
+
* @public
|
|
3278
3142
|
*/
|
|
3279
|
-
export declare const PBMeshRenderer: {
|
|
3280
|
-
encode(message: PBMeshRenderer, writer?: _m0.Writer): _m0.Writer;
|
|
3281
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer;
|
|
3282
|
-
};
|
|
3283
|
-
|
|
3284
3143
|
export declare interface PBMeshRenderer_BoxMesh {
|
|
3285
3144
|
uvs: number[];
|
|
3286
3145
|
}
|
|
3287
3146
|
|
|
3288
3147
|
/**
|
|
3289
|
-
*
|
|
3148
|
+
* @public
|
|
3290
3149
|
*/
|
|
3291
|
-
export declare const PBMeshRenderer_BoxMesh: {
|
|
3292
|
-
encode(message: PBMeshRenderer_BoxMesh, writer?: _m0.Writer): _m0.Writer;
|
|
3293
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_BoxMesh;
|
|
3294
|
-
};
|
|
3295
|
-
|
|
3296
3150
|
export declare interface PBMeshRenderer_CylinderMesh {
|
|
3297
3151
|
/** default=1.0 */
|
|
3298
3152
|
radiusTop?: number | undefined;
|
|
@@ -3301,36 +3155,21 @@ export declare interface PBMeshRenderer_CylinderMesh {
|
|
|
3301
3155
|
}
|
|
3302
3156
|
|
|
3303
3157
|
/**
|
|
3304
|
-
*
|
|
3158
|
+
* @public
|
|
3305
3159
|
*/
|
|
3306
|
-
export declare const PBMeshRenderer_CylinderMesh: {
|
|
3307
|
-
encode(message: PBMeshRenderer_CylinderMesh, writer?: _m0.Writer): _m0.Writer;
|
|
3308
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_CylinderMesh;
|
|
3309
|
-
};
|
|
3310
|
-
|
|
3311
3160
|
export declare interface PBMeshRenderer_PlaneMesh {
|
|
3312
3161
|
uvs: number[];
|
|
3313
3162
|
}
|
|
3314
3163
|
|
|
3315
3164
|
/**
|
|
3316
|
-
*
|
|
3165
|
+
* @public
|
|
3317
3166
|
*/
|
|
3318
|
-
export declare const PBMeshRenderer_PlaneMesh: {
|
|
3319
|
-
encode(message: PBMeshRenderer_PlaneMesh, writer?: _m0.Writer): _m0.Writer;
|
|
3320
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_PlaneMesh;
|
|
3321
|
-
};
|
|
3322
|
-
|
|
3323
3167
|
export declare interface PBMeshRenderer_SphereMesh {
|
|
3324
3168
|
}
|
|
3325
3169
|
|
|
3326
3170
|
/**
|
|
3327
|
-
*
|
|
3171
|
+
* @public
|
|
3328
3172
|
*/
|
|
3329
|
-
export declare const PBMeshRenderer_SphereMesh: {
|
|
3330
|
-
encode(_: PBMeshRenderer_SphereMesh, writer?: _m0.Writer): _m0.Writer;
|
|
3331
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBMeshRenderer_SphereMesh;
|
|
3332
|
-
};
|
|
3333
|
-
|
|
3334
3173
|
export declare interface PBNftShape {
|
|
3335
3174
|
src: string;
|
|
3336
3175
|
/** default = PictureFrameStyle.Classic */
|
|
@@ -3340,38 +3179,23 @@ export declare interface PBNftShape {
|
|
|
3340
3179
|
}
|
|
3341
3180
|
|
|
3342
3181
|
/**
|
|
3343
|
-
*
|
|
3182
|
+
* @public
|
|
3344
3183
|
*/
|
|
3345
|
-
export declare const PBNftShape: {
|
|
3346
|
-
encode(message: PBNftShape, writer?: _m0.Writer): _m0.Writer;
|
|
3347
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBNftShape;
|
|
3348
|
-
};
|
|
3349
|
-
|
|
3350
3184
|
export declare interface PBPointerEvents {
|
|
3351
3185
|
pointerEvents: PBPointerEvents_Entry[];
|
|
3352
3186
|
}
|
|
3353
3187
|
|
|
3354
3188
|
/**
|
|
3355
|
-
*
|
|
3189
|
+
* @public
|
|
3356
3190
|
*/
|
|
3357
|
-
export declare const PBPointerEvents: {
|
|
3358
|
-
encode(message: PBPointerEvents, writer?: _m0.Writer): _m0.Writer;
|
|
3359
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents;
|
|
3360
|
-
};
|
|
3361
|
-
|
|
3362
3191
|
export declare interface PBPointerEvents_Entry {
|
|
3363
3192
|
eventType: PointerEventType;
|
|
3364
3193
|
eventInfo: PBPointerEvents_Info | undefined;
|
|
3365
3194
|
}
|
|
3366
3195
|
|
|
3367
3196
|
/**
|
|
3368
|
-
*
|
|
3197
|
+
* @public
|
|
3369
3198
|
*/
|
|
3370
|
-
export declare const PBPointerEvents_Entry: {
|
|
3371
|
-
encode(message: PBPointerEvents_Entry, writer?: _m0.Writer): _m0.Writer;
|
|
3372
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Entry;
|
|
3373
|
-
};
|
|
3374
|
-
|
|
3375
3199
|
export declare interface PBPointerEvents_Info {
|
|
3376
3200
|
/** default=InputAction.ANY */
|
|
3377
3201
|
button?: InputAction | undefined;
|
|
@@ -3383,29 +3207,19 @@ export declare interface PBPointerEvents_Info {
|
|
|
3383
3207
|
showFeedback?: boolean | undefined;
|
|
3384
3208
|
}
|
|
3385
3209
|
|
|
3210
|
+
/** the renderer will set this component to the root entity once per frame with all the events */
|
|
3386
3211
|
/**
|
|
3387
|
-
*
|
|
3212
|
+
* @public
|
|
3388
3213
|
*/
|
|
3389
|
-
export declare const PBPointerEvents_Info: {
|
|
3390
|
-
encode(message: PBPointerEvents_Info, writer?: _m0.Writer): _m0.Writer;
|
|
3391
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEvents_Info;
|
|
3392
|
-
};
|
|
3393
|
-
|
|
3394
|
-
/** the renderer will set this component to the root entity once per frame with all the events */
|
|
3395
3214
|
export declare interface PBPointerEventsResult {
|
|
3396
3215
|
/** a list of the last N pointer commands (from the engine) */
|
|
3397
3216
|
commands: PBPointerEventsResult_PointerCommand[];
|
|
3398
3217
|
}
|
|
3399
3218
|
|
|
3219
|
+
/** this message represents a pointer event, used both for UP and DOWN actions */
|
|
3400
3220
|
/**
|
|
3401
|
-
*
|
|
3221
|
+
* @public
|
|
3402
3222
|
*/
|
|
3403
|
-
export declare const PBPointerEventsResult: {
|
|
3404
|
-
encode(message: PBPointerEventsResult, writer?: _m0.Writer): _m0.Writer;
|
|
3405
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult;
|
|
3406
|
-
};
|
|
3407
|
-
|
|
3408
|
-
/** this message represents a pointer event, used both for UP and DOWN actions */
|
|
3409
3223
|
export declare interface PBPointerEventsResult_PointerCommand {
|
|
3410
3224
|
/** identifier of the input */
|
|
3411
3225
|
button: InputAction;
|
|
@@ -3418,25 +3232,15 @@ export declare interface PBPointerEventsResult_PointerCommand {
|
|
|
3418
3232
|
}
|
|
3419
3233
|
|
|
3420
3234
|
/**
|
|
3421
|
-
*
|
|
3235
|
+
* @public
|
|
3422
3236
|
*/
|
|
3423
|
-
export declare const PBPointerEventsResult_PointerCommand: {
|
|
3424
|
-
encode(message: PBPointerEventsResult_PointerCommand, writer?: _m0.Writer): _m0.Writer;
|
|
3425
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerEventsResult_PointerCommand;
|
|
3426
|
-
};
|
|
3427
|
-
|
|
3428
3237
|
export declare interface PBPointerLock {
|
|
3429
3238
|
isPointerLocked: boolean;
|
|
3430
3239
|
}
|
|
3431
3240
|
|
|
3432
3241
|
/**
|
|
3433
|
-
*
|
|
3242
|
+
* @public
|
|
3434
3243
|
*/
|
|
3435
|
-
export declare const PBPointerLock: {
|
|
3436
|
-
encode(message: PBPointerLock, writer?: _m0.Writer): _m0.Writer;
|
|
3437
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPointerLock;
|
|
3438
|
-
};
|
|
3439
|
-
|
|
3440
3244
|
export declare interface PBPosition {
|
|
3441
3245
|
x: number;
|
|
3442
3246
|
y: number;
|
|
@@ -3444,13 +3248,8 @@ export declare interface PBPosition {
|
|
|
3444
3248
|
}
|
|
3445
3249
|
|
|
3446
3250
|
/**
|
|
3447
|
-
*
|
|
3251
|
+
* @public
|
|
3448
3252
|
*/
|
|
3449
|
-
export declare const PBPosition: {
|
|
3450
|
-
encode(message: PBPosition, writer?: _m0.Writer): _m0.Writer;
|
|
3451
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBPosition;
|
|
3452
|
-
};
|
|
3453
|
-
|
|
3454
3253
|
export declare interface PBRaycast {
|
|
3455
3254
|
origin: PBVector3 | undefined;
|
|
3456
3255
|
direction: PBVector3 | undefined;
|
|
@@ -3459,13 +3258,8 @@ export declare interface PBRaycast {
|
|
|
3459
3258
|
}
|
|
3460
3259
|
|
|
3461
3260
|
/**
|
|
3462
|
-
*
|
|
3261
|
+
* @public
|
|
3463
3262
|
*/
|
|
3464
|
-
export declare const PBRaycast: {
|
|
3465
|
-
encode(message: PBRaycast, writer?: _m0.Writer): _m0.Writer;
|
|
3466
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBRaycast;
|
|
3467
|
-
};
|
|
3468
|
-
|
|
3469
3263
|
export declare interface PBRaycastResult {
|
|
3470
3264
|
timestamp: number;
|
|
3471
3265
|
origin: PBVector3 | undefined;
|
|
@@ -3474,13 +3268,8 @@ export declare interface PBRaycastResult {
|
|
|
3474
3268
|
}
|
|
3475
3269
|
|
|
3476
3270
|
/**
|
|
3477
|
-
*
|
|
3271
|
+
* @public
|
|
3478
3272
|
*/
|
|
3479
|
-
export declare const PBRaycastResult: {
|
|
3480
|
-
encode(message: PBRaycastResult, writer?: _m0.Writer): _m0.Writer;
|
|
3481
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBRaycastResult;
|
|
3482
|
-
};
|
|
3483
|
-
|
|
3484
3273
|
export declare interface PBTextShape {
|
|
3485
3274
|
text: string;
|
|
3486
3275
|
/** default=F_SANS_SERIF */
|
|
@@ -3517,13 +3306,8 @@ export declare interface PBTextShape {
|
|
|
3517
3306
|
}
|
|
3518
3307
|
|
|
3519
3308
|
/**
|
|
3520
|
-
*
|
|
3309
|
+
* @public
|
|
3521
3310
|
*/
|
|
3522
|
-
export declare const PBTextShape: {
|
|
3523
|
-
encode(message: PBTextShape, writer?: _m0.Writer): _m0.Writer;
|
|
3524
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBTextShape;
|
|
3525
|
-
};
|
|
3526
|
-
|
|
3527
3311
|
export declare interface PBUiBackground {
|
|
3528
3312
|
/** default=(1.0, 1.0, 1.0, 1.0), pixel = color * sample2D(texture, uv) */
|
|
3529
3313
|
color?: PBColor4 | undefined;
|
|
@@ -3536,13 +3320,8 @@ export declare interface PBUiBackground {
|
|
|
3536
3320
|
}
|
|
3537
3321
|
|
|
3538
3322
|
/**
|
|
3539
|
-
*
|
|
3323
|
+
* @public
|
|
3540
3324
|
*/
|
|
3541
|
-
export declare const PBUiBackground: {
|
|
3542
|
-
encode(message: PBUiBackground, writer?: _m0.Writer): _m0.Writer;
|
|
3543
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiBackground;
|
|
3544
|
-
};
|
|
3545
|
-
|
|
3546
3325
|
export declare interface PBUiDropdown {
|
|
3547
3326
|
acceptEmpty: boolean;
|
|
3548
3327
|
emptyLabel?: string | undefined;
|
|
@@ -3561,25 +3340,15 @@ export declare interface PBUiDropdown {
|
|
|
3561
3340
|
}
|
|
3562
3341
|
|
|
3563
3342
|
/**
|
|
3564
|
-
*
|
|
3343
|
+
* @public
|
|
3565
3344
|
*/
|
|
3566
|
-
export declare const PBUiDropdown: {
|
|
3567
|
-
encode(message: PBUiDropdown, writer?: _m0.Writer): _m0.Writer;
|
|
3568
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdown;
|
|
3569
|
-
};
|
|
3570
|
-
|
|
3571
3345
|
export declare interface PBUiDropdownResult {
|
|
3572
3346
|
value: number;
|
|
3573
3347
|
}
|
|
3574
3348
|
|
|
3575
3349
|
/**
|
|
3576
|
-
*
|
|
3350
|
+
* @public
|
|
3577
3351
|
*/
|
|
3578
|
-
export declare const PBUiDropdownResult: {
|
|
3579
|
-
encode(message: PBUiDropdownResult, writer?: _m0.Writer): _m0.Writer;
|
|
3580
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiDropdownResult;
|
|
3581
|
-
};
|
|
3582
|
-
|
|
3583
3352
|
export declare interface PBUiInput {
|
|
3584
3353
|
placeholder: string;
|
|
3585
3354
|
/** default=(0.0,0.0,0.0,1.0) */
|
|
@@ -3596,25 +3365,15 @@ export declare interface PBUiInput {
|
|
|
3596
3365
|
}
|
|
3597
3366
|
|
|
3598
3367
|
/**
|
|
3599
|
-
*
|
|
3368
|
+
* @public
|
|
3600
3369
|
*/
|
|
3601
|
-
export declare const PBUiInput: {
|
|
3602
|
-
encode(message: PBUiInput, writer?: _m0.Writer): _m0.Writer;
|
|
3603
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInput;
|
|
3604
|
-
};
|
|
3605
|
-
|
|
3606
3370
|
export declare interface PBUiInputResult {
|
|
3607
3371
|
value: string;
|
|
3608
3372
|
}
|
|
3609
3373
|
|
|
3610
3374
|
/**
|
|
3611
|
-
*
|
|
3375
|
+
* @public
|
|
3612
3376
|
*/
|
|
3613
|
-
export declare const PBUiInputResult: {
|
|
3614
|
-
encode(message: PBUiInputResult, writer?: _m0.Writer): _m0.Writer;
|
|
3615
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiInputResult;
|
|
3616
|
-
};
|
|
3617
|
-
|
|
3618
3377
|
export declare interface PBUiText {
|
|
3619
3378
|
value: string;
|
|
3620
3379
|
/** default=(1.0,1.0,1.0,1.0) */
|
|
@@ -3628,13 +3387,8 @@ export declare interface PBUiText {
|
|
|
3628
3387
|
}
|
|
3629
3388
|
|
|
3630
3389
|
/**
|
|
3631
|
-
*
|
|
3390
|
+
* @public
|
|
3632
3391
|
*/
|
|
3633
|
-
export declare const PBUiText: {
|
|
3634
|
-
encode(message: PBUiText, writer?: _m0.Writer): _m0.Writer;
|
|
3635
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiText;
|
|
3636
|
-
};
|
|
3637
|
-
|
|
3638
3392
|
export declare interface PBUiTransform {
|
|
3639
3393
|
parent: number;
|
|
3640
3394
|
rightOf: number;
|
|
@@ -3719,26 +3473,16 @@ export declare interface PBUiTransform {
|
|
|
3719
3473
|
}
|
|
3720
3474
|
|
|
3721
3475
|
/**
|
|
3722
|
-
*
|
|
3476
|
+
* @public
|
|
3723
3477
|
*/
|
|
3724
|
-
export declare const PBUiTransform: {
|
|
3725
|
-
encode(message: PBUiTransform, writer?: _m0.Writer): _m0.Writer;
|
|
3726
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBUiTransform;
|
|
3727
|
-
};
|
|
3728
|
-
|
|
3729
3478
|
export declare interface PBVector2 {
|
|
3730
3479
|
x: number;
|
|
3731
3480
|
y: number;
|
|
3732
3481
|
}
|
|
3733
3482
|
|
|
3734
3483
|
/**
|
|
3735
|
-
*
|
|
3484
|
+
* @public
|
|
3736
3485
|
*/
|
|
3737
|
-
export declare const PBVector2: {
|
|
3738
|
-
encode(message: PBVector2, writer?: _m0.Writer): _m0.Writer;
|
|
3739
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBVector2;
|
|
3740
|
-
};
|
|
3741
|
-
|
|
3742
3486
|
export declare interface PBVector3 {
|
|
3743
3487
|
x: number;
|
|
3744
3488
|
y: number;
|
|
@@ -3746,26 +3490,13 @@ export declare interface PBVector3 {
|
|
|
3746
3490
|
}
|
|
3747
3491
|
|
|
3748
3492
|
/**
|
|
3749
|
-
*
|
|
3493
|
+
* @public
|
|
3750
3494
|
*/
|
|
3751
|
-
export declare const PBVector3: {
|
|
3752
|
-
encode(message: PBVector3, writer?: _m0.Writer): _m0.Writer;
|
|
3753
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBVector3;
|
|
3754
|
-
};
|
|
3755
|
-
|
|
3756
3495
|
export declare interface PBVisibilityComponent {
|
|
3757
3496
|
/** default=true */
|
|
3758
3497
|
visible?: boolean | undefined;
|
|
3759
3498
|
}
|
|
3760
3499
|
|
|
3761
|
-
/**
|
|
3762
|
-
* Internal
|
|
3763
|
-
*/
|
|
3764
|
-
export declare const PBVisibilityComponent: {
|
|
3765
|
-
encode(message: PBVisibilityComponent, writer?: _m0.Writer): _m0.Writer;
|
|
3766
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PBVisibilityComponent;
|
|
3767
|
-
};
|
|
3768
|
-
|
|
3769
3500
|
/**
|
|
3770
3501
|
* Represens a plane by the equation ax + by + cz + d = 0
|
|
3771
3502
|
* @public
|
|
@@ -3890,17 +3621,49 @@ export declare const PointerEvents: ComponentDefinition<PBPointerEvents>;
|
|
|
3890
3621
|
/** @public */
|
|
3891
3622
|
export declare const PointerEventsResult: ComponentDefinition<PBPointerEventsResult>;
|
|
3892
3623
|
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3624
|
+
/**
|
|
3625
|
+
* @public
|
|
3626
|
+
*/
|
|
3627
|
+
export declare interface PointerEventsSystem {
|
|
3628
|
+
/**
|
|
3629
|
+
* @public
|
|
3630
|
+
* Remove the callback for onPointerDown event
|
|
3631
|
+
* @param entity - Entity where the callback was attached
|
|
3632
|
+
*/
|
|
3897
3633
|
removeOnPointerDown(entity: Entity): void;
|
|
3634
|
+
/**
|
|
3635
|
+
* @public
|
|
3636
|
+
* Remove the callback for onPointerUp event
|
|
3637
|
+
* @param entity - Entity where the callback was attached
|
|
3638
|
+
*/
|
|
3898
3639
|
removeOnPointerUp(entity: Entity): void;
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3640
|
+
/**
|
|
3641
|
+
* @public
|
|
3642
|
+
* Execute callback when the user press the InputButton pointing at the entity
|
|
3643
|
+
* @param entity - Entity to attach the callback
|
|
3644
|
+
* @param cb - Function to execute when click fires
|
|
3645
|
+
* @param opts - Opts to trigger Feedback and Button
|
|
3646
|
+
*/
|
|
3647
|
+
onPointerDown(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
3648
|
+
/**
|
|
3649
|
+
* @public
|
|
3650
|
+
* Execute callback when the user releases the InputButton pointing at the entity
|
|
3651
|
+
* @param entity - Entity to attach the callback
|
|
3652
|
+
* @param cb - Function to execute when click fires
|
|
3653
|
+
* @param opts - Opts to trigger Feedback and Button
|
|
3654
|
+
*/
|
|
3655
|
+
onPointerUp(entity: Entity, cb: EventSystemCallback, opts?: Partial<EventSystemOptions>): void;
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
/**
|
|
3659
|
+
* @public
|
|
3660
|
+
* Register callback functions to a particular entity.
|
|
3661
|
+
*/
|
|
3662
|
+
export declare const pointerEventsSystem: PointerEventsSystem;
|
|
3903
3663
|
|
|
3664
|
+
/**
|
|
3665
|
+
* @public
|
|
3666
|
+
*/
|
|
3904
3667
|
export declare const enum PointerEventType {
|
|
3905
3668
|
PET_UP = 0,
|
|
3906
3669
|
PET_DOWN = 1,
|
|
@@ -3912,31 +3675,37 @@ export declare const enum PointerEventType {
|
|
|
3912
3675
|
export declare const PointerLock: ComponentDefinition<PBPointerLock>;
|
|
3913
3676
|
|
|
3914
3677
|
/**
|
|
3678
|
+
* Type used for defining the position of the element. i.e. margin, padding
|
|
3915
3679
|
* @public
|
|
3916
3680
|
*/
|
|
3917
|
-
export declare
|
|
3681
|
+
export declare interface Position {
|
|
3918
3682
|
top: PositionUnit;
|
|
3919
3683
|
right: PositionUnit;
|
|
3920
3684
|
bottom: PositionUnit;
|
|
3921
3685
|
left: PositionUnit;
|
|
3922
|
-
}
|
|
3686
|
+
}
|
|
3923
3687
|
|
|
3924
3688
|
/**
|
|
3925
3689
|
* @public
|
|
3690
|
+
* The position property specifies the type of positioning method used for an element
|
|
3926
3691
|
*/
|
|
3927
3692
|
export declare type PositionType = 'absolute' | 'relative';
|
|
3928
3693
|
|
|
3694
|
+
/**
|
|
3695
|
+
* Position unit for the user.
|
|
3696
|
+
* i.e. width="100", width="100%", width="100px"
|
|
3697
|
+
* @public
|
|
3698
|
+
*/
|
|
3929
3699
|
export declare type PositionUnit = `${number}px` | `${number}%` | number;
|
|
3930
3700
|
|
|
3931
|
-
export declare type PutComponentMessage = CrdtMessageHeader & PutComponentMessageBody;
|
|
3932
|
-
|
|
3933
3701
|
/**
|
|
3934
3702
|
* Min. length = header (8 bytes) + 20 bytes = 28 bytes
|
|
3935
3703
|
*
|
|
3936
|
-
* @param entity -
|
|
3937
|
-
* @param componentId -
|
|
3704
|
+
* @param entity - uint32 number of the entity
|
|
3705
|
+
* @param componentId - uint32 number of id
|
|
3938
3706
|
* @param timestamp - Uint64 Lamport timestamp
|
|
3939
3707
|
* @param data - Uint8[] data of component => length(4 bytes) + block of bytes[0..length-1]
|
|
3708
|
+
* @public
|
|
3940
3709
|
*/
|
|
3941
3710
|
export declare type PutComponentMessageBody = {
|
|
3942
3711
|
type: CrdtMessageType.PUT_COMPONENT;
|
|
@@ -3946,16 +3715,6 @@ export declare type PutComponentMessageBody = {
|
|
|
3946
3715
|
data: Uint8Array;
|
|
3947
3716
|
};
|
|
3948
3717
|
|
|
3949
|
-
export declare namespace PutComponentOperation {
|
|
3950
|
-
const MESSAGE_HEADER_LENGTH = 20;
|
|
3951
|
-
/**
|
|
3952
|
-
* Call this function for an optimal writing data passing the ByteBuffer
|
|
3953
|
-
* already allocated
|
|
3954
|
-
*/
|
|
3955
|
-
export function write(entity: Entity, timestamp: number, componentDefinition: ComponentDefinition<unknown>, buf: ByteBuffer): void;
|
|
3956
|
-
export function read(buf: ByteBuffer): PutComponentMessage | null;
|
|
3957
|
-
}
|
|
3958
|
-
|
|
3959
3718
|
/**
|
|
3960
3719
|
* @public
|
|
3961
3720
|
* Quaternion is a type and a namespace.
|
|
@@ -4223,6 +3982,9 @@ export declare const RAD2DEG: number;
|
|
|
4223
3982
|
export declare const Raycast: ComponentDefinition<PBRaycast>;
|
|
4224
3983
|
|
|
4225
3984
|
/** Position will be relative to the scene */
|
|
3985
|
+
/**
|
|
3986
|
+
* @public
|
|
3987
|
+
*/
|
|
4226
3988
|
export declare interface RaycastHit {
|
|
4227
3989
|
position: PBVector3 | undefined;
|
|
4228
3990
|
origin: PBVector3 | undefined;
|
|
@@ -4234,13 +3996,8 @@ export declare interface RaycastHit {
|
|
|
4234
3996
|
}
|
|
4235
3997
|
|
|
4236
3998
|
/**
|
|
4237
|
-
*
|
|
3999
|
+
* @public
|
|
4238
4000
|
*/
|
|
4239
|
-
export declare const RaycastHit: {
|
|
4240
|
-
encode(message: RaycastHit, writer?: _m0.Writer): _m0.Writer;
|
|
4241
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): RaycastHit;
|
|
4242
|
-
};
|
|
4243
|
-
|
|
4244
4001
|
export declare const enum RaycastQueryType {
|
|
4245
4002
|
RQT_HIT_FIRST = 0,
|
|
4246
4003
|
RQT_QUERY_ALL = 1
|
|
@@ -4255,21 +4012,45 @@ export declare type RaycastResponsePayload<T> = {
|
|
|
4255
4012
|
/** @public */
|
|
4256
4013
|
export declare const RaycastResult: ComponentDefinition<PBRaycastResult>;
|
|
4257
4014
|
|
|
4258
|
-
|
|
4015
|
+
/**
|
|
4016
|
+
* @public
|
|
4017
|
+
*/
|
|
4018
|
+
export declare interface ReactBasedUiSystem {
|
|
4259
4019
|
destroy(): void;
|
|
4260
4020
|
setUiRenderer(ui: UiComponent): void;
|
|
4261
|
-
}
|
|
4021
|
+
}
|
|
4262
4022
|
|
|
4023
|
+
/**
|
|
4024
|
+
* @public
|
|
4025
|
+
*/
|
|
4263
4026
|
export declare namespace ReactEcs {
|
|
4264
4027
|
export namespace JSX {
|
|
4028
|
+
/**
|
|
4029
|
+
* @public
|
|
4030
|
+
*/
|
|
4265
4031
|
export type Element = {} | null;
|
|
4032
|
+
/**
|
|
4033
|
+
* @public
|
|
4034
|
+
* HTML tag elements
|
|
4035
|
+
*/
|
|
4266
4036
|
export type IntrinsicElements = EcsElements;
|
|
4037
|
+
/**
|
|
4038
|
+
* @public
|
|
4039
|
+
* Component empty interface
|
|
4040
|
+
*/
|
|
4267
4041
|
export interface Component {
|
|
4268
4042
|
}
|
|
4269
4043
|
}
|
|
4270
4044
|
const createElement: any;
|
|
4271
4045
|
}
|
|
4272
4046
|
|
|
4047
|
+
/**
|
|
4048
|
+
* ReactEcs variable provides the function to render & destroy the specified UI
|
|
4049
|
+
* @public
|
|
4050
|
+
* @example
|
|
4051
|
+
* import { ReactEcsRenderer } from '@dcl/sdk/react-ecs'
|
|
4052
|
+
* ReactEcsRenderer.setUiRenderer(uiComponent)
|
|
4053
|
+
*/
|
|
4273
4054
|
export declare const ReactEcsRenderer: ReactBasedUiSystem;
|
|
4274
4055
|
|
|
4275
4056
|
/**
|
|
@@ -4284,16 +4065,14 @@ export declare type ReadonlyComponentSchema<T extends [ComponentDefinition<unkno
|
|
|
4284
4065
|
*/
|
|
4285
4066
|
export declare type ReadonlyPrimitive = number | string | number[] | string[] | boolean | boolean[];
|
|
4286
4067
|
|
|
4068
|
+
/**
|
|
4069
|
+
* @public
|
|
4070
|
+
*/
|
|
4287
4071
|
export declare type ReceiveMessage = CrdtMessageBody & {
|
|
4288
4072
|
transportId?: number;
|
|
4289
4073
|
messageBuffer: Uint8Array;
|
|
4290
4074
|
};
|
|
4291
4075
|
|
|
4292
|
-
/**
|
|
4293
|
-
* @public This first 512 entities are reserved by the renderer
|
|
4294
|
-
*/
|
|
4295
|
-
export declare const RESERVED_STATIC_ENTITIES = 512;
|
|
4296
|
-
|
|
4297
4076
|
export declare type RPCSendableMessage = {
|
|
4298
4077
|
jsonrpc: '2.0';
|
|
4299
4078
|
id: number;
|
|
@@ -4497,25 +4276,44 @@ export declare namespace Scalar {
|
|
|
4497
4276
|
* @public
|
|
4498
4277
|
*/
|
|
4499
4278
|
export declare namespace Schemas {
|
|
4279
|
+
/** @public */
|
|
4500
4280
|
export type SchemaType = ISchema;
|
|
4281
|
+
/** @public */
|
|
4501
4282
|
const Boolean: ISchema<boolean>;
|
|
4283
|
+
/** @public */
|
|
4502
4284
|
const String: ISchema<string>;
|
|
4285
|
+
/** @public */
|
|
4503
4286
|
const Float: ISchema<number>;
|
|
4287
|
+
/** @public */
|
|
4504
4288
|
const Double: ISchema<number>;
|
|
4289
|
+
/** @public */
|
|
4505
4290
|
const Byte: ISchema<number>;
|
|
4291
|
+
/** @public */
|
|
4506
4292
|
const Short: ISchema<number>;
|
|
4293
|
+
/** @public */
|
|
4507
4294
|
const Int: ISchema<number>;
|
|
4295
|
+
/** @public */
|
|
4508
4296
|
const Int64: ISchema<number>;
|
|
4297
|
+
/** @public */
|
|
4509
4298
|
const Number: ISchema<number>;
|
|
4299
|
+
/** @public */
|
|
4510
4300
|
const Vector3: ISchema<Vector3Type>;
|
|
4301
|
+
/** @public */
|
|
4511
4302
|
const Quaternion: ISchema<QuaternionType>;
|
|
4303
|
+
/** @public */
|
|
4512
4304
|
const Color3: ISchema<Color3Type>;
|
|
4305
|
+
/** @public */
|
|
4513
4306
|
const Color4: ISchema<Color4Type>;
|
|
4307
|
+
/** @public */
|
|
4514
4308
|
const Entity: ISchema<Entity>;
|
|
4515
|
-
|
|
4516
|
-
const
|
|
4517
|
-
|
|
4518
|
-
const
|
|
4309
|
+
/** @public */
|
|
4310
|
+
const Enum: <T>(type: ISchema<any>) => ISchema<T>;
|
|
4311
|
+
/** @public */
|
|
4312
|
+
const Array: <T>(type: ISchema<T>) => ISchema<T[]>;
|
|
4313
|
+
/** @public */
|
|
4314
|
+
const Map: <T extends Spec>(spec: T, defaultValue?: Partial<MapResult<T>> | undefined) => ISchema<MapResult<T>>;
|
|
4315
|
+
/** @public */
|
|
4316
|
+
const Optional: <T>(spec: ISchema<T>) => ISchema<T | undefined>;
|
|
4519
4317
|
}
|
|
4520
4318
|
|
|
4521
4319
|
/**
|
|
@@ -4538,6 +4336,9 @@ export declare type SystemItem = {
|
|
|
4538
4336
|
|
|
4539
4337
|
export declare type Task<T = unknown> = () => Promise<T>;
|
|
4540
4338
|
|
|
4339
|
+
/**
|
|
4340
|
+
* @public
|
|
4341
|
+
*/
|
|
4541
4342
|
export declare const enum TextAlignMode {
|
|
4542
4343
|
TAM_TOP_LEFT = 0,
|
|
4543
4344
|
TAM_TOP_CENTER = 1,
|
|
@@ -4558,6 +4359,9 @@ export declare type TextAlignType = 'top-left' | 'top-center' | 'top-right' | 'm
|
|
|
4558
4359
|
/** @public */
|
|
4559
4360
|
export declare const TextShape: ComponentDefinition<PBTextShape>;
|
|
4560
4361
|
|
|
4362
|
+
/**
|
|
4363
|
+
* @public
|
|
4364
|
+
*/
|
|
4561
4365
|
export declare interface Texture {
|
|
4562
4366
|
src: string;
|
|
4563
4367
|
/** default = TextureWrapMode.Clamp */
|
|
@@ -4567,13 +4371,8 @@ export declare interface Texture {
|
|
|
4567
4371
|
}
|
|
4568
4372
|
|
|
4569
4373
|
/**
|
|
4570
|
-
*
|
|
4374
|
+
* @public
|
|
4571
4375
|
*/
|
|
4572
|
-
export declare const Texture: {
|
|
4573
|
-
encode(message: Texture, writer?: _m0.Writer): _m0.Writer;
|
|
4574
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Texture;
|
|
4575
|
-
};
|
|
4576
|
-
|
|
4577
4376
|
export declare const enum TextureFilterMode {
|
|
4578
4377
|
TFM_POINT = 0,
|
|
4579
4378
|
TFM_BILINEAR = 1,
|
|
@@ -4588,7 +4387,7 @@ export declare type TextureFilterType = 'point' | 'bi-linear' | 'tri-linear';
|
|
|
4588
4387
|
/**
|
|
4589
4388
|
* @public
|
|
4590
4389
|
*/
|
|
4591
|
-
export declare
|
|
4390
|
+
export declare interface TextureHelper {
|
|
4592
4391
|
/**
|
|
4593
4392
|
* @returns a common texture with a source file
|
|
4594
4393
|
*/
|
|
@@ -4597,7 +4396,7 @@ export declare type TextureHelper = {
|
|
|
4597
4396
|
* @returns the avatar texture of userId specified
|
|
4598
4397
|
*/
|
|
4599
4398
|
Avatar: (avatarTexture: AvatarTexture) => TextureUnion;
|
|
4600
|
-
}
|
|
4399
|
+
}
|
|
4601
4400
|
|
|
4602
4401
|
/**
|
|
4603
4402
|
* @public
|
|
@@ -4615,6 +4414,9 @@ export declare type TextureHelper = {
|
|
|
4615
4414
|
*/
|
|
4616
4415
|
export declare type TextureMode = 'nine-slices' | 'center' | 'stretch';
|
|
4617
4416
|
|
|
4417
|
+
/**
|
|
4418
|
+
* @public
|
|
4419
|
+
*/
|
|
4618
4420
|
export declare interface TextureUnion {
|
|
4619
4421
|
tex?: {
|
|
4620
4422
|
$case: "texture";
|
|
@@ -4626,13 +4428,8 @@ export declare interface TextureUnion {
|
|
|
4626
4428
|
}
|
|
4627
4429
|
|
|
4628
4430
|
/**
|
|
4629
|
-
*
|
|
4431
|
+
* @public
|
|
4630
4432
|
*/
|
|
4631
|
-
export declare const TextureUnion: {
|
|
4632
|
-
encode(message: TextureUnion, writer?: _m0.Writer): _m0.Writer;
|
|
4633
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): TextureUnion;
|
|
4634
|
-
};
|
|
4635
|
-
|
|
4636
4433
|
export declare const enum TextureWrapMode {
|
|
4637
4434
|
TWM_REPEAT = 0,
|
|
4638
4435
|
TWM_CLAMP = 1,
|
|
@@ -4657,6 +4454,9 @@ export declare const ToGammaSpace: number;
|
|
|
4657
4454
|
*/
|
|
4658
4455
|
export declare const ToLinearSpace = 2.2;
|
|
4659
4456
|
|
|
4457
|
+
/**
|
|
4458
|
+
* @public
|
|
4459
|
+
*/
|
|
4660
4460
|
export declare type ToOptional<T> = OnlyOptionalUndefinedTypes<T> & OnlyNonUndefinedTypes<T>;
|
|
4661
4461
|
|
|
4662
4462
|
export declare const Transform: TransformComponentExtended;
|
|
@@ -4702,66 +4502,89 @@ export declare type TransformType = {
|
|
|
4702
4502
|
*/
|
|
4703
4503
|
export declare type TransformTypeWithOptionals = Partial<TransformType>;
|
|
4704
4504
|
|
|
4505
|
+
/**
|
|
4506
|
+
* @public
|
|
4507
|
+
*/
|
|
4705
4508
|
export declare type Transport = {
|
|
4706
4509
|
send(message: Uint8Array): Promise<void>;
|
|
4707
4510
|
onmessage?(message: Uint8Array): void;
|
|
4708
4511
|
filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
|
|
4709
4512
|
};
|
|
4710
4513
|
|
|
4514
|
+
/**
|
|
4515
|
+
* @public
|
|
4516
|
+
*/
|
|
4711
4517
|
export declare type TransportMessage = Omit<ReceiveMessage, 'data'>;
|
|
4712
4518
|
|
|
4713
4519
|
/**
|
|
4520
|
+
* Avatar Texture
|
|
4714
4521
|
* @public
|
|
4715
4522
|
*/
|
|
4716
|
-
export declare
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
};
|
|
4722
|
-
};
|
|
4523
|
+
export declare interface UiAvatarTexture {
|
|
4524
|
+
userId: string;
|
|
4525
|
+
wrapMode?: TextureWrapType;
|
|
4526
|
+
filterMode?: TextureFilterType;
|
|
4527
|
+
}
|
|
4723
4528
|
|
|
4724
4529
|
/** @public */
|
|
4725
4530
|
export declare const UiBackground: ComponentDefinition<PBUiBackground>;
|
|
4726
4531
|
|
|
4727
4532
|
/**
|
|
4728
4533
|
* @public
|
|
4534
|
+
* Background Component props
|
|
4535
|
+
* .i.e to define a background color or image
|
|
4729
4536
|
*/
|
|
4730
|
-
export declare
|
|
4537
|
+
export declare interface UiBackgroundProps {
|
|
4538
|
+
/** Background color. @defaultValue `{ r: 1, g: 1, b: 1, a: 1 }` */
|
|
4731
4539
|
color?: PBColor4 | undefined;
|
|
4732
4540
|
textureMode?: TextureMode;
|
|
4541
|
+
/** Texture slices represents the top | right | bottom | left sizes of the slices for the borders. Values are percentages of the texture. */
|
|
4733
4542
|
textureSlices?: BorderRect | undefined;
|
|
4543
|
+
/** when STRETCH is selected, the uvs are configurable */
|
|
4734
4544
|
uvs?: number[];
|
|
4735
|
-
|
|
4545
|
+
/** AvatarTexture for the background */
|
|
4546
|
+
avatarTexture?: UiAvatarTexture;
|
|
4547
|
+
/** Texture for the background */
|
|
4548
|
+
texture?: UiTexture;
|
|
4549
|
+
}
|
|
4736
4550
|
|
|
4737
4551
|
/**
|
|
4552
|
+
* Button Component Props
|
|
4738
4553
|
* @public
|
|
4739
4554
|
*/
|
|
4740
|
-
export declare
|
|
4741
|
-
|
|
4742
|
-
|
|
4555
|
+
export declare interface UiButtonProps extends UiLabelProps, EntityPropTypes {
|
|
4556
|
+
/**
|
|
4557
|
+
* Use any of the available button style types to create a styled button.
|
|
4558
|
+
*/
|
|
4559
|
+
variant?: 'primary' | 'secondary';
|
|
4560
|
+
}
|
|
4743
4561
|
|
|
4744
|
-
|
|
4562
|
+
/**
|
|
4563
|
+
* @public
|
|
4564
|
+
*/
|
|
4565
|
+
export declare type UiComponent = () => ReactEcs.JSX.Element;
|
|
4745
4566
|
|
|
4746
4567
|
/** @public */
|
|
4747
4568
|
export declare const UiDropdown: ComponentDefinition<PBUiDropdown>;
|
|
4748
4569
|
|
|
4749
4570
|
/**
|
|
4750
4571
|
* @public
|
|
4572
|
+
* Dropdown Props
|
|
4751
4573
|
*/
|
|
4752
|
-
export declare
|
|
4574
|
+
export declare interface UiDropdownProps extends EntityPropTypes, Omit<Partial<PBUiDropdown>, 'textAlign' | 'font'> {
|
|
4753
4575
|
onChange?(value: number): void;
|
|
4754
4576
|
font?: UiFontType;
|
|
4755
4577
|
textAlign?: TextAlignType;
|
|
4756
|
-
}
|
|
4578
|
+
}
|
|
4757
4579
|
|
|
4758
4580
|
/** @public */
|
|
4759
4581
|
export declare const UiDropdownResult: ComponentDefinition<PBUiDropdownResult>;
|
|
4760
4582
|
|
|
4761
4583
|
/**
|
|
4762
4584
|
* @public
|
|
4585
|
+
* @category Component
|
|
4763
4586
|
*/
|
|
4764
|
-
export declare function UiEntity(props: EntityPropTypes
|
|
4587
|
+
export declare function UiEntity(props: EntityPropTypes): ReactEcs.JSX.Element;
|
|
4765
4588
|
|
|
4766
4589
|
/**
|
|
4767
4590
|
* @public
|
|
@@ -4774,26 +4597,32 @@ export declare const UiInput: ComponentDefinition<PBUiInput>;
|
|
|
4774
4597
|
/**
|
|
4775
4598
|
* @public
|
|
4776
4599
|
*/
|
|
4777
|
-
export declare
|
|
4600
|
+
export declare interface UiInputProps extends Omit<PBUiInput, 'font' | 'textAlign'> {
|
|
4601
|
+
/** function to be called on value change */
|
|
4778
4602
|
onChange?(value: string): void;
|
|
4779
4603
|
font?: UiFontType;
|
|
4780
4604
|
textAlign?: TextAlignType;
|
|
4781
|
-
}
|
|
4605
|
+
}
|
|
4782
4606
|
|
|
4783
4607
|
/** @public */
|
|
4784
4608
|
export declare const UiInputResult: ComponentDefinition<PBUiInputResult>;
|
|
4785
4609
|
|
|
4786
4610
|
/**
|
|
4611
|
+
* Label component props
|
|
4787
4612
|
* @public
|
|
4788
4613
|
*/
|
|
4789
|
-
export declare
|
|
4790
|
-
/**
|
|
4614
|
+
export declare interface UiLabelProps {
|
|
4615
|
+
/** Primary content. */
|
|
4616
|
+
value: string;
|
|
4617
|
+
/** Color of the label. @defaultValue `{ r: 1, g: 1, b: 1, a: 1 }` */
|
|
4618
|
+
color?: PBColor4 | undefined;
|
|
4619
|
+
/** Label font size. @defaultValue 10 */
|
|
4620
|
+
fontSize?: number | undefined;
|
|
4621
|
+
/** Label align position. @defaultValue 'middle-center' */
|
|
4791
4622
|
textAlign?: TextAlignType | undefined;
|
|
4792
|
-
/**
|
|
4623
|
+
/** Label font type. @defaultValue 'sans-serif' */
|
|
4793
4624
|
font?: UiFontType | undefined;
|
|
4794
|
-
}
|
|
4795
|
-
|
|
4796
|
-
export declare type Uint32 = number;
|
|
4625
|
+
}
|
|
4797
4626
|
|
|
4798
4627
|
/**
|
|
4799
4628
|
* @public It only defines the type explicitly, no effects.
|
|
@@ -4804,49 +4633,66 @@ export declare type uint32 = number;
|
|
|
4804
4633
|
export declare const UiText: ComponentDefinition<PBUiText>;
|
|
4805
4634
|
|
|
4806
4635
|
/**
|
|
4636
|
+
* Texture
|
|
4807
4637
|
* @public
|
|
4808
4638
|
*/
|
|
4809
4639
|
export declare type UiTexture = {
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
filterMode?: TextureFilterType;
|
|
4814
|
-
};
|
|
4640
|
+
src: string;
|
|
4641
|
+
wrapMode?: TextureWrapType;
|
|
4642
|
+
filterMode?: TextureFilterType;
|
|
4815
4643
|
};
|
|
4816
4644
|
|
|
4817
|
-
/**
|
|
4818
|
-
* @public
|
|
4819
|
-
*/
|
|
4820
|
-
export declare type UiTextureUnion = UiAvatarTexture | UiTexture;
|
|
4821
|
-
|
|
4822
4645
|
/** @public */
|
|
4823
4646
|
export declare const UiTransform: ComponentDefinition<PBUiTransform>;
|
|
4824
4647
|
|
|
4825
4648
|
/**
|
|
4649
|
+
* Layout props to position things in the canvas
|
|
4826
4650
|
* @public
|
|
4827
4651
|
*/
|
|
4828
4652
|
export declare interface UiTransformProps {
|
|
4653
|
+
/** The display property controls if a item is going to be displayed or not. */
|
|
4829
4654
|
display?: DisplayType;
|
|
4655
|
+
/** The flex shorthand property sets how a flex item will grow or shrink to fit the space available in its flex container. */
|
|
4830
4656
|
flex?: number;
|
|
4657
|
+
/** Justify content describes how to align children within the main axis of their container. */
|
|
4831
4658
|
justifyContent?: JustifyType;
|
|
4659
|
+
/** The position type of an element defines how it is positioned within its parent. */
|
|
4832
4660
|
positionType?: PositionType;
|
|
4661
|
+
/** The align-items property controls the alignment of items on the Cross Axis. */
|
|
4833
4662
|
alignItems?: AlignType;
|
|
4663
|
+
/** The align-self property has the same options and effect as align items but instead of affecting the children within a container, you can apply this property to a single child to change its alignment within its parent */
|
|
4834
4664
|
alignSelf?: AlignType;
|
|
4665
|
+
/** The align-content property sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis. */
|
|
4835
4666
|
alignContent?: AlignType;
|
|
4667
|
+
/** The flex-direction property sets how flex items are placed in the flex container defining the main axis and the direction (normal or reversed). */
|
|
4836
4668
|
flexDirection?: FlexDirectionType;
|
|
4669
|
+
/** The position property sets how an element is positioned in a document. The top, right, bottom, and left properties determine the final location of positioned elements. */
|
|
4837
4670
|
position?: Partial<Position>;
|
|
4671
|
+
/** The padding shorthand property sets the padding area on all four sides of an element at once. */
|
|
4838
4672
|
padding?: Partial<Position>;
|
|
4673
|
+
/** The margin shorthand property sets the margin area on all four sides of an element. */
|
|
4839
4674
|
margin?: Partial<Position>;
|
|
4675
|
+
/** The width property specifies the width of an element. */
|
|
4840
4676
|
width?: PositionUnit;
|
|
4677
|
+
/** The height property specifies the height of an element. */
|
|
4841
4678
|
height?: PositionUnit;
|
|
4679
|
+
/** The min-width property sets the minimum width of an element. */
|
|
4842
4680
|
minWidth?: PositionUnit;
|
|
4681
|
+
/** The max-width property sets the maximum width of an element. */
|
|
4843
4682
|
maxWidth?: PositionUnit;
|
|
4683
|
+
/** The min-height CSS property sets the minimum height of an element. */
|
|
4844
4684
|
minHeight?: PositionUnit;
|
|
4685
|
+
/** The max-height property sets the maximum height of an element */
|
|
4845
4686
|
maxHeight?: PositionUnit;
|
|
4687
|
+
/** The flex-wrap property sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction that lines are stacked*/
|
|
4846
4688
|
flexWrap?: FlexWrapType;
|
|
4689
|
+
/** The flex-basis property sets the initial main size of a flex item. It sets the size of the content box.*/
|
|
4847
4690
|
flexBasis?: number;
|
|
4691
|
+
/** The flex-grow property sets the flex grow factor of a flex item's main size. */
|
|
4848
4692
|
flexGrow?: number;
|
|
4693
|
+
/** The flex-shrink property sets the flex shrink factor of a flex item. If the size of all flex items is larger than the flex container, items shrink to fit according to flex-shrink. */
|
|
4849
4694
|
flexShrink?: number;
|
|
4695
|
+
/** The overflow property controls what happens to content that is too big to fit into an area */
|
|
4850
4696
|
overflow?: OverflowType;
|
|
4851
4697
|
}
|
|
4852
4698
|
|
|
@@ -5461,6 +5307,9 @@ export declare type Vector3Type = {
|
|
|
5461
5307
|
/** @public */
|
|
5462
5308
|
export declare const VisibilityComponent: ComponentDefinition<PBVisibilityComponent>;
|
|
5463
5309
|
|
|
5310
|
+
/**
|
|
5311
|
+
* @public
|
|
5312
|
+
*/
|
|
5464
5313
|
export declare const enum YGAlign {
|
|
5465
5314
|
YGA_AUTO = 0,
|
|
5466
5315
|
YGA_FLEX_START = 1,
|
|
@@ -5472,11 +5321,17 @@ export declare const enum YGAlign {
|
|
|
5472
5321
|
YGA_SPACE_AROUND = 7
|
|
5473
5322
|
}
|
|
5474
5323
|
|
|
5324
|
+
/**
|
|
5325
|
+
* @public
|
|
5326
|
+
*/
|
|
5475
5327
|
export declare const enum YGDisplay {
|
|
5476
5328
|
YGD_FLEX = 0,
|
|
5477
5329
|
YGD_NONE = 1
|
|
5478
5330
|
}
|
|
5479
5331
|
|
|
5332
|
+
/**
|
|
5333
|
+
* @public
|
|
5334
|
+
*/
|
|
5480
5335
|
export declare const enum YGEdge {
|
|
5481
5336
|
YGE_LEFT = 0,
|
|
5482
5337
|
YGE_TOP = 1,
|
|
@@ -5489,6 +5344,9 @@ export declare const enum YGEdge {
|
|
|
5489
5344
|
YGE_ALL = 8
|
|
5490
5345
|
}
|
|
5491
5346
|
|
|
5347
|
+
/**
|
|
5348
|
+
* @public
|
|
5349
|
+
*/
|
|
5492
5350
|
export declare const enum YGFlexDirection {
|
|
5493
5351
|
YGFD_ROW = 0,
|
|
5494
5352
|
YGFD_COLUMN = 1,
|
|
@@ -5496,6 +5354,9 @@ export declare const enum YGFlexDirection {
|
|
|
5496
5354
|
YGFD_ROW_REVERSE = 3
|
|
5497
5355
|
}
|
|
5498
5356
|
|
|
5357
|
+
/**
|
|
5358
|
+
* @public
|
|
5359
|
+
*/
|
|
5499
5360
|
export declare const enum YGJustify {
|
|
5500
5361
|
YGJ_FLEX_START = 0,
|
|
5501
5362
|
YGJ_CENTER = 1,
|
|
@@ -5505,17 +5366,26 @@ export declare const enum YGJustify {
|
|
|
5505
5366
|
YGJ_SPACE_EVENLY = 5
|
|
5506
5367
|
}
|
|
5507
5368
|
|
|
5369
|
+
/**
|
|
5370
|
+
* @public
|
|
5371
|
+
*/
|
|
5508
5372
|
export declare const enum YGOverflow {
|
|
5509
5373
|
YGO_VISIBLE = 0,
|
|
5510
5374
|
YGO_HIDDEN = 1,
|
|
5511
5375
|
YGO_SCROLL = 2
|
|
5512
5376
|
}
|
|
5513
5377
|
|
|
5378
|
+
/**
|
|
5379
|
+
* @public
|
|
5380
|
+
*/
|
|
5514
5381
|
export declare const enum YGPositionType {
|
|
5515
5382
|
YGPT_RELATIVE = 0,
|
|
5516
5383
|
YGPT_ABSOLUTE = 1
|
|
5517
5384
|
}
|
|
5518
5385
|
|
|
5386
|
+
/**
|
|
5387
|
+
* @public
|
|
5388
|
+
*/
|
|
5519
5389
|
export declare const enum YGUnit {
|
|
5520
5390
|
YGU_UNDEFINED = 0,
|
|
5521
5391
|
YGU_POINT = 1,
|
|
@@ -5523,6 +5393,9 @@ export declare const enum YGUnit {
|
|
|
5523
5393
|
YGU_AUTO = 3
|
|
5524
5394
|
}
|
|
5525
5395
|
|
|
5396
|
+
/**
|
|
5397
|
+
* @public
|
|
5398
|
+
*/
|
|
5526
5399
|
export declare const enum YGWrap {
|
|
5527
5400
|
YGW_NO_WRAP = 0,
|
|
5528
5401
|
YGW_WRAP = 1,
|