常用方法
常用方法
常用方法
常用方法
public static void DrawBlockingByDefinition(this IZone zone, EntityDefault entityDefault) { Logger.Info($"drawing blocking for definition:{entityDefault.Definition} {entityDefault.Name} on zone:{zone.Id}"); var units = zone.Units.Where(u => u.ED == entityDefault).ToList(); foreach (var unit in units) { zone.DrawEnvironmentByUnit(unit); } Logger.Info($"{units.Count} {entityDefault.Name} blocked."); }