Ejemplo n.º 1
0
    public override MomentComponentBase DeepCopy()
    {
        PlayerComponent pc = new PlayerComponent();

        pc.faceDir = faceDir.DeepCopy();
        pc.elementData.Clear();
        pc.characterID = characterID;
        pc.nickName    = nickName;
        pc.score       = score;

        pc.isCloak = isCloak;
        pc.grassID = grassID;

        for (int i = 0; i < elementData.Count; i++)
        {
            pc.elementData.Add(elementData[i].DeepCopy());
        }

        for (int i = 0; i < buffList.Count; i++)
        {
            pc.buffList.Add(buffList[i].DeepCopy());
        }

        return(pc);
    }
Ejemplo n.º 2
0
    public override MomentComponentBase DeepCopy()
    {
        SkillStatusComponent sc = new SkillStatusComponent();

        sc.m_skillStstus = m_skillStstus;

        sc.m_skillTime             = m_skillTime;
        sc.m_skillTriggerTimeSpace = m_skillTriggerTimeSpace;

        sc.m_isHit          = m_isHit;
        sc.m_isEnter        = m_isEnter;
        sc.m_isTriggerSkill = m_isTriggerSkill;

        sc.skillDir = skillDir.DeepCopy();
        if (m_currentSkillData != null)
        {
            sc.m_currentSkillData = m_currentSkillData.DeepCopy();
        }

        for (int i = 0; i < m_skillList.Count; i++)
        {
            sc.m_skillList.Add(m_skillList[i].DeepCopy());
        }

        return(sc);
    }
Ejemplo n.º 3
0
    public override MomentComponentBase DeepCopy()
    {
        PlayerComponent pc = new PlayerComponent();

        pc.faceDir = faceDir.DeepCopy();

        return(pc);
    }
    public override MomentComponentBase DeepCopy()
    {
        BlowFlyComponent mc = new BlowFlyComponent();

        mc.blowFlyID = blowFlyID;
        mc.blowTime  = blowTime;
        mc.blowDir   = blowDir.DeepCopy();

        return(mc);
    }
Ejemplo n.º 5
0
    public override MomentComponentBase DeepCopy()
    {
        ItemCreatePointComponent mc = new ItemCreatePointComponent();

        mc.pos        = pos.DeepCopy();
        mc.randomList = randomList;

        mc.CreateTimer  = CreateTimer;
        mc.CreateItemID = CreateItemID;

        return(mc);
    }
    public override PlayerCommandBase DeepCopy()
    {
        CommandComponent cc = new CommandComponent();

        cc.id    = id;
        cc.frame = frame;

        cc.isFire   = isFire;
        cc.moveDir  = moveDir.DeepCopy();
        cc.skillDir = skillDir.DeepCopy();

        return(cc);
    }
Ejemplo n.º 7
0
    public override MomentComponentBase DeepCopy()
    {
        TestMoveComponent mc = new TestMoveComponent();

        mc.ID    = ID;
        mc.Frame = Frame;

        mc.pos = pos.DeepCopy();
        mc.dir = dir.DeepCopy();

        mc.m_velocity  = m_velocity;
        mc.isCollision = isCollision;
        return(mc);
    }
    public int m_velocity; //速度

    public override MomentComponentBase DeepCopy()
    {
        MoveComponent mc = new MoveComponent();

        mc.ID    = ID;
        mc.Frame = Frame;

        mc.pos = pos.DeepCopy();
        mc.dir = dir.DeepCopy();

        mc.m_velocity = m_velocity;

        return(mc);
    }
        public CommandComponent ToCommand()
        {
            CommandComponent cmd = new CommandComponent();

            cmd.moveDir  = moveDir.DeepCopy();
            cmd.skillDir = skillDir.DeepCopy();
            cmd.element1 = element1;
            cmd.element2 = element2;

            cmd.isFire = isFire;

            cmd.frame = frame;
            cmd.id    = id;

            return(cmd);
        }
Ejemplo n.º 10
0
    public override PlayerCommandBase DeepCopy()
    {
        TestCommandComponent cc = new TestCommandComponent();

        cc.id    = id;
        cc.frame = frame;

        cc.isFire   = isFire;
        cc.moveDir  = moveDir.DeepCopy();
        cc.skillDir = skillDir.DeepCopy();

        cc.element1 = element1;
        cc.element2 = element2;

        return(cc);
    }