public TagEntry(EndianStream stream, Tag mapTags) { PlacedItems = new List<ItemPlacementChunk>(); Offset = stream.Position; Ident = stream.ReadInt32(); Tag = mapTags.SearchTags(Ident); RunTimeMinimium = stream.ReadByte(); RunTimeMaximium = stream.ReadByte(); CountOnMap = stream.ReadByte(); DesignTimeMaximium = stream.ReadByte(); Cost = stream.ReadFloat(); }
public ItemPlacementChunk(EndianStream stream) { Offset = stream.Position; ChunkType = (ItemChunkType)stream.ReadInt16(); stream.SeekTo(stream.Position + 0x0A); TagIndex = stream.ReadInt32(); SpawnCoords = new ItemSpawnCoords() { X = stream.ReadFloat(), Y = stream.ReadFloat(), Z = stream.ReadFloat(), Yaw = stream.ReadFloat(), Pitch = stream.ReadFloat(), Roll = stream.ReadFloat() }; stream.SeekTo(stream.Position + 0x16); stream.ReadByte(); Team = stream.ReadByte(); SpareClips = stream.ReadByte(); RespawnTime = stream.ReadByte(); stream.SeekTo(stream.Position + 0x12); }