public override bool SameOrSubsetOf(RoomRequirement other)
        {
            if (!base.SameOrSubsetOf(other))
            {
                return(false);
            }
            RoomRequirement_Thing roomRequirement_Thing = (RoomRequirement_Thing)other;

            return(thingDef == roomRequirement_Thing.thingDef);
        }
Beispiel #2
0
 private bool HasSameRoomRequirement(RoomRequirement otherReq, List <RoomRequirement> list)
 {
     if (list == null)
     {
         return(false);
     }
     foreach (RoomRequirement item in list)
     {
         if (item.SameOrSubsetOf(otherReq))
         {
             return(true);
         }
     }
     return(false);
 }
Beispiel #3
0
        public override bool SameOrSubsetOf(RoomRequirement other)
        {
            if (!base.SameOrSubsetOf(other))
            {
                return(false);
            }
            RoomRequirement_TerrainWithTags roomRequirement_TerrainWithTags = (RoomRequirement_TerrainWithTags)other;

            foreach (string tag in tags)
            {
                if (!roomRequirement_TerrainWithTags.tags.Contains(tag))
                {
                    return(false);
                }
            }
            return(true);
        }
        public override bool SameOrSubsetOf(RoomRequirement other)
        {
            if (!base.SameOrSubsetOf(other))
            {
                return(false);
            }
            RoomRequirement_ThingAnyOf roomRequirement_ThingAnyOf = (RoomRequirement_ThingAnyOf)other;

            foreach (ThingDef thing in things)
            {
                if (!roomRequirement_ThingAnyOf.things.Contains(thing))
                {
                    return(false);
                }
            }
            return(true);
        }
Beispiel #5
0
 public bool HasSameBedroomRequirement(RoomRequirement otherReq)
 {
     return(HasSameRoomRequirement(otherReq, bedroomRequirements));
 }
Beispiel #6
0
 public bool HasSameThroneroomRequirement(RoomRequirement otherReq)
 {
     return(HasSameRoomRequirement(otherReq, throneRoomRequirements));
 }
Beispiel #7
0
 public virtual bool SameOrSubsetOf(RoomRequirement other)
 {
     return(GetType() == other.GetType());
 }