少年修仙传客户端代码仓库
hch
2025-06-12 204ef05a831c9484e2abc561d27ecbff7c797453
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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);
        }
    }
}