using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Graphics; using MLEM.Font; using MLEM.Startup; using MLEM.Textures; namespace TouchyTickets { public static class Assets { public static UniformTextureAtlas TilesTexture { get; private set; } public static UniformTextureAtlas AttractionTexture { get; private set; } public static UniformTextureAtlas UiTexture { get; private set; } public static SoundEffect ClickSound { get; private set; } public static SoundEffect PlaceSound { get; private set; } public static SoundEffect BuySound { get; private set; } public static Vector2 TileSize { get; private set; } public static GenericFont Font { get; private set; } public static GenericFont MonospacedFont { get; private set; } public static void Load() { TilesTexture = new UniformTextureAtlas(MlemGame.LoadContent("Textures/Tiles"), 16, 16); AttractionTexture = new UniformTextureAtlas(MlemGame.LoadContent("Textures/Attractions"), 16, 16); UiTexture = new UniformTextureAtlas(MlemGame.LoadContent("Textures/Ui"), 16, 16); ClickSound = MlemGame.LoadContent("Sounds/Click"); PlaceSound = MlemGame.LoadContent("Sounds/Place"); BuySound = MlemGame.LoadContent("Sounds/StarBuy"); TileSize = new Vector2(AttractionTexture.RegionWidth, AttractionTexture.RegionHeight); Font = new GenericSpriteFont(MlemGame.LoadContent("Fonts/" + Localization.Get("Font"))); MonospacedFont = new GenericSpriteFont(MlemGame.LoadContent("Fonts/Monospaced")); } } }