コード例 #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);
        }
コード例 #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);
        }
コード例 #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;
             });
         });
     }
 }
コード例 #4
0
        public override bool CanCoexistWith(ScenPart other)
        {
            ScenPart_IncidentBase scenPart_IncidentBase = other as ScenPart_IncidentBase;

            return(scenPart_IncidentBase == null || scenPart_IncidentBase.Incident != this.incident);
        }
コード例 #5
0
        public override bool TryMerge(ScenPart other)
        {
            ScenPart_IncidentBase scenPart_IncidentBase = other as ScenPart_IncidentBase;

            return(scenPart_IncidentBase != null && scenPart_IncidentBase.Incident == this.incident);
        }