From 7c633045e4ad82df5be3072c8fb436727d13521b Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Fri, 3 Jan 2020 20:04:55 -0500 Subject: [PATCH] Version bump to v0.1.2.0 --- .../GamecraftModdingAPI.csproj | 2 +- .../Tests/GamecraftModdingAPIPluginTest.cs | 28 +++---------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/GamecraftModdingAPI/GamecraftModdingAPI.csproj b/GamecraftModdingAPI/GamecraftModdingAPI.csproj index 9ad8c80..395e42e 100644 --- a/GamecraftModdingAPI/GamecraftModdingAPI.csproj +++ b/GamecraftModdingAPI/GamecraftModdingAPI.csproj @@ -3,7 +3,7 @@ net48 true - 0.1.1.0 + 0.1.2.0 Exmods GNU General Public Licence 3+ https://git.exmods.org/modtainers/GamecraftModdingAPI diff --git a/GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs b/GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs index 3cbb99d..b354ec9 100644 --- a/GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs +++ b/GamecraftModdingAPI/Tests/GamecraftModdingAPIPluginTest.cs @@ -87,8 +87,9 @@ namespace GamecraftModdingAPI.Tests GamecraftModdingAPI.Utility.Logging.CommandLogError("Blocks can only be moved in Build mode!"); } }, "MoveLastBlock", "Move the most-recently-placed block, and any connected blocks by the given offset")); - /*CommandManager.AddCommand(new SimpleCustomCommandEngine(() => { FMODUnity.RuntimeManager.PlayOneShot("event:/ModEvents/KillDashNine2D"); }, - "Monzy", "Rap"));*/ + CommandManager.AddCommand(new SimpleCustomCommandEngine( + (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")); } public void OnFixedUpdate() { } @@ -99,27 +100,6 @@ namespace GamecraftModdingAPI.Tests public void OnLevelWasLoaded(int level) { } - public void OnUpdate() - { - /* - if (db != null && signalStrength != 0.0f && db.QueryUniqueEntity(SimulationModeStateExclusiveGroups.GAME_STATE_GROUP).simulationMode == SimulationMode.Simulation) - { - //GamecraftModdingAPI.Utility.Logging.MetaDebugLog("Simulation frame update"); - foreach (ref ElectricityEntityStruct powah in db.QueryEntities(CommonExclusiveGroups.FUNCTIONAL_CUBES_IN_BOTH_SIM_AND_BUILD)) - { - ref ConductiveClusterID clusterId = ref db.QueryEntity(powah.ID).clusterId; - GamecraftModdingAPI.Utility.Logging.MetaDebugLog($"ID {powah.ID.entityID} unmodded values: Power* {powah.powerMultiplier} Conductivity* {powah.conductivityMultiplier} Output* {powah.outputSignalMultiplier}"); - uint operatingChannel = db.QueryEntity(powah.ID).operatingChannel; - if (operatingChannel != 0) - { - EGID eGID = new EGID(operatingChannel, CommonExclusiveGroups.CHANNEL_OUTPUT_SIGNAL_GROUPS + clusterId.ID); - if (db.Exists(eGID)) - { - db.QueryEntity(eGID).outputSignal = signalStrength; - } - } - } - }*/ - } + public void OnUpdate() { } } }