Exemplo n.º 1
0
        public bool Reserve(Actor self, Garrisonable garrison)
        {
            if (garrison == ReservedGarrison)
            {
                return(true);
            }

            Unreserve(self);
            if (!garrison.ReserveSpace(self))
            {
                return(false);
            }

            ReservedGarrison = garrison;
            return(true);
        }
Exemplo n.º 2
0
 public ChangeOwnerOnGarrisoner(Actor self, ChangeOwnerOnGarrisonerInfo info)
 {
     this.info     = info;
     garrison      = self.Trait <Garrisonable>();
     originalOwner = self.Owner;
 }
Exemplo n.º 3
0
 bool CanEnter(Garrisonable garrison)
 {
     return(garrison != null && garrison.HasSpace(Info.Weight) && !garrison.IsTraitPaused && !garrison.IsTraitDisabled);
 }