Refactor project structure and update documentation. Replace PixiJS with plain DOM for UI rendering, enhance README with game features, and revise protocol documentation for HTTP API. Remove unused files and streamline client code for better maintainability.
This commit is contained in:
@@ -1,18 +1,22 @@
|
||||
namespace HSchool.Protocol;
|
||||
|
||||
/// <summary>
|
||||
/// First byte of every frame. Client-to-server ids live in 0x00-0x7F,
|
||||
/// server-to-client ids in 0x80-0xFF, so a misrouted frame is obvious.
|
||||
/// </summary>
|
||||
public enum MessageType : byte
|
||||
{
|
||||
None = 0x00,
|
||||
|
||||
ClientHello = 0x01,
|
||||
ClientInput = 0x02,
|
||||
ClientPing = 0x03,
|
||||
|
||||
ServerWelcome = 0x81,
|
||||
ServerSnapshot = 0x82,
|
||||
ServerPong = 0x83,
|
||||
}
|
||||
namespace HSchool.Protocol;
|
||||
|
||||
/// <summary>
|
||||
/// First byte of every frame. Client-to-server ids live in 0x00-0x7F,
|
||||
/// server-to-client ids in 0x80-0xFF, so a misrouted frame is obvious.
|
||||
/// </summary>
|
||||
public enum MessageType : byte
|
||||
{
|
||||
None = 0x00,
|
||||
|
||||
ClientHello = 0x01,
|
||||
ClientPing = 0x02,
|
||||
ClientOpenSchool = 0x03,
|
||||
ClientCloseSchool = 0x04,
|
||||
ClientSetRunning = 0x05,
|
||||
ClientSetSpeed = 0x06,
|
||||
|
||||
ServerWelcome = 0x81,
|
||||
ServerPong = 0x82,
|
||||
ServerClock = 0x83,
|
||||
ServerSchoolGone = 0x84,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user