mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 07:30:40 +01:00
Created new Logger class to automatically display Trivial or TrivialDebug messages based on program's build state.
This commit is contained in:
parent
f200a7bf22
commit
3ebe712148
2 changed files with 17 additions and 1 deletions
16
SceneManager/Logger.cs
Normal file
16
SceneManager/Logger.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using Rage;
|
||||
|
||||
namespace SceneManager
|
||||
{
|
||||
class Logger
|
||||
{
|
||||
public static void Log(string message)
|
||||
{
|
||||
#if DEBUG
|
||||
Game.LogTrivialDebug($"{message}");
|
||||
#else
|
||||
Game.LogTrivial($"{message}");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -51,8 +51,8 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AITasking.cs" />
|
||||
<Compile Include="Logger.cs" />
|
||||
<Compile Include="Object Classes\Barrier.cs" />
|
||||
<Compile Include="DebugGraphics.cs" />
|
||||
<Compile Include="Hints.cs" />
|
||||
<Compile Include="Menus\BarrierMenu.cs" />
|
||||
<Compile Include="Object Classes\CollectedVehicle.cs" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue