KCP gameserver with packet dispatch, scene streaming, combat, gacha and the shop, plus a small HTTP server for the login flow and the wish history page. Game data under assets is pulled out of the client instead of being typed by hand. The excel tables come from the packed bin container and the spawn points from the compiled scene scripts.
14 lines
402 B
C#
14 lines
402 B
C#
namespace Yuanshen.Kcp
|
|
{
|
|
internal static class KcpGlobalVars
|
|
{
|
|
#if !CONVID32
|
|
public const ushort CONVID_LENGTH = 8;
|
|
public const ushort HEADER_LENGTH_WITH_CONVID = 28;
|
|
public const ushort HEADER_LENGTH_WITHOUT_CONVID = 20;
|
|
#else
|
|
public const ushort HEADER_LENGTH_WITH_CONVID = 24;
|
|
public const ushort HEADER_LENGTH_WITHOUT_CONVID = 20;
|
|
#endif
|
|
}
|
|
}
|