internal void LoadData(BinaryReaderBE reader) { MissionFlags = (MissionFlags)reader.ReadInt16(); EnvironmentFlags = (EnvironmentFlags)reader.ReadInt16(); EntryPointFlags = (EntryPointFlags)reader.ReadInt32(); LevelName = reader.ReadMacString(MapInfo.LevelNameLength); }
void SetEntryPointFlag(EntryPointFlags flag, bool value) { if (value) { mapInfo.EntryPointFlags |= flag; } else { mapInfo.EntryPointFlags &= ~flag; } }
public void Load(BinaryReaderBE reader) { Environment = reader.ReadInt16(); PhysicsModel = reader.ReadInt16(); Landscape = reader.ReadInt16(); MissionFlags = (MissionFlags)reader.ReadInt16(); EnvironmentFlags = (EnvironmentFlags)reader.ReadInt16(); reader.BaseStream.Seek(8, SeekOrigin.Current); // unused Name = reader.ReadMacString(LevelNameLength); EntryPointFlags = (EntryPointFlags)reader.ReadInt32(); }
bool GetEntryPointFlag(EntryPointFlags flag) { return((mapInfo.EntryPointFlags & flag) != 0); }