Server job assigning logic, submarine movement syncing, submarine collision improvements, spawnpoints in levels

This commit is contained in:
Regalis
2015-07-08 11:37:47 +03:00
parent 3af9b8183b
commit d56f7f3f77
155 changed files with 39772 additions and 261 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ namespace Subsurface
foreach (CharacterInfo ci in characterInfos)
{
WayPoint randomWayPoint = WayPoint.GetRandom(WayPoint.SpawnType.Human);
WayPoint randomWayPoint = WayPoint.GetRandom(SpawnType.Human);
Vector2 position = (randomWayPoint == null) ? Vector2.Zero : randomWayPoint.SimPosition;
Character character = new Character(ci.File, position, ci);
+4 -4
View File
@@ -111,14 +111,14 @@ namespace Subsurface
this.savePath = savePath;
}
public void StartShift(TimeSpan duration, string levelSeed, int scriptedEventCount = 1)
public void StartShift(TimeSpan duration, string levelSeed)
{
Level level = Level.CreateRandom(levelSeed);
StartShift(duration, level, scriptedEventCount);
StartShift(duration, level);
}
public void StartShift(TimeSpan duration, Level level, int scriptedEventCount = 1)
public void StartShift(TimeSpan duration, Level level)
{
//if (crewManager.characterInfos.Count == 0) return;
@@ -135,7 +135,7 @@ namespace Subsurface
}
//crewManager.StartShift();
taskManager.StartShift(scriptedEventCount);
taskManager.StartShift(level);
}
public void EndShift(string endMessage)