mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
26 lines
583 B
C#
26 lines
583 B
C#
using System.Threading.Tasks;
|
|
using Plugins.JNGame.Network.Group;
|
|
|
|
namespace AppGame.Systems
|
|
{
|
|
public class JNGClientGroup : JNClientGroup<JNGClient>
|
|
{
|
|
|
|
//玩家Id
|
|
private int clientId;
|
|
|
|
public int ClientID => clientId;
|
|
|
|
public override async Task OnInit()
|
|
{
|
|
clientId = (await App.GAPI.NSyncTileClientId).data;
|
|
await base.OnInit();
|
|
}
|
|
|
|
public override void AddClient(JNGClient client)
|
|
{
|
|
client.BindID(clientId);
|
|
base.AddClient(client);
|
|
}
|
|
}
|
|
} |