Live Tree Gen
Added client-server communication to sync client techs with DB techs and visualize the tree of actual techs
This commit is contained in:
parent
dabfc62481
commit
6ca699be26
7 changed files with 159 additions and 111 deletions
|
|
@ -5,11 +5,22 @@ using LiteNetLib;
|
|||
using MessagePack;
|
||||
using Unity.Mathematics;
|
||||
|
||||
[Union(0, typeof(PingMessage)), Union(1, typeof(LoginMessage)), Union(2, typeof(RegisterMessage)),
|
||||
Union(3, typeof(VerifyMessage)), Union(4, typeof(ErrorMessage)), Union(5, typeof(LoginSuccessMessage)),
|
||||
Union(6, typeof(ChatMessage)), Union(7, typeof(ChatBroadcastMessage)), Union(8, typeof(ChangeNameMessage)),
|
||||
Union(9, typeof(GalaxyRequestMessage)), Union(10, typeof(GalaxyResponseMessage)),
|
||||
Union(11, typeof(ZoneRequestMessage)), Union(12, typeof(ZoneResponseMessage)), MessagePackObject]
|
||||
[Union(0, typeof(PingMessage)),
|
||||
Union(1, typeof(LoginMessage)),
|
||||
Union(2, typeof(RegisterMessage)),
|
||||
Union(3, typeof(VerifyMessage)),
|
||||
Union(4, typeof(ErrorMessage)),
|
||||
Union(5, typeof(LoginSuccessMessage)),
|
||||
Union(6, typeof(ChatMessage)),
|
||||
Union(7, typeof(ChatBroadcastMessage)),
|
||||
Union(8, typeof(ChangeNameMessage)),
|
||||
Union(9, typeof(GalaxyRequestMessage)),
|
||||
Union(10, typeof(GalaxyResponseMessage)),
|
||||
Union(11, typeof(ZoneRequestMessage)),
|
||||
Union(12, typeof(ZoneResponseMessage)),
|
||||
Union(13, typeof(BlueprintsRequestMessage)),
|
||||
Union(14, typeof(BlueprintsResponseMessage)),
|
||||
MessagePackObject]
|
||||
public abstract class Message
|
||||
{
|
||||
[IgnoreMember] public NetPeer Peer;
|
||||
|
|
@ -108,4 +119,17 @@ public class ZoneResponseMessage : Message
|
|||
{
|
||||
[Key(0)] public ZoneData Zone;
|
||||
[Key(1)] public DatabaseEntry[] Contents;
|
||||
}
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class BlueprintsRequestMessage : Message
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class BlueprintsResponseMessage : Message
|
||||
{
|
||||
[Key(0)] public BlueprintData[] Blueprints;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue