public override bool CanCoexistWith(ScenPart other) { ScenPart_IncidentBase scenPart_IncidentBase = other as ScenPart_IncidentBase; if (scenPart_IncidentBase != null && scenPart_IncidentBase.Incident == incident) { return(false); } return(true); }
public override bool TryMerge(ScenPart other) { ScenPart_IncidentBase scenPart_IncidentBase = other as ScenPart_IncidentBase; if (scenPart_IncidentBase != null && scenPart_IncidentBase.Incident == incident) { return(true); } return(false); }
protected void DoIncidentEditInterface(Rect rect) { if (Widgets.ButtonText(rect, incident.LabelCap)) { FloatMenuUtility.MakeMenu(DefDatabase <IncidentDef> .AllDefs, (IncidentDef id) => id.LabelCap, delegate(IncidentDef id) { ScenPart_IncidentBase scenPart_IncidentBase = this; return(delegate { scenPart_IncidentBase.incident = id; }); }); } }
public override bool CanCoexistWith(ScenPart other) { ScenPart_IncidentBase scenPart_IncidentBase = other as ScenPart_IncidentBase; return(scenPart_IncidentBase == null || scenPart_IncidentBase.Incident != this.incident); }
public override bool TryMerge(ScenPart other) { ScenPart_IncidentBase scenPart_IncidentBase = other as ScenPart_IncidentBase; return(scenPart_IncidentBase != null && scenPart_IncidentBase.Incident == this.incident); }