From 52d32fe8229e2aefd45bd74692eb9793a10d2427 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 9 Mar 2022 16:12:57 +0100 Subject: [PATCH] 0.20.0 --- ExampleMod.cs | 6 +++--- ExampleMod.csproj | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ExampleMod.cs b/ExampleMod.cs index a643f9a..af7fa93 100644 --- a/ExampleMod.cs +++ b/ExampleMod.cs @@ -32,7 +32,7 @@ public class ExampleMod : Mod { private UniformTextureAtlas customBottoms; private UniformTextureAtlas uiTextures; - public override void AddGameContent(GameImpl game) { + public override void AddGameContent(GameImpl game, ModInfo info) { // adding a custom furniture item FurnitureType.Register(new FurnitureType.TypeSettings("ExampleMod.CustomTable", new Point(1, 1), ObjectCategory.Table, 150, ColorScheme.SimpleWood) { // specify the type that should be constructed when this furniture type is placed @@ -93,7 +93,7 @@ public class ExampleMod : Mod { new EmotionModifier("ExampleMod.GrassSitting", this.uiTextures[1, 0], EmotionType.Happy)); } - public override void Initialize(Logger logger, RawContentManager content, RuntimeTexturePacker texturePacker) { + public override void Initialize(Logger logger, RawContentManager content, RuntimeTexturePacker texturePacker, ModInfo info) { Logger = logger; // loads a texture atlas with the given amount of separate texture regions in the x and y axes @@ -104,7 +104,7 @@ public class ExampleMod : Mod { texturePacker.Add(content.Load("UiTextures"), r => this.uiTextures = new UniformTextureAtlas(r, 8, 8)); } - public override IEnumerable GetCustomFurnitureTextures() { + public override IEnumerable GetCustomFurnitureTextures(ModInfo info) { // tell the game about our custom furniture texture // this needs to be a path to a data texture atlas, relative to our "Content" directory // the texture atlas combines the png texture and the .atlas information diff --git a/ExampleMod.csproj b/ExampleMod.csproj index 8ed572f..1e9902c 100644 --- a/ExampleMod.csproj +++ b/ExampleMod.csproj @@ -5,7 +5,7 @@ - +