qualify static members explicitly

This commit is contained in:
Ell 2022-06-15 10:53:51 +02:00
parent 19e56dc912
commit 29bc52b5b7
2 changed files with 3 additions and 3 deletions

View file

@ -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() {

View file

@ -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