Ejemplo n.º 1
0
    protected override void copyData()
    {
        base.copyData();
        SkillTargetData targetDataTemp = targetData;

        if (targetDataTemp != null)
        {
            this.targetData = (SkillTargetData)targetDataTemp.clone();
        }
        else
        {
            this.targetData = null;
            nullObjError("targetData");
        }

        PosDirData posDirTemp = posDir;

        if (posDirTemp != null)
        {
            this.posDir = (PosDirData)BytesControl.createData(PosDirData.dataID);
            this.posDir.copy(posDirTemp);
        }
        else
        {
            this.posDir = null;
            nullObjError("posDir");
        }
    }
Ejemplo n.º 2
0
    protected override void copyData()
    {
        base.copyData();
        SkillTargetData targetTemp = target;

        if (targetTemp != null)
        {
            this.target = (SkillTargetData)targetTemp.clone();
        }
        else
        {
            this.target = null;
            nullObjError("target");
        }
    }
Ejemplo n.º 3
0
    protected override void copyData()
    {
        base.copyData();
        SkillTargetData targetDataTemp = targetData;

        if (targetDataTemp != null)
        {
            this.targetData = (SkillTargetData)targetDataTemp.clone();
        }
        else
        {
            this.targetData = null;
            nullObjError("targetData");
        }

        IntList targetsTemp = targets;

        if (targetsTemp != null)
        {
            this.targets = new IntList();
            IntList targetsT = this.targets;
            if (!targetsTemp.isEmpty())
            {
                int[] targetsVValues = targetsTemp.getValues();
                for (int targetsVI = 0, targetsVLen = targetsTemp.length(); targetsVI < targetsVLen; ++targetsVI)
                {
                    int targetsV = targetsVValues[targetsVI];
                    int targetsU;
                    targetsU = targetsV;

                    targetsT.add(targetsU);
                }
            }
        }
        else
        {
            this.targets = null;
            nullObjError("targets");
        }
    }