Exemplo n.º 1
0
        public virtual StackEvent Dropoff(IStack stack)
        {
            var dropoff = new StackEvent(World.Environment, TriggerPickup, CancelDrop)
            {
                Stack = stack, Size = stack.Size
            };

            DropoffQueue.AddLast(dropoff);
            TriggerDropoff();
            return(dropoff);
        }
Exemplo n.º 2
0
        public virtual BlockEvent Dropoff(IBlock block)
        {
            var dropoff = new BlockEvent(World.Environment, TriggerPickup, CancelDrop)
            {
                Block = block
            };

            DropoffQueue.AddLast(dropoff);
            TriggerDropoff();
            return(dropoff);
        }