Exemplo n.º 1
0
 public static void Setup(IAssetLibrary assetLibrary, GameSpecification specification, GraphicsDeviceManager graphics, string devContentPath)
 {
     SoundEffectPlayer = new SoundEffectPlayer(specification.settings);
     Assets            = assetLibrary;
     FileSystem        = new MachinaFileSystem(specification.gameTitle, devContentPath);
     Graphics          = graphics;
 }
Exemplo n.º 2
0
        /// <summary>
        ///     This needs to be Sync because we might do some CleanRandom stuff while we're waiting for the demo to load
        /// </summary>
        /// <param name="demoName"></param>
        public static Demo FromDisk_Sync(string demoName, MachinaFileSystem fileSystem)
        {
            var demoJson = fileSystem.ReadTextAppDataThenLocal(Path.Join("Demos", demoName)).Result;

            return(DecodeRecords(demoJson));
        }