Пример #1
0
        public string mUserData;                //ユーザーデータ

        /// <summary>
        /// コンストラクタ
        /// </summary>
        public ClsParam()
        {
            this.mDisplayKeyFrame = false;
            this.mDisplay         = (bool)ClsParam.GetDefaultValue(EnmTypeParam.DISPLAY);

            this.mPositionKeyFrame = false;
            this.mX = (float)ClsParam.GetDefaultValue(EnmTypeParam.POSITION_X);
            this.mY = (float)ClsParam.GetDefaultValue(EnmTypeParam.POSITION_Y);

            this.mRotationKeyFrame = false;
            this.mRZ = (float)ClsParam.GetDefaultValue(EnmTypeParam.ROTATION_Z);

            this.mScaleKeyFrame = false;
            this.mSX            = (float)ClsParam.GetDefaultValue(EnmTypeParam.SCALE_X);
            this.mSY            = (float)ClsParam.GetDefaultValue(EnmTypeParam.SCALE_Y);

            this.mOffsetKeyFrame = false;
            this.mCX             = (float)ClsParam.GetDefaultValue(EnmTypeParam.OFFSET_X);
            this.mCY             = (float)ClsParam.GetDefaultValue(EnmTypeParam.OFFSET_Y);

            this.mFlipKeyFrame = false;
            this.mFlipH        = (bool)ClsParam.GetDefaultValue(EnmTypeParam.FLIP_HORIZONAL);
            this.mFlipV        = (bool)ClsParam.GetDefaultValue(EnmTypeParam.FLIP_VERTICAL);

            this.mTransKeyFrame = false;
            this.mTrans         = (int)ClsParam.GetDefaultValue(EnmTypeParam.TRANSPARENCY);

            this.mColorKeyFrame = false;
            this.mColor         = (int)ClsParam.GetDefaultValue(EnmTypeParam.COLOR);

            this.mUserDataKeyFrame = false;
            this.mUserData         = (string)ClsParam.GetDefaultValue(EnmTypeParam.USER_DATA);
        }
Пример #2
0
        /// <summary>
        /// デフォルトの値2取得処理
        /// </summary>
        /// <param name="enTypeOption">オプションタイプ</param>
        /// <returns>デフォルトの値2</returns>
        public static object GetDefaultValue2(EnmTypeOption enTypeOption)
        {
            object clValue = null;

            switch (enTypeOption)
            {
            case EnmTypeOption.NONE:
                clValue = null;
                break;

            case EnmTypeOption.DISPLAY:
                clValue = null;
                break;

            case EnmTypeOption.POSITION:
                clValue = ClsParam.GetDefaultValue(EnmTypeParam.POSITION_Y);
                break;

            case EnmTypeOption.ROTATION:
                clValue = null;
                break;

            case EnmTypeOption.SCALE:
                clValue = ClsParam.GetDefaultValue(EnmTypeParam.SCALE_Y);
                break;

            case EnmTypeOption.OFFSET:
                clValue = ClsParam.GetDefaultValue(EnmTypeParam.OFFSET_Y);
                break;

            case EnmTypeOption.FLIP:
                clValue = ClsParam.GetDefaultValue(EnmTypeParam.FLIP_VERTICAL);
                break;

            case EnmTypeOption.TRANSPARENCY:
                clValue = null;
                break;

            case EnmTypeOption.COLOR:
                clValue = null;
                break;

            case EnmTypeOption.USER_DATA:
                clValue = null;
                break;
            }

            return(clValue);
        }