using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
|
|
/// <summary>
|
/// 古宝养成排行榜活动
|
/// </summary>
|
namespace vnxbqy.UI
|
{
|
public class ServerMirrorFightModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
{
|
public const int mirrorPlayerStartID = 100000000; // 和服务端约定镜像玩家起始ID
|
public override void Init()
|
{
|
|
}
|
|
|
public override void UnInit()
|
{
|
|
}
|
|
public void OnBeforePlayerDataInitialize()
|
{
|
|
}
|
|
public void OnPlayerLoginOk()
|
{
|
}
|
|
// cmdType命令类型: 0-创建战斗;1-开始战斗(不用);2-战斗中跳过;3-不创建战斗直接得结果
|
public void SendMirrorFight(uint mapID, ushort funcLineID, uint tagPlayerID, byte cmdType)
|
{
|
if (cmdType == 0)
|
{
|
//服务端回报慢,先打开loading界面
|
WindowCenter.Instance.Open<LoadingWin>();
|
WindowCenter.Instance.Close<MainInterfaceWin>();
|
}
|
|
CB411_tagCMMirrorFight cb411 = new CB411_tagCMMirrorFight();
|
cb411.MapID = mapID;
|
cb411.FuncLineID = funcLineID;
|
cb411.TagPlayeID = tagPlayerID;
|
cb411.CmdType = cmdType;
|
GameNetSystem.Instance.SendInfo(cb411);
|
}
|
}
|
}
|
|