Пример #1
0
 public LocalContentManager(SK2DGame game)
 {
     _game = game;
     _root = _game.Content.RootDirectory;
     _buckets.Add(typeof(Texture2D), new TextureResourceBucket(game, Path.Combine(_root, "images")));
     _buckets.Add(typeof(string), new TextAssetResouceBucket(game, Path.Combine(_root, "json")));
     _buckets.Add(typeof(SoundEffect), new WaveFileResourceBucket(game, Path.Combine(_root, "audio")));
 }
Пример #2
0
 public TextureResourceBucket(SK2DGame game, string root)
     : base(game, root)
 {
 }
Пример #3
0
 public TextAssetResouceBucket(SK2DGame game, string root)
     : base(game, root)
 {
 }
Пример #4
0
 public WaveFileResourceBucket(SK2DGame game, string root)
     : base(game, root)
 {
 }
Пример #5
0
 public ResourceBucket(SK2DGame game, string root)
 {
     Game = game;
     Root = root;
 }