public override void LessonUpdate()
 {
     GenDraw.DrawFieldEdges(sandbagCells.Where((IntVec3 c) => !TutorUtility.BuildingOrBlueprintOrFrameCenterExists(c, base.Map, ThingDefOf.Sandbags)).ToList());
     GenDraw.DrawArrowPointingAt(Gen.AveragePosition(sandbagCells));
     if (ProgressPercent > 0.9999f)
     {
         Find.ActiveLesson.Deactivate();
     }
 }
 public override void LessonUpdate()
 {
     cachedEdgeCells.Clear();
     cachedEdgeCells.AddRange(RoomRect.EdgeCells.Where((IntVec3 c) => !TutorUtility.BuildingOrBlueprintOrFrameCenterExists(c, base.Map, ThingDefOf.Wall)).ToList());
     GenDraw.DrawFieldEdges(cachedEdgeCells.Where((IntVec3 c) => c.GetEdifice(base.Map) == null).ToList());
     GenDraw.DrawArrowPointingAt(RoomRect.CenterVector3);
     if (ProgressPercent > 0.9999f)
     {
         Find.ActiveLesson.Deactivate();
     }
 }
		public override void LessonUpdate()
		{
			List<IntVec3> cells = (from c in this.sandbagCells
			where !TutorUtility.BuildingOrBlueprintOrFrameCenterExists(c, base.Map, ThingDefOf.Sandbags)
			select c).ToList();
			GenDraw.DrawFieldEdges(cells);
			GenDraw.DrawArrowPointingAt(Gen.AveragePosition(this.sandbagCells), false);
			if (this.ProgressPercent > 0.99989998340606689)
			{
				Find.ActiveLesson.Deactivate();
			}
		}
예제 #4
0
        protected int NumPlaced()
        {
            int num = 0;

            foreach (IntVec3 item in this.BuildableRect)
            {
                if (TutorUtility.BuildingOrBlueprintOrFrameCenterExists(item, base.Map, base.def.thingDef))
                {
                    num++;
                }
            }
            return(num);
        }
 public override void LessonUpdate()
 {
     this.cachedEdgeCells.Clear();
     this.cachedEdgeCells.AddRange((from c in this.RoomRect.EdgeCells
                                    where !TutorUtility.BuildingOrBlueprintOrFrameCenterExists(c, base.Map, ThingDefOf.Wall)
                                    select c).ToList());
     GenDraw.DrawFieldEdges((from c in this.cachedEdgeCells
                             where c.GetEdifice(base.Map) == null
                             select c).ToList());
     GenDraw.DrawArrowPointingAt(this.RoomRect.CenterVector3, false);
     if (this.ProgressPercent > 0.99989998340606689)
     {
         Find.ActiveLesson.Deactivate();
     }
 }
예제 #6
0
 private bool <LessonUpdate> m__0(IntVec3 c)
 {
     return(!TutorUtility.BuildingOrBlueprintOrFrameCenterExists(c, base.Map, ThingDefOf.Sandbags));
 }