public SkyBoxTexture(int apiVersion, EventHandler handler, SkyBoxTextureType type, TGIBlock tgiKey, string texturePath) : base(apiVersion, handler) { this.type = type; this.tgiKey = tgiKey; this.texturePath = texturePath; }
public SkyBoxTexture(int apiVersion, EventHandler handler) : base(apiVersion, handler) { this.type = SkyBoxTextureType.SkyBox_Texture_None; this.tgiKey = new TGIBlock(1, handler); this.texturePath = ""; }
void Parse(Stream s) { var br = new BinaryReader(s); this.type = (SkyBoxTextureType)br.ReadInt32(); this.tgiKey = new TGIBlock(recommendedApiVersion, handler, s); int strCount = br.ReadInt32(); this.texturePath = System.Text.Encoding.Unicode.GetString(br.ReadBytes(strCount * 2)); }