Esempio n. 1
0
    private int ExperienceCount(ExperienceType experienceType)
    {
        int num = 0;

        if (experienceType == PlayerProgress.ExperienceType.UnknownSource)
        {
            return(num);
        }
        if (Singleton <GameConfigurationManager> .Instance.HasData && Singleton <GameConfigurationManager> .Instance.HasConfig("player_experience_types"))
        {
            string     key    = experienceType.ToString();
            ConfigData config = Singleton <GameConfigurationManager> .Instance.GetConfig("player_experience_types");

            int num2;
            if (config.HasKey(key) && int.TryParse(config[key], out num2))
            {
                num = num2;
            }
        }
        if (Singleton <DoubleRewardManager> .IsInstantiated() && Singleton <DoubleRewardManager> .Instance.CurrentStatus == DoubleRewardManager.Status.Initialized && Singleton <DoubleRewardManager> .Instance.HasDoubleReward)
        {
            return(num * 2);
        }
        return(num);
    }
Esempio n. 2
0
    //[MenuItem("Window/ExperienceMachine/Asset Explorer")]
    public static void Init(ExperienceType experienceType, ResourceType resourceType, string category)
    {
        //Debug.LogError(resourceType.ToString());
        // Get existing open window or if none, make a new one:
        m_window         = (AssetExplorer)EditorWindow.GetWindow(typeof(AssetExplorer));
        m_window.minSize = new Vector2(1200, 300);
        m_resourceType   = resourceType;
        FindAssetDatabase();
        string categoryText = string.IsNullOrEmpty(category) ? " " : " " + category.ToUpper() + " ";

        m_title = experienceType.ToString().ToUpper() + categoryText + resourceType.ToString().ToUpper() + " EXPLORER";
        InitializeResources(experienceType, resourceType, category);
        m_window.Show();
    }
Esempio n. 3
0
 public override string GetLogString()
 {
     return(LogRecordHelper(timestamp, type.ToString(), whoFaction: character.Faction, whoOutfit: character.Outfit, whoName: character.Name, whoLoadout: characterLoadout, otherFaction: other.Faction, otherOutfit: other.Outfit, otherName: other.Name));
 }