Example #1
0
        internal static object Read(SubRecordReadContext context)
        {
            var pos = 0;
            var map = new short[16, 16];

            for (var i = 0; i < 16; ++i)
            {
                for (var j = 0; j < 16; ++j)
                {
                    map[i, j] = BitConverter.ToInt16(context.buf, pos); pos += 2;
                }
            }

            var textureMap = new LandTextureMap(map, true);

            textureMap.UnSwizzle();
            return(new LandTextureSubRecord(context.SubRecordName, textureMap));
        }
Example #2
0
 public LandTextureSubRecord(string name, LandTextureMap data) : base(name)
 {
     Data = data;
 }