示例#1
0
    protected IEnumerator _Initialize()
    {
        questInfo = (GameSection.GetEventData() as QuestInfoData);
        if (questInfo.questData.tableData.questType == QUEST_TYPE.ORDER)
        {
            QuestItemInfo item = MonoBehaviourSingleton <InventoryManager> .I.GetQuestItem(questInfo.questData.tableData.questID);

            if (item != null)
            {
                GameSaveData.instance.RemoveNewIconAndSave(ITEM_ICON_TYPE.QUEST_ITEM, item.uniqueID);
            }
        }
        LoadingQueue load_queue = new LoadingQueue(this);

        if (questInfo != null)
        {
            EnemyTable.EnemyData enemy_data = Singleton <EnemyTable> .I.GetEnemyData((uint)questInfo.questData.tableData.GetMainEnemyID());

            if (enemy_data != null)
            {
                EnemyLoader.CacheUIElementEffect(load_queue, enemy_data.element);
            }
        }
        load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_new");
        load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_complete");
        if (load_queue.IsLoading())
        {
            yield return((object)load_queue.Wait());
        }
    }
    protected override IEnumerator DoInitialize()
    {
        string  resourceName = ResourceName.GetEventBG(eventData.bannerId);
        Hash128 hash         = default(Hash128);

        if (MonoBehaviourSingleton <ResourceManager> .I.manifest != null)
        {
            hash = MonoBehaviourSingleton <ResourceManager> .I.manifest.GetAssetBundleHash(RESOURCE_CATEGORY.EVENT_BG.ToAssetBundleName(resourceName));
        }
        if (MonoBehaviourSingleton <ResourceManager> .I.manifest == null || hash.get_isValid())
        {
            LoadingQueue load_queue = new LoadingQueue(this);
            LoadObject   lo_bg      = load_queue.Load(RESOURCE_CATEGORY.EVENT_BG, resourceName, false);
            LoadObject   lo_item    = null;
            if (ShouldShowEventMapButton())
            {
                lo_item = load_queue.Load(RESOURCE_CATEGORY.QUEST_ITEM, "QEM_10000000", false);
            }
            if (load_queue.IsLoading())
            {
                yield return((object)load_queue.Wait());
            }
            SetTexture(texture: lo_bg.loadedObject as Texture2D, texture_enum: UI.TEX_EVENT_BG);
            if (lo_item != null && null != lo_item.loadedObject)
            {
                GameObject mapItemObj = lo_item.loadedObject as GameObject;
                mapItem = mapItemObj.get_transform();
            }
        }
        GetDeliveryList();
        EndInitialize();
    }
    private IEnumerator DoInitialize()
    {
        bool         is_recv_quest = false;
        LoadingQueue load_queue    = new LoadingQueue(this);

        load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_new");
        load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_complete");
        InitSearchParam();
        QuestAcceptChallengeRoomCondition.ChallengeSearchRequestParam sendParam = new QuestAcceptChallengeRoomCondition.ChallengeSearchRequestParam();
        int userLevel = sendParam.enemyLevel = GetEnemyLevelFromUserLevel();

        MonoBehaviourSingleton <QuestManager> .I.SendGetChallengeList(sendParam, delegate
        {
            ((_003CDoInitialize_003Ec__Iterator6D) /*Error near IL_00a4: stateMachine*/)._003Cis_recv_quest_003E__0 = true;
        }, false);

        while (!is_recv_quest)
        {
            yield return((object)null);
        }
        this.StartCoroutine(CheckLimitQuestItem());
        if (load_queue.IsLoading())
        {
            yield return((object)load_queue.Wait());
        }
        base.Initialize();
    }
示例#4
0
    public void Preload(LoadingQueue loadQueue)
    {
        uint regionId = MonoBehaviourSingleton <FieldManager> .I.currentMapData.regionId;

        loadedExploreMap_ = loadQueue.Load(RESOURCE_CATEGORY.WORLDMAP, "ExploreMap_" + regionId.ToString("D3"), false);
        loadedMarker_     = loadQueue.Load(RESOURCE_CATEGORY.WORLDMAP, "ExplorePlayerMarkerMini", false);
    }
    private IEnumerator DoInitialize()
    {
        bool         is_recv_quest = false;
        LoadingQueue load_queue    = new LoadingQueue(this);

        load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_new");
        load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_complete");
        if (MonoBehaviourSingleton <QuestManager> .I.needRequestOrderQuestList)
        {
            MonoBehaviourSingleton <QuestManager> .I.SendGetQuestList(delegate
            {
                MonoBehaviourSingleton <QuestManager> .I.needRequestOrderQuestList = false;
                ((_003CDoInitialize_003Ec__Iterator71) /*Error near IL_0075: stateMachine*/)._003Cis_recv_quest_003E__0 = true;
            });

            while (!is_recv_quest)
            {
                yield return((object)null);
            }
        }
        this.StartCoroutine(CheckLimitQuestItem());
        sortSettings = SortSettings.CreateMemSortSettings(SortBase.DIALOG_TYPE.QUEST, SortSettings.SETTINGS_TYPE.ORDER_QUEST);
        SHOW_QUEST_REMAIN_LIMIT_SECOND = (float)TimeSpan.FromDays(5.0).TotalSeconds;
        sortSettings.indivComparison   = Compare;
        if (load_queue.IsLoading())
        {
            yield return((object)load_queue.Wait());
        }
        base.Initialize();
    }
示例#6
0
    private IEnumerator DoInitalize()
    {
        LoadingQueue loadQueue = new LoadingQueue(this);

        loadQueue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, $"ef_ui_pointresult_{currentData.eventId:D8}");
        if (loadQueue.IsLoading())
        {
            yield return((object)loadQueue.Wait());
        }
        SetVisibleWidgetEffect(UI.TXT_BANNER, $"ef_ui_pointresult_{currentData.eventId:D8}");
        UIVisibleWidgetEffect visibleWidget = bannerCtrl.GetComponent <UIVisibleWidgetEffect>();

        visibleWidget.SetRendererQueue(4000);
        PlayAudio(AUDIO.TITLE_LOGO);
        ResourceLoad.LoadEventBannerResultTexture(GetCtrl(UI.SPR_LOGO).GetComponent <UITexture>(), (uint)currentData.eventId);
        ResourceLoad.LoadEventBannerResultBGTexture(GetCtrl(UI.SPR_LOGO_BG).GetComponent <UITexture>(), (uint)currentData.eventId);
        TweenAlpha logoBGAlpha = GetCtrl(UI.SPR_LOGO_BG).GetComponent <TweenAlpha>();

        if (logoBGAlpha != null)
        {
            logoBGAlpha.ResetToBeginning();
            logoBGAlpha.PlayForward();
        }
        base.Initialize();
    }
示例#7
0
 private void Init(IEnumerator _coroutine, Transform parent, int layer, int sex_id, int face_id, Action _callback)
 {
     //IL_008c: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
     Clear();
     if (sex_id == -1)
     {
         sexID = MonoBehaviourSingleton <UserInfoManager> .I.userStatus.sex;
     }
     else
     {
         sexID = sex_id;
     }
     faceID = face_id;
     if (face_id == -1)
     {
         faceModelID = MonoBehaviourSingleton <UserInfoManager> .I.GetFaceModelID();
     }
     else
     {
         faceModelID = MonoBehaviourSingleton <GlobalSettingsManager> .I.playerVisual.GetFaceModelID(sexID, face_id);
     }
     callback     = _callback;
     loadingQueue = new LoadingQueue(this);
     _transform.get_gameObject().set_layer(layer);
     coroutine = _coroutine;
     this.StartCoroutine(_coroutine);
 }
示例#8
0
    private IEnumerator DoLoading()
    {
        LoadingQueue load_queue = new LoadingQueue(this);

        int[]             values = (int[])Enum.GetValues(typeof(SoundID.UISE));
        List <LoadObject> los    = new List <LoadObject>();
        bool internal_mode       = ResourceManager.internalMode;
        bool enable_cache        = ResourceManager.enableCache;

        ResourceManager.internalMode = true;
        ResourceManager.enableCache  = false;
        int[] array = values;
        foreach (int id in array)
        {
            if (id > 0)
            {
                LoadObject lo = load_queue.LoadSE(id);
                los.Add(lo);
            }
        }
        ResourceManager.internalMode = internal_mode;
        ResourceManager.enableCache  = enable_cache;
        yield return((object)load_queue.Wait());

        SetSystemSEClips(values, los);
        m_IsLoading = false;
    }
示例#9
0
    public IEnumerator DoInitialize()
    {
        currentType = VIEW_TYPE.NORMAL;
        currentPage = 1;
        bool         hasList      = false;
        LoadingQueue loadingQueue = new LoadingQueue(this);

        loadingQueue.Load(RESOURCE_CATEGORY.UI, "PointShopListItem", false);
        MonoBehaviourSingleton <UserInfoManager> .I.PointShopManager.SendGetPointShops(delegate(bool isSuccess, List <PointShop> resultList)
        {
            if (isSuccess)
            {
                ((_003CDoInitialize_003Ec__Iterator91) /*Error near IL_0073: stateMachine*/)._003C_003Ef__this.pointShop = resultList;
                foreach (PointShop item in ((_003CDoInitialize_003Ec__Iterator91) /*Error near IL_0073: stateMachine*/)._003C_003Ef__this.pointShop)
                {
                    ((_003CDoInitialize_003Ec__Iterator91) /*Error near IL_0073: stateMachine*/)._003CloadingQueue_003E__1.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointIconImageName(item.pointShopId), false);
                }
                ((_003CDoInitialize_003Ec__Iterator91) /*Error near IL_0073: stateMachine*/)._003ChasList_003E__0 = true;
            }
        });

        while (!hasList)
        {
            yield return((object)null);
        }
        if (loadingQueue.IsLoading())
        {
            yield return((object)loadingQueue.Wait());
        }
        base.Initialize();
    }
示例#10
0
    private IEnumerator LoadPeopleWayPoint()
    {
        LoadingQueue load_queue    = new LoadingQueue(this);
        string       wayPointName  = "PeopleWayPoints";
        LoadObject   lo_way_points = load_queue.Load(RESOURCE_CATEGORY.SYSTEM, "SystemOutGame", new string[1]
        {
            wayPointName
        }, false);

        if (load_queue.IsLoading())
        {
            yield return((object)load_queue.Wait());
        }
        Transform wayPoints = ResourceUtility.Realizes(lo_way_points.loadedObject, this.get_transform(), -1);

        Utility.ForEach(wayPoints, delegate(Transform o)
        {
            if (o.get_name().StartsWith("LEAF"))
            {
                ((_003CLoadPeopleWayPoint_003Ec__IteratorA3) /*Error near IL_00ba: stateMachine*/)._003C_003Ef__this.leafPoints.Add(o.GetComponent <WayPoint>());
            }
            else if (o.get_name() == "CENTER")
            {
                ((_003CLoadPeopleWayPoint_003Ec__IteratorA3) /*Error near IL_00ba: stateMachine*/)._003C_003Ef__this.centerPoint = o.GetComponent <WayPoint>();
            }
            return(false);
        });
    }
 private IEnumerator SetPointShopGetPointUI()
 {
     if (pointShopGetPointData != null && pointShopGetPointData.Count > 0)
     {
         LoadingQueue queue = new LoadingQueue(this);
         queue.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointIconImageName((int)pointShopGetPointData[0].pointShopId), false);
         if (queue.IsLoading())
         {
             yield return((object)queue.Wait());
         }
         SetActive((Enum)UI.OBJ_NORMAL_ROOT, true);
         SetLabelText((Enum)UI.LBL_POINT_NORMAL, string.Format(StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), pointShopGetPointData[0].basePoint));
         UITexture normalTex = GetCtrl(UI.TEX_NORMAL_ICON).GetComponent <UITexture>();
         ResourceLoad.LoadPointIconImageTexture(normalTex, pointShopGetPointData[0].pointShopId);
         if (pointShopGetPointData.Count >= 2)
         {
             queue.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointIconImageName((int)pointShopGetPointData[1].pointShopId), false);
             if (queue.IsLoading())
             {
                 yield return((object)queue.Wait());
             }
             SetActive((Enum)UI.OBJ_EVENT_ROOT, true);
             SetLabelText((Enum)UI.LBL_POINT_EVENT, string.Format(StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), pointShopGetPointData[1].basePoint));
             UITexture eventTex = GetCtrl(UI.TEX_EVENT_ICON).GetComponent <UITexture>();
             ResourceLoad.LoadPointIconImageTexture(eventTex, pointShopGetPointData[1].pointShopId);
         }
     }
 }
    private IEnumerator InitPortalStatusImpl(Action onComplete)
    {
        LoadingQueue loadQueue = new LoadingQueue(this);
        UIntKeyTable <LoadObject> loadTextures = new UIntKeyTable <LoadObject>();

        for (int k = 0; k < locations.Length; k++)
        {
            FieldMapTable.FieldMapTableData tableData = locations[k].tableData;
            if (tableData != null && tableData.hasChildRegion && loadTextures.Get(tableData.iconId) == null)
            {
                loadTextures.Add(tableData.iconId, loadQueue.Load(RESOURCE_CATEGORY.DUNGEON_ICON, ResourceName.GetDungeonIcon(tableData.iconId), false));
            }
        }
        if (loadQueue.IsLoading())
        {
            yield return((object)loadQueue.Wait());
        }
        for (int j = 0; j < locations.Length; j++)
        {
            FieldMapTable.FieldMapTableData tableData2 = locations[j].tableData;
            if (tableData2 != null && tableData2.hasChildRegion)
            {
                locations[j].icon = (loadTextures.Get(tableData2.iconId).loadedObject as Texture2D);
            }
        }
        for (int i = 0; i < portals.Length; i++)
        {
            RegionMapPortal portal = portals[i];
            if (portal.IsVisited())
            {
                portal.Open();
            }
        }
        onComplete?.Invoke();
    }
示例#13
0
    private IEnumerator DoDisplayChatStamp(int stampId)
    {
        chatStampUI.SetActive(false);
        LoadingQueue lqstamp = new LoadingQueue(this);
        LoadObject   lostamp = lqstamp.LoadChatStamp(stampId, true);

        yield return((object)lqstamp.Wait());

        if (!(lostamp.loadedObject == null))
        {
            if (chatStampTexture != null)
            {
                chatStampTexture.mainTexture = (lostamp.loadedObject as Texture2D);
            }
            if (CanDisplayChat())
            {
                chatStampUI.SetActive(true);
                if (chatStampTween != null)
                {
                    chatStampTween.ResetToBeginning();
                    chatStampTween.PlayForward();
                }
            }
        }
    }
示例#14
0
 public static void CacheUIElementEffect(LoadingQueue load_queue, ELEMENT_TYPE element_type)
 {
     if (element_type < ELEMENT_TYPE.MAX)
     {
         load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, GetElementEffectName(element_type));
     }
 }
    private IEnumerator DoInitialize()
    {
        if (MonoBehaviourSingleton <InGameRecorder> .IsValid() && MonoBehaviourSingleton <InGameRecorder> .I.players.Count > 0)
        {
            LoadingQueue load_queue = new LoadingQueue(this);
            LoadObject   lo         = load_queue.Load(RESOURCE_CATEGORY.UI, "QuestResultDirector", false);
            List <InGameRecorder.PlayerRecord> playerRecords = MonoBehaviourSingleton <InGameRecorder> .I.players;
            int m = 0;
            while (m < playerRecords.Count)
            {
                InGameRecorder.PlayerRecord p = playerRecords[m];
                if (p == null || p.playerLoadInfo == null)
                {
                    playerRecords.RemoveAt(m);
                }
                else
                {
                    m++;
                }
            }
            players = MonoBehaviourSingleton <InGameRecorder> .I.CreatePlayerModels();

            winnder_voice_id = 0;
            if (players != null)
            {
                winnder_voice_id = players[0].GetVoiceId(ACTION_VOICE_ID.HAPPY_01);
                load_queue.CacheActionVoice(winnder_voice_id, null);
            }
            if (load_queue.IsLoading())
            {
                yield return((object)load_queue.Wait());
            }
            while (true)
            {
                bool wait = false;
                int  l    = 0;
                for (int k = players.Length; l < k; l++)
                {
                    if (players[l].isLoading)
                    {
                        wait = true;
                        break;
                    }
                }
                if (!wait)
                {
                    break;
                }
                yield return((object)null);
            }
            int j = 0;
            for (int i = players.Length; j < i; j++)
            {
                players[j].animator.set_applyRootMotion(false);
            }
            director         = ResourceUtility.Realizes(lo.loadedObject, MonoBehaviourSingleton <StageManager> .I._transform, -1).GetComponent <QuestResultDirector>();
            director.players = players;
        }
        base.Initialize();
    }
示例#16
0
    private IEnumerator DoLoad(int npc_model_id, int layer, bool need_shadow, bool enable_light_probes, SHADER_TYPE shader_type, Action callback)
    {
        loadingQueue = new LoadingQueue(this);
        string     model_name = ResourceName.GetNPCModel(npc_model_id);
        LoadObject lo_model   = loadingQueue.LoadAndInstantiate(RESOURCE_CATEGORY.NPC_MODEL, model_name);
        string     anim_name  = ResourceName.GetNPCAnim(npc_model_id);
        LoadObject lo_anim    = loadingQueue.Load(RESOURCE_CATEGORY.NPC_ANIM, anim_name, new string[1]
        {
            anim_name + "Ctrl"
        }, false);

        if (loadingQueue.IsLoading())
        {
            yield return((object)loadingQueue.Wait());
        }
        model = lo_model.Realizes(this.get_transform(), layer);
        if (model != null)
        {
            head   = Utility.Find(model, "Head");
            facial = model.GetComponentInChildren <NPCFacial>();
            if (facial != null)
            {
                facial.animNode = Utility.Find(model, "Face");
            }
            animator = model.GetComponentInChildren <Animator>();
            if (lo_anim != null && animator != null)
            {
                animator.set_runtimeAnimatorController(lo_anim.loadedObjects[0].obj as RuntimeAnimatorController);
            }
        }
        PlayerLoader.SetLightProbes(model, enable_light_probes);
        renderers = model.GetComponentsInChildren <Renderer>();
        int j = 0;

        for (int i = renderers.Length; j < i; j++)
        {
            if (renderers[j] is SkinnedMeshRenderer)
            {
                (renderers[j] as SkinnedMeshRenderer).set_localBounds(BOUNDS);
            }
        }
        switch (shader_type)
        {
        case SHADER_TYPE.LIGHTWEIGHT:
            ShaderGlobal.ChangeWantLightweightShader(renderers);
            break;

        case SHADER_TYPE.UI:
            ShaderGlobal.ChangeWantUIShader(renderers);
            break;
        }
        if (need_shadow)
        {
            shadow = PlayerLoader.CreateShadow(this.get_transform(), true, -1, shader_type == SHADER_TYPE.LIGHTWEIGHT);
        }
        coroutine = null;
        callback?.Invoke();
    }
示例#17
0
 protected void CacheAudio(LoadingQueue lo_queue)
 {
     int[] array  = (int[])Enum.GetValues(typeof(AUDIO));
     int[] array2 = array;
     foreach (int se_id in array2)
     {
         lo_queue.CacheSE(se_id, null);
     }
 }
	private IEnumerator DoInitialize()
	{
		bool is_recv_delivery = false;
		MonoBehaviourSingleton<QuestManager>.I.SendGetEventList(delegate
		{
			((_003CDoInitialize_003Ec__IteratorBB)/*Error near IL_0035: stateMachine*/)._003Cis_recv_delivery_003E__0 = true;
		});
		while (!is_recv_delivery)
		{
			yield return (object)null;
		}
		if (isInGame)
		{
			eventList = new List<Network.EventData>(MonoBehaviourSingleton<QuestManager>.I.eventList.Count);
			List<Network.EventData> allEventList = new List<Network.EventData>(MonoBehaviourSingleton<QuestManager>.I.eventList);
			for (int j = 0; j < allEventList.Count; j++)
			{
				if (allEventList[j].eventType != 4 && allEventList[j].eventType != 12 && allEventList[j].eventType != 15)
				{
					eventList.Add(allEventList[j]);
				}
			}
		}
		else
		{
			eventList = new List<Network.EventData>(MonoBehaviourSingleton<QuestManager>.I.eventList);
		}
		RemoveEndedEvents();
		LoadingQueue loadingQueue = new LoadingQueue(this);
		bannerTable = new Dictionary<int, LoadObject>(eventList.Count);
		exploreClearedMap = new Dictionary<int, bool>();
		for (int i = 0; i < eventList.Count; i++)
		{
			Network.EventData e = eventList[i];
			if (!bannerTable.ContainsKey(e.bannerId))
			{
				string bannerImg = ResourceName.GetEventBanner(e.bannerId);
				LoadObject obj = loadingQueue.Load(RESOURCE_CATEGORY.EVENT_ICON, bannerImg, false);
				bannerTable.Add(e.bannerId, obj);
				if (e.eventType == 15 && (int)MonoBehaviourSingleton<UserInfoManager>.I.userStatus.level < 50)
				{
					LoadDisableArenaBanner(loadingQueue);
				}
				if (e.eventType == 4)
				{
					yield return (object)this.StartCoroutine(GetExplorePoint(e.eventId));
				}
			}
		}
		if (loadingQueue.IsLoading())
		{
			yield return (object)loadingQueue.Wait();
		}
		base.Initialize();
	}
 public void LoadPreloadResources(LoadingQueue load_queue)
 {
     if (preloadResourceList != null)
     {
         int i = 0;
         for (int count = preloadResourceList.Count; i < count; i++)
         {
             load_queue.Load(RESOURCE_CATEGORY.UI, preloadResourceList[i], false);
         }
     }
 }
        public LoadObject[] LoadUseResources(LoadingQueue load_queue)
        {
            LoadObject[] array = new LoadObject[useResourceList.Count];
            int          i     = 0;

            for (int count = useResourceList.Count; i < count; i++)
            {
                array[i] = load_queue.LoadAndInstantiate(RESOURCE_CATEGORY.UI, useResourceList[i]);
            }
            return(array);
        }
示例#21
0
 public static void CacheUIElementEffects(LoadingQueue load_queue)
 {
     if (MonoBehaviourSingleton <GlobalSettingsManager> .IsValid())
     {
         int i = 0;
         for (int num = 6; i < num; i++)
         {
             CacheUIElementEffect(load_queue, (ELEMENT_TYPE)i);
         }
     }
 }
示例#22
0
    private IEnumerator DoLoadEffect()
    {
        LoadingQueue load_queue = new LoadingQueue(this);

        load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_shieldgauge_01");
        while (load_queue.IsLoading())
        {
            yield return((object)null);
        }
        isLoadEffectComplete = true;
    }
    private IEnumerator DoInitialize()
    {
        LoadingQueue loadingQueue = new LoadingQueue(this);
        LoadObject   lo_direction = loadingQueue.Load(RESOURCE_CATEGORY.UI, "SmithEquipDirection", false);
        int          wait2        = 0;

        wait2++;
        NPCTable.NPCData npcData4 = Singleton <NPCTable> .I.GetNPCData(4);

        GameObject npcRoot4 = new GameObject("NPC");

        npcData4.LoadModel(npcRoot4, false, true, delegate
        {
            ((_003CDoInitialize_003Ec__Iterator133) /*Error near IL_0093: stateMachine*/)._003Cwait_003E__2--;
        }, false);
        GameObject npcRoot3 = null;

        if (this is SmithAbilityChangePerformance || this is SmithAbilityItemPerformance)
        {
            wait2++;
            NPCTable.NPCData npcData3 = Singleton <NPCTable> .I.GetNPCData(3);

            npcRoot3 = new GameObject("NPC003");
            npcData3.LoadModel(npcRoot3, false, true, delegate
            {
                ((_003CDoInitialize_003Ec__Iterator133) /*Error near IL_011c: stateMachine*/)._003Cwait_003E__2--;
            }, false);
        }
        int[] seIds2 = (int[])Enum.GetValues(typeof(SmithEquipDirector.AUDIO));
        int[] array  = seIds2;
        foreach (int seId in array)
        {
            loadingQueue.CacheSE(seId, null);
        }
        seIds2 = (int[])Enum.GetValues(typeof(EquipResultBase.AUDIO));
        int[] array2 = seIds2;
        foreach (int seId2 in array2)
        {
            loadingQueue.CacheSE(seId2, null);
        }
        yield return((object)loadingQueue.Wait());

        while (wait2 > 0)
        {
            yield return((object)null);
        }
        Object    directionObject    = lo_direction.loadedObject;
        Transform directionTransform = ResourceUtility.Realizes(directionObject, MonoBehaviourSingleton <StageManager> .I.stageObject, -1);

        director = directionTransform.GetComponent <SmithEquipDirector>();
        director.SetNPC004(npcRoot4);
        director.SetNPC003(npcRoot3);
        base.Initialize();
    }
    protected IEnumerator StartPredownload()
    {
        List <ResourceInfo> list = new List <ResourceInfo>();
        uint mapId = questData.mapId;

        FieldMapTable.FieldMapTableData fieldMapData = Singleton <FieldMapTable> .I.GetFieldMapData(mapId);

        if (fieldMapData != null)
        {
            string stageName = fieldMapData.stageName;
            if (string.IsNullOrEmpty(stageName))
            {
                stageName = "ST011D_01";
            }
            StageTable.StageData stageData = Singleton <StageTable> .I.GetData(stageName);

            if (stageData != null)
            {
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.STAGE_SCENE, stageData.scene));
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.STAGE_SKY, stageData.sky));
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.EFFECT_ACTION, stageData.cameraLinkEffect));
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.EFFECT_ACTION, stageData.cameraLinkEffectY0));
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.EFFECT_ACTION, stageData.rootEffect));
                for (int i = 0; i < 8; i++)
                {
                    list.Add(new ResourceInfo(RESOURCE_CATEGORY.EFFECT_ACTION, stageData.useEffects[i]));
                }
                EnemyTable.EnemyData enemyData = Singleton <EnemyTable> .I.GetEnemyData((uint)questData.enemyID[0]);

                int    bodyId   = enemyData.modelId;
                string bodyName = ResourceName.GetEnemyBody(bodyId);
                string mateName = ResourceName.GetEnemyMaterial(bodyId);
                string animName = ResourceName.GetEnemyAnim(enemyData.animId);
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.ENEMY_MODEL, bodyName));
                if (!string.IsNullOrEmpty(mateName))
                {
                    list.Add(new ResourceInfo(RESOURCE_CATEGORY.ENEMY_MATERIAL, bodyName));
                }
                list.Add(new ResourceInfo(RESOURCE_CATEGORY.ENEMY_ANIM, animName));
                LoadingQueue load_queue = new LoadingQueue(this);
                foreach (ResourceInfo item in list)
                {
                    if (!string.IsNullOrEmpty(item.packageName))
                    {
                        ResourceManager.downloadOnly = true;
                        load_queue.Load(item.category, item.packageName, null, false);
                        ResourceManager.downloadOnly = false;
                        yield return((object)load_queue.Wait());
                    }
                }
            }
        }
    }
示例#25
0
    private IEnumerator DoInitialize()
    {
        LoadingQueue loadingQueue = new LoadingQueue(this);

        loadingQueue.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointIconImageName(data.pointShopId), false);
        loadingQueue.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointSHopBGImageName(data.pointShopId), false);
        if (loadingQueue.IsLoading())
        {
            yield return((object)loadingQueue.Wait());
        }
        base.Initialize();
    }
示例#26
0
    protected IEnumerator LoadGachaGuaranteeCounter(Action <LoadObject> callback)
    {
        LoadingQueue loadQueue  = new LoadingQueue(this);
        string       imgName    = nextGuachaGuarantee.GetTitleImageName();
        LoadObject   loadObject = loadQueue.Load(RESOURCE_CATEGORY.GACHA_GUARANTEE_COUNTER, imgName, false);

        if (loadQueue.IsLoading())
        {
            yield return((object)loadQueue.Wait());
        }
        callback(loadObject);
    }
示例#27
0
    private IEnumerator DoInitialize()
    {
        LoadingQueue loadQueue = new LoadingQueue(this);

        Singleton <EquipItemTable> .I.CreateTableForEquipList();

        if (loadQueue.IsLoading())
        {
            yield return((object)loadQueue.Wait());
        }
        base.Initialize();
    }
    private IEnumerator Start()
    {
        while (!AppMain.isInitialized)
        {
            yield return((object)null);
        }
        LoadingQueue load_queue = new LoadingQueue(this);
        LoadObject   lo         = load_queue.Load(RESOURCE_CATEGORY.UI, "QuestRequestItem", false);

        yield return((object)load_queue.Wait());

        ResourceUtility.Instantiate <Object>(lo.loadedObject);
    }
示例#29
0
    private IEnumerator DoInitialize()
    {
        LoadingQueue load_queue             = new LoadingQueue(this);
        LoadObject   lo_quest_chatitem      = load_queue.Load(RESOURCE_CATEGORY.UI, "ChatItem", false);
        LoadObject   lo_chat_stamp_listitem = load_queue.Load(RESOURCE_CATEGORY.UI, "ChatStampListItem", false);

        talkerName = GetTalkerName(MonoBehaviourSingleton <FriendManager> .I.talkUser.userId);
        SetLabelText((Enum)UI.Title_U, talkerName);
        SetLabelText((Enum)UI.Title_D, talkerName);
        nowPage      = 0;
        loadedPage   = -1;
        itemListData = new MessageItemListData(GetCtrl(UI.OBJ_ROOM_ITEM_LIST_ROOT).get_gameObject());
        if (load_queue.IsLoading())
        {
            yield return((object)load_queue.Wait());
        }
        chatItemPrefab      = (lo_quest_chatitem.loadedObject as GameObject);
        chatStampListPrefab = (lo_chat_stamp_listitem.loadedObject as GameObject);
        SetSliderLimit();
        DummyDragScroll.width = 410;
        ResetStampIdList();
        Reset();
        postMessageList.Clear();
        UIScrollView scrollView = ScrollView;

        scrollView.onDragFinished = (UIScrollView.OnDragNotification)Delegate.Combine(scrollView.onDragFinished, new UIScrollView.OnDragNotification(OnDragFinished));
        ChatInputFrame inputFrame = InputFrame;

        inputFrame.onChange = (Action)Delegate.Combine(inputFrame.onChange, (Action) delegate
        {
            ((_003CDoInitialize_003Ec__Iterator3D) /*Error near IL_01ea: stateMachine*/)._003C_003Ef__this.OnInput();
        });
        ChatInputFrame inputFrame2 = InputFrame;

        inputFrame2.onSubmit = (Action)Delegate.Combine(inputFrame2.onSubmit, (Action) delegate
        {
            ((_003CDoInitialize_003Ec__Iterator3D) /*Error near IL_0216: stateMachine*/)._003C_003Ef__this.OnTouchPost();
        });
        if (MonoBehaviourSingleton <FriendManager> .I.talkUser.userId == 0)
        {
            GetCtrl(UI.SCR_STAMP_LIST).get_gameObject().SetActive(false);
            GetCtrl(UI.OBJ_POST_FRAME).get_gameObject().SetActive(false);
        }
        else
        {
            updateStampList = true;
            AppMain i = MonoBehaviourSingleton <AppMain> .I;
            i.onDelayCall = (Action)Delegate.Combine(i.onDelayCall, new Action(InitStampList));
        }
        base.Initialize();
    }
    private IEnumerator Loading()
    {
        renderTexture.enableTexture = false;
        if (userInfo != null && userIndex >= 0)
        {
            bool is_owner = userInfo.userId == MonoBehaviourSingleton <PartyManager> .I.GetOwnerUserId();

            foreach (Transform item in model)
            {
                Transform t = item;
                Object.Destroy(t.get_gameObject());
            }
            PlayerLoadInfo load_info = new PlayerLoadInfo();
            load_info.Apply(userInfo, true, true, true, true);
            bool wait = true;
            loader = model.get_gameObject().AddComponent <PlayerLoader>();
            loader.StartLoad(load_info, renderTexture.renderLayer, 90, false, false, false, false, false, false, true, true, SHADER_TYPE.UI, delegate
            {
                //IL_004b: Unknown result type (might be due to invalid IL or missing references)
                //IL_005b: Unknown result type (might be due to invalid IL or missing references)
                //IL_0060: Unknown result type (might be due to invalid IL or missing references)
                //IL_0068: Unknown result type (might be due to invalid IL or missing references)
                //IL_006d: Unknown result type (might be due to invalid IL or missing references)
                ((_003CLoading_003Ec__Iterator105) /*Error near IL_0168: stateMachine*/)._003Cwait_003E__4 = false;
                float num = (((_003CLoading_003Ec__Iterator105) /*Error near IL_0168: stateMachine*/)._003C_003Ef__this.userInfo.sex != 0) ? MonoBehaviourSingleton <OutGameSettingsManager> .I.statusScene.playerScaleFemale : MonoBehaviourSingleton <OutGameSettingsManager> .I.statusScene.playerScaleMale;
                ((_003CLoading_003Ec__Iterator105) /*Error near IL_0168: stateMachine*/)._003C_003Ef__this.loader.get_transform().set_localScale(((_003CLoading_003Ec__Iterator105) /*Error near IL_0168: stateMachine*/)._003C_003Ef__this.loader.get_transform().get_localScale().Mul(new Vector3(num, num, num)));
            }, true, -1);
            int voice_id = -1;
            if (!is_owner)
            {
                voice_id = loader.GetVoiceId(ACTION_VOICE_EX_ID.ALLIVE_01);
                LoadingQueue lo_queue = new LoadingQueue(this);
                lo_queue.CacheActionVoice(voice_id, null);
                while (lo_queue.IsLoading())
                {
                    yield return((object)null);
                }
            }
            while (wait)
            {
                yield return((object)null);
            }
            animCtrl = PlayerAnimCtrl.Get(loader.animator, PlayerAnimCtrl.battleAnims[load_info.weaponModelID / 1000], null, OnAnimChange, OnAnimEnd);
            renderTexture.enableTexture = true;
            if (voice_id > 0)
            {
                SoundManager.PlayActionVoice(voice_id, 1f, 0u, null, null);
            }
        }
    }