Example #1
0
        internal ShortcutProfile(string id, IEnumerable <SerializableShortcutEntry> entries, IShortcutProfileLoader loader = null)
        {
            m_Id     = id;
            m_Loader = loader ?? new ShortcutProfileLoader();

            m_Entries = new List <SerializableShortcutEntry>(entries);
        }
Example #2
0
        internal ShortcutProfile(string id, IEnumerable <SerializableShortcutEntry> entries, IShortcutProfileLoader loader = null)
        {
            m_Id     = id;
            m_Loader = loader ?? new ShortcutProfileLoader();

            foreach (var entry in entries)
            {
                m_Entries.Add(entry.identifier.path, entry);
            }
        }
Example #3
0
 internal ShortcutProfile(string id, IShortcutProfileLoader loader = null)
 {
     m_Loader = loader ?? new ShortcutProfileLoader();
     m_Id     = id;
     LoadAndApplyJsonFile(id, this);
 }