Esempio n. 1
0
        public static void CreateDropItem(CField field, TagPoint pStartPos, int dwOwnerID, GW_ItemSlotBase pItem)
        {
            var drop = new CDrop(pStartPos, dwOwnerID)
            {
                Item   = pItem,
                ItemId = pItem.nItemID
            };

            drop.Position.X = drop.StartPosX;
            drop.CalculateY(field, drop.StartPosY);

            field.Drops.Add(drop);
        }
Esempio n. 2
0
        public static void CreateDropMeso(CField field, TagPoint pStartPos, int dwOwnerID, int nAmount)
        {
            var drop = new CDrop(pStartPos, dwOwnerID)
            {
                bIsMoney = 1,
                ItemId   = nAmount
            };

            drop.Position.X = drop.StartPosX;
            drop.CalculateY(field, drop.StartPosY);

            field.Drops.Add(drop);
        }
 public CAffectedAreaPool(CField parent) : base(parent)
 {
 }
Esempio n. 4
0
 public CMiniRoomPool(CField fieldItem) : base(fieldItem)
 {
 }
Esempio n. 5
0
 public virtual void Dispose()
 {
     Clear();
     Field = null;
 }
Esempio n. 6
0
 protected CObjectPool(CField parent)
 {
     Field = parent;
 }
Esempio n. 7
0
 public bool CompareTo(CField field) => dwUniqueId == field?.dwUniqueId;