| | |
| | | public class StageLoad : SingletonMonobehaviour<StageLoad> |
| | | { |
| | | StageLoadProcessor stageLoadProcessor; |
| | | public float progress |
| | | { |
| | | get |
| | | { |
| | | public float progress { |
| | | get { |
| | | if (stageLoadProcessor != null) |
| | | { |
| | | return stageLoadProcessor.progress; |
| | |
| | | } |
| | | |
| | | Stage m_CurrentStage; |
| | | public Stage currentStage |
| | | { |
| | | public Stage currentStage { |
| | | get { return m_CurrentStage; } |
| | | set { m_CurrentStage = value; } |
| | | } |
| | | |
| | | public Stage.E_StageType stageType |
| | | { |
| | | get |
| | | { |
| | | public Stage.E_StageType stageType { |
| | | get { |
| | | return (currentStage != null && currentStage is DungeonStage) ? Stage.E_StageType.Dungeon : Stage.E_StageType.MainCity; |
| | | } |
| | | } |
| | |
| | | public ServerType serverType; |
| | | public bool isClientLoadMap; |
| | | public bool needLoadResource; |
| | | public bool refreshPlayerDatas; |
| | | |
| | | public bool serverFlag0109 = false; |
| | | } |
| | |
| | | |
| | | unloadUnUsedOperation = Resources.UnloadUnusedAssets(); |
| | | |
| | | if (command.isClientLoadMap &&
|
| | | (command.fromMapId == HazyDemonKingModel.Client_MapID || |
| | | command.fromMapId == HazyGrassModel.Client_ReikiGrassMapID || |
| | | command.serverType == ServerType.CrossSever)) |
| | | if (command.refreshPlayerDatas) |
| | | { |
| | | var sendInfo = new CA108_tagCMRefreshMainServerRole(); |
| | | GameNetSystem.Instance.SendInfo(sendInfo); |
| | |
| | | GameNetSystem.Instance.PushPackage(attackMode, ServerType.Main); |
| | | } |
| | | |
| | | public static void FakeWaitFight( int waitSeconds) |
| | | public static void FakeWaitFight(int waitSeconds) |
| | | { |
| | | var fakeBarrier = new HA713_tagMCDynamicBarrierState(); |
| | | fakeBarrier.State = 1; |
| | |
| | | needEmpty = true, |
| | | needLoadResource = true, |
| | | serverType = ServerType.CrossSever, |
| | | isClientLoadMap = true |
| | | isClientLoadMap = true, |
| | | refreshPlayerDatas = true |
| | | }); |
| | | } |
| | | |
| | |
| | | needEmpty = true,
|
| | | needLoadResource = true,
|
| | | serverType = ServerType.Main,
|
| | | isClientLoadMap = true
|
| | | isClientLoadMap = true,
|
| | | refreshPlayerDatas=true
|
| | | });
|
| | | }
|
| | | }
|
| | |
| | | needEmpty = true,
|
| | | needLoadResource = true,
|
| | | serverType = ServerType.Main,
|
| | | isClientLoadMap = true
|
| | | isClientLoadMap = true,
|
| | | refreshPlayerDatas=true
|
| | | });
|
| | | }
|
| | | }
|