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); }
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) { }
public CMiniRoomPool(CField fieldItem) : base(fieldItem) { }
public virtual void Dispose() { Clear(); Field = null; }
protected CObjectPool(CField parent) { Field = parent; }
public bool CompareTo(CField field) => dwUniqueId == field?.dwUniqueId;