Exemple #1
0
        public GamePreset(GameWaymarks waymarks)
        {
            A     = new GamePresetPoint(waymarks.A);
            B     = new GamePresetPoint(waymarks.B);
            C     = new GamePresetPoint(waymarks.C);
            D     = new GamePresetPoint(waymarks.D);
            One   = new GamePresetPoint(waymarks.One);
            Two   = new GamePresetPoint(waymarks.Two);
            Three = new GamePresetPoint(waymarks.Three);
            Four  = new GamePresetPoint(waymarks.Four);

            ActiveMarkers    = new BitField8();
            ActiveMarkers[0] = waymarks.A.Active;
            ActiveMarkers[1] = waymarks.B.Active;
            ActiveMarkers[2] = waymarks.C.Active;
            ActiveMarkers[3] = waymarks.D.Active;
            ActiveMarkers[4] = waymarks.One.Active;
            ActiveMarkers[5] = waymarks.Two.Active;
            ActiveMarkers[6] = waymarks.Three.Active;
            ActiveMarkers[7] = waymarks.Four.Active;

            _reserved = 0;
            ContentFinderConditionID = 0;
            UnixTime = (int)DateTimeOffset.UtcNow.ToUnixTimeSeconds();
        }
Exemple #2
0
        public GamePreset(GamePreset_Placement placementPreset)
        {
            A             = new GamePresetPoint();
            B             = new GamePresetPoint();
            C             = new GamePresetPoint();
            D             = new GamePresetPoint();
            One           = new GamePresetPoint();
            Two           = new GamePresetPoint();
            Three         = new GamePresetPoint();
            Four          = new GamePresetPoint();
            ActiveMarkers = new BitField8();

            A.X = placementPreset.X.A;
            A.Y = placementPreset.Y.A;
            A.Z = placementPreset.Z.A;

            B.X = placementPreset.X.B;
            B.Y = placementPreset.Y.B;
            B.Z = placementPreset.Z.B;

            C.X = placementPreset.X.C;
            C.Y = placementPreset.Y.C;
            C.Z = placementPreset.Z.C;

            D.X = placementPreset.X.D;
            D.Y = placementPreset.Y.D;
            D.Z = placementPreset.Z.D;

            One.X = placementPreset.X.One;
            One.Y = placementPreset.Y.One;
            One.Z = placementPreset.Z.One;

            Two.X = placementPreset.X.Two;
            Two.Y = placementPreset.Y.Two;
            Two.Z = placementPreset.Z.Two;

            Three.X = placementPreset.X.Three;
            Three.Y = placementPreset.Y.Three;
            Three.Z = placementPreset.Z.Three;

            Four.X = placementPreset.X.Four;
            Four.Y = placementPreset.Y.Four;
            Four.Z = placementPreset.Z.Four;

            ActiveMarkers[0] = placementPreset.Active.A;
            ActiveMarkers[1] = placementPreset.Active.B;
            ActiveMarkers[2] = placementPreset.Active.C;
            ActiveMarkers[3] = placementPreset.Active.D;
            ActiveMarkers[4] = placementPreset.Active.One;
            ActiveMarkers[5] = placementPreset.Active.Two;
            ActiveMarkers[6] = placementPreset.Active.Three;
            ActiveMarkers[7] = placementPreset.Active.Four;

            _reserved = 0;
            ContentFinderConditionID = 0;
            UnixTime = (int)DateTimeOffset.UtcNow.ToUnixTimeSeconds();
        }
Exemple #3
0
 public GamePreset_Placement_AxisActive(BitField8 activeMarkers)
 {
     A     = new FakeBool(activeMarkers[0]);
     B     = new FakeBool(activeMarkers[1]);
     C     = new FakeBool(activeMarkers[2]);
     D     = new FakeBool(activeMarkers[3]);
     One   = new FakeBool(activeMarkers[4]);
     Two   = new FakeBool(activeMarkers[5]);
     Three = new FakeBool(activeMarkers[6]);
     Four  = new FakeBool(activeMarkers[7]);
 }