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

Commit f0918f6

Browse files
committed
upgraded to SpatialOS 12.0.4
1 parent 3812d42 commit f0918f6

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

default_launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
},
3232
"loadbalancer_config": {
3333
"min_range_meters": 500.0,
34-
"max_range_meters": 1000.0,
34+
"max_range_meters": 4000.0,
3535
"speed_meters_per_second": 100.0,
36-
"expansion_time_millis": 60000
36+
"expansion_time_millis": 6000
3737
}
3838
}
3939
},

workers/unity/Assets/Gamelogic/HQ/HQSpawnBarracksBehaviour.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private void SpawnUnconstructedBarracksAtRandomLocation()
117117

118118
var teamId = teamAssignment.Data.teamId;
119119
var template = EntityTemplateFactory.CreateBarracksTemplate(spawnPosition.ToCoordinates(), BarracksState.UNDER_CONSTRUCTION, teamId);
120-
SpatialOS.Commands.CreateEntity(hqInfo, template)
120+
SpatialOS.Commands.CreateEntity(hqInfo, template, new System.TimeSpan(0, 0, 30))
121121
.OnFailure(_ =>
122122
{
123123
Debug.LogWarning("HQ failed to spawn barracks due to timeout.");

workers/unity/Assets/Gamelogic/NPC/Lumberjack/LumberjackHarvestingState.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@ private void AttemptToHarvestTree()
7676
if (targetGameObject != null && NPCUtils.IsTargetAHealthyTree(parentBehaviour.gameObject, targetGameObject))
7777
{
7878
SpatialOS.Commands.SendCommand(inventory,
79-
Harvestable.Commands.Harvest.Descriptor,
80-
new HarvestRequest(parentBehaviour.gameObject.EntityId()), Owner.Data.targetEntityId, OnHarvestResponse);
79+
Harvestable.Commands.Harvest.Descriptor,
80+
new HarvestRequest(parentBehaviour.gameObject.EntityId()),
81+
Owner.Data.targetEntityId,
82+
OnHarvestResponse,
83+
new System.TimeSpan(0, 0, 30));
8184
}
8285
else
8386
{

0 commit comments

Comments
 (0)