示例#1
0
        public Enemy(string name)
        {
            EnemyList EnemyList = new EnemyList();

            Name = name;

            Enemy enemy = EnemyList.DefaultEnemyList.Find(x => x.Name == name);

            Id     = enemy.Id;
            Hp     = enemy.Hp;
            Damage = enemy.Damage;
        }
示例#2
0
        public Enemy(int id)
        {
            EnemyList EnemyList = new EnemyList();

            Id = id;

            Enemy enemy = EnemyList.DefaultEnemyList.Find(x => x.Id == id);

            Name   = enemy.Name;
            Hp     = enemy.Hp;
            Damage = enemy.Damage;
        }