示例#1
0
        void IResolveOrder.ResolveOrder(Actor self, Order order)
        {
            var forceRallyPoint = RallyPoint.IsForceSet(order);

            if (order.OrderString == OrderID || forceRallyPoint)
            {
                SetPrimaryProducer(self, !IsPrimary || forceRallyPoint);
            }
        }
示例#2
0
 void INotifyCreated.Created(Actor self)
 {
     rp = self.TraitOrDefault <RallyPoint>();
 }
示例#3
0
 protected override void Created(Actor self)
 {
     rp = self.TraitOrDefault <RallyPoint>();
     base.Created(self);
 }