Ejemplo n.º 1
0
        public static Death GetDeathFromDeathType(int deathType, params GameVersion[] gameVersions)
        {
            Death death = GetEntities <Death>(gameVersions).FirstOrDefault(d => d.DeathType == deathType);

            if (death != null)
            {
                return(death);
            }
            return(V3.Unknown);
        }
Ejemplo n.º 2
0
 public Enemy(string name, string colorCode, int hp, int gems, Death death, float?homing3, float?homing4, bool registerKill, params Enemy[] spawnedBy)
     : base(name, colorCode)
 {
     HP           = hp;
     Gems         = gems;
     Death        = death;
     Homing3      = homing3;
     Homing4      = homing4;
     RegisterKill = registerKill;
     SpawnedBy    = spawnedBy;
 }