-
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show server last save time in client esc menu
- Loading branch information
Showing
6 changed files
with
73 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#region | ||
|
||
using NebulaAPI.Packets; | ||
|
||
#endregion | ||
|
||
namespace NebulaModel.Packets.GameStates; | ||
|
||
[HidePacketInDebugLogs] | ||
public class GameStateSaveInfoPacket | ||
{ | ||
public GameStateSaveInfoPacket() { } | ||
|
||
public GameStateSaveInfoPacket(long lastSaveTime) | ||
{ | ||
LastSaveTime = lastSaveTime; | ||
} | ||
|
||
public long LastSaveTime { get; set; } | ||
} |
20 changes: 20 additions & 0 deletions
20
NebulaNetwork/PacketProcessors/GameStates/GameStateSaveInfoProcessor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#region | ||
|
||
using NebulaAPI.Packets; | ||
using NebulaModel.Networking; | ||
using NebulaModel.Packets; | ||
using NebulaModel.Packets.GameStates; | ||
using NebulaWorld.GameStates; | ||
|
||
#endregion | ||
|
||
namespace NebulaNetwork.PacketProcessors.GameStates; | ||
|
||
[RegisterPacketProcessor] | ||
public class GameStateSaveInfoProcessor : PacketProcessor<GameStateSaveInfoPacket> | ||
{ | ||
protected override void ProcessPacket(GameStateSaveInfoPacket packet, NebulaConnection conn) | ||
{ | ||
GameStatesManager.LastSaveTime = packet.LastSaveTime; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters