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.
13 lines
308 B
C#
13 lines
308 B
C#
using System.Text.Json;
|
|
|
|
namespace Yuanshen.SDK;
|
|
|
|
public static class Json
|
|
{
|
|
private static readonly JsonSerializerOptions s_opts = new()
|
|
{
|
|
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower
|
|
};
|
|
|
|
public static string Ser(object value) => JsonSerializer.Serialize(value, s_opts);
|
|
}
|