Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Commit 8a3997d

Browse files
committed
Upgraded to SpatialOS 10.2.0
1 parent 35b660e commit 8a3997d

File tree

87 files changed

+3083
-1762
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+3083
-1762
lines changed

default_launch.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,27 @@
1919
}
2020
],
2121
"load_balancing": {
22-
"dynamic_loadbalancer": {
23-
"worker_scaler_config": {
24-
"constant_config": {
25-
"num_workers": 2
26-
}
27-
},
28-
"worker_placer_config": {
29-
"random_params": {}
30-
},
31-
"loadbalancer_config": {
32-
"min_range_meters": 500.0,
33-
"max_range_meters": 5000.0,
34-
"speed_meters_per_second": 100.0,
35-
"expansion_time_millis": 60000
36-
}
37-
}
22+
"auto_hex_grid": {
23+
"num_workers": 1
24+
}
3825
}
3926
},
4027
{
4128
"worker_type": "UnityClient",
42-
"permissions": [
43-
{
44-
"all": {}
29+
"permissions": [{
30+
"entity_creation": {
31+
"allow": false
32+
},
33+
"entity_deletion": {
34+
"allow": false
35+
},
36+
"entity_query": {
37+
"allow": true,
38+
"components": [
39+
"*"
40+
]
4541
}
46-
]
42+
}]
4743
}
4844
]
4945
}

schema/improbable/general/WorldTransform.schema

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package improbable.global;
2+
3+
component ClientAuthorityCheck {
4+
// Component ID, unique within the project
5+
id = 1002;
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package improbable.global;
2+
3+
type CreatePlayerRequest {}
4+
type CreatePlayerResponse {}
5+
6+
component PlayerCreation {
7+
// Component ID, unique within the project
8+
id = 1001;
9+
10+
// Command the client sends to the PlayerCreator entity to request a Player entity is created
11+
command CreatePlayerResponse create_player(CreatePlayerRequest);
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package improbable.global;
2+
3+
component WorldTransform {
4+
// Component ID, unique within the project
5+
id = 1004;
6+
7+
// Entity's true transform within the project
8+
EntityPosition position = 1;
9+
uint32 rotation = 2;
10+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package improbable.player;
2+
3+
type ClientDisconnectRequest{}
4+
type ClientDisconnectResponse{}
5+
6+
type HeartbeatRequest{}
7+
type HeartbeatResponse{}
8+
9+
component ClientConnection {
10+
// Component ID, unique within the project
11+
id = 1003;
12+
13+
// Number of client pings that can be missed before the client is assumed disconnected and the Player is deleted
14+
uint32 timeout_beats_remaining = 1;
15+
// Command the client uses to ping the server to indicate its connectivity
16+
command HeartbeatResponse heartbeat(HeartbeatRequest);
17+
// Command the client uses to indicated the user has exited the application
18+
command ClientDisconnectResponse disconnect_client(ClientDisconnectRequest);
19+
}

schema/improbable/player/PlayerLifecycle.schema

Lines changed: 0 additions & 31 deletions
This file was deleted.

schema/improbable/player/Spawner.schema

Lines changed: 0 additions & 21 deletions
This file was deleted.

schema/improbable/ship/ShipControls.schema

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package improbable.ship;
22

33
component ShipControls {
4-
// Schema file ID, unique within the project
4+
// Component ID, unique within the project
55
id = 1000;
66

77
// Exclude this component from spatial finds
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package improbable.terrain;
22

33
component Terrain {
4-
// Schema file ID, unique within the project
5-
id = 1001;
4+
// Component ID, unique within the project
5+
id = 1005;
66
}

0 commit comments

Comments
 (0)