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
436 B
C#
13 lines
436 B
C#
using Yuanshen.SDK.Models;
|
|
|
|
namespace Yuanshen.SDK.Handlers;
|
|
|
|
public static class AnnouncementHandler
|
|
{
|
|
public static IResult OnAlertAnn() => Ok(new AlertAnnData());
|
|
public static IResult OnAnnList() => Ok(new AnnListData());
|
|
public static IResult OnAnnContent() => Ok(new AnnContentData());
|
|
|
|
private static IResult Ok<T>(T data) =>
|
|
TypedResults.Text(Json.Ser(new Rsp<T> { Data = data }), "application/json");
|
|
}
|