NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/Legion/LegionManager.Net.cs

74 lines
1.4 KiB
C#

using System.Collections.Generic;
using Gameplay.Net;
using NLDPB;
public partial class LegionManager
{
public void _RegisterNetAck()
{
}
public void _UnregisterNetAck()
{
}
/// <summary>
/// 解析服务器下发Legion数据
/// </summary>
private Legion _ParseLegionData(MSG_LegionData legionData)
{
var legion = new Legion(legionData);
return legion;
}
#region API
/// <summary>
/// 请求军团详细信息
/// </summary>
public void ReqLegionInfo(uint id)
{
}
/// <summary>
/// 请求创建军团
/// </summary>
public void ReqCreateLegion()
{
}
/// <summary>
/// 请求存储军团信息,编辑军团信息
/// </summary>
public void ReqSaveLegionInfo(Legion legion)
{
if (legion.ID == 0)
{
return;
}
}
/// <summary>
/// 根据页数请求军团列表信息
/// </summary>
/// <param name="page"></param>
public void ReqLegionListByPage(int page)
{
NetHelper.ReqLegionListByPage((uint)page);
}
/// <summary>
/// 根据key搜索军团列表信息
/// </summary>
/// <param name="key"></param>
public void ReqLegionListByKey(string key)
{
NetHelper.ReqLegionListByKey(key);
}
#endregion
}