public ItemData(int uid = 0, ItemType itemType = default, ItemType listType = default, int id = default, string name = null, int colorArgb = default, string iconName = null, string description = null, int stackAmount = default, int mask = default, int procType = default, byte[] octet = null) { iItemType = (int)itemType; iListType = (int)listType; Id = id; Name = name; ColorArgb = colorArgb; IconName = iconName; Description = description; StackAmount = stackAmount; Mask = mask; ProcType = procType; Octet = octet; if (uid == 0 && !Realm.IsClosed) { uid = Realm.GetNewId <ItemData>("uid"); } Uid = uid; }