Esempio n. 1
0
        public override BaseItem FactoreNewItem(ISData data, INSData nsData)
        {
            WeaponItem newItem = new WeaponItem(data.SDeepClone() as ISData, nsData.NSDeepClone() as WeaponNSData);

            // In Case database default values get overriten, set them back here to default
            newItem.BaseData.UniqueUUID = System.Guid.NewGuid().ToString();
            newItem.BaseData.SlotID     = -1;
            return(newItem);
        }
Esempio n. 2
0
        public BaseItem FactoryCloneItemFromData()
        {
            string orgitemName    = Name;
            string originalUUID   = UniqueUUID;
            int    originalSlotID = SlotID;

            WeaponItem factoredItem = new WeaponItem();

            factoredItem.BaseData.Name       = orgitemName;
            factoredItem.BaseData.UniqueUUID = originalUUID;
            factoredItem.BaseData.SlotID     = originalSlotID;

            return(factoredItem);
        }