public void SetPlacement(TrackUnlockFlags t, TrackPlacing p) { int tInt = (int)t, c = 0; byte i = 0; while (tInt >> c * 8 > byte.MaxValue) { c++; } while (tInt >> c * 8 + i > 1) { i++; } _circuitstatus[c].SetPlacement(i, p); }
public TrackPlacing GetPlacement(TrackUnlockFlags t) { int tInt = (int)t, c = 0; byte i = 0; while (tInt >> c * 8 > byte.MaxValue) { c++; } while (tInt >> c * 8 + i > 1) { i++; } return(_circuitstatus[c].GetPlacement(i)); }