Skip to content

Commit 1d3bca8

Browse files
committed
add network entity
1 parent 451eb6c commit 1d3bca8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
syntax = "proto3";
2+
3+
package decentraland.sdk.components;
4+
5+
import "decentraland/sdk/components/common/id.proto";
6+
option (common.ecs_component_id) = 1078;
7+
8+
/**
9+
* NetworkEntity marks an entity for network synchronization.
10+
11+
* When receiving network messages, to find which local entity they refer to,
12+
* we look for an entity that has both the same networkId and entityId as the message.
13+
*/
14+
message PBNetworkEntity {
15+
// The enumId or local entity ID
16+
uint32 entityId = 1;
17+
18+
// - 0 for fixed entities (created with enumId at initialization)
19+
// - User's address hash for dynamic entities (created at runtime)
20+
uint64 networkId = 2;
21+
}

0 commit comments

Comments
 (0)