mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 10:23:59 +00:00
Added several CallGS handlers.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace MikuSB.GameServer.Server.CallGS.Handlers.Activity;
|
||||
|
||||
// Updates the lobby activity face (presentation effect).
|
||||
// param: {nType(1=equip, 2=unequip, 3=set flag), nId, bFlag}
|
||||
// Response: {nFaceId, nId, nType} — nFaceId=0 means no next face
|
||||
[CallGSApi("ActivityFace_Update")]
|
||||
public class ActivityFace_Update : ICallGSHandler
|
||||
{
|
||||
public async Task Handle(Connection connection, string param, ushort seqNo)
|
||||
{
|
||||
// TODO: process face equip/unequip state and return the next face to display
|
||||
await CallGSRouter.SendScript(connection, "ActivityFace_Update", "{\"nFaceId\":0,\"nId\":0,\"nType\":0}", seqNo);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace MikuSB.GameServer.Server.CallGS.Handlers.Activity;
|
||||
|
||||
// Client requests an activity state refresh. No s2c callback registered on client side.
|
||||
// param: {nId}
|
||||
[CallGSApi("Activity_Refresh")]
|
||||
public class Activity_Refresh : ICallGSHandler
|
||||
{
|
||||
public Task Handle(Connection connection, string param, ushort seqNo)
|
||||
{
|
||||
// TODO: refresh activity state for the given nId
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user