예제 #1
0
        public void InitializeLoaders()
        {
            // all this manipulation of static crap here is nasty and breaks
            // horribly when you use ModData in unexpected ways.
            ChromeMetrics.Initialize(Manifest.ChromeMetrics);
            ChromeProvider.Initialize(Manifest.Chrome);
            VoxelLoader = new VoxelLoader();

            CursorProvider = new CursorProvider(this);
        }
예제 #2
0
        public void InitializeLoaders(IReadOnlyFileSystem fileSystem)
        {
            // all this manipulation of static crap here is nasty and breaks
            // horribly when you use ModData in unexpected ways.
            ChromeMetrics.Initialize(this);
            ChromeProvider.Initialize(this);

            Game.Sound.Initialize(SoundLoaders, fileSystem);

            CursorProvider = new CursorProvider(this);
        }
예제 #3
0
 public void InitializeLoaders()
 {
     // all this manipulation of static crap here is nasty and breaks
     // horribly when you use ModData in unexpected ways.
     ChromeMetrics.Initialize(Manifest.ChromeMetrics);
     ChromeProvider.Initialize(Manifest.Chrome);
     SheetBuilder = new SheetBuilder(SheetType.Indexed);
     SpriteLoader = new SpriteLoader(new string[] { ".shp" }, SheetBuilder);
     VoxelLoader  = new VoxelLoader();
     CursorProvider.Initialize(Manifest.Cursors);
 }
예제 #4
0
        public void LoadInitialAssets()
        {
            // all this manipulation of static crap here is nasty and breaks
            // horribly when you use ModData in unexpected ways.

            FileSystem.UnmountAll();
            foreach (var dir in Manifest.Folders)
            {
                FileSystem.Mount(dir);
            }

            AvailableMaps = FindMaps(Manifest.Mods);

            Palette = new HardwarePalette();
            ChromeMetrics.Initialize(Manifest.ChromeMetrics);
            ChromeProvider.Initialize(Manifest.Chrome);
            SheetBuilder = new SheetBuilder(TextureChannel.Red);
            SpriteLoader = new SpriteLoader(new string[] { ".shp" }, SheetBuilder);
            CursorProvider.Initialize(Manifest.Cursors);
            Palette.Update(new IPaletteModifier[] { });
        }
예제 #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="fileSystem"></param>
 public void InitializeLoaders(IReadOnlyFileSystem fileSystem)
 {
     ChromeMetrics.Initialize(this);
     ChromeProvider.Initialize(this);
     WarGame.Sound.Initialize(SoundLoaders, fileSystem);
 }