added the ability for modded localization

This commit is contained in:
Ell 2020-11-25 01:39:41 +01:00
parent 684071697f
commit 3ecf8efd60
4 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,3 @@
CustomTableUp
ExampleMod.CustomTableUp
loc 0 0 32 32
piv 16 16

View file

@ -0,0 +1,5 @@
{
"BuildMode": {
"ExampleMod.CustomTable": "Custom Table"
}
}

View file

@ -24,7 +24,7 @@ namespace ExampleMod {
public override void AddGameContent(GameImpl game) {
// adding a custom furniture item
FurnitureType.Register(new FurnitureType.TypeSettings("CustomTable", new Point(1, 1), ObjectCategory.Table, 150, ColorScheme.SimpleWood) {
FurnitureType.Register(new FurnitureType.TypeSettings("ExampleMod.CustomTable", new Point(1, 1), ObjectCategory.Table, 150, ColorScheme.SimpleWood) {
Construct = (i, t, c, m, p) => new CustomTable(i, t, c, m, p)
});
}

2
Run.sh
View file

@ -8,5 +8,5 @@ dotnet build
cp ./bin/Debug/netcoreapp3.0/* "$LOCALAPPDATA/Tiny Life/Mods" -r
# run the game
cd $GAME_DIR
cd "$GAME_DIR"
"./Tiny Life.exe"