public void Buy(RealmTime time, BuyPacket pkt) { SellableObject obj = Owner.GetEntity(pkt.ObjectId) as SellableObject; if (obj != null) { obj.Buy(this); } }