/
NLObP
/
AAEmu
Обзор
Документация
Войти
/
NLObP
/
AAEmu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
AAEmu.Game/Models/Game/Crafts/Craft.cs
45 строк
1 KB
Roger Barreto
Collection expressions check + blank lines update (#1110)
11 дек 2024, 19:38
Не верифицирован
11 дек 2024, 19:38
0ce5643
Код
Авторство
О чём код?
using System.Collections.Generic; using System.Linq; using AAEmu.Game.Core.Managers; using AAEmu.Game.Models.Game.Items.Templates; namespace AAEmu.Game.Models.Game.Crafts; /* Data relating to a craft. */ public class Craft { public uint Id { get; set; } public int CastDelay { get; set; } public uint ToolId { get; set; } public uint SkillId { get; set; } public uint WiId { get; set; } public uint MilestoneId { get; set; } public uint ReqDoodadId { get; set; } public bool NeedBind { get; set; } public uint AcId { get; set; } public int ActabilityLimit { get; set; } public bool ShowUpperCraft { get; set; } public int RecommendLevel { get; set; } public int VisibleOrder { get; set; } public List<CraftProduct> CraftProducts { get; set; } public List<CraftMaterial> CraftMaterials { get; set; } public bool IsPack { get; set; } public bool ResultsInBackpack { get { return CraftProducts.Select(product => ItemManager.Instance.GetTemplate(product.ItemId)) .OfType<BackpackTemplate>().Any(); } } public Craft() { CraftProducts = []; CraftMaterials = []; } }