Skip to content

Commit

Permalink
feat: rename API.cs to Runtime and remove ReqDisconnect method; add p…
Browse files Browse the repository at this point in the history
…ackage.json for project metadata
  • Loading branch information
MasterLaplace committed Nov 29, 2024
1 parent 5ec4e6a commit 086cfca
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,13 @@ public static byte[] ReqDisconnect()
/// </remarks>
public static byte[] ReqKeepAlive()
{
// Debug.Log("REQ_HEARTBEAT message sent to the server.");
return CurrentProtocol.Packet.Serialize(
CurrentProtocol.Priority.LOW,
CurrentProtocol.CommandId.REQ_HEARTBEAT
);
}

/// <summary>
/// Creates a REQ_DISCONNECT message to disconnect from the server.
/// </summary>
/// <returns>A byte array representing the serialized REQ_DISCONNECT message.</returns>
public static byte[] ReqDisconnect()
{
return CurrentProtocol.Packet.Serialize(
CurrentProtocol.Priority.HIGH,
CurrentProtocol.CommandId.REQ_DISCONNECT
);
}

public static byte[] ReqEntitySpawn(byte[] payload, out ulong entityId, out string templateName)
{
entityId = BitConverter.ToUInt64(payload, 0);
Expand Down
File renamed without changes.
11 changes: 11 additions & 0 deletions Libraries/Flakkari4Unity/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "com.master-laplace.flakkari4unity",
"version": "1.0.0",
"displayName": "Flakkari Protocol for Unity",
"description": "A protocol library for communicating with the Flakkari server in Unity.",
"unity": "2022.3",
"dependencies": {},
"author": {
"name": "Master Laplace"
}
}

0 comments on commit 086cfca

Please sign in to comment.