Exemplo n.º 1
0
 public static MetaData CreateFromWorld(WorldManager World)
 {
     return(new MetaData
     {
         TimeOfDay = World.Renderer.Sky.TimeOfDay,
         Time = World.Time,
         Version = Program.Version,
         Commit = Program.Commit,
         RendererSettings = World.Renderer.PersistentSettings,
         DescriptionString = String.Format("World size: {0}x{1}\nDwarves: {2}/{3}\nLiquid Assets: {4}\nMaterial Assets: {5}",
                                           World.WorldSizeInVoxels.X, World.WorldSizeInVoxels.Z,
                                           World.CalculateSupervisedEmployees(), World.CalculateSupervisionCap(),
                                           World.PlayerFaction.Economy.Funds.ToString(),
                                           World.EnumerateResourcesIncludingMinions().Sum(r => r.MoneyValue).ToString())
     });
 }