Browse Source

Fix dev tools for preview changes

tags/v1.4.0-preview
NGnius (Graham) 4 years ago
parent
commit
e0aa052305
3 changed files with 476 additions and 438 deletions
  1. +1
    -1
      Automation/gen_csproj.py
  2. +470
    -431
      GamecraftModdingAPI/GamecraftModdingAPI.csproj
  3. +5
    -6
      GamecraftModdingAPI/Tests/TestRoot.cs

+ 1
- 1
Automation/gen_csproj.py View File

@@ -32,7 +32,7 @@ if __name__ == "__main__":
args = parser.parse_args()
print("Building Assembly references")
asmXml = buildReferencesXml("../ref/Gamecraft_Data/Managed")
asmXml = buildReferencesXml("../ref/GamecraftPreview_Data/Managed")
# print(asmXml)
with open("../GamecraftModdingAPI/GamecraftModdingAPI.csproj", "r") as xmlFile:


+ 470
- 431
GamecraftModdingAPI/GamecraftModdingAPI.csproj
File diff suppressed because it is too large
View File


+ 5
- 6
GamecraftModdingAPI/Tests/TestRoot.cs View File

@@ -130,7 +130,7 @@ namespace GamecraftModdingAPI.Tests

private static IEnumerator<TaskContract> GoToGameTests()
{
Client app = new Client();
/*Client app = new Client();
int oldLength = 0;
while (app.MyGames.Length == 0 || oldLength != app.MyGames.Length)
{
@@ -138,11 +138,10 @@ namespace GamecraftModdingAPI.Tests
yield return new WaitForSecondsEnumerator(1).Continue();
}
yield return Yield.It;
app.MyGames[0].EnterGame();
// returning from a new game without saving will hard lock GC (it's an invalid state)
//Game newGame = Game.NewGame();
//yield return new WaitForSecondsEnumerator(5).Continue(); // wait for sync
//newGame.EnterGame();
app.MyGames[0].EnterGame();*/
Game newGame = Game.NewGame();
yield return new WaitForSecondsEnumerator(5).Continue(); // wait for sync
newGame.EnterGame();
}

private static IEnumerator<TaskContract> GameTests()


Loading…
Cancel
Save