public ScriptLoader(LocationManager loc, CharacterSpriteManager spriteManager, UIManager uiManager, DialogueManager dialogManager, ScriptFileParser fileParser) { l = loc; cs = spriteManager; ui = uiManager; fp = fileParser; dm = dialogManager; }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); //font, has to be moved and modified later; font = Content.Load <SpriteFont>("Arial"); dialogManager = new DialogueManager(GraphicsDevice); locManager = new LocationManager(GraphicsDevice, dialogManager); spriteManager = new CharacterSpriteManager(GraphicsDevice); uiManager = new UIManager(GraphicsDevice); fileParser = new ScriptFileParser(); scriptLoader = new ScriptLoader(locManager, spriteManager, uiManager, dialogManager, fileParser); //load script file string homepath = Environment.GetEnvironmentVariable("homepath"); scriptLoader.loadScript(ConfigurationManager.AppSettings["scriptFilePath"]); }