Exemple #1
0
 private void loadImmediateManifest(Type type)
 {
     loadImmediateManifestMethod.MakeGenericMethod(type).Invoke(this, new object[1]
     {
         StaticGameDataUtils.GetManifestContentKey(type)
     });
 }
Exemple #2
0
 private CoroutineReturn loadAsyncManifest(Type type)
 {
     return((CoroutineReturn)loadAsyncManifestMethod.MakeGenericMethod(type).Invoke(this, new object[1]
     {
         StaticGameDataUtils.GetManifestContentKey(type)
     }));
 }
    public override IEnumerator PerformFirstPass()
    {
        ManifestContentKey      levelXPManifestContentKey = StaticGameDataUtils.GetManifestContentKey(typeof(ProgressionMascotLevelXPDefinition));
        AssetRequest <Manifest> assetRequest2             = Content.LoadAsync(levelXPManifestContentKey);

        yield return(assetRequest2);

        Service.Set(new ProgressionService(assetRequest2.Asset));
    }
        public override IEnumerator PerformFirstPass()
        {
            ManifestContentKey      unlockManifestContentKey = StaticGameDataUtils.GetManifestContentKey(typeof(ActionButtonRequestRuleDefinition));
            AssetRequest <Manifest> request = Content.LoadAsync(unlockManifestContentKey);

            yield return(request);

            Service.Set(new ActionButtonRequestRuleService(request.Asset));
        }
Exemple #5
0
        public override IEnumerator PerformFirstPass()
        {
            ManifestContentKey      lootRewardsManifestContentKey = StaticGameDataUtils.GetManifestContentKey(typeof(LootTableRewardDefinition));
            AssetRequest <Manifest> assetRequest = Content.LoadAsync(lootRewardsManifestContentKey);

            yield return(assetRequest);

            MinigameService service = new MinigameService(assetRequest.Asset);

            Service.Set(service);
        }
        public override IEnumerator PerformFirstPass()
        {
            ManifestContentKey      propManifestContentKey = StaticGameDataUtils.GetManifestContentKey(typeof(PropDefinition));
            AssetRequest <Manifest> manifest = Content.LoadAsync(propManifestContentKey);

            yield return(manifest);

            PropService propService = new PropService(Service.Get <EventDispatcher>(), manifest.Asset);

            Service.Set(propService);
        }
    public override IEnumerator PerformFirstPass()
    {
        GameObject              go      = Service.Get <GameObject>();
        SceneTransitionService  service = go.AddComponent <SceneTransitionService>();
        ManifestContentKey      sceneDefinitionManifestContentKey = StaticGameDataUtils.GetManifestContentKey(typeof(SceneDefinition));
        AssetRequest <Manifest> assetRequest = Content.LoadAsync(sceneDefinitionManifestContentKey);

        yield return(assetRequest);

        if (assetRequest != null)
        {
            service.SetScenesFromManifest(assetRequest.Asset);
        }
        Service.Set(service);
    }
Exemple #8
0
    public IEnumerator loadRewardManifest()
    {
        ManifestContentKey      lootRewardsManifestContentKey = StaticGameDataUtils.GetManifestContentKey(typeof(LootTableRewardDefinition));
        AssetRequest <Manifest> assetRequest = Content.LoadAsync(lootRewardsManifestContentKey);

        yield return(assetRequest);

        Manifest lootManifest = assetRequest.Asset;

        ScriptableObject[] assets = lootManifest.Assets;
        foreach (ScriptableObject scriptableObject in assets)
        {
            LootTableRewardDefinition lootTableRewardDefinition = (LootTableRewardDefinition)scriptableObject;
            Loot[lootTableRewardDefinition.Id] = lootTableRewardDefinition;
        }
    }
Exemple #9
0
    public override IEnumerator PerformFirstPass()
    {
        GameObject              go = Service.Get <GameObject>();
        ManifestContentKey      zoneDefinitionManifestContentKey = StaticGameDataUtils.GetManifestContentKey(typeof(ZoneDefinition));
        AssetRequest <Manifest> assetZoneRequest = Content.LoadAsync(zoneDefinitionManifestContentKey);
        ManifestContentKey      worldDefinitionManifestContentKey = StaticGameDataUtils.GetManifestContentKey(typeof(WorldDefinition));
        AssetRequest <Manifest> assetWorldRequest = Content.LoadAsync(worldDefinitionManifestContentKey);

        yield return(assetZoneRequest);

        yield return(assetWorldRequest);

        ZoneTransitionService service = go.AddComponent <ZoneTransitionService>();

        service.SetIglooSplashScreenKey(IglooSplashScreen);
        service.SetZonesFromManifest(assetZoneRequest.Asset);
        service.SetWorldsFromManifest(assetWorldRequest.Asset);
        Service.Set(service);
    }
    public override IEnumerator PerformFirstPass()
    {
        AssetRequest <AvatarDefinition> avatarRequest = Content.LoadAsync(AvatarDefinitionKey);

        yield return(avatarRequest);

        AssetRequest <AvatarDefinition> mannequinAvatarRequest = Content.LoadAsync(MannequinAvatarDefinitionKey);

        yield return(mannequinAvatarRequest);

        AvatarColorDefinition defaultColorDefinition = Service.Get <GameData>().Get <Dictionary <int, AvatarColorDefinition> >()[0];

        if (ColorUtility.TryParseHtmlString("#" + defaultColorDefinition.Color, out Color bodyColor))
        {
            avatarRequest.Asset.BodyColor.BodyColor = bodyColor;
        }
        AvatarService avatarService = new AvatarService(new AvatarDefinition[2]
        {
            avatarRequest.Asset,
            mannequinAvatarRequest.Asset
        });

        Service.Set(avatarService);
        AvatarOutfitCombineManager.UseGpuSkinning = UseGpuSkinning;
        AvatarOutfitCombineManager.CombineLocal   = CombineLocal;
        AvatarOutfitCombineManager.CombineRemote  = CombineRemote;
        ManifestContentKey      key          = StaticGameDataUtils.GetManifestContentKey(typeof(TemporaryHeadStatusDefinition));
        AssetRequest <Manifest> assetRequest = Content.LoadAsync(key);

        yield return(assetRequest);

        Manifest manifest = assetRequest.Asset;

        ScriptableObject[] assets = manifest.Assets;
        foreach (ScriptableObject scriptableObject in assets)
        {
            TemporaryHeadStatusDefinition temporaryHeadStatusDefinition = (TemporaryHeadStatusDefinition)scriptableObject;
            HeadStatusView.HeadStatusToDefinition[temporaryHeadStatusDefinition.Type] = temporaryHeadStatusDefinition;
        }
    }
        private void loadContent()
        {
            ManifestContentKey manifestContentKey = StaticGameDataUtils.GetManifestContentKey(typeof(GlobalChatPhrasesDefinition));

            Content.LoadAsync(onManifestLoadComplete, manifestContentKey);
        }
 public static string GetDateManifestMapPath()
 {
     return(UriUtil.Combine(StaticGameDataUtils.GetPathFromResources(StaticGameDataUtils.GetDefinitionPath(typeof(DailyChallengeScheduleDefinition))), "Schedule"));
 }