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

Commit

Permalink
Upgraded to SpatialOS 10.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
johnprobable committed Apr 5, 2017
1 parent 35b660e commit 8a3997d
Show file tree
Hide file tree
Showing 87 changed files with 3,083 additions and 1,762 deletions.
36 changes: 16 additions & 20 deletions default_launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,27 @@
}
],
"load_balancing": {
"dynamic_loadbalancer": {
"worker_scaler_config": {
"constant_config": {
"num_workers": 2
}
},
"worker_placer_config": {
"random_params": {}
},
"loadbalancer_config": {
"min_range_meters": 500.0,
"max_range_meters": 5000.0,
"speed_meters_per_second": 100.0,
"expansion_time_millis": 60000
}
}
"auto_hex_grid": {
"num_workers": 1
}
}
},
{
"worker_type": "UnityClient",
"permissions": [
{
"all": {}
"permissions": [{
"entity_creation": {
"allow": false
},
"entity_deletion": {
"allow": false
},
"entity_query": {
"allow": true,
"components": [
"*"
]
}
]
}]
}
]
}
10 changes: 0 additions & 10 deletions schema/improbable/general/WorldTransform.schema

This file was deleted.

6 changes: 6 additions & 0 deletions schema/improbable/global/ClientAuthorityCheck.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package improbable.global;

component ClientAuthorityCheck {
// Component ID, unique within the project
id = 1002;
}
12 changes: 12 additions & 0 deletions schema/improbable/global/PlayerCreation.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package improbable.global;

type CreatePlayerRequest {}
type CreatePlayerResponse {}

component PlayerCreation {
// Component ID, unique within the project
id = 1001;

// Command the client sends to the PlayerCreator entity to request a Player entity is created
command CreatePlayerResponse create_player(CreatePlayerRequest);
}
10 changes: 10 additions & 0 deletions schema/improbable/global/WorldTransform.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package improbable.global;

component WorldTransform {
// Component ID, unique within the project
id = 1004;

// Entity's true transform within the project
EntityPosition position = 1;
uint32 rotation = 2;
}
19 changes: 19 additions & 0 deletions schema/improbable/player/ClientConnection.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package improbable.player;

type ClientDisconnectRequest{}
type ClientDisconnectResponse{}

type HeartbeatRequest{}
type HeartbeatResponse{}

component ClientConnection {
// Component ID, unique within the project
id = 1003;

// Number of client pings that can be missed before the client is assumed disconnected and the Player is deleted
uint32 timeout_beats_remaining = 1;
// Command the client uses to ping the server to indicate its connectivity
command HeartbeatResponse heartbeat(HeartbeatRequest);
// Command the client uses to indicated the user has exited the application
command ClientDisconnectResponse disconnect_client(ClientDisconnectRequest);
}
31 changes: 0 additions & 31 deletions schema/improbable/player/PlayerLifecycle.schema

This file was deleted.

21 changes: 0 additions & 21 deletions schema/improbable/player/Spawner.schema

This file was deleted.

2 changes: 1 addition & 1 deletion schema/improbable/ship/ShipControls.schema
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package improbable.ship;

component ShipControls {
// Schema file ID, unique within the project
// Component ID, unique within the project
id = 1000;

// Exclude this component from spatial finds
Expand Down
4 changes: 2 additions & 2 deletions schema/improbable/terrain/Terrain.schema
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package improbable.terrain;

component Terrain {
// Schema file ID, unique within the project
id = 1001;
// Component ID, unique within the project
id = 1005;
}
Binary file modified snapshots/default.snapshot
Binary file not shown.
6 changes: 3 additions & 3 deletions spatialos.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "your_project_name_here",
"project_version": "0.0.1",
"sdk_version": "10.1.0",
"project_version": "1.0.0",
"sdk_version": "10.2.0",
"dependencies": [
{"name": "WorkerSdkSchema", "version": "10.1.0"}
{"name": "WorkerSdkSchema", "version": "10.2.0"}
]
}
Loading

0 comments on commit 8a3997d

Please sign in to comment.