Skip to content

Commit

Permalink
upgrade to mod API 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Scarabol committed Dec 27, 2017
1 parent 84e99fe commit 591541f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 31 deletions.
6 changes: 5 additions & 1 deletion makefile
@@ -1,6 +1,6 @@
# important variables
modname = Construction
version = 3.4
version = 4.0

moddir = Scarabol/$(modname)
zipname = Colony$(modname)Mod-$(version)-mods.zip
Expand All @@ -22,6 +22,10 @@ release: default
rm -f "$(zipname)"
cd ../../ && zip -r "$(moddir)/$(zipname)" "$(moddir)/modInfo.json" "$(moddir)/$(dllname)" "$(moddir)/capsule_permissions.json" "$(moddir)/assets/" "$(moddir)/blueprints/"

publish: release
git push
git tag "$(version)" && git push --tags

client: default
cd ../../../../ && ./colonyclient.x86_64

Expand Down
37 changes: 11 additions & 26 deletions modInfo.json
@@ -1,26 +1,11 @@
{
"assemblies" : [
{
"name" : "scarabol.construction",
"path" : "Construction.dll",
"enabled" : true,
"compatibleversions" : [
{
"Major" : 0,
"Minor" : 4,
"Build" : 1
},
{
"Major" : 0,
"Minor" : 4,
"Build" : 2
},
{
"Major" : 0,
"Minor" : 4,
"Build" : 3
}
]
}
]
}
[
{
"name" : "scarabol.construction",
"version" : "4.0.0",
"dllpath" : "Construction.dll",
"enabled" : true,
"compatibleversions" : [
"0.5.0"
]
}
]
2 changes: 1 addition & 1 deletion src/Architects.cs
Expand Up @@ -5,7 +5,7 @@
using Pipliz.Chatting;
using Pipliz.JSON;
using Pipliz.Threading;
using Pipliz.APIProvider.Jobs;
using Pipliz.Mods.APIProvider.Jobs;
using NPC;
using Server.NPCs;
using BlockTypes.Builtin;
Expand Down
4 changes: 2 additions & 2 deletions src/Construction.cs
Expand Up @@ -5,7 +5,7 @@
using Pipliz.Chatting;
using Pipliz.JSON;
using Pipliz.Threading;
using Pipliz.APIProvider.Jobs;
using Pipliz.Mods.APIProvider.Jobs;
using NPC;
using Server.NPCs;
using BlockTypes.Builtin;
Expand All @@ -32,7 +32,7 @@ public static void OnAssemblyLoaded (string path)
[ModLoader.ModCallback (ModLoader.EModCallbackType.AfterStartup, "scarabol.construction.registercallbacks")]
public static void AfterStartup ()
{
Pipliz.Log.Write ("Loaded Construction Mod 3.4 by Scarabol");
Pipliz.Log.Write ("Loaded Construction Mod 4.0 by Scarabol");
ManagerBlueprints.LoadBlueprints (Path.Combine (ModDirectory, "blueprints"));
}

Expand Down
2 changes: 1 addition & 1 deletion src/Scaffolds.cs
Expand Up @@ -5,7 +5,7 @@
using Pipliz.Chatting;
using Pipliz.JSON;
using Pipliz.Threading;
using Pipliz.APIProvider.Jobs;
using Pipliz.Mods.APIProvider.Jobs;
using NPC;
using BlockTypes.Builtin;

Expand Down

0 comments on commit 591541f

Please sign in to comment.