mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-25 21:28:33 +01:00
qualify static members explicitly
This commit is contained in:
parent
19e56dc912
commit
29bc52b5b7
2 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue