public void Start() { chatMessages = new Queue <string> (MAX_CHAT_SIZE); userData = new KerbalData.KerbalData(@"B:\ksp\KSP_WIN", null); saves = userData.Saves; comboBox = new bool[saves.Count]; for (int ii = 0; ii < comboBox.Length; ii++) { comboBox[ii] = false; } guiOpts = new GUILayoutOption[2]; windowName = "Server connect"; windowRect = new Rect(((Screen.width / 2) + 100) * 1.2f, (Screen.height / 2) + 100, 350, 200); }
protected override void Init() { var vabUri = (Uri.EndsWith("\\") ? Uri : Uri + "\\") + "Ships\\VAB\\"; CraftInVab = new StorableObjects <CraftFile>( DataManager.RepositoryFactory.Create <CraftFile>( new Dictionary <string, object>() { { "BaseUri", vabUri }, { "Include", vabUri + "**\\*.craft" } }, "CraftInVab-Save"), DataManager); var sphUri = (Uri.EndsWith("\\") ? Uri : Uri + "\\") + "Ships\\SPH\\"; CraftInSph = new StorableObjects <CraftFile>( DataManager.RepositoryFactory.Create <CraftFile>( new Dictionary <string, object>() { { "BaseUri", sphUri }, { "Include", sphUri + "**\\*.craft" } }, "CraftInSph-Save"), DataManager); }