var gridIds = _map.LoadMap(targetMapId, ev.GameMap.MapPath.ToString(), ev.Options);
+ _metaData.SetEntityName(_mapManager.GetMapEntityId(targetMapId), "Station map");
+
var gridUids = gridIds.ToList();
RaiseLocalEvent(new PostGameMapLoad(map, targetMapId, gridUids, stationName));
if (HasComp<FTLComponent>(uid))
{
- _sawmill.Warning($"Tried queuing {ToPrettyString(uid)} which already has HyperspaceComponent?");
+ Log.Warning($"Tried queuing {ToPrettyString(uid)} which already has HyperspaceComponent?");
return false;
}
_console.RefreshShuttleConsoles(uid);
break;
default:
- _sawmill.Error($"Found invalid FTL state {comp.State} for {uid}");
+ Log.Error($"Found invalid FTL state {comp.State} for {uid}");
RemComp<FTLComponent>(uid);
break;
}
return;
_hyperSpaceMap = _mapManager.CreateMap();
- _sawmill.Info($"Setup hyperspace map at {_hyperSpaceMap.Value}");
+ _metadata.SetEntityName(_mapManager.GetMapEntityId(_hyperSpaceMap.Value), "FTL");
+ Log.Debug($"Setup hyperspace map at {_hyperSpaceMap.Value}");
DebugTools.Assert(!_mapManager.IsMapPaused(_hyperSpaceMap.Value));
var parallax = EnsureComp<ParallaxComponent>(_mapManager.GetMapEntityId(_hyperSpaceMap.Value));
parallax.Parallax = "FastSpace";
if (!valid)
{
- _sawmill.Error($"Error loading gridspawn for {ToPrettyString(uid)} / {path}");
+ Log.Error($"Error loading gridspawn for {ToPrettyString(uid)} / {path}");
}
}
if (!valid)
{
- _sawmill.Error($"Error loading gridfill dock for {ToPrettyString(uid)} / {component.Path}");
+ Log.Error($"Error loading gridfill dock for {ToPrettyString(uid)} / {component.Path}");
}
_mapManager.DeleteMap(mapId);
[Dependency] private readonly EntityLookupSystem _lookup = default!;
[Dependency] private readonly FixtureSystem _fixtures = default!;
[Dependency] private readonly MapLoaderSystem _loader = default!;
+ [Dependency] private readonly MetaDataSystem _metadata = default!;
[Dependency] private readonly SharedAudioSystem _audio = default!;
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
[Dependency] private readonly SharedTransformSystem _transform = default!;
[Dependency] private readonly ThrusterSystem _thruster = default!;
[Dependency] private readonly UserInterfaceSystem _uiSystem = default!;
- private ISawmill _sawmill = default!;
-
public const float TileMassMultiplier = 0.5f;
public override void Initialize()
{
base.Initialize();
- _sawmill = Logger.GetSawmill("shuttles");
InitializeFTL();
InitializeGridFills();