public override bool SameOrSubsetOf(RoomRequirement other) { if (!base.SameOrSubsetOf(other)) { return(false); } RoomRequirement_Thing roomRequirement_Thing = (RoomRequirement_Thing)other; return(thingDef == roomRequirement_Thing.thingDef); }
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); }
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); }
public bool HasSameBedroomRequirement(RoomRequirement otherReq) { return(HasSameRoomRequirement(otherReq, bedroomRequirements)); }
public bool HasSameThroneroomRequirement(RoomRequirement otherReq) { return(HasSameRoomRequirement(otherReq, throneRoomRequirements)); }
public virtual bool SameOrSubsetOf(RoomRequirement other) { return(GetType() == other.GetType()); }