Skip to content

Commit a1f0c29

Browse files
committed
clean up example mod
1 parent 6ea4906 commit a1f0c29

8 files changed

Lines changed: 126 additions & 655 deletions

File tree

Common.Mod.Example/Common.Mod.Example.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,20 @@
3737

3838
<ItemGroup>
3939
<PackageReference Include="Common.Mod" Version="12.34.56"/>
40+
<PackageReference Include="Common.Mod.Generator" Version="12.34.56"/>
4041
<PackageReference Include="JetBrains.Annotations" Version="2025.2.2">
4142
<ExcludeAssets>runtime</ExcludeAssets>
4243
</PackageReference>
4344
</ItemGroup>
4445

46+
<!--
4547
<ItemGroup>
46-
<!--<ProjectReference Include="../Common.Mod/Common.Mod.csproj"/>-->
4748
<ProjectReference Include="../Common.Mod.Generator/Common.Mod.Generator.csproj">
4849
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
4950
<OutputItemType>Analyzer</OutputItemType>
5051
</ProjectReference>
5152
</ItemGroup>
53+
-->
5254

5355
<ItemGroup>
5456
<Content Include="assets/**">
@@ -63,8 +65,7 @@
6365
</ItemGroup>
6466

6567
<ItemGroup>
66-
<AdditionalFiles Include="config1.json" />
67-
<AdditionalFiles Include="config2.json" />
68+
<AdditionalFiles Include="config.json" />
6869
</ItemGroup>
6970

7071
</Project>

Common.Mod.Example/ExampleConfig.cs

Lines changed: 0 additions & 226 deletions
This file was deleted.
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Common.Mod.Common.Config;
2-
using DurableBetterProspecting;
32
using JetBrains.Annotations;
43
using Vintagestory.API.Common;
54

@@ -16,15 +15,8 @@ public class ExampleSystem : System<ExampleSystem>
1615

1716
protected override void RegisterConfigs(IConfigSystem configSystem)
1817
{
19-
// configSystem.Register<ExampleCommonConfig>();
20-
// configSystem.Register<ExampleServerConfig>();
21-
// configSystem.Register<ExampleClientConfig>();
22-
23-
// configSystem.Register<ExampleCommonConfigGen>();
24-
// configSystem.Register<ExampleServerConfigGen>();
25-
// configSystem.Register<ExampleClientConfigGen>();
26-
27-
configSystem.Register<DurableBetterProspectingCommonConfig>();
28-
configSystem.Register<DurableBetterProspectingClientConfig>();
18+
configSystem.Register<ExampleCommonConfig>();
19+
configSystem.Register<ExampleServerConfig>();
20+
configSystem.Register<ExampleClientConfig>();
2921
}
3022
}
Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
{
2-
"config--button--reset": "Test translation: {0}",
3-
"config--label--density-mode": "Density Test",
4-
"config--description--ordering-enabled": "Test test test"
2+
"Value1": "Value1",
3+
"Value2": "Value2",
4+
"Value3": "Value3",
5+
6+
"config--header--common": "Example Mod Common Configuration",
7+
"config--header--server": "Example Mod Server Configuration",
8+
"config--header--client": "Example Mod Client Configuration",
9+
10+
"config--button--reset": "Reset to default: {0}",
11+
12+
"config--label--bool": "Bool",
13+
"config--description--bool": "I am a bool",
14+
"config--label--int32": "Int32",
15+
"config--description--int32": "I am an int32",
16+
"config--label--int64": "Int64",
17+
"config--description--int64": "I am an int64",
18+
"config--label--uint32": "UInt32",
19+
"config--description--uint32": "I am an uint32",
20+
"config--label--uint64": "UInt64",
21+
"config--description--uint64": "I am an uint64",
22+
"config--label--float": "Float",
23+
"config--description--float": "I am a float",
24+
"config--label--double": "Double",
25+
"config--description--double": "I am a double",
26+
"config--label--string": "String",
27+
"config--description--string": "I am a string",
28+
"config--label--enum": "Enum",
29+
"config--description--enum": "I am an enum",
30+
"config--label--nested": "Nested"
531
}

0 commit comments

Comments
 (0)