public void SetCurrentMap(SegLoc map) { exitMap(); if (map.IsValid()) { if (map.Segment > -1) { CurrentMap = GetMap(map); } else { CurrentGround = GetGround(map); } } CurrentMapID = map; }
public bool IsValid() { return((ID > -1) && StructID.IsValid()); }