Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 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);
        }