示例#1
0
        public static void PushHeat(Thing t, float energy)
        {
            IntVec3 result;

            if (t.GetRoomGroup() != null)
            {
                PushHeat(t.Position, t.Map, energy);
            }
            else if (GenAdj.TryFindRandomAdjacentCell8WayWithRoomGroup(t, out result))
            {
                PushHeat(result, t.Map, energy);
            }
        }
        public static void PushHeat(Thing t, float energy)
        {
            IntVec3 c = default(IntVec3);

            if (t.GetRoomGroup() != null)
            {
                GenTemperature.PushHeat(t.Position, t.Map, energy);
            }
            else if (GenAdj.TryFindRandomAdjacentCell8WayWithRoomGroup(t, out c))
            {
                GenTemperature.PushHeat(c, t.Map, energy);
            }
        }
示例#3
0
 public static bool TryFindRandomAdjacentCell8WayWithRoomGroup(Thing t, out IntVec3 result)
 {
     return(GenAdj.TryFindRandomAdjacentCell8WayWithRoomGroup(t.Position, t.Rotation, t.def.size, t.Map, out result));
 }