コード例 #1
0
        override public void InitModel(ref JSONObject source)
        {
            base.InitModel(ref source);

            if (!mIsPlayer)
            {
                mBaseConfig     = ScriptableObject.CreateInstance <KnightBaseConfig>();
                mMeridianConfig = ScriptableObject.CreateInstance <KnightMeridianConfig>();
                mBattleConfig   = ScriptableObject.CreateInstance <KnightBattleConfig>();

                mBaseConfig.InitBaseConfig(ref source);
                mMeridianConfig.InitMeridianConfig(ref source);
                mBattleConfig.InitBattleConfig(ref source);

                mNameID = -1;
                mName   = mBaseConfig.firstName.Append(ref mSbd, mBaseConfig.secendName);
            }
        }
コード例 #2
0
        public override IScriptableItem Copy()
        {
            IScriptableItem    config = base.Copy();
            KnightBattleConfig target = config as KnightBattleConfig;

            if (IsCopyRaw)
            {
                target.InitBattleConfig(ref mRawJSON);
            }
            else
            {
                target.potential            = potential;
                target.hp                   = hp;
                target.mp                   = mp;
                target.selfHealing          = selfHealing;
                target.qi                   = qi;
                target.internalForce        = internalForce;
                target.eyesight             = eyesight;
                target.hearing              = hearing;
                target.swordBreath          = swordBreath;
                target.bodilyMovement       = bodilyMovement;
                target.charm                = charm;
                target.fate                 = fate;
                target.fingerForce          = fingerForce;
                target.tough                = tough;
                target.physique             = physique;
                target.breath               = breath;
                target.acupoint             = acupoint;
                target.concentrate          = concentrate;
                target.antitoxic            = antitoxic;
                target.debuffTrauma         = debuffTrauma;
                target.debuffInternalInjury = debuffInternalInjury;
                target.debuffVertigo        = debuffVertigo;
                target.debuffAcupointHit    = debuffAcupointHit;
                target.debuffHorror         = debuffHorror;
                target.debuffToxic          = debuffToxic;
            }

            return(config);
        }