|
|
@@ -42,11 +42,13 @@ namespace GamecraftModdingAPI.Tests |
|
|
|
public void OnApplicationStart() |
|
|
|
{ |
|
|
|
GamecraftModdingAPI.Main.Init(); |
|
|
|
// in case Steam is not installed/running |
|
|
|
// this will crash the game slightly later during startup |
|
|
|
//SteamInitPatch.ForcePassSteamCheck = true; |
|
|
|
// in case running in a VM |
|
|
|
//MinimumSpecsCheckPatch.ForcePassMinimumSpecCheck = true; |
|
|
|
// in case Steam is not installed/running |
|
|
|
// this will crash the game slightly later during startup |
|
|
|
//SteamInitPatch.ForcePassSteamCheck = true; |
|
|
|
// in case running in a VM |
|
|
|
//MinimumSpecsCheckPatch.ForcePassMinimumSpecCheck = true; |
|
|
|
// disable some Gamecraft analytics |
|
|
|
//AnalyticsDisablerPatch.DisableAnalytics = true; |
|
|
|
// disable background music |
|
|
|
AudioTools.SetVolume(0.0f, "Music"); |
|
|
|
|
|
|
@@ -90,6 +92,10 @@ namespace GamecraftModdingAPI.Tests |
|
|
|
CommandManager.AddCommand(new SimpleCustomCommandEngine<float, float, float>( |
|
|
|
(x,y,z) => { Blocks.Placement.PlaceBlock(Blocks.BlockIDs.AluminiumCube, new Unity.Mathematics.float3(x, y, z)); }, |
|
|
|
"PlaceAluminium", "Place a block of aluminium at the given coordinates")); |
|
|
|
Analytics.DeltaDNAHelper.PlayerLifetimeParameters plp = new Analytics.DeltaDNAHelper.PlayerLifetimeParameters(); |
|
|
|
CommandManager.AddCommand(new SimpleCustomCommandEngine<string>( |
|
|
|
(s) => { Analytics.DeltaDNAHelper.SendActionCompletedEvent(in plp, s.Replace(", ", " ")); }, |
|
|
|
"SendAnalyticsAction", "Send an analytics action")); |
|
|
|
} |
|
|
|
|
|
|
|
public void OnFixedUpdate() { } |
|
|
|