Exemple #1
0
 public void CopyFrom(MapObject other)
 {
     Type   = other.Type;
     Index  = other.Index;
     facing = other.facing;
     Z      = other.Z;
     flags  = other.flags;
 }
Exemple #2
0
 public void Load(BinaryReaderBE reader)
 {
     Type         = (ObjectType)reader.ReadInt16();
     Index        = reader.ReadInt16();
     facing       = reader.ReadInt16();
     PolygonIndex = reader.ReadInt16();
     X            = reader.ReadInt16();
     Y            = reader.ReadInt16();
     Z            = reader.ReadInt16();
     flags        = (MapObjectFlags)reader.ReadUInt16();
 }
Exemple #3
0
 void SetFlag(MapObjectFlags flag, bool value)
 {
     if (value)
     {
         flags |= flag;
     }
     else
     {
         flags &= ~flag;
     }
 }
Exemple #4
0
 bool GetFlag(MapObjectFlags flag)
 {
     return((flags & flag) != 0);
 }