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); } }
public static int CompareSID(GameSourceAdapter adapter1, GameSourceAdapter adapter2) { return(adapter1.SID.CompareTo(adapter2.SID)); }
public void Add(GameSystem.GameCore.GameSourceAdapter gsAdapter) { GSFComponentView component = gameObject.AddComponent <GSFComponentView>(); components.Add(component); }
public void Set(GameSystem.GameCore.GameSourceAdapter adapter) { SID = adapter.SID; this.adapter = adapter; }