public RecipeRecord(ushort resultId, string resultName, ushort resultTypeId, ushort resultLevel, List <ushort> ingredientIds, List <uint> quantities, sbyte jobId, uint skillId) { this.ResultId = resultId; this.ResultName = resultName; this.ResultTypeId = resultTypeId; this.ResultLevel = resultLevel; this.IngredientIds = ingredientIds; this.Quantities = quantities; this.JobId = jobId; this.SkillId = skillId; for (int i = 0; i < IngredientIds.Count(); i++) { Ingredients.Add(IngredientIds[i], Quantities[i]); } this.Result = ItemRecord.GetItem(resultId); }
private ItemRecord ToItemRecord() { return(ItemRecord.GetItem(this.Id)); }