예제 #1
0
 internal void LoadData(BinaryReaderBE reader)
 {
     MissionFlags     = (MissionFlags)reader.ReadInt16();
     EnvironmentFlags = (EnvironmentFlags)reader.ReadInt16();
     EntryPointFlags  = (EntryPointFlags)reader.ReadInt32();
     LevelName        = reader.ReadMacString(MapInfo.LevelNameLength);
 }
예제 #2
0
 void SetEntryPointFlag(EntryPointFlags flag, bool value)
 {
     if (value)
     {
         mapInfo.EntryPointFlags |= flag;
     }
     else
     {
         mapInfo.EntryPointFlags &= ~flag;
     }
 }
예제 #3
0
        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();
        }
예제 #4
0
 bool GetEntryPointFlag(EntryPointFlags flag)
 {
     return((mapInfo.EntryPointFlags & flag) != 0);
 }