| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class TeamModel : Model, IAfterPlayerDataInitialize, ISwitchAccount, IPlayerLoginOk
|
| | | public class TeamModel : Model, IAfterPlayerDataInitialize, ISwitchAccount, IPlayerLoginOk, IMapInitOk
|
| | | {
|
| | | public const int NONE_MISSION = 0;
|
| | | public const int CURRENTMAP_MISSION = 1;
|
| | |
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | serverInited = true;
|
| | |
|
| | | var mapConfig = ConfigManager.Instance.GetTemplate<MapConfig>(PlayerDatas.Instance.baseData.MapID);
|
| | | if (mapConfig != null && mapConfig.MapFBType == (int)MapType.OpenCountry)
|
| | | {
|
| | | lastOpenCountryMapRecorder = PlayerDatas.Instance.baseData.MapID;
|
| | | }
|
| | | }
|
| | |
|
| | | private void OnMatchingCoolDownEnd()
|
| | |
| | | moveToNPCRecord = 0;
|
| | | }
|
| | |
|
| | | public void OnMapInitOk()
|
| | | {
|
| | | var mapConfig = ConfigManager.Instance.GetTemplate<MapConfig>(PlayerDatas.Instance.baseData.MapID);
|
| | | if (mapConfig != null && mapConfig.MapFBType == (int)MapType.OpenCountry)
|
| | | {
|
| | | lastOpenCountryMapRecorder = PlayerDatas.Instance.baseData.MapID;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | }
|