public TextureLayerEntry(byte[] data)
        {
            using (MemoryStream ms = new MemoryStream(data))
            {
                using (BinaryReader br = new BinaryReader(ms))
                {
                    this.TextureID      = br.ReadUInt32();
                    this.Flags          = (TextureLayerFlags)br.ReadUInt32();
                    this.AlphaMapOffset = br.ReadUInt32();

                    this.EffectID = new UInt16ForeignKey("GroundEffectTexture", "ID", br.ReadUInt16());
                }
            }
        }
        public TextureLayerEntry(byte[] data)
        {
            using (MemoryStream ms = new MemoryStream(data))
            {
                using (BinaryReader br = new BinaryReader(ms))
                {
                    this.TextureID      = br.ReadUInt32();
                    this.Flags          = (TextureLayerFlags)br.ReadUInt32();
                    this.AlphaMapOffset = br.ReadUInt32();

                    this.EffectID = new ForeignKey <ushort>(DatabaseName.GroundEffectTexture, nameof(DBCRecord.ID), br.ReadUInt16());                    // TODO: Implement GroundEffectTextureRecord
                }
            }
        }
 public List<byte> GetAlphaMap(uint MapOffset, TextureLayerFlags LayerFlags, MapChunkFlags MapFlags/*, TerrainTileFlags TileFlags*/)
 {
     return null;
 }
 public IEnumerable <byte> GetAlphaMap(uint mapOffset, TextureLayerFlags layerFlags, MapChunkFlags mapFlags /*, TerrainTileFlags TileFlags*/)
 {
     return(null);
 }
        public TextureLayerEntry(byte[] data)
        {
            using (MemoryStream ms = new MemoryStream(data))
            {
                using (BinaryReader br = new BinaryReader(ms))
                {
                    this.TextureID = br.ReadUInt32();
                    this.Flags = (TextureLayerFlags)br.ReadUInt32();
                    this.AlphaMapOffset = br.ReadUInt32();

                    this.EffectID = new UInt16ForeignKey("GroundEffectTexture", "ID", br.ReadUInt16());
                }
            }
        }
Beispiel #6
0
 public List <byte> GetAlphaMap(uint MapOffset, TextureLayerFlags LayerFlags, MapChunkFlags MapFlags /*, TerrainTileFlags TileFlags*/)
 {
     return(null);
 }