A* pathfinding, autopilot, WIP radar rendering, proper location names, character skills shown in menus, got rid of PreviewCharacter, mantis
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Subsurface
|
||||
|
||||
}
|
||||
|
||||
public GameSession(Submarine selectedMap, GameMode gameMode = null)
|
||||
public GameSession(Submarine selectedSub, GameMode gameMode = null)
|
||||
{
|
||||
taskManager = new TaskManager(this);
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Subsurface
|
||||
//startTime = DateTime.Now;
|
||||
//endTime = startTime + gameDuration;
|
||||
|
||||
this.submarine = selectedMap;
|
||||
this.submarine = selectedSub;
|
||||
|
||||
//if (!save) return;
|
||||
|
||||
@@ -134,6 +134,14 @@ namespace Subsurface
|
||||
submarine.SetPosition(level.StartPosition - new Vector2(0.0f, 2000.0f));
|
||||
}
|
||||
|
||||
foreach (Item item in Item.itemList)
|
||||
{
|
||||
foreach (ItemComponent ic in item.components)
|
||||
{
|
||||
ic.OnMapLoaded();
|
||||
}
|
||||
}
|
||||
|
||||
taskManager.StartShift(level);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user