提交Unity 联机Pro

This commit is contained in:
PC-20230316NUNE\Administrator
2024-08-17 14:27:18 +08:00
parent f00193b000
commit 894100ae37
7448 changed files with 854473 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using Google.Protobuf;
namespace Plugins.JNGame.Network.Entity
{
public class JNetParam
{
//请求处理 Id (用来找到处理方法)
private int _hId;
public int HId => _hId;
//请求Id (请求标识)
private int _id;
public int ID => _id;
//请求参数
private IMessage _data;
public IMessage Data => _data;
private byte[] _bytes;
public byte[] Bytes => _bytes;
public JNetParam(int id,int hId)
{
_hId = hId;
_id = id;
}
//构造器
public static JNetParam Build(int id,int hId){
return new JNetParam(id,hId);
}
public JNetParam SetData(IMessage data){
this._data = data;
return this;
}
public JNetParam SetByte(byte[] bytes){
this._bytes = bytes;
return this;
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f311c8c368584fab839dd72819fc55da
timeCreated: 1706004134