예제 #1
0
 internal ItemData(string id, bool locked, int?stackCount, UniqueItemData data, ItemSealData seal)
 {
     Id         = id;
     TempId     = KeyBuilder.Generate(5);
     Locked     = locked;
     StackCount = stackCount;
     Data       = data;
     Seal       = seal;
 }
예제 #2
0
        /// <summary>
        /// Initializes a unique <see cref="ItemData"/> stack.
        /// </summary>
        /// <param name="id">The ID of the <see cref="Item"/> to store.</param>
        /// <param name="data">The unique data of the <see cref="Item"/> to store.</param>
        public ItemData(string id, UniqueItemData data)
        {
            if (!ItemHelper.IsUnique(id))
            {
                throw new Exception("Incorrect item data initializer used.");
            }

            Id     = id;
            TempId = KeyBuilder.Generate(5);
            Data   = data;
        }