Exemplo n.º 1
0
        public static MonsterInfo Get(LifeEntity info)
        {
            MonsterInfo monsterInfo = new MonsterInfo
            {
                Id                  = info.roleid,
                Name                = info.name,
                MoveSpeed           = info.moveSpeed,
                MoveSpeedAddition   = info.moveSpeedAddition,
                MoveSpeedPercent    = info.moveSpeedPercent,
                AttackSpeed         = info.attackSpeed,
                AttackSpeedAddition = info.attackSpeedAddition,
                AttackSpeedPercent  = info.attackSpeedPercent,
                MaxBlood            = info.maxBlood,
                NowBlood            = info.nowBlood,
                Type                = info.type
            };

            return(monsterInfo);
        }
Exemplo n.º 2
0
        public static LifeEntity Get(MonsterInfo info)
        {
            LifeEntity lifeEntity = new LifeEntity
            {
                roleid              = info.Id,
                name                = info.Name,
                moveSpeed           = info.MoveSpeed,
                moveSpeedAddition   = info.MoveSpeedAddition,
                moveSpeedPercent    = info.MoveSpeedPercent,
                attackSpeed         = info.AttackSpeed,
                attackSpeedAddition = info.AttackSpeedAddition,
                attackSpeedPercent  = info.AttackSpeedPercent,
                maxBlood            = info.MaxBlood,
                nowBlood            = info.NowBlood,
                type                = info.Type
            };

            return(lifeEntity);
        }