示例#1
0
        private void Generate(int idRace, int idSousRace, int idClasse, int lvl, int num)
        {
            CreationPerso      builderPerso = new CreationPerso();
            int                idPerso      = builderPerso.CreatNewPerso(idRace, idClasse, idSousRace, lvl, "mob", num.ToString(), "non");
            Perso              perso        = new Perso(idPerso);
            CreationEquipement creation     = new CreationEquipement(valEquip, 20, Genre.typeEquipementBase.cac, 1, CreationEquipement.typeCible.Guerrier);
            int                idequip      = creation.Generate();
            int                type;
            Items              item = Items.GetItems(idequip, out type);

            perso.Equipe((Equipement)item);
        }