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

            return(thingDef == roomRequirement_Thing.thingDef);
        }
示例#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);
 }
示例#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);
        }
示例#5
0
 public bool HasSameBedroomRequirement(RoomRequirement otherReq)
 {
     return(HasSameRoomRequirement(otherReq, bedroomRequirements));
 }
示例#6
0
 public bool HasSameThroneroomRequirement(RoomRequirement otherReq)
 {
     return(HasSameRoomRequirement(otherReq, throneRoomRequirements));
 }
示例#7
0
 public virtual bool SameOrSubsetOf(RoomRequirement other)
 {
     return(GetType() == other.GetType());
 }