コード例 #1
0
ファイル: M64CopiedFrame.cs プロジェクト: chaosBrick/STROOP
        public M64CopiedFrame(
            sbyte?X      = null,
            sbyte?Y      = null,
            bool?A       = null,
            bool?B       = null,
            bool?Z       = null,
            bool?S       = null,
            bool?R       = null,
            bool?C_Up    = null,
            bool?C_Down  = null,
            bool?C_Left  = null,
            bool?C_Right = null,
            bool?L       = null,
            bool?D_Up    = null,
            bool?D_Down  = null,
            bool?D_Left  = null,
            bool?D_Right = null)
        {
            this.X       = X;
            this.Y       = Y;
            this.A       = A;
            this.B       = B;
            this.Z       = Z;
            this.S       = S;
            this.R       = R;
            this.C_Up    = C_Up;
            this.C_Down  = C_Down;
            this.C_Left  = C_Left;
            this.C_Right = C_Right;
            this.L       = L;
            this.D_Up    = D_Up;
            this.D_Down  = D_Down;
            this.D_Left  = D_Left;
            this.D_Right = D_Right;

            RawValue = M64Utilities.GetRawValueFromInputs(
                X ?? 0,
                Y ?? 0,
                A ?? false,
                B ?? false,
                Z ?? false,
                S ?? false,
                R ?? false,
                C_Up ?? false,
                C_Down ?? false,
                C_Left ?? false,
                C_Right ?? false,
                L ?? false,
                D_Up ?? false,
                D_Down ?? false,
                D_Left ?? false,
                D_Right ?? false);
        }
コード例 #2
0
ファイル: M64CopiedFrame.cs プロジェクト: sticks-stuff/STROOP
        public M64CopiedFrame(
            sbyte?X      = null,
            sbyte?Y      = null,
            bool?A       = null,
            bool?B       = null,
            bool?Z       = null,
            bool?S       = null,
            bool?R       = null,
            bool?C_Up    = null,
            bool?C_Down  = null,
            bool?C_Left  = null,
            bool?C_Right = null,
            bool?L       = null,
            bool?D_Up    = null,
            bool?D_Down  = null,
            bool?D_Left  = null,
            bool?D_Right = null)
        {
            this.X       = X;
            this.Y       = Y;
            this.A       = A;
            this.B       = B;
            this.Z       = Z;
            this.S       = S;
            this.R       = R;
            this.C_Up    = C_Up;
            this.C_Down  = C_Down;
            this.C_Left  = C_Left;
            this.C_Right = C_Right;
            this.L       = L;
            this.D_Up    = D_Up;
            this.D_Down  = D_Down;
            this.D_Left  = D_Left;
            this.D_Right = D_Right;

            RawValue = M64Utilities.GetRawValueFromInputs(
                X.HasValue ? X.Value : (sbyte)0,
                Y.HasValue ? Y.Value : (sbyte)0,
                A.HasValue ? A.Value : false,
                B.HasValue ? B.Value : false,
                Z.HasValue ? Z.Value : false,
                S.HasValue ? S.Value : false,
                R.HasValue ? R.Value : false,
                C_Up.HasValue ? C_Up.Value : false,
                C_Down.HasValue ? C_Down.Value : false,
                C_Left.HasValue ? C_Left.Value : false,
                C_Right.HasValue ? C_Right.Value : false,
                L.HasValue ? L.Value : false,
                D_Up.HasValue ? D_Up.Value : false,
                D_Down.HasValue ? D_Down.Value : false,
                D_Left.HasValue ? D_Left.Value : false,
                D_Right.HasValue ? D_Right.Value : false);
        }