public AudioBufferManager(DecoderFactory decoderFactory, Common.IO.FileSystem fileSystem) { if (decoderFactory == null) throw new ArgumentNullException("decoderFactory"); if (fileSystem == null) throw new ArgumentNullException("fileSystem"); DecoderFactory = decoderFactory; FileSystem = fileSystem; Buffers = new Dictionary<string, IAudioBuffer>(); }
public Game(string name, string logPath = "logs/") { Name = name; Triton.Common.Log.AddOutputHandler(new Triton.Common.LogOutputHandlers.Console()); Triton.Common.Log.AddOutputHandler(new Triton.Common.LogOutputHandlers.File(string.Format("{0}/{1}.txt", logPath, name))); FileSystem = new Common.IO.FileSystem(MountFileSystem()); ResourceGroupManager = new Common.ResourceGroupManager(FileSystem); CoreResources = ResourceGroupManager.Add("core"); GameResources = ResourceGroupManager.Add("game"); ResolutionScale = 1.0f; // This is default for obvious reasons }