public Salvage(ref Salvage iSalvage) { this.InternalName = iSalvage.InternalName; this.ExternalName = iSalvage.ExternalName; this.Rarity = iSalvage.Rarity; this.LevelMin = iSalvage.LevelMin; this.LevelMax = iSalvage.LevelMax; this.Origin = iSalvage.Origin; }
public Salvage(BinaryReader reader) { this.InternalName = reader.ReadString(); this.ExternalName = reader.ReadString(); this.Rarity = (Recipe.RecipeRarity)reader.ReadInt32(); this.LevelMin = reader.ReadInt32(); this.LevelMax = reader.ReadInt32(); this.Origin = (Salvage.SalvageOrigin)reader.ReadInt32(); }
void frmSalvageEdit_Load(object sender, EventArgs e) { Salvage.SalvageOrigin salvageOrigin = Salvage.SalvageOrigin.Tech; Recipe.RecipeRarity recipeRarity = Recipe.RecipeRarity.Common; this.FillList(); this.cbRarity.Items.AddRange(Enum.GetNames(recipeRarity.GetType())); this.cbOrigin.Items.AddRange(Enum.GetNames(salvageOrigin.GetType())); this.cbLevel.Items.Add("10 - 25"); this.cbLevel.Items.Add("26 - 40"); this.cbLevel.Items.Add("41 - 53"); this.Updating = false; if (this.lvSalvage.Items.Count > 0) { this.lvSalvage.Items[0].Selected = true; } }