public override void Load() { this.generalTextures = new Dictionary<PharaohTextureIDs, Texture2D>(); this.sb = new SpriteBatch(this.Game.GraphicsDevice); var container = new ContainerSG3(@"C:\Users\bbdnet6039\Downloads\OpenPharaoh\Pharaoh - Cleopatra\Data\Pharaoh_Unloaded.sg3"); this.generalTextures.Add(PharaohTextureIDs.SPR_TITLE_SCREEN, this.LoadTexture2d(container, 201)); base.Load(); }
/// <summary> /// Loads the texture2d. /// </summary> /// <param name="container">The container.</param> /// <param name="imageIndex">Index of the image.</param> /// <returns>The texture</returns> public Texture2D LoadTexture2d(ContainerSG3 container, int imageIndex) { return container.LoadTexture2d(this.Game.GraphicsDevice, (ushort) imageIndex); }