Beispiel #1
0
        public string LightName; // 32, 8.3 is not 0 padded

        public LIT_ListData(BinaryReader br)
        {
            Chunk         = br.ReadStruct <C2iVector>();
            ChunkRadius   = br.ReadInt32();
            LightLocation = br.ReadStruct <C3Vector>();
            LightRadius   = br.ReadSingle();
            LightDropoff  = br.ReadSingle();
            LightName     = br.ReadString(32).TrimEnd('\xFFFD', '\0');
        }
Beispiel #2
0
        public MLIQ(BinaryReader br)
        {
            VertexCount = br.ReadStruct <C2iVector>();
            TileCount   = br.ReadStruct <C2iVector>();
            Corner      = br.ReadStruct <C3Vector>();
            MaterialId  = br.ReadUInt16();

            // HACK
            LiquidVertexList = br.ReadJaggedArray(VertexCount.x, VertexCount.y, () => br.ReadStruct <SMOLVert>());
            LiquidTileList   = br.ReadJaggedArray(TileCount.x, TileCount.y, () => br.ReadStruct <SMOLTile>());
        }