Exemplo n.º 1
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            Tool.CreateBackground(GraphicsDevice);
            Tool.Font = Content.Load <SpriteFont>("Fonts/default");
            CoreGame.roofTextureData = new TextureData("Content/Sprites/roof.png");

            // Load mods
            ModHandler.LoadMods();
        }
Exemplo n.º 2
0
        public static void ClearContent()
        {
            sprites.Clear();
            spriteNames.Clear();

            soundEffects.Clear();
            soundNames.Clear();

            if (server)
            {
                API.ClaimID("Player", "Content/Sprites/Entities/player.png");
                API.LoadSound("Step", "Content/Sounds/step.wav");
                ModHandler.HandleEvent("LoadContent");
            }
        }