misc UI stuff, gamesession additions, limbs don't have individual health anymore, background music

This commit is contained in:
Regalis
2015-06-09 18:18:34 +03:00
parent d3896383fd
commit d7fde606e9
50 changed files with 595 additions and 282 deletions
+12 -2
View File
@@ -8,6 +8,8 @@ namespace Subsurface
private float priority;
protected string musicType;
protected TaskManager taskManager;
protected bool isFinished;
@@ -22,14 +24,22 @@ namespace Subsurface
get { return priority; }
}
public string MusicType
{
get { return musicType; }
}
public bool IsFinished
{
get { return isFinished; }
}
public Task(TaskManager taskManager, float priority, string name)
public Task(float priority, string name)
{
this.taskManager = taskManager;
if (Game1.GameSession==null || Game1.GameSession.taskManager == null) return;
taskManager = Game1.GameSession.taskManager;
musicType = "repair";
this.priority = priority;
this.name = name;