コード例 #1
0
        protected ActionDataSetting PrivateGetSettings(ActionData data, bool create, bool isDefault)
        {
            ActionDataSetting settings;

            if (!mActionData.TryGetValue(data.Key, out settings))
            {
                if (create)
                {
                    settings = new ActionDataSetting(data, isDefault);
                    mActionData.Add(data.Key, settings);
                }
                else
                {
                    return(null);
                }
            }

            return(settings);
        }
コード例 #2
0
ファイル: SeasonSettings.cs プロジェクト: Robobeurre/NRaas
        protected ActionDataSetting PrivateGetSettings(ActionData data, bool create, bool isDefault)
        {
            ActionDataSetting settings;
            if (!mActionData.TryGetValue(data.Key, out settings))
            {
                if (create)
                {
                    settings = new ActionDataSetting(data, isDefault);
                    mActionData.Add(data.Key, settings);
                }
                else
                {
                    return null;
                }
            }

            return settings;
        }