public GridMeteorShower(ILoggingBase rootLogger, params Meteor[] impacts)
 {
     Logger = rootLogger.CreateProxy(GetType().Name);
     foreach (var f in impacts)
     {
         m_impactDirectionRadius.Add(f);
     }
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
        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[""]));
        }
Esempio n. 4
0
 protected IGridRemap(ILoggingBase root)
 {
     Logger = root.CreateProxy(GetType().Name);
 }