diff --git a/RhythmBullet/Zer01HD/Utilities/ContentSystem/ContentSystem.cs b/RhythmBullet/Zer01HD/Utilities/ContentSystem/ContentSystem.cs index b3df5fc..b3d27a6 100644 --- a/RhythmBullet/Zer01HD/Utilities/ContentSystem/ContentSystem.cs +++ b/RhythmBullet/Zer01HD/Utilities/ContentSystem/ContentSystem.cs @@ -21,7 +21,7 @@ namespace RhythmBullet.Zer01HD.Utilities.ContentSystem readonly Queue queue; Dictionary assets; public readonly Dictionary contentPathModifier; - + float progress; public ContentSystem(ContentManager contentManager) { this.contentManager = contentManager; @@ -93,7 +93,8 @@ namespace RhythmBullet.Zer01HD.Utilities.ContentSystem LoadableContent content = queue.Dequeue(); Load(content.assetName, content.type, content.usePathModifier); tasksCompleted++; - OnProgress(content.assetName, (float)tasksCompleted / totalTasks); + progress = (float)tasksCompleted / totalTasks; + OnProgress(content.assetName, progress); } } } @@ -151,5 +152,13 @@ namespace RhythmBullet.Zer01HD.Utilities.ContentSystem { UpdateEvent?.Invoke(fileName, progress); } + + public float Progress + { + get + { + return progress; + } + } } }