public FreeActorWithDelivery(ActorInitializer init, FreeActorWithDeliveryInfo info)
        {
            self = init.Self;
            Info = info;

            DoDelivery(self.Location + info.DeliveryOffset, info.Actor, info.DeliveringActor);
        }
Exemplo n.º 2
0
        public FreeActorWithDelivery(ActorInitializer init, FreeActorWithDeliveryInfo info)
        {
            if (string.IsNullOrEmpty(info.Actor))
            {
                throw new InvalidDataException("Actor type was not specified!");
            }
            if (string.IsNullOrEmpty(info.DeliveringActor))
            {
                throw new InvalidDataException("Delivering actor type was not specified!");
            }

            self = init.Self;
            Info = info;

            DoDelivery(self.Location + info.DeliveryOffset, info.Actor, info.DeliveringActor, info.InitialActivity);
        }