mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-08 06:18:32 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
24 lines
689 B
C#
24 lines
689 B
C#
namespace Sandbox.Internal;
|
|
|
|
public static class GlobalGameNamespace
|
|
{
|
|
/// <summary>
|
|
/// Log information to console for debugging purposes.
|
|
/// </summary>
|
|
public static Diagnostics.Logger Log { get; internal set; } = new( "Generic" );
|
|
|
|
/// <summary>
|
|
/// Data storage that persists across sessions.
|
|
/// </summary>
|
|
[Obsolete( "Use Game.Cookies" )]
|
|
public static CookieContainer Cookie => Game.Cookies;
|
|
|
|
/// <summary>
|
|
/// Allows access to all available types, reflection style.
|
|
/// </summary>
|
|
/// <exception cref="InvalidOperationException">
|
|
/// Thrown when accessed during static constructors.
|
|
/// </exception>
|
|
public static TypeLibrary TypeLibrary => Game.TypeLibrary;
|
|
}
|