| | |
| | | }
|
| | | }
|
| | |
|
| | | public void RequestQueryMapLineState(int _mapId, int _lineId = 0, bool _isAllLine = true)
|
| | | public void RequestQueryMapLineState(int _mapId, byte[] _lineIds = null, bool _isAllLine = true)
|
| | | {
|
| | | var config = MapConfig.Get(_mapId);
|
| | | if (config.MapFBType == (int)MapType.OpenCountry)
|
| | |
| | | {
|
| | | var lineState = new CA004_tagCGGetFBLinePlayerCnt();
|
| | | lineState.MapID = (uint)_mapId;
|
| | | lineState.IsAllLine = (byte)(_isAllLine ? 1 : 0);
|
| | | lineState.LineCount = (byte)(_isAllLine ? 0 : _lineIds.Length);
|
| | | if (_isAllLine)
|
| | | {
|
| | | lineState.FBLineID = (byte)_lineId;
|
| | | lineState.LineIDList = new byte[0];
|
| | | }
|
| | | GameNetSystem.Instance.SendInfo(lineState);
|
| | | }
|