Example #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);
        }
Example #2
0
 public ChangeOwnerOnGarrisoner(Actor self, ChangeOwnerOnGarrisonerInfo info)
 {
     this.info     = info;
     garrison      = self.Trait <Garrisonable>();
     originalOwner = self.Owner;
 }
Example #3
0
 bool CanEnter(Garrisonable garrison)
 {
     return(garrison != null && garrison.HasSpace(Info.Weight) && !garrison.IsTraitPaused && !garrison.IsTraitDisabled);
 }