@dcl/ecs 7.22.4 → 7.22.5-24779418349.commit-111fd7e
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/components/generated/component-names.gen.js +0 -1
- package/dist/components/generated/global.gen.d.ts +0 -2
- package/dist/components/generated/global.gen.js +0 -1
- package/dist/components/generated/index.gen.d.ts +0 -4
- package/dist/components/generated/index.gen.js +0 -5
- package/dist/components/generated/pb/decentraland/common/colors.gen.d.ts +0 -15
- package/dist/components/generated/pb/decentraland/common/colors.gen.js +0 -47
- package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts +1 -10
- package/dist/components/generated/pb/decentraland/sdk/components/common/input_action.gen.js +0 -10
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events.gen.d.ts +1 -5
- package/dist/components/generated/pb/decentraland/sdk/components/pointer_events.gen.js +1 -20
- package/dist/components/generated/types.gen.d.ts +0 -2
- package/dist/components/generated/types.gen.js +0 -3
- package/dist/components/index.d.ts +5 -2
- package/dist/components/index.js +5 -5
- package/dist/components/manual/CreatedBy.d.ts +9 -0
- package/dist/components/manual/CreatedBy.js +8 -0
- package/dist/components/manual/Transform.d.ts +9 -13
- package/dist/components/manual/Transform.js +3 -11
- package/dist/components/types.d.ts +1 -1
- package/dist/engine/component.d.ts +52 -1
- package/dist/engine/grow-only-value-set-component-definition.js +45 -2
- package/dist/engine/lww-element-set-component-definition.d.ts +5 -3
- package/dist/engine/lww-element-set-component-definition.js +70 -35
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -3
- package/dist/runtime/helpers/index.d.ts +0 -1
- package/dist/runtime/helpers/index.js +0 -1
- package/dist/runtime/helpers/tree.d.ts +0 -6
- package/dist/runtime/helpers/tree.js +2 -2
- package/dist/runtime/initialization/index.d.ts +0 -7
- package/dist/runtime/initialization/index.js +0 -6
- package/dist/serialization/crdt/authoritativePutComponent.d.ts +15 -0
- package/dist/serialization/crdt/authoritativePutComponent.js +47 -0
- package/dist/serialization/crdt/index.d.ts +1 -0
- package/dist/serialization/crdt/index.js +1 -0
- package/dist/serialization/crdt/types.d.ts +25 -3
- package/dist/serialization/crdt/types.js +3 -1
- package/dist/systems/crdt/index.d.ts +0 -1
- package/dist/systems/crdt/index.js +55 -146
- package/dist/systems/events.d.ts +0 -65
- package/dist/systems/events.js +8 -70
- package/dist-cjs/components/generated/component-names.gen.js +0 -1
- package/dist-cjs/components/generated/global.gen.d.ts +0 -2
- package/dist-cjs/components/generated/global.gen.js +1 -3
- package/dist-cjs/components/generated/index.gen.d.ts +0 -4
- package/dist-cjs/components/generated/index.gen.js +2 -8
- package/dist-cjs/components/generated/pb/decentraland/common/colors.gen.d.ts +0 -15
- package/dist-cjs/components/generated/pb/decentraland/common/colors.gen.js +1 -48
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/input_action.gen.d.ts +1 -10
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/input_action.gen.js +1 -11
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/pointer_events.gen.d.ts +1 -5
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/pointer_events.gen.js +1 -20
- package/dist-cjs/components/generated/types.gen.d.ts +0 -2
- package/dist-cjs/components/generated/types.gen.js +0 -5
- package/dist-cjs/components/index.d.ts +5 -2
- package/dist-cjs/components/index.js +7 -7
- package/dist-cjs/components/manual/CreatedBy.d.ts +9 -0
- package/dist-cjs/components/manual/CreatedBy.js +10 -0
- package/dist-cjs/components/manual/Transform.d.ts +9 -13
- package/dist-cjs/components/manual/Transform.js +3 -34
- package/dist-cjs/components/types.d.ts +1 -1
- package/dist-cjs/engine/component.d.ts +52 -1
- package/dist-cjs/engine/grow-only-value-set-component-definition.js +44 -1
- package/dist-cjs/engine/lww-element-set-component-definition.d.ts +5 -3
- package/dist-cjs/engine/lww-element-set-component-definition.js +73 -36
- package/dist-cjs/index.d.ts +2 -3
- package/dist-cjs/index.js +2 -4
- package/dist-cjs/runtime/helpers/index.d.ts +0 -1
- package/dist-cjs/runtime/helpers/index.js +0 -1
- package/dist-cjs/runtime/helpers/tree.d.ts +0 -6
- package/dist-cjs/runtime/helpers/tree.js +2 -3
- package/dist-cjs/runtime/initialization/index.d.ts +0 -7
- package/dist-cjs/runtime/initialization/index.js +1 -7
- package/dist-cjs/serialization/crdt/authoritativePutComponent.d.ts +15 -0
- package/dist-cjs/serialization/crdt/authoritativePutComponent.js +50 -0
- package/dist-cjs/serialization/crdt/index.d.ts +1 -0
- package/dist-cjs/serialization/crdt/index.js +1 -0
- package/dist-cjs/serialization/crdt/types.d.ts +25 -3
- package/dist-cjs/serialization/crdt/types.js +3 -1
- package/dist-cjs/systems/crdt/index.d.ts +0 -1
- package/dist-cjs/systems/crdt/index.js +55 -169
- package/dist-cjs/systems/events.d.ts +0 -65
- package/dist-cjs/systems/events.js +8 -70
- package/package.json +2 -3
- package/dist/components/extended/ParticleSystem.d.ts +0 -24
- package/dist/components/extended/ParticleSystem.js +0 -23
- package/dist/components/generated/ParticleSystem.gen.d.ts +0 -1
- package/dist/components/generated/ParticleSystem.gen.js +0 -25
- package/dist/components/generated/pb/decentraland/common/floats.gen.d.ts +0 -16
- package/dist/components/generated/pb/decentraland/common/floats.gen.js +0 -50
- package/dist/components/generated/pb/decentraland/sdk/components/particle_system.gen.d.ts +0 -241
- package/dist/components/generated/pb/decentraland/sdk/components/particle_system.gen.js +0 -717
- package/dist/runtime/helpers/vectors.d.ts +0 -1
- package/dist/runtime/helpers/vectors.js +0 -36
- package/dist/serialization/crdt/network/utils.d.ts +0 -9
- package/dist/serialization/crdt/network/utils.js +0 -60
- package/dist/systems/physics-force.d.ts +0 -1
- package/dist/systems/physics-force.js +0 -140
- package/dist/systems/physics-impulse.d.ts +0 -12
- package/dist/systems/physics-impulse.js +0 -85
- package/dist/systems/physics.d.ts +0 -77
- package/dist/systems/physics.js +0 -18
- package/dist-cjs/components/extended/ParticleSystem.d.ts +0 -24
- package/dist-cjs/components/extended/ParticleSystem.js +0 -28
- package/dist-cjs/components/generated/ParticleSystem.gen.d.ts +0 -1
- package/dist-cjs/components/generated/ParticleSystem.gen.js +0 -28
- package/dist-cjs/components/generated/pb/decentraland/common/floats.gen.d.ts +0 -16
- package/dist-cjs/components/generated/pb/decentraland/common/floats.gen.js +0 -56
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/particle_system.gen.d.ts +0 -241
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/particle_system.gen.js +0 -723
- package/dist-cjs/runtime/helpers/vectors.d.ts +0 -1
- package/dist-cjs/runtime/helpers/vectors.js +0 -39
- package/dist-cjs/serialization/crdt/network/utils.d.ts +0 -9
- package/dist-cjs/serialization/crdt/network/utils.js +0 -67
- package/dist-cjs/systems/physics-force.d.ts +0 -1
- package/dist-cjs/systems/physics-force.js +0 -167
- package/dist-cjs/systems/physics-impulse.d.ts +0 -12
- package/dist-cjs/systems/physics-impulse.js +0 -112
- package/dist-cjs/systems/physics.d.ts +0 -77
- package/dist-cjs/systems/physics.js +0 -23
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
import { EntityState } from '../../engine/entity';
|
|
2
2
|
import { ReadWriteByteBuffer } from '../../serialization/ByteBuffer';
|
|
3
|
-
import { AppendValueOperation, CrdtMessageProtocol
|
|
3
|
+
import { AppendValueOperation, CrdtMessageProtocol } from '../../serialization/crdt';
|
|
4
4
|
import { DeleteComponent } from '../../serialization/crdt/deleteComponent';
|
|
5
5
|
import { DeleteEntity } from '../../serialization/crdt/deleteEntity';
|
|
6
6
|
import { PutComponentOperation } from '../../serialization/crdt/putComponent';
|
|
7
|
+
import { AuthoritativePutComponentOperation } from '../../serialization/crdt/authoritativePutComponent';
|
|
7
8
|
import { CrdtMessageType } from '../../serialization/crdt/types';
|
|
8
|
-
import { PutNetworkComponentOperation } from '../../serialization/crdt/network/putComponentNetwork';
|
|
9
|
-
import { NetworkEntity as defineNetworkEntity, NetworkParent as defineNetworkParent, Transform as defineTransform } from '../../components';
|
|
10
|
-
import * as networkUtils from '../../serialization/crdt/network/utils';
|
|
11
|
-
// NetworkMessages can only have a MAX_SIZE of 12kb. So we need to send it in chunks.
|
|
12
|
-
export const LIVEKIT_MAX_SIZE = 12;
|
|
13
9
|
/**
|
|
14
10
|
* @internal
|
|
15
11
|
*/
|
|
16
12
|
export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
17
13
|
const transports = [];
|
|
18
|
-
//
|
|
19
|
-
const NetworkEntity = defineNetworkEntity(engine);
|
|
20
|
-
const NetworkParent = defineNetworkParent(engine);
|
|
21
|
-
const Transform = defineTransform(engine);
|
|
14
|
+
// No network components needed - pure CRDT processing only
|
|
22
15
|
// Messages that we received at transport.onMessage waiting to be processed
|
|
23
16
|
const receivedMessages = [];
|
|
24
17
|
// Messages already processed by the engine but that we need to broadcast to other transports.
|
|
@@ -43,27 +36,20 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
43
36
|
if (header.type === CrdtMessageType.DELETE_COMPONENT) {
|
|
44
37
|
message = DeleteComponent.read(buffer);
|
|
45
38
|
}
|
|
46
|
-
else if (header.type === CrdtMessageType.DELETE_COMPONENT_NETWORK) {
|
|
47
|
-
message = DeleteComponentNetwork.read(buffer);
|
|
48
|
-
}
|
|
49
39
|
else if (header.type === CrdtMessageType.PUT_COMPONENT) {
|
|
50
40
|
message = PutComponentOperation.read(buffer);
|
|
51
41
|
}
|
|
52
|
-
else if (header.type === CrdtMessageType.
|
|
53
|
-
message =
|
|
42
|
+
else if (header.type === CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT) {
|
|
43
|
+
message = AuthoritativePutComponentOperation.read(buffer);
|
|
54
44
|
}
|
|
55
45
|
else if (header.type === CrdtMessageType.DELETE_ENTITY) {
|
|
56
46
|
message = DeleteEntity.read(buffer);
|
|
57
47
|
}
|
|
58
|
-
else if (header.type === CrdtMessageType.DELETE_ENTITY_NETWORK) {
|
|
59
|
-
message = DeleteEntityNetwork.read(buffer);
|
|
60
|
-
}
|
|
61
48
|
else if (header.type === CrdtMessageType.APPEND_VALUE) {
|
|
62
49
|
message = AppendValueOperation.read(buffer);
|
|
63
|
-
// Unknown message, we skip it
|
|
64
50
|
}
|
|
65
51
|
else {
|
|
66
|
-
//
|
|
52
|
+
// Unknown message, we skip it (including NETWORK messages)
|
|
67
53
|
buffer.incrementReadOffset(header.length);
|
|
68
54
|
}
|
|
69
55
|
if (message) {
|
|
@@ -84,22 +70,6 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
84
70
|
const messagesToProcess = value.splice(0, value.length);
|
|
85
71
|
return messagesToProcess;
|
|
86
72
|
}
|
|
87
|
-
/**
|
|
88
|
-
* Find the local entityId associated to the network component message.
|
|
89
|
-
* It's a mapping Network -> to Local
|
|
90
|
-
* If it's not a network message, return the entityId received by the message
|
|
91
|
-
*/
|
|
92
|
-
function findNetworkId(msg) {
|
|
93
|
-
const hasNetworkId = 'networkId' in msg;
|
|
94
|
-
if (hasNetworkId) {
|
|
95
|
-
for (const [entityId, network] of engine.getEntitiesWith(NetworkEntity)) {
|
|
96
|
-
if (network.networkId === msg.networkId && network.entityId === msg.entityId) {
|
|
97
|
-
return { entityId, network };
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return { entityId: msg.entityId };
|
|
102
|
-
}
|
|
103
73
|
/**
|
|
104
74
|
* This fn will be called on every tick.
|
|
105
75
|
* Process all the messages queue received by the transport
|
|
@@ -108,46 +78,52 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
108
78
|
const messagesToProcess = getMessages(receivedMessages);
|
|
109
79
|
const entitiesShouldBeCleaned = [];
|
|
110
80
|
for (const msg of messagesToProcess) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
entityId = engine.addEntity();
|
|
115
|
-
network = { entityId: msg.entityId, networkId: msg.networkId };
|
|
116
|
-
NetworkEntity.createOrReplace(entityId, network);
|
|
117
|
-
}
|
|
118
|
-
if (msg.type === CrdtMessageType.DELETE_ENTITY || msg.type === CrdtMessageType.DELETE_ENTITY_NETWORK) {
|
|
119
|
-
entitiesShouldBeCleaned.push(entityId);
|
|
81
|
+
// Simple CRDT processing - no network logic
|
|
82
|
+
if (msg.type === CrdtMessageType.DELETE_ENTITY) {
|
|
83
|
+
entitiesShouldBeCleaned.push(msg.entityId);
|
|
120
84
|
broadcastMessages.push(msg);
|
|
121
85
|
}
|
|
122
86
|
else {
|
|
123
|
-
const entityState = engine.entityContainer.getEntityState(entityId);
|
|
124
|
-
// Skip updates from removed
|
|
87
|
+
const entityState = engine.entityContainer.getEntityState(msg.entityId);
|
|
88
|
+
// Skip updates from removed entities
|
|
125
89
|
if (entityState === EntityState.Removed)
|
|
126
90
|
continue;
|
|
127
|
-
// Entities with unknown
|
|
91
|
+
// Entities with unknown state should update its entity state
|
|
128
92
|
if (entityState === EntityState.Unknown) {
|
|
129
|
-
engine.entityContainer.updateUsedEntity(entityId);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if (
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
93
|
+
engine.entityContainer.updateUsedEntity(msg.entityId);
|
|
94
|
+
}
|
|
95
|
+
// Only process component-related messages (not DELETE_ENTITY)
|
|
96
|
+
if ('componentId' in msg) {
|
|
97
|
+
const component = engine.getComponentOrNull(msg.componentId);
|
|
98
|
+
if (component) {
|
|
99
|
+
// Handle authoritative messages differently - they force the state regardless of timestamp
|
|
100
|
+
const tryUpdate = () => {
|
|
101
|
+
try {
|
|
102
|
+
return msg.type === CrdtMessageType.AUTHORITATIVE_PUT_COMPONENT
|
|
103
|
+
? component.__forceUpdateFromCrdt(msg)
|
|
104
|
+
: component.updateFromCrdt(msg);
|
|
105
|
+
}
|
|
106
|
+
catch (e) {
|
|
107
|
+
console.error('[receiveMessages] ERROR processing message', msg, e);
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
const result = tryUpdate();
|
|
112
|
+
if (!result)
|
|
113
|
+
continue;
|
|
114
|
+
const [conflictMessage, value] = result;
|
|
115
|
+
if (!conflictMessage) {
|
|
116
|
+
// Add message to broadcast queue when no conflict
|
|
117
|
+
broadcastMessages.push(msg);
|
|
118
|
+
onProcessEntityComponentChange && onProcessEntityComponentChange(msg.entityId, msg.type, component, value);
|
|
119
|
+
}
|
|
139
120
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
121
|
+
else {
|
|
122
|
+
// Component not found - still broadcast for editor compatibility
|
|
123
|
+
/* istanbul ignore next */
|
|
143
124
|
broadcastMessages.push(msg);
|
|
144
|
-
onProcessEntityComponentChange && onProcessEntityComponentChange(entityId, msg.type, component, value);
|
|
145
125
|
}
|
|
146
126
|
}
|
|
147
|
-
else {
|
|
148
|
-
// TODO: test this line, it is fundammental to make the editor work
|
|
149
|
-
broadcastMessages.push(msg);
|
|
150
|
-
}
|
|
151
127
|
}
|
|
152
128
|
}
|
|
153
129
|
// the last stage of the syncrhonization is to delete the entities
|
|
@@ -161,16 +137,17 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
161
137
|
}
|
|
162
138
|
}
|
|
163
139
|
/**
|
|
164
|
-
*
|
|
140
|
+
* Simple CRDT message broadcasting - no network-specific logic
|
|
165
141
|
*/
|
|
166
142
|
async function sendMessages(entitiesDeletedThisTick) {
|
|
167
|
-
//
|
|
143
|
+
// Get messages from broadcast queue and component updates
|
|
168
144
|
const crdtMessages = getMessages(broadcastMessages);
|
|
169
145
|
const buffer = new ReadWriteByteBuffer();
|
|
146
|
+
// Generate CRDT messages from component updates
|
|
170
147
|
for (const component of engine.componentsIter()) {
|
|
171
148
|
for (const message of component.getCrdtUpdates()) {
|
|
172
149
|
const offset = buffer.currentWriteOffset();
|
|
173
|
-
//
|
|
150
|
+
// Only create messages if there's a transport that will handle it
|
|
174
151
|
if (transports.some((t) => t.filter(message))) {
|
|
175
152
|
if (message.type === CrdtMessageType.PUT_COMPONENT) {
|
|
176
153
|
PutComponentOperation.write(message.entityId, message.timestamp, message.componentId, message.data, buffer);
|
|
@@ -194,7 +171,7 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
194
171
|
}
|
|
195
172
|
}
|
|
196
173
|
}
|
|
197
|
-
//
|
|
174
|
+
// Handle deleted entities
|
|
198
175
|
for (const entityId of entitiesDeletedThisTick) {
|
|
199
176
|
const offset = buffer.currentWriteOffset();
|
|
200
177
|
DeleteEntity.write(entityId, buffer);
|
|
@@ -205,87 +182,19 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
205
182
|
});
|
|
206
183
|
onProcessEntityComponentChange && onProcessEntityComponentChange(entityId, CrdtMessageType.DELETE_ENTITY);
|
|
207
184
|
}
|
|
208
|
-
//
|
|
209
|
-
const
|
|
210
|
-
|
|
211
|
-
const __NetworkMessagesBuffer = [];
|
|
212
|
-
const transportIndex = Number(index);
|
|
213
|
-
const transport = transports[transportIndex];
|
|
214
|
-
const isRendererTransport = transport.type === 'renderer';
|
|
215
|
-
const isNetworkTransport = transport.type === 'network';
|
|
216
|
-
// Reset Buffer for each Transport
|
|
217
|
-
transportBuffer.resetBuffer();
|
|
218
|
-
const buffer = new ReadWriteByteBuffer();
|
|
219
|
-
// Then we send all the new crdtMessages that the transport needs to process
|
|
185
|
+
// Simple transport broadcasting - no network-specific transforms
|
|
186
|
+
for (const transport of transports) {
|
|
187
|
+
const transportBuffer = new ReadWriteByteBuffer();
|
|
220
188
|
for (const message of crdtMessages) {
|
|
221
189
|
// Avoid echo messages
|
|
222
|
-
if (message.transportId ===
|
|
190
|
+
if (message.transportId === transports.indexOf(transport))
|
|
223
191
|
continue;
|
|
224
|
-
//
|
|
225
|
-
if (
|
|
226
|
-
|
|
227
|
-
// Check if adding this message would exceed the size limit
|
|
228
|
-
const currentBufferSize = transportBuffer.toBinary().byteLength;
|
|
229
|
-
const messageSize = message.messageBuffer.byteLength;
|
|
230
|
-
if (isNetworkTransport && (currentBufferSize + messageSize) / 1024 > LIVEKIT_MAX_SIZE) {
|
|
231
|
-
// If the current buffer has content, save it as a chunk
|
|
232
|
-
if (currentBufferSize > 0) {
|
|
233
|
-
__NetworkMessagesBuffer.push(transportBuffer.toCopiedBinary());
|
|
234
|
-
transportBuffer.resetBuffer();
|
|
235
|
-
}
|
|
236
|
-
// If the message itself is larger than the limit, we need to handle it specially
|
|
237
|
-
// For now, we'll skip it to prevent infinite loops
|
|
238
|
-
if (messageSize / 1024 > LIVEKIT_MAX_SIZE) {
|
|
239
|
-
console.error(`Message too large (${messageSize} bytes), skipping message for entity ${message.entityId}`);
|
|
240
|
-
continue;
|
|
241
|
-
}
|
|
192
|
+
// Check if transport wants this message
|
|
193
|
+
if (transport.filter(message)) {
|
|
194
|
+
transportBuffer.writeBuffer(message.messageBuffer, false);
|
|
242
195
|
}
|
|
243
|
-
const { entityId } = findNetworkId(message);
|
|
244
|
-
const transformNeedsFix = 'componentId' in message &&
|
|
245
|
-
message.componentId === Transform.componentId &&
|
|
246
|
-
Transform.has(entityId) &&
|
|
247
|
-
NetworkParent.has(entityId) &&
|
|
248
|
-
NetworkEntity.has(entityId);
|
|
249
|
-
// If there was a LOCAL change in the transform. Add the parent to that transform
|
|
250
|
-
if (isRendererTransport && message.type === CrdtMessageType.PUT_COMPONENT && transformNeedsFix) {
|
|
251
|
-
const parent = findNetworkId(NetworkParent.get(entityId));
|
|
252
|
-
const transformData = networkUtils.fixTransformParent(message, Transform.get(entityId), parent.entityId);
|
|
253
|
-
const offset = buffer.currentWriteOffset();
|
|
254
|
-
PutComponentOperation.write(entityId, message.timestamp, message.componentId, transformData, buffer);
|
|
255
|
-
transportBuffer.writeBuffer(buffer.buffer().subarray(offset, buffer.currentWriteOffset()), false);
|
|
256
|
-
continue;
|
|
257
|
-
}
|
|
258
|
-
if (isRendererTransport && networkUtils.isNetworkMessage(message)) {
|
|
259
|
-
// If it's the renderer transport and its a NetworkMessage, we need to fix the entityId field and convert it to a known Message.
|
|
260
|
-
// PUT_NETWORK_COMPONENT -> PUT_COMPONENT
|
|
261
|
-
let transformData = 'data' in message ? message.data : new Uint8Array();
|
|
262
|
-
if (transformNeedsFix) {
|
|
263
|
-
const parent = findNetworkId(NetworkParent.get(entityId));
|
|
264
|
-
transformData = networkUtils.fixTransformParent(message, Transform.get(entityId), parent.entityId);
|
|
265
|
-
}
|
|
266
|
-
networkUtils.networkMessageToLocal({ ...message, data: transformData }, entityId, buffer, transportBuffer);
|
|
267
|
-
// Iterate the next message
|
|
268
|
-
continue;
|
|
269
|
-
}
|
|
270
|
-
// If its a network transport and its a PUT_COMPONENT that has a NetworkEntity component, we need to send this message
|
|
271
|
-
// through comms with the EntityID and NetworkID from ther NetworkEntity so everyone can recieve this message and map to their custom entityID.
|
|
272
|
-
if (isNetworkTransport && !networkUtils.isNetworkMessage(message)) {
|
|
273
|
-
const networkData = NetworkEntity.getOrNull(message.entityId);
|
|
274
|
-
// If it has networkData convert the message to PUT_NETWORK_COMPONENT.
|
|
275
|
-
if (networkData) {
|
|
276
|
-
networkUtils.localMessageToNetwork(message, networkData, buffer, transportBuffer);
|
|
277
|
-
// Iterate the next message
|
|
278
|
-
continue;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
// Common message
|
|
282
|
-
transportBuffer.writeBuffer(message.messageBuffer, false);
|
|
283
|
-
}
|
|
284
|
-
if (isNetworkTransport && transportBuffer.currentWriteOffset()) {
|
|
285
|
-
__NetworkMessagesBuffer.push(transportBuffer.toBinary());
|
|
286
196
|
}
|
|
287
|
-
|
|
288
|
-
await transport.send(message);
|
|
197
|
+
await transport.send(transportBuffer.toBinary());
|
|
289
198
|
}
|
|
290
199
|
}
|
|
291
200
|
/**
|
package/dist/systems/events.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export type EventSystemOptions = {
|
|
|
17
17
|
showFeedback?: boolean;
|
|
18
18
|
showHighlight?: boolean;
|
|
19
19
|
maxPlayerDistance?: number;
|
|
20
|
-
priority?: number;
|
|
21
20
|
};
|
|
22
21
|
export declare const getDefaultOpts: (opts?: Partial<EventSystemOptions>) => EventSystemOptions;
|
|
23
22
|
/**
|
|
@@ -48,30 +47,6 @@ export interface PointerEventsSystem {
|
|
|
48
47
|
* @param entity - Entity where the callback was attached
|
|
49
48
|
*/
|
|
50
49
|
removeOnPointerHoverLeave(entity: Entity): void;
|
|
51
|
-
/**
|
|
52
|
-
* @public
|
|
53
|
-
* Remove the callback for onProximityDown event
|
|
54
|
-
* @param entity - Entity where the callback was attached
|
|
55
|
-
*/
|
|
56
|
-
removeOnProximityDown(entity: Entity): void;
|
|
57
|
-
/**
|
|
58
|
-
* @public
|
|
59
|
-
* Remove the callback for onProximityUp event
|
|
60
|
-
* @param entity - Entity where the callback was attached
|
|
61
|
-
*/
|
|
62
|
-
removeOnProximityUp(entity: Entity): void;
|
|
63
|
-
/**
|
|
64
|
-
* @public
|
|
65
|
-
* Remove the callback for onProximityEnter event
|
|
66
|
-
* @param entity - Entity where the callback was attached
|
|
67
|
-
*/
|
|
68
|
-
removeOnProximityEnter(entity: Entity): void;
|
|
69
|
-
/**
|
|
70
|
-
* @public
|
|
71
|
-
* Remove the callback for onProximityLeave event
|
|
72
|
-
* @param entity - Entity where the callback was attached
|
|
73
|
-
*/
|
|
74
|
-
removeOnProximityLeave(entity: Entity): void;
|
|
75
50
|
/**
|
|
76
51
|
* @public
|
|
77
52
|
* Execute callback when the user press the InputButton pointing at the entity
|
|
@@ -126,46 +101,6 @@ export interface PointerEventsSystem {
|
|
|
126
101
|
entity: Entity;
|
|
127
102
|
opts?: Partial<EventSystemOptions>;
|
|
128
103
|
}, cb: EventSystemCallback): void;
|
|
129
|
-
/**
|
|
130
|
-
* @public
|
|
131
|
-
* Execute callback when the user presses the proximity button on the entity
|
|
132
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
133
|
-
* @param cb - Function to execute when click fires
|
|
134
|
-
*/
|
|
135
|
-
onProximityDown(pointerData: {
|
|
136
|
-
entity: Entity;
|
|
137
|
-
opts?: Partial<EventSystemOptions>;
|
|
138
|
-
}, cb: EventSystemCallback): void;
|
|
139
|
-
/**
|
|
140
|
-
* @public
|
|
141
|
-
* Execute callback when the user releases the proximity button on the entity
|
|
142
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
143
|
-
* @param cb - Function to execute when event fires
|
|
144
|
-
*/
|
|
145
|
-
onProximityUp(pointerData: {
|
|
146
|
-
entity: Entity;
|
|
147
|
-
opts?: Partial<EventSystemOptions>;
|
|
148
|
-
}, cb: EventSystemCallback): void;
|
|
149
|
-
/**
|
|
150
|
-
* @public
|
|
151
|
-
* Execute callback when the entity enters the proximity zone of the user
|
|
152
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
153
|
-
* @param cb - Function to execute when event fires
|
|
154
|
-
*/
|
|
155
|
-
onProximityEnter(pointerData: {
|
|
156
|
-
entity: Entity;
|
|
157
|
-
opts?: Partial<EventSystemOptions>;
|
|
158
|
-
}, cb: EventSystemCallback): void;
|
|
159
|
-
/**
|
|
160
|
-
* @public
|
|
161
|
-
* Execute callback when the entity leaves the proximity zone of the user
|
|
162
|
-
* @param pointerData - Entity to attach the callback - Opts to trigger Feedback and Button
|
|
163
|
-
* @param cb - Function to execute when event fires
|
|
164
|
-
*/
|
|
165
|
-
onProximityLeave(pointerData: {
|
|
166
|
-
entity: Entity;
|
|
167
|
-
opts?: Partial<EventSystemOptions>;
|
|
168
|
-
}, cb: EventSystemCallback): void;
|
|
169
104
|
}
|
|
170
105
|
/**
|
|
171
106
|
* @public
|
package/dist/systems/events.js
CHANGED
|
@@ -18,14 +18,12 @@ export function createPointerEventsSystem(engine, inputSystem) {
|
|
|
18
18
|
EventType[EventType["Up"] = 2] = "Up";
|
|
19
19
|
EventType[EventType["HoverEnter"] = 3] = "HoverEnter";
|
|
20
20
|
EventType[EventType["HoverLeave"] = 4] = "HoverLeave";
|
|
21
|
-
EventType[EventType["ProximityEnter"] = 5] = "ProximityEnter";
|
|
22
|
-
EventType[EventType["ProximityLeave"] = 6] = "ProximityLeave";
|
|
23
21
|
})(EventType || (EventType = {}));
|
|
24
22
|
const eventsMap = new Map();
|
|
25
23
|
function getEvent(entity) {
|
|
26
24
|
return eventsMap.get(entity) || eventsMap.set(entity, new Map()).get(entity);
|
|
27
25
|
}
|
|
28
|
-
function setPointerEvent(entity, type, opts
|
|
26
|
+
function setPointerEvent(entity, type, opts) {
|
|
29
27
|
const pointerEvent = PointerEvents.getMutableOrNull(entity) || PointerEvents.create(entity);
|
|
30
28
|
pointerEvent.pointerEvents.push({
|
|
31
29
|
eventType: type,
|
|
@@ -35,19 +33,15 @@ export function createPointerEventsSystem(engine, inputSystem) {
|
|
|
35
33
|
showHighlight: opts.showHighlight,
|
|
36
34
|
hoverText: opts.hoverText,
|
|
37
35
|
maxDistance: opts.maxDistance,
|
|
38
|
-
maxPlayerDistance: opts.maxPlayerDistance
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
interactionType: interactionType ?? 0 /* InteractionType.CURSOR */
|
|
36
|
+
maxPlayerDistance: opts.maxPlayerDistance
|
|
37
|
+
}
|
|
42
38
|
});
|
|
43
39
|
}
|
|
44
|
-
function removePointerEvent(entity, type, button
|
|
40
|
+
function removePointerEvent(entity, type, button) {
|
|
45
41
|
const pointerEvent = PointerEvents.getMutableOrNull(entity);
|
|
46
42
|
if (!pointerEvent)
|
|
47
43
|
return;
|
|
48
|
-
pointerEvent.pointerEvents = pointerEvent.pointerEvents.filter((pointer) => !(pointer.eventInfo?.button === button &&
|
|
49
|
-
pointer.eventType === type &&
|
|
50
|
-
pointer.interactionType === interactionType));
|
|
44
|
+
pointerEvent.pointerEvents = pointerEvent.pointerEvents.filter((pointer) => !(pointer.eventInfo?.button === button && pointer.eventType === type));
|
|
51
45
|
}
|
|
52
46
|
function getPointerEvent(eventType) {
|
|
53
47
|
if (eventType === EventType.Up) {
|
|
@@ -59,15 +53,9 @@ export function createPointerEventsSystem(engine, inputSystem) {
|
|
|
59
53
|
else if (eventType === EventType.HoverEnter) {
|
|
60
54
|
return 2 /* PointerEventType.PET_HOVER_ENTER */;
|
|
61
55
|
}
|
|
62
|
-
else if (eventType === EventType.ProximityEnter) {
|
|
63
|
-
return 4 /* PointerEventType.PET_PROXIMITY_ENTER */;
|
|
64
|
-
}
|
|
65
|
-
else if (eventType === EventType.ProximityLeave) {
|
|
66
|
-
return 5 /* PointerEventType.PET_PROXIMITY_LEAVE */;
|
|
67
|
-
}
|
|
68
56
|
return 1 /* PointerEventType.PET_DOWN */;
|
|
69
57
|
}
|
|
70
|
-
function removeEvent(entity, type
|
|
58
|
+
function removeEvent(entity, type) {
|
|
71
59
|
const event = getEvent(entity);
|
|
72
60
|
const pointerEvent = event.get(type);
|
|
73
61
|
if (pointerEvent?.opts.hoverText) {
|
|
@@ -90,9 +78,7 @@ export function createPointerEventsSystem(engine, inputSystem) {
|
|
|
90
78
|
if (eventType === EventType.Down ||
|
|
91
79
|
eventType === EventType.Up ||
|
|
92
80
|
eventType === EventType.HoverEnter ||
|
|
93
|
-
eventType === EventType.HoverLeave
|
|
94
|
-
eventType === EventType.ProximityEnter ||
|
|
95
|
-
eventType === EventType.ProximityLeave) {
|
|
81
|
+
eventType === EventType.HoverLeave) {
|
|
96
82
|
const command = inputSystem.getInputCommand(opts.button, getPointerEvent(eventType), entity);
|
|
97
83
|
if (command) {
|
|
98
84
|
checkNotThenable(cb(command), 'Event handler returned a thenable. Only synchronous functions are allowed');
|
|
@@ -139,38 +125,6 @@ export function createPointerEventsSystem(engine, inputSystem) {
|
|
|
139
125
|
getEvent(entity).set(EventType.HoverLeave, { cb, opts: options });
|
|
140
126
|
setPointerEvent(entity, 3 /* PointerEventType.PET_HOVER_LEAVE */, options);
|
|
141
127
|
};
|
|
142
|
-
const onProximityDown = (...args) => {
|
|
143
|
-
const [data, cb] = args;
|
|
144
|
-
const { entity, opts } = data;
|
|
145
|
-
const options = getDefaultOpts(opts);
|
|
146
|
-
removeEvent(entity, EventType.Down, 1 /* InteractionType.PROXIMITY */);
|
|
147
|
-
getEvent(entity).set(EventType.Down, { cb, opts: options });
|
|
148
|
-
setPointerEvent(entity, 1 /* PointerEventType.PET_DOWN */, options, 1 /* InteractionType.PROXIMITY */);
|
|
149
|
-
};
|
|
150
|
-
const onProximityUp = (...args) => {
|
|
151
|
-
const [data, cb] = args;
|
|
152
|
-
const { entity, opts } = data;
|
|
153
|
-
const options = getDefaultOpts(opts);
|
|
154
|
-
removeEvent(entity, EventType.Up, 1 /* InteractionType.PROXIMITY */);
|
|
155
|
-
getEvent(entity).set(EventType.Up, { cb, opts: options });
|
|
156
|
-
setPointerEvent(entity, 0 /* PointerEventType.PET_UP */, options, 1 /* InteractionType.PROXIMITY */);
|
|
157
|
-
};
|
|
158
|
-
const onProximityEnter = (...args) => {
|
|
159
|
-
const [data, cb] = args;
|
|
160
|
-
const { entity, opts } = data;
|
|
161
|
-
const options = getDefaultOpts(opts);
|
|
162
|
-
removeEvent(entity, EventType.ProximityEnter, 1 /* InteractionType.PROXIMITY */);
|
|
163
|
-
getEvent(entity).set(EventType.ProximityEnter, { cb, opts: options });
|
|
164
|
-
setPointerEvent(entity, 4 /* PointerEventType.PET_PROXIMITY_ENTER */, options, 1 /* InteractionType.PROXIMITY */);
|
|
165
|
-
};
|
|
166
|
-
const onProximityLeave = (...args) => {
|
|
167
|
-
const [data, cb] = args;
|
|
168
|
-
const { entity, opts } = data;
|
|
169
|
-
const options = getDefaultOpts(opts);
|
|
170
|
-
removeEvent(entity, EventType.ProximityLeave, 1 /* InteractionType.PROXIMITY */);
|
|
171
|
-
getEvent(entity).set(EventType.ProximityLeave, { cb, opts: options });
|
|
172
|
-
setPointerEvent(entity, 5 /* PointerEventType.PET_PROXIMITY_LEAVE */, options, 1 /* InteractionType.PROXIMITY */);
|
|
173
|
-
};
|
|
174
128
|
return {
|
|
175
129
|
removeOnClick(entity) {
|
|
176
130
|
removeEvent(entity, EventType.Click);
|
|
@@ -187,18 +141,6 @@ export function createPointerEventsSystem(engine, inputSystem) {
|
|
|
187
141
|
removeOnPointerHoverLeave(entity) {
|
|
188
142
|
removeEvent(entity, EventType.HoverLeave);
|
|
189
143
|
},
|
|
190
|
-
removeOnProximityDown(entity) {
|
|
191
|
-
removeEvent(entity, EventType.Down, 1 /* InteractionType.PROXIMITY */);
|
|
192
|
-
},
|
|
193
|
-
removeOnProximityUp(entity) {
|
|
194
|
-
removeEvent(entity, EventType.Up, 1 /* InteractionType.PROXIMITY */);
|
|
195
|
-
},
|
|
196
|
-
removeOnProximityEnter(entity) {
|
|
197
|
-
removeEvent(entity, EventType.ProximityEnter, 1 /* InteractionType.PROXIMITY */);
|
|
198
|
-
},
|
|
199
|
-
removeOnProximityLeave(entity) {
|
|
200
|
-
removeEvent(entity, EventType.ProximityLeave, 1 /* InteractionType.PROXIMITY */);
|
|
201
|
-
},
|
|
202
144
|
onClick(value, cb) {
|
|
203
145
|
const { entity } = value;
|
|
204
146
|
const options = getDefaultOpts(value.opts);
|
|
@@ -211,10 +153,6 @@ export function createPointerEventsSystem(engine, inputSystem) {
|
|
|
211
153
|
onPointerDown,
|
|
212
154
|
onPointerUp,
|
|
213
155
|
onPointerHoverEnter,
|
|
214
|
-
onPointerHoverLeave
|
|
215
|
-
onProximityDown,
|
|
216
|
-
onProximityUp,
|
|
217
|
-
onProximityEnter,
|
|
218
|
-
onProximityLeave
|
|
156
|
+
onPointerHoverLeave
|
|
219
157
|
};
|
|
220
158
|
}
|
|
@@ -33,7 +33,6 @@ exports.coreComponentMappings = {
|
|
|
33
33
|
"core::MeshCollider": 1019,
|
|
34
34
|
"core::MeshRenderer": 1018,
|
|
35
35
|
"core::NftShape": 1040,
|
|
36
|
-
"core::ParticleSystem": 1217,
|
|
37
36
|
"core::PhysicsCombinedForce": 1216,
|
|
38
37
|
"core::PhysicsCombinedImpulse": 1215,
|
|
39
38
|
"core::PlayerIdentityData": 1089,
|
|
@@ -22,7 +22,6 @@ import { PBInputModifier } from './pb/decentraland/sdk/components/input_modifier
|
|
|
22
22
|
import { PBLightSource } from './pb/decentraland/sdk/components/light_source.gen';
|
|
23
23
|
import { PBMainCamera } from './pb/decentraland/sdk/components/main_camera.gen';
|
|
24
24
|
import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
25
|
-
import { PBParticleSystem } from './pb/decentraland/sdk/components/particle_system.gen';
|
|
26
25
|
import { PBPhysicsCombinedForce } from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
27
26
|
import { PBPhysicsCombinedImpulse } from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
28
27
|
import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
@@ -73,7 +72,6 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
73
72
|
/** @public */ export declare const LightSource: LastWriteWinElementSetComponentDefinition<PBLightSource>;
|
|
74
73
|
/** @public */ export declare const MainCamera: LastWriteWinElementSetComponentDefinition<PBMainCamera>;
|
|
75
74
|
/** @public */ export declare const NftShape: LastWriteWinElementSetComponentDefinition<PBNftShape>;
|
|
76
|
-
/** @public */ export declare const ParticleSystem: LastWriteWinElementSetComponentDefinition<PBParticleSystem>;
|
|
77
75
|
/** @public */ export declare const PhysicsCombinedForce: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>;
|
|
78
76
|
/** @public */ export declare const PhysicsCombinedImpulse: LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>;
|
|
79
77
|
/** @public */ export declare const PlayerIdentityData: LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>;
|
|
@@ -26,8 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TriggerAreaResult = exports.TriggerArea = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.
|
|
30
|
-
exports.VisibilityComponent = void 0;
|
|
29
|
+
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TriggerAreaResult = exports.TriggerArea = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.NftShape = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AssetLoadLoadingState = exports.AssetLoad = void 0;
|
|
31
30
|
const initialization_1 = require("../../runtime/initialization");
|
|
32
31
|
const components = __importStar(require("./index.gen"));
|
|
33
32
|
__exportStar(require("./index.gen"), exports);
|
|
@@ -53,7 +52,6 @@ __exportStar(require("./index.gen"), exports);
|
|
|
53
52
|
/** @public */ exports.LightSource = components.LightSource(initialization_1.engine);
|
|
54
53
|
/** @public */ exports.MainCamera = components.MainCamera(initialization_1.engine);
|
|
55
54
|
/** @public */ exports.NftShape = components.NftShape(initialization_1.engine);
|
|
56
|
-
/** @public */ exports.ParticleSystem = components.ParticleSystem(initialization_1.engine);
|
|
57
55
|
/** @public */ exports.PhysicsCombinedForce = components.PhysicsCombinedForce(initialization_1.engine);
|
|
58
56
|
/** @public */ exports.PhysicsCombinedImpulse = components.PhysicsCombinedImpulse(initialization_1.engine);
|
|
59
57
|
/** @public */ exports.PlayerIdentityData = components.PlayerIdentityData(initialization_1.engine);
|
|
@@ -26,7 +26,6 @@ import { PBMaterial } from './pb/decentraland/sdk/components/material.gen';
|
|
|
26
26
|
import { PBMeshCollider } from './pb/decentraland/sdk/components/mesh_collider.gen';
|
|
27
27
|
import { PBMeshRenderer } from './pb/decentraland/sdk/components/mesh_renderer.gen';
|
|
28
28
|
import { PBNftShape } from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
29
|
-
import { PBParticleSystem } from './pb/decentraland/sdk/components/particle_system.gen';
|
|
30
29
|
import { PBPhysicsCombinedForce } from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
31
30
|
import { PBPhysicsCombinedImpulse } from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
32
31
|
import { PBPlayerIdentityData } from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
@@ -82,7 +81,6 @@ export * from './pb/decentraland/sdk/components/material.gen';
|
|
|
82
81
|
export * from './pb/decentraland/sdk/components/mesh_collider.gen';
|
|
83
82
|
export * from './pb/decentraland/sdk/components/mesh_renderer.gen';
|
|
84
83
|
export * from './pb/decentraland/sdk/components/nft_shape.gen';
|
|
85
|
-
export * from './pb/decentraland/sdk/components/particle_system.gen';
|
|
86
84
|
export * from './pb/decentraland/sdk/components/physics_combined_force.gen';
|
|
87
85
|
export * from './pb/decentraland/sdk/components/physics_combined_impulse.gen';
|
|
88
86
|
export * from './pb/decentraland/sdk/components/player_identity_data.gen';
|
|
@@ -140,7 +138,6 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
140
138
|
/** @public */ export declare const MeshCollider: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
141
139
|
/** @public */ export declare const MeshRenderer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
142
140
|
/** @public */ export declare const NftShape: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
143
|
-
/** @public */ export declare const ParticleSystem: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBParticleSystem>>;
|
|
144
141
|
/** @public */ export declare const PhysicsCombinedForce: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
145
142
|
/** @public */ export declare const PhysicsCombinedImpulse: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
146
143
|
/** @public */ export declare const PlayerIdentityData: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
@@ -198,7 +195,6 @@ export declare const componentDefinitionByName: {
|
|
|
198
195
|
"core::MeshCollider": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshCollider>>;
|
|
199
196
|
"core::MeshRenderer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBMeshRenderer>>;
|
|
200
197
|
"core::NftShape": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBNftShape>>;
|
|
201
|
-
"core::ParticleSystem": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBParticleSystem>>;
|
|
202
198
|
"core::PhysicsCombinedForce": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedForce>>;
|
|
203
199
|
"core::PhysicsCombinedImpulse": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPhysicsCombinedImpulse>>;
|
|
204
200
|
"core::PlayerIdentityData": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBPlayerIdentityData>>;
|
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.Tween = exports.TriggerAreaResult = exports.TriggerArea = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.
|
|
18
|
-
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform =
|
|
17
|
+
exports.UiText = exports.UiInputResult = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.Tween = exports.TriggerAreaResult = exports.TriggerArea = exports.TextShape = exports.SkyboxTime = exports.RealmInfo = exports.RaycastResult = exports.Raycast = exports.PrimaryPointerInfo = exports.PointerLock = exports.PointerEventsResult = exports.PointerEvents = exports.PlayerIdentityData = exports.PhysicsCombinedImpulse = exports.PhysicsCombinedForce = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarModifierArea = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AssetLoadLoadingState = exports.AssetLoad = exports.Animator = void 0;
|
|
18
|
+
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = void 0;
|
|
19
19
|
const Animator_gen_1 = require("./Animator.gen");
|
|
20
20
|
const AssetLoad_gen_1 = require("./AssetLoad.gen");
|
|
21
21
|
const AssetLoadLoadingState_gen_1 = require("./AssetLoadLoadingState.gen");
|
|
@@ -42,7 +42,6 @@ const Material_gen_1 = require("./Material.gen");
|
|
|
42
42
|
const MeshCollider_gen_1 = require("./MeshCollider.gen");
|
|
43
43
|
const MeshRenderer_gen_1 = require("./MeshRenderer.gen");
|
|
44
44
|
const NftShape_gen_1 = require("./NftShape.gen");
|
|
45
|
-
const ParticleSystem_gen_1 = require("./ParticleSystem.gen");
|
|
46
45
|
const PhysicsCombinedForce_gen_1 = require("./PhysicsCombinedForce.gen");
|
|
47
46
|
const PhysicsCombinedImpulse_gen_1 = require("./PhysicsCombinedImpulse.gen");
|
|
48
47
|
const PlayerIdentityData_gen_1 = require("./PlayerIdentityData.gen");
|
|
@@ -98,7 +97,6 @@ __exportStar(require("./pb/decentraland/sdk/components/material.gen"), exports);
|
|
|
98
97
|
__exportStar(require("./pb/decentraland/sdk/components/mesh_collider.gen"), exports);
|
|
99
98
|
__exportStar(require("./pb/decentraland/sdk/components/mesh_renderer.gen"), exports);
|
|
100
99
|
__exportStar(require("./pb/decentraland/sdk/components/nft_shape.gen"), exports);
|
|
101
|
-
__exportStar(require("./pb/decentraland/sdk/components/particle_system.gen"), exports);
|
|
102
100
|
__exportStar(require("./pb/decentraland/sdk/components/physics_combined_force.gen"), exports);
|
|
103
101
|
__exportStar(require("./pb/decentraland/sdk/components/physics_combined_impulse.gen"), exports);
|
|
104
102
|
__exportStar(require("./pb/decentraland/sdk/components/player_identity_data.gen"), exports);
|
|
@@ -212,9 +210,6 @@ exports.MeshRenderer = MeshRenderer;
|
|
|
212
210
|
/** @public */ const NftShape = engine =>
|
|
213
211
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::NftShape", NftShape_gen_1.NftShapeSchema);
|
|
214
212
|
exports.NftShape = NftShape;
|
|
215
|
-
/** @public */ const ParticleSystem = engine =>
|
|
216
|
-
/* @__PURE__ */ engine.defineComponentFromSchema("core::ParticleSystem", ParticleSystem_gen_1.ParticleSystemSchema);
|
|
217
|
-
exports.ParticleSystem = ParticleSystem;
|
|
218
213
|
/** @public */ const PhysicsCombinedForce = engine =>
|
|
219
214
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::PhysicsCombinedForce", PhysicsCombinedForce_gen_1.PhysicsCombinedForceSchema);
|
|
220
215
|
exports.PhysicsCombinedForce = PhysicsCombinedForce;
|
|
@@ -336,7 +331,6 @@ exports.componentDefinitionByName = {
|
|
|
336
331
|
"core::MeshCollider": exports.MeshCollider,
|
|
337
332
|
"core::MeshRenderer": exports.MeshRenderer,
|
|
338
333
|
"core::NftShape": exports.NftShape,
|
|
339
|
-
"core::ParticleSystem": exports.ParticleSystem,
|
|
340
334
|
"core::PhysicsCombinedForce": exports.PhysicsCombinedForce,
|
|
341
335
|
"core::PhysicsCombinedImpulse": exports.PhysicsCombinedImpulse,
|
|
342
336
|
"core::PlayerIdentityData": exports.PlayerIdentityData,
|