예제 #1
0
            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);
            }
예제 #2
0
            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));
            }