public bool LocationUndergroundEnter(double timeStamp) { WIActiveState activeState = WIActiveState.Active; if (worlditem.Group.Props.TerrainType == LocationTerrainType.AboveGround) { activeState = WIActiveState.Invisible; } worlditem.ActiveStateLocked = false; worlditem.ActiveState = activeState; worlditem.ActiveStateLocked = true; return(true); }
public bool Is(WIActiveState activeState) { return(Frontiers.Flags.Check((uint)mActiveState, (uint)activeState, Frontiers.Flags.CheckType.MatchAny)); }