public GridMeteorShower(ILoggingBase rootLogger, params Meteor[] impacts) { Logger = rootLogger.CreateProxy(GetType().Name); foreach (var f in impacts) { m_impactDirectionRadius.Add(f); } }
public RoomRemapper(ILoggingBase root) { Logger = root.CreateProxy(GetType().Name); m_allPre.Add(new GridRemap_Names(root)); m_allPre.Add(new Coloring(root)); m_allPre.Add(new GridRemap_Ownership(root)); m_primary.Add(new GridRemap_LocalTransform(root)); m_auxiliary.Add(new GridRemap_WorldTransform(root)); DebugRoomColors = Settings.DebugDrawRoomColors; }
public static ILogging CreateProxy(this ILoggingBase logger, Type type) { var match = type.FullName ?? ""; MyLogSeverity?result = null; while (match.Length > 0) { MyLogSeverity severity; if (_levels.TryGetValue(match, out severity)) { result = severity; break; } var i = match.LastIndexOf('.'); if (i < 0) { break; } match = match.Substring(0, i); } return(logger.CreateProxy(type.Name, result ?? _levels[""])); }
protected IGridRemap(ILoggingBase root) { Logger = root.CreateProxy(GetType().Name); }