80 lines
1.5 KiB
C#
80 lines
1.5 KiB
C#
using System.Collections.Generic;
|
|
using Gameplay.Net;
|
|
using NPOI.SS.Formula.Functions;
|
|
|
|
public partial class LegionManager
|
|
{
|
|
public List<uint> MercenaryList = new();
|
|
|
|
#region Data
|
|
|
|
#endregion
|
|
|
|
#region 通信
|
|
|
|
/// <summary>
|
|
/// 申请雇佣兵列表
|
|
/// </summary>
|
|
public void ReqGetMercenaryList(int page)
|
|
{
|
|
NetHelper.ReqMercenarySignUpData((uint)page);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 申请军团招募列表
|
|
/// </summary>
|
|
/// <param name="page"></param>
|
|
public void ReqGetMercenaryHireData(int page)
|
|
{
|
|
NetHelper.ReqMercenaryHireData((uint)page);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 注册雇佣兵
|
|
/// </summary>
|
|
/// <param name="cost"></param>
|
|
public void ReqMercenarySignUp(int cost)
|
|
{
|
|
NetHelper.ReqMercenarySignUp((uint)cost);
|
|
}
|
|
|
|
public void ReqLegionPostHiring(MercenaryHire hire)
|
|
{
|
|
NetHelper.ReqLegionPostHiring(hire);
|
|
}
|
|
#endregion
|
|
|
|
#region API
|
|
|
|
public void CheckIsInLegion(uint actorID)
|
|
{
|
|
|
|
}
|
|
|
|
// public List<uint> GetMyBattleTeam()
|
|
// {
|
|
//
|
|
// }
|
|
#endregion
|
|
}
|
|
|
|
public class MercenaryHire
|
|
{
|
|
public int Count;
|
|
public int LimitLevel;
|
|
public int Cost;
|
|
public bool AutoApprove;
|
|
|
|
public MercenaryHire(int count, int limitLevel, int cost, bool autoApprove)
|
|
{
|
|
Count = count;
|
|
LimitLevel = limitLevel;
|
|
Cost = cost;
|
|
AutoApprove = autoApprove;
|
|
}
|
|
}
|
|
public class MercenaryData
|
|
{
|
|
public uint ActorID;
|
|
public int HireCost;
|
|
} |