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"))); }
public TextureResourceBucket(SK2DGame game, string root) : base(game, root) { }
public TextAssetResouceBucket(SK2DGame game, string root) : base(game, root) { }
public WaveFileResourceBucket(SK2DGame game, string root) : base(game, root) { }
public ResourceBucket(SK2DGame game, string root) { Game = game; Root = root; }