From 29bc52b5b79ecee250eabc72a9691cd959c32ffa Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 15 Jun 2022 10:53:51 +0200 Subject: [PATCH] qualify static members explicitly --- CustomTable.cs | 2 +- ExampleMod.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CustomTable.cs b/CustomTable.cs index 210fcb4..33847d3 100644 --- a/CustomTable.cs +++ b/CustomTable.cs @@ -16,7 +16,7 @@ public class CustomTable : Furniture { public float TestValue; public CustomTable(Guid id, FurnitureType type, int[] colors, Map map, Vector2 pos) : base(id, type, colors, map, pos) { - this.TestValue = Random.NextSingle(); + this.TestValue = Furniture.Random.NextSingle(); } public override void OnAdded() { diff --git a/ExampleMod.cs b/ExampleMod.cs index 04dd879..68a40da 100644 --- a/ExampleMod.cs +++ b/ExampleMod.cs @@ -92,7 +92,7 @@ public class ExampleMod : Mod { }); // we use this emotion modifier in SitDownOnGrassAction - GrassSittingModifier = EmotionModifier.Register( + ExampleMod.GrassSittingModifier = EmotionModifier.Register( new EmotionModifier("ExampleMod.GrassSitting", this.uiTextures[1, 0], EmotionType.Happy)); // adding a custom wallpaper (we're using the top left texture region, which is why we pass 0, 0 as the texture coordinate) @@ -100,7 +100,7 @@ public class ExampleMod : Mod { } public override void Initialize(Logger logger, RawContentManager content, RuntimeTexturePacker texturePacker, ModInfo info) { - Logger = logger; + ExampleMod.Logger = logger; // loads a texture atlas with the given amount of separate texture regions in the x and y axes // we submit it to the texture packer to increase rendering performance. The callback is invoked once packing is completed