Inventory management focused game written in Godot / C#
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
662 B

using System.Globalization;
public partial class Game : Node
{
public static Game Instance { get; private set; }
public static new MultiplayerManager Multiplayer { get; private set; }
public static Players Players { get; private set; }
public static Player LocalPlayer { get; private set; }
public override void _EnterTree()
{
// Set invariant culture so formatting is consistent.
CultureInfo.CurrentCulture = CultureInfo.InvariantCulture;
Instance = this;
Multiplayer = this.GetNodeOrThrow<MultiplayerManager>(nameof(MultiplayerManager));
Players = this.GetNodeOrThrow<Players>(nameof(Players));
LocalPlayer = Players.Single();
}
}