@dcl/ecs 7.29.1-35862852104.commit-1f44e80 → 7.29.1-35917671376.commit-046b268
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/ExplorerItemPurchaseResult.gen.d.ts +1 -0
- package/dist/components/generated/ExplorerItemPurchaseResult.gen.js +25 -0
- package/dist/components/generated/component-names.gen.js +1 -0
- package/dist/components/generated/global.gen.d.ts +2 -0
- package/dist/components/generated/global.gen.js +1 -0
- package/dist/components/generated/index.gen.d.ts +4 -0
- package/dist/components/generated/index.gen.js +7 -0
- package/dist/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.d.ts +4 -2
- package/dist/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.js +3 -1
- package/dist/components/generated/pb/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +68 -0
- package/dist/components/generated/pb/decentraland/sdk/components/explorer_item_purchase_result.gen.js +184 -0
- package/dist/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +8 -3
- package/dist/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.js +10 -1
- package/dist/components/index.d.ts +0 -5
- package/dist/components/index.js +2 -5
- package/dist/components/manual/Transform.d.ts +0 -9
- package/dist/components/manual/Transform.js +3 -3
- package/dist/components/types.d.ts +0 -1
- package/dist/engine/component.d.ts +1 -52
- package/dist/engine/grow-only-value-set-component-definition.js +2 -45
- package/dist/engine/lww-element-set-component-definition.d.ts +1 -3
- package/dist/engine/lww-element-set-component-definition.js +13 -68
- package/dist/index.d.ts +1 -2
- package/dist/index.js +0 -1
- package/dist/serialization/crdt/index.d.ts +0 -1
- package/dist/serialization/crdt/index.js +0 -1
- package/dist/serialization/crdt/network/utils.d.ts +9 -0
- package/dist/serialization/crdt/network/utils.js +60 -0
- package/dist/serialization/crdt/types.d.ts +3 -25
- package/dist/serialization/crdt/types.js +1 -3
- package/dist/systems/crdt/index.d.ts +1 -0
- package/dist/systems/crdt/index.js +143 -76
- package/dist/systems/crdt/types.d.ts +0 -10
- package/dist-cjs/components/generated/ExplorerItemPurchaseResult.gen.d.ts +1 -0
- package/dist-cjs/components/generated/ExplorerItemPurchaseResult.gen.js +28 -0
- package/dist-cjs/components/generated/component-names.gen.js +1 -0
- package/dist-cjs/components/generated/global.gen.d.ts +2 -0
- package/dist-cjs/components/generated/global.gen.js +3 -2
- package/dist-cjs/components/generated/index.gen.d.ts +4 -0
- package/dist-cjs/components/generated/index.gen.js +10 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.d.ts +4 -2
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.js +3 -1
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_item_purchase_result.gen.d.ts +68 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_item_purchase_result.gen.js +190 -0
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.d.ts +8 -3
- package/dist-cjs/components/generated/pb/decentraland/sdk/components/explorer_ui_events_result.gen.js +10 -1
- package/dist-cjs/components/index.d.ts +0 -5
- package/dist-cjs/components/index.js +3 -7
- package/dist-cjs/components/manual/Transform.d.ts +0 -9
- package/dist-cjs/components/manual/Transform.js +3 -3
- package/dist-cjs/components/types.d.ts +0 -1
- package/dist-cjs/engine/component.d.ts +1 -52
- package/dist-cjs/engine/grow-only-value-set-component-definition.js +1 -44
- package/dist-cjs/engine/lww-element-set-component-definition.d.ts +1 -3
- package/dist-cjs/engine/lww-element-set-component-definition.js +14 -71
- package/dist-cjs/index.d.ts +1 -2
- package/dist-cjs/index.js +1 -2
- package/dist-cjs/serialization/crdt/index.d.ts +0 -1
- package/dist-cjs/serialization/crdt/index.js +0 -1
- package/dist-cjs/serialization/crdt/network/utils.d.ts +9 -0
- package/dist-cjs/serialization/crdt/network/utils.js +67 -0
- package/dist-cjs/serialization/crdt/types.d.ts +3 -25
- package/dist-cjs/serialization/crdt/types.js +1 -3
- package/dist-cjs/systems/crdt/index.d.ts +1 -0
- package/dist-cjs/systems/crdt/index.js +166 -76
- package/dist-cjs/systems/crdt/types.d.ts +0 -10
- package/package.json +2 -2
- package/dist/components/manual/CreatedBy.d.ts +0 -9
- package/dist/components/manual/CreatedBy.js +0 -8
- package/dist/serialization/crdt/authoritativePutComponent.d.ts +0 -15
- package/dist/serialization/crdt/authoritativePutComponent.js +0 -47
- package/dist-cjs/components/manual/CreatedBy.d.ts +0 -9
- package/dist-cjs/components/manual/CreatedBy.js +0 -10
- package/dist-cjs/serialization/crdt/authoritativePutComponent.d.ts +0 -15
- package/dist-cjs/serialization/crdt/authoritativePutComponent.js +0 -50
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import { EntityState } from '../../engine/entity';
|
|
2
2
|
import { ReadWriteByteBuffer } from '../../serialization/ByteBuffer';
|
|
3
|
-
import { AppendValueOperation, CrdtMessageProtocol } from '../../serialization/crdt';
|
|
3
|
+
import { AppendValueOperation, CrdtMessageProtocol, DeleteComponentNetwork, DeleteEntityNetwork } 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';
|
|
8
7
|
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;
|
|
9
13
|
/**
|
|
10
14
|
* @internal
|
|
11
15
|
*/
|
|
12
16
|
export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
13
17
|
const transports = [];
|
|
14
|
-
//
|
|
18
|
+
// Components that we used on this system
|
|
19
|
+
const NetworkEntity = defineNetworkEntity(engine);
|
|
20
|
+
const NetworkParent = defineNetworkParent(engine);
|
|
21
|
+
const Transform = defineTransform(engine);
|
|
15
22
|
// Messages that we received at transport.onMessage waiting to be processed
|
|
16
23
|
const receivedMessages = [];
|
|
17
24
|
// Messages already processed by the engine but that we need to broadcast to other transports.
|
|
@@ -36,20 +43,27 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
36
43
|
if (header.type === CrdtMessageType.DELETE_COMPONENT) {
|
|
37
44
|
message = DeleteComponent.read(buffer);
|
|
38
45
|
}
|
|
46
|
+
else if (header.type === CrdtMessageType.DELETE_COMPONENT_NETWORK) {
|
|
47
|
+
message = DeleteComponentNetwork.read(buffer);
|
|
48
|
+
}
|
|
39
49
|
else if (header.type === CrdtMessageType.PUT_COMPONENT) {
|
|
40
50
|
message = PutComponentOperation.read(buffer);
|
|
41
51
|
}
|
|
42
|
-
else if (header.type === CrdtMessageType.
|
|
43
|
-
message =
|
|
52
|
+
else if (header.type === CrdtMessageType.PUT_COMPONENT_NETWORK) {
|
|
53
|
+
message = PutNetworkComponentOperation.read(buffer);
|
|
44
54
|
}
|
|
45
55
|
else if (header.type === CrdtMessageType.DELETE_ENTITY) {
|
|
46
56
|
message = DeleteEntity.read(buffer);
|
|
47
57
|
}
|
|
58
|
+
else if (header.type === CrdtMessageType.DELETE_ENTITY_NETWORK) {
|
|
59
|
+
message = DeleteEntityNetwork.read(buffer);
|
|
60
|
+
}
|
|
48
61
|
else if (header.type === CrdtMessageType.APPEND_VALUE) {
|
|
49
62
|
message = AppendValueOperation.read(buffer);
|
|
63
|
+
// Unknown message, we skip it
|
|
50
64
|
}
|
|
51
65
|
else {
|
|
52
|
-
//
|
|
66
|
+
// consume the message
|
|
53
67
|
buffer.incrementReadOffset(header.length);
|
|
54
68
|
}
|
|
55
69
|
if (message) {
|
|
@@ -71,12 +85,20 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
71
85
|
return messagesToProcess;
|
|
72
86
|
}
|
|
73
87
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
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
|
|
77
91
|
*/
|
|
78
|
-
function
|
|
79
|
-
|
|
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 };
|
|
80
102
|
}
|
|
81
103
|
/**
|
|
82
104
|
* This fn will be called on every tick.
|
|
@@ -86,68 +108,46 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
86
108
|
const messagesToProcess = getMessages(receivedMessages);
|
|
87
109
|
const entitiesShouldBeCleaned = [];
|
|
88
110
|
for (const msg of messagesToProcess) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
entitiesShouldBeCleaned.push(msg.entityId);
|
|
111
|
+
let { entityId, network } = findNetworkId(msg);
|
|
112
|
+
// We receive a new Entity. Create the localEntity and map it to the NetworkEntity component
|
|
113
|
+
if (networkUtils.isNetworkMessage(msg) && !network) {
|
|
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);
|
|
100
120
|
broadcastMessages.push(msg);
|
|
101
121
|
}
|
|
102
122
|
else {
|
|
103
|
-
const entityState = engine.entityContainer.getEntityState(
|
|
104
|
-
// Skip updates from removed
|
|
123
|
+
const entityState = engine.entityContainer.getEntityState(entityId);
|
|
124
|
+
// Skip updates from removed entityes
|
|
105
125
|
if (entityState === EntityState.Removed)
|
|
106
126
|
continue;
|
|
107
|
-
//
|
|
108
|
-
// which bypasses timestamps entirely) on reserved entities from untrusted
|
|
109
|
-
// transports. Dropping before updateFromCrdt keeps local LWW timestamps
|
|
110
|
-
// unpoisoned by forged high timestamps, and also prevents the
|
|
111
|
-
// unknown-component rebroadcast below from relaying forged reserved-entity
|
|
112
|
-
// data to other transports (including the renderer).
|
|
113
|
-
if (entityState === EntityState.Reserved && !isTrustedForReservedEntities(msg.transportId))
|
|
114
|
-
continue;
|
|
115
|
-
// Entities with unknown state should update its entity state
|
|
127
|
+
// Entities with unknown entities should update its entity state
|
|
116
128
|
if (entityState === EntityState.Unknown) {
|
|
117
|
-
engine.entityContainer.updateUsedEntity(
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
? component.__forceUpdateFromCrdt(msg)
|
|
128
|
-
: component.updateFromCrdt(msg);
|
|
129
|
-
}
|
|
130
|
-
catch (e) {
|
|
131
|
-
console.error('[receiveMessages] ERROR processing message', msg, e);
|
|
132
|
-
return null;
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
const result = tryUpdate();
|
|
136
|
-
if (!result)
|
|
137
|
-
continue;
|
|
138
|
-
const [conflictMessage, value] = result;
|
|
139
|
-
if (!conflictMessage) {
|
|
140
|
-
// Add message to broadcast queue when no conflict
|
|
141
|
-
broadcastMessages.push(msg);
|
|
142
|
-
onProcessEntityComponentChange && onProcessEntityComponentChange(msg.entityId, msg.type, component, value);
|
|
143
|
-
}
|
|
129
|
+
engine.entityContainer.updateUsedEntity(entityId);
|
|
130
|
+
}
|
|
131
|
+
const component = engine.getComponentOrNull(msg.componentId);
|
|
132
|
+
/* istanbul ignore else */
|
|
133
|
+
if (component) {
|
|
134
|
+
if (msg.type === CrdtMessageType.PUT_COMPONENT &&
|
|
135
|
+
component.componentId === Transform.componentId &&
|
|
136
|
+
NetworkEntity.has(entityId) &&
|
|
137
|
+
NetworkParent.has(entityId)) {
|
|
138
|
+
msg.data = networkUtils.fixTransformParent(msg);
|
|
144
139
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
const [conflictMessage, value] = component.updateFromCrdt({ ...msg, entityId });
|
|
141
|
+
if (!conflictMessage) {
|
|
142
|
+
// Add message to transport queue to be processed by others transports
|
|
148
143
|
broadcastMessages.push(msg);
|
|
144
|
+
onProcessEntityComponentChange && onProcessEntityComponentChange(entityId, msg.type, component, value);
|
|
149
145
|
}
|
|
150
146
|
}
|
|
147
|
+
else {
|
|
148
|
+
// TODO: test this line, it is fundammental to make the editor work
|
|
149
|
+
broadcastMessages.push(msg);
|
|
150
|
+
}
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
// the last stage of the syncrhonization is to delete the entities
|
|
@@ -161,17 +161,16 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* Iterates the dirty map and generates crdt messages to be send
|
|
165
165
|
*/
|
|
166
166
|
async function sendMessages(entitiesDeletedThisTick) {
|
|
167
|
-
//
|
|
167
|
+
// CRDT Messages will be the merge between the recieved transport messages and the new crdt messages
|
|
168
168
|
const crdtMessages = getMessages(broadcastMessages);
|
|
169
169
|
const buffer = new ReadWriteByteBuffer();
|
|
170
|
-
// Generate CRDT messages from component updates
|
|
171
170
|
for (const component of engine.componentsIter()) {
|
|
172
171
|
for (const message of component.getCrdtUpdates()) {
|
|
173
172
|
const offset = buffer.currentWriteOffset();
|
|
174
|
-
//
|
|
173
|
+
// Avoid creating messages if there is no transport that will handle it
|
|
175
174
|
if (transports.some((t) => t.filter(message))) {
|
|
176
175
|
if (message.type === CrdtMessageType.PUT_COMPONENT) {
|
|
177
176
|
PutComponentOperation.write(message.entityId, message.timestamp, message.componentId, message.data, buffer);
|
|
@@ -195,7 +194,7 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
195
194
|
}
|
|
196
195
|
}
|
|
197
196
|
}
|
|
198
|
-
//
|
|
197
|
+
// After all updates, I execute the DeletedEntity messages
|
|
199
198
|
for (const entityId of entitiesDeletedThisTick) {
|
|
200
199
|
const offset = buffer.currentWriteOffset();
|
|
201
200
|
DeleteEntity.write(entityId, buffer);
|
|
@@ -206,19 +205,87 @@ export function crdtSceneSystem(engine, onProcessEntityComponentChange) {
|
|
|
206
205
|
});
|
|
207
206
|
onProcessEntityComponentChange && onProcessEntityComponentChange(entityId, CrdtMessageType.DELETE_ENTITY);
|
|
208
207
|
}
|
|
209
|
-
//
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
// Send CRDT messages to transports
|
|
209
|
+
const transportBuffer = new ReadWriteByteBuffer();
|
|
210
|
+
for (const index in transports) {
|
|
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
|
|
212
220
|
for (const message of crdtMessages) {
|
|
213
221
|
// Avoid echo messages
|
|
214
|
-
if (message.transportId ===
|
|
222
|
+
if (message.transportId === transportIndex)
|
|
215
223
|
continue;
|
|
216
|
-
//
|
|
217
|
-
if (transport.filter(message))
|
|
218
|
-
|
|
224
|
+
// Redundant message for the transport
|
|
225
|
+
if (!transport.filter(message))
|
|
226
|
+
continue;
|
|
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
|
+
}
|
|
219
242
|
}
|
|
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());
|
|
220
286
|
}
|
|
221
|
-
|
|
287
|
+
const message = isNetworkTransport ? __NetworkMessagesBuffer : transportBuffer.toBinary();
|
|
288
|
+
await transport.send(message);
|
|
222
289
|
}
|
|
223
290
|
}
|
|
224
291
|
/**
|
|
@@ -29,14 +29,4 @@ export type Transport = {
|
|
|
29
29
|
onmessage?(message: Uint8Array): void;
|
|
30
30
|
filter(message: Omit<TransportMessage, 'messageBuffer'>): boolean;
|
|
31
31
|
type?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Whether this transport is allowed to mutate reserved-range entities
|
|
34
|
-
* (root/player/camera + avatars, entity number below `RESERVED_STATIC_ENTITIES`).
|
|
35
|
-
* Only the trusted host/renderer transport sets this. An inbound DELETE_ENTITY
|
|
36
|
-
* or component operation (PUT_COMPONENT, DELETE_COMPONENT, APPEND_VALUE,
|
|
37
|
-
* AUTHORITATIVE_PUT_COMPONENT) on a reserved entity from a transport without
|
|
38
|
-
* this flag (a comms peer, or any scene-added transport) is rejected — see
|
|
39
|
-
* `receiveMessages`.
|
|
40
|
-
*/
|
|
41
|
-
allowReservedEntities?: boolean;
|
|
42
32
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExplorerItemPurchaseResultSchema = void 0;
|
|
4
|
+
const explorer_item_purchase_result_gen_1 = require("./pb/decentraland/sdk/components/explorer_item_purchase_result.gen");
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
exports.ExplorerItemPurchaseResultSchema = {
|
|
9
|
+
COMPONENT_ID: 1222,
|
|
10
|
+
serialize(value, builder) {
|
|
11
|
+
const writer = explorer_item_purchase_result_gen_1.PBExplorerItemPurchaseResult.encode(value);
|
|
12
|
+
const buffer = new Uint8Array(writer.finish(), 0, writer.len);
|
|
13
|
+
builder.writeBuffer(buffer, false);
|
|
14
|
+
},
|
|
15
|
+
deserialize(reader) {
|
|
16
|
+
return explorer_item_purchase_result_gen_1.PBExplorerItemPurchaseResult.decode(reader.buffer(), reader.remainingBytes());
|
|
17
|
+
},
|
|
18
|
+
create() {
|
|
19
|
+
// TODO: this is a hack.
|
|
20
|
+
return explorer_item_purchase_result_gen_1.PBExplorerItemPurchaseResult.decode(new Uint8Array());
|
|
21
|
+
},
|
|
22
|
+
jsonSchema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {},
|
|
25
|
+
serializationType: "protocol-buffer",
|
|
26
|
+
protocolBuffer: "PBExplorerItemPurchaseResult"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
@@ -25,6 +25,7 @@ exports.coreComponentMappings = {
|
|
|
25
25
|
"core::CameraMode": 1072,
|
|
26
26
|
"core::CameraModeArea": 1071,
|
|
27
27
|
"core::EngineInfo": 1048,
|
|
28
|
+
"core::ExplorerItemPurchaseResult": 1222,
|
|
28
29
|
"core::ExplorerUiEventsResult": 1220,
|
|
29
30
|
"core::GltfContainer": 1041,
|
|
30
31
|
"core::GltfContainerLoadingState": 1049,
|
|
@@ -18,6 +18,7 @@ import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
|
|
|
18
18
|
import { PBCameraMode } from './pb/decentraland/sdk/components/camera_mode.gen';
|
|
19
19
|
import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
20
20
|
import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
|
|
21
|
+
import { PBExplorerItemPurchaseResult } from './pb/decentraland/sdk/components/explorer_item_purchase_result.gen';
|
|
21
22
|
import { PBExplorerUiEventsResult } from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
|
|
22
23
|
import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
23
24
|
import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
@@ -75,6 +76,7 @@ import { PBVisibilityComponent } from './pb/decentraland/sdk/components/visibili
|
|
|
75
76
|
/** @public */ export declare const CameraMode: LastWriteWinElementSetComponentDefinition<PBCameraMode>;
|
|
76
77
|
/** @public */ export declare const CameraModeArea: LastWriteWinElementSetComponentDefinition<PBCameraModeArea>;
|
|
77
78
|
/** @public */ export declare const EngineInfo: LastWriteWinElementSetComponentDefinition<PBEngineInfo>;
|
|
79
|
+
/** @public */ export declare const ExplorerItemPurchaseResult: GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>;
|
|
78
80
|
/** @public */ export declare const ExplorerUiEventsResult: GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>;
|
|
79
81
|
/** @public */ export declare const GltfContainer: LastWriteWinElementSetComponentDefinition<PBGltfContainer>;
|
|
80
82
|
/** @public */ export declare const GltfContainerLoadingState: LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>;
|
|
@@ -26,8 +26,8 @@ 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.
|
|
30
|
-
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = void 0;
|
|
29
|
+
exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = exports.TweenState = exports.TweenSequence = exports.TriggerAreaResult = exports.TriggerArea = exports.TouchScreenControls = 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.ParticleSystem = exports.NftShape = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.ExplorerUiEventsResult = exports.ExplorerItemPurchaseResult = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarNametag = exports.AvatarModifierArea = exports.AvatarLocomotionSettings = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AudioAnalysis = exports.AssetLoadLoadingState = exports.AssetLoad = void 0;
|
|
30
|
+
exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInputBinding = void 0;
|
|
31
31
|
const initialization_1 = require("../../runtime/initialization");
|
|
32
32
|
const components = __importStar(require("./index.gen"));
|
|
33
33
|
__exportStar(require("./index.gen"), exports);
|
|
@@ -49,6 +49,7 @@ __exportStar(require("./index.gen"), exports);
|
|
|
49
49
|
/** @public */ exports.CameraMode = components.CameraMode(initialization_1.engine);
|
|
50
50
|
/** @public */ exports.CameraModeArea = components.CameraModeArea(initialization_1.engine);
|
|
51
51
|
/** @public */ exports.EngineInfo = components.EngineInfo(initialization_1.engine);
|
|
52
|
+
/** @public */ exports.ExplorerItemPurchaseResult = components.ExplorerItemPurchaseResult(initialization_1.engine);
|
|
52
53
|
/** @public */ exports.ExplorerUiEventsResult = components.ExplorerUiEventsResult(initialization_1.engine);
|
|
53
54
|
/** @public */ exports.GltfContainer = components.GltfContainer(initialization_1.engine);
|
|
54
55
|
/** @public */ exports.GltfContainerLoadingState = components.GltfContainerLoadingState(initialization_1.engine);
|
|
@@ -19,6 +19,7 @@ import { PBBillboard } from './pb/decentraland/sdk/components/billboard.gen';
|
|
|
19
19
|
import { PBCameraMode } from './pb/decentraland/sdk/components/camera_mode.gen';
|
|
20
20
|
import { PBCameraModeArea } from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
21
21
|
import { PBEngineInfo } from './pb/decentraland/sdk/components/engine_info.gen';
|
|
22
|
+
import { PBExplorerItemPurchaseResult } from './pb/decentraland/sdk/components/explorer_item_purchase_result.gen';
|
|
22
23
|
import { PBExplorerUiEventsResult } from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
|
|
23
24
|
import { PBGltfContainer } from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
24
25
|
import { PBGltfContainerLoadingState } from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
@@ -81,6 +82,7 @@ export * from './pb/decentraland/sdk/components/billboard.gen';
|
|
|
81
82
|
export * from './pb/decentraland/sdk/components/camera_mode.gen';
|
|
82
83
|
export * from './pb/decentraland/sdk/components/camera_mode_area.gen';
|
|
83
84
|
export * from './pb/decentraland/sdk/components/engine_info.gen';
|
|
85
|
+
export * from './pb/decentraland/sdk/components/explorer_item_purchase_result.gen';
|
|
84
86
|
export * from './pb/decentraland/sdk/components/explorer_ui_events_result.gen';
|
|
85
87
|
export * from './pb/decentraland/sdk/components/gltf_container.gen';
|
|
86
88
|
export * from './pb/decentraland/sdk/components/gltf_container_loading_state.gen';
|
|
@@ -145,6 +147,7 @@ export type GSetComponentGetter<T extends GrowOnlyValueSetComponentDefinition<an
|
|
|
145
147
|
/** @public */ export declare const CameraMode: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
146
148
|
/** @public */ export declare const CameraModeArea: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
|
147
149
|
/** @public */ export declare const EngineInfo: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
150
|
+
/** @public */ export declare const ExplorerItemPurchaseResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
|
|
148
151
|
/** @public */ export declare const ExplorerUiEventsResult: GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
|
|
149
152
|
/** @public */ export declare const GltfContainer: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
150
153
|
/** @public */ export declare const GltfContainerLoadingState: LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
@@ -209,6 +212,7 @@ export declare const componentDefinitionByName: {
|
|
|
209
212
|
"core::CameraMode": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraMode>>;
|
|
210
213
|
"core::CameraModeArea": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBCameraModeArea>>;
|
|
211
214
|
"core::EngineInfo": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBEngineInfo>>;
|
|
215
|
+
"core::ExplorerItemPurchaseResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerItemPurchaseResult>>;
|
|
212
216
|
"core::ExplorerUiEventsResult": GSetComponentGetter<GrowOnlyValueSetComponentDefinition<PBExplorerUiEventsResult>>;
|
|
213
217
|
"core::GltfContainer": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainer>>;
|
|
214
218
|
"core::GltfContainerLoadingState": LwwComponentGetter<LastWriteWinElementSetComponentDefinition<PBGltfContainerLoadingState>>;
|
|
@@ -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.
|
|
18
|
-
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInputBinding = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = void 0;
|
|
17
|
+
exports.TweenState = exports.TweenSequence = exports.Tween = exports.TriggerAreaResult = exports.TriggerArea = exports.TouchScreenControls = 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.ParticleSystem = exports.NftShape = exports.MeshRenderer = exports.MeshCollider = exports.Material = exports.MainCamera = exports.LightSource = exports.InputModifier = exports.GltfNodeModifiers = exports.GltfContainerLoadingState = exports.GltfContainer = exports.ExplorerUiEventsResult = exports.ExplorerItemPurchaseResult = exports.EngineInfo = exports.CameraModeArea = exports.CameraMode = exports.Billboard = exports.AvatarShape = exports.AvatarNametag = exports.AvatarModifierArea = exports.AvatarLocomotionSettings = exports.AvatarEquippedData = exports.AvatarEmoteCommand = exports.AvatarBase = exports.AvatarAttach = exports.AudioStream = exports.AudioSource = exports.AudioEvent = exports.AudioAnalysis = exports.AssetLoadLoadingState = exports.AssetLoad = exports.Animator = void 0;
|
|
18
|
+
exports.componentDefinitionByName = exports.VisibilityComponent = exports.VirtualCamera = exports.VideoPlayer = exports.VideoEvent = exports.UiTransform = exports.UiText = exports.UiInputResult = exports.UiInputBinding = exports.UiInput = exports.UiDropdownResult = exports.UiDropdown = exports.UiCanvasInformation = exports.UiBackground = 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");
|
|
@@ -35,6 +35,7 @@ const Billboard_gen_1 = require("./Billboard.gen");
|
|
|
35
35
|
const CameraMode_gen_1 = require("./CameraMode.gen");
|
|
36
36
|
const CameraModeArea_gen_1 = require("./CameraModeArea.gen");
|
|
37
37
|
const EngineInfo_gen_1 = require("./EngineInfo.gen");
|
|
38
|
+
const ExplorerItemPurchaseResult_gen_1 = require("./ExplorerItemPurchaseResult.gen");
|
|
38
39
|
const ExplorerUiEventsResult_gen_1 = require("./ExplorerUiEventsResult.gen");
|
|
39
40
|
const GltfContainer_gen_1 = require("./GltfContainer.gen");
|
|
40
41
|
const GltfContainerLoadingState_gen_1 = require("./GltfContainerLoadingState.gen");
|
|
@@ -97,6 +98,7 @@ __exportStar(require("./pb/decentraland/sdk/components/billboard.gen"), exports)
|
|
|
97
98
|
__exportStar(require("./pb/decentraland/sdk/components/camera_mode.gen"), exports);
|
|
98
99
|
__exportStar(require("./pb/decentraland/sdk/components/camera_mode_area.gen"), exports);
|
|
99
100
|
__exportStar(require("./pb/decentraland/sdk/components/engine_info.gen"), exports);
|
|
101
|
+
__exportStar(require("./pb/decentraland/sdk/components/explorer_item_purchase_result.gen"), exports);
|
|
100
102
|
__exportStar(require("./pb/decentraland/sdk/components/explorer_ui_events_result.gen"), exports);
|
|
101
103
|
__exportStar(require("./pb/decentraland/sdk/components/gltf_container.gen"), exports);
|
|
102
104
|
__exportStar(require("./pb/decentraland/sdk/components/gltf_container_loading_state.gen"), exports);
|
|
@@ -203,6 +205,11 @@ exports.CameraModeArea = CameraModeArea;
|
|
|
203
205
|
/** @public */ const EngineInfo = engine =>
|
|
204
206
|
/* @__PURE__ */ engine.defineComponentFromSchema("core::EngineInfo", EngineInfo_gen_1.EngineInfoSchema);
|
|
205
207
|
exports.EngineInfo = EngineInfo;
|
|
208
|
+
/** @public */ const ExplorerItemPurchaseResult = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::ExplorerItemPurchaseResult", ExplorerItemPurchaseResult_gen_1.ExplorerItemPurchaseResultSchema, {
|
|
209
|
+
timestampFunction: (t) => t.timestamp,
|
|
210
|
+
maxElements: 100
|
|
211
|
+
});
|
|
212
|
+
exports.ExplorerItemPurchaseResult = ExplorerItemPurchaseResult;
|
|
206
213
|
/** @public */ const ExplorerUiEventsResult = (engine) => /* @__PURE__ */ engine.defineValueSetComponentFromSchema("core::ExplorerUiEventsResult", ExplorerUiEventsResult_gen_1.ExplorerUiEventsResultSchema, {
|
|
207
214
|
timestampFunction: (t) => t.timestamp,
|
|
208
215
|
maxElements: 100
|
|
@@ -361,6 +368,7 @@ exports.componentDefinitionByName = {
|
|
|
361
368
|
"core::CameraMode": exports.CameraMode,
|
|
362
369
|
"core::CameraModeArea": exports.CameraModeArea,
|
|
363
370
|
"core::EngineInfo": exports.EngineInfo,
|
|
371
|
+
"core::ExplorerItemPurchaseResult": exports.ExplorerItemPurchaseResult,
|
|
364
372
|
"core::ExplorerUiEventsResult": exports.ExplorerUiEventsResult,
|
|
365
373
|
"core::GltfContainer": exports.GltfContainer,
|
|
366
374
|
"core::GltfContainerLoadingState": exports.GltfContainerLoadingState,
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Identifies which
|
|
2
|
+
* Identifies which explorer panel OpenExplorerUi targets. Panels are not all fullscreen.
|
|
3
3
|
* EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -12,5 +12,7 @@ export declare const enum ExplorerUi {
|
|
|
12
12
|
EU_CAMERA_REEL = 3,
|
|
13
13
|
EU_COMMUNITIES = 4,
|
|
14
14
|
EU_PLACES = 5,
|
|
15
|
-
EU_EVENTS = 6
|
|
15
|
+
EU_EVENTS = 6,
|
|
16
|
+
/** EU_ITEM_PURCHASE - the item-purchase confirmation modal; see OpenExplorerUi for its parameters and result component */
|
|
17
|
+
EU_ITEM_PURCHASE = 7
|
|
16
18
|
}
|
package/dist-cjs/components/generated/pb/decentraland/sdk/components/common/explorer_ui.gen.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ExplorerUi = void 0;
|
|
5
5
|
const protobufPackageSarasa = "decentraland.sdk.components.common";
|
|
6
6
|
/**
|
|
7
|
-
* Identifies which
|
|
7
|
+
* Identifies which explorer panel OpenExplorerUi targets. Panels are not all fullscreen.
|
|
8
8
|
* EU_SETTINGS holds 0 so an unset `ui` field defaults to the least-intrusive panel.
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
@@ -19,4 +19,6 @@ var ExplorerUi;
|
|
|
19
19
|
ExplorerUi[ExplorerUi["EU_COMMUNITIES"] = 4] = "EU_COMMUNITIES";
|
|
20
20
|
ExplorerUi[ExplorerUi["EU_PLACES"] = 5] = "EU_PLACES";
|
|
21
21
|
ExplorerUi[ExplorerUi["EU_EVENTS"] = 6] = "EU_EVENTS";
|
|
22
|
+
/** EU_ITEM_PURCHASE - the item-purchase confirmation modal; see OpenExplorerUi for its parameters and result component */
|
|
23
|
+
ExplorerUi[ExplorerUi["EU_ITEM_PURCHASE"] = 7] = "EU_ITEM_PURCHASE";
|
|
22
24
|
})(ExplorerUi = exports.ExplorerUi || (exports.ExplorerUi = {}));
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
/**
|
|
3
|
+
* Grow-only value set appended to the scene root entity.
|
|
4
|
+
* Reports the outcome of an EU_ITEM_PURCHASE flow triggered via OpenExplorerUi.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export interface PBExplorerItemPurchaseResult {
|
|
10
|
+
urn: string;
|
|
11
|
+
/** The scene tick when the event occurred */
|
|
12
|
+
timestamp: number;
|
|
13
|
+
/** The OpenExplorerUiRequest.request_id that caused this event; 0 when the request carried none */
|
|
14
|
+
requestId: number;
|
|
15
|
+
status?: {
|
|
16
|
+
$case: "purchased";
|
|
17
|
+
purchased: PBExplorerItemPurchaseResult_Purchased;
|
|
18
|
+
} | {
|
|
19
|
+
$case: "dismissed";
|
|
20
|
+
dismissed: PBExplorerItemPurchaseResult_Dismissed;
|
|
21
|
+
} | {
|
|
22
|
+
$case: "failed";
|
|
23
|
+
failed: PBExplorerItemPurchaseResult_Failed;
|
|
24
|
+
} | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export interface PBExplorerItemPurchaseResult_Purchased {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
export interface PBExplorerItemPurchaseResult_Dismissed {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export interface PBExplorerItemPurchaseResult_Failed {
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export declare namespace PBExplorerItemPurchaseResult {
|
|
45
|
+
function encode(message: PBExplorerItemPurchaseResult, writer?: _m0.Writer): _m0.Writer;
|
|
46
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export declare namespace PBExplorerItemPurchaseResult_Purchased {
|
|
52
|
+
function encode(_: PBExplorerItemPurchaseResult_Purchased, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Purchased;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
export declare namespace PBExplorerItemPurchaseResult_Dismissed {
|
|
59
|
+
function encode(_: PBExplorerItemPurchaseResult_Dismissed, writer?: _m0.Writer): _m0.Writer;
|
|
60
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Dismissed;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export declare namespace PBExplorerItemPurchaseResult_Failed {
|
|
66
|
+
function encode(_: PBExplorerItemPurchaseResult_Failed, writer?: _m0.Writer): _m0.Writer;
|
|
67
|
+
function decode(input: _m0.Reader | Uint8Array, length?: number): PBExplorerItemPurchaseResult_Failed;
|
|
68
|
+
}
|