private void OnSolidChanged(HandleVector <int> .Handle h) { Data data = GetData(h); SimCellOccupier component = data.go.GetComponent <SimCellOccupier>(); if ((UnityEngine.Object)component == (UnityEngine.Object)null || component.IsReady()) { Rotatable component2 = data.go.GetComponent <Rotatable>(); Orientation orientation = ((UnityEngine.Object)component2 != (UnityEngine.Object)null) ? component2.GetOrientation() : Orientation.Neutral; bool is_solid = BuildingDef.CheckFoundation(data.cell, orientation, data.buildRule, data.width, data.height); UpdateSolidState(is_solid, ref data); SetData(h, data); } }