diff options
| author | Michael <[email protected]> | 2017-05-12 19:17:47 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-12 19:17:47 -0400 |
| commit | bded9d1250575e6b9824be9048ac7ac8669a303b (patch) | |
| tree | a0ef631584332088d243bacf4c87f959a821f3a3 /ShiftOS_TheReturn/SaveSystem.cs | |
| parent | 2cede571ca23806b68344d9984c11eedaaea76e1 (diff) | |
| download | shiftos_thereturn-bded9d1250575e6b9824be9048ac7ac8669a303b.tar.gz shiftos_thereturn-bded9d1250575e6b9824be9048ac7ac8669a303b.tar.bz2 shiftos_thereturn-bded9d1250575e6b9824be9048ac7ac8669a303b.zip | |
ShiftOS is a hydra.
You pop one bug off, 2,000 more grow in its place.
Diffstat (limited to 'ShiftOS_TheReturn/SaveSystem.cs')
| -rw-r--r-- | ShiftOS_TheReturn/SaveSystem.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/SaveSystem.cs b/ShiftOS_TheReturn/SaveSystem.cs index 31db58a..948f95e 100644 --- a/ShiftOS_TheReturn/SaveSystem.cs +++ b/ShiftOS_TheReturn/SaveSystem.cs @@ -52,6 +52,9 @@ namespace ShiftOS.Engine public static ClientSave CurrentUser { get; set; } + public static bool Ready = false; + + public static event Action PreDigitalSocietyConnection; public static Save CurrentSave { get; set; } @@ -118,6 +121,18 @@ namespace ShiftOS.Engine Console.WriteLine("[inetd] Connecting to network..."); + Ready = false; + + if (PreDigitalSocietyConnection != null) + { + PreDigitalSocietyConnection?.Invoke(); + + while (!Ready) + { + Thread.Sleep(10); + } + } + if (defaultConf.ConnectToMud == true) { bool guidReceived = false; |
