public void CopyFrom(MapObject other) { Type = other.Type; Index = other.Index; facing = other.facing; Z = other.Z; flags = other.flags; }
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(); }
void SetFlag(MapObjectFlags flag, bool value) { if (value) { flags |= flag; } else { flags &= ~flag; } }
bool GetFlag(MapObjectFlags flag) { return((flags & flag) != 0); }