Example #1
0
        private void _addGSRange(List <GameSource> sources)
        {
            lock (GSList)
            {
                var newSources = GSList.UnionWith(sources);
                added.AddRange(newSources);

                GameSourceAdapter[] adapters = new GameSourceAdapter[newSources.Count];
                for (int i = 0; i < newSources.Count; i++)
                {
                    adapters[i] = new GameSourceAdapter(newSources[i]);
                }
                GSAdapterList.UnionWith(adapters);
            }
        }
Example #2
0
 public static int CompareSID(GameSourceAdapter adapter1, GameSourceAdapter adapter2)
 {
     return(adapter1.SID.CompareTo(adapter2.SID));
 }
Example #3
0
    public void Add(GameSystem.GameCore.GameSourceAdapter gsAdapter)
    {
        GSFComponentView component = gameObject.AddComponent <GSFComponentView>();

        components.Add(component);
    }
Example #4
0
 public void Set(GameSystem.GameCore.GameSourceAdapter adapter)
 {
     SID          = adapter.SID;
     this.adapter = adapter;
 }