Updated the example mod
This commit is contained in:
parent
7c17829b96
commit
2b8e5175de
@ -1,40 +1,25 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net472</TargetFramework>
|
<PropertyGroup>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<EngineRootPath>../engine</EngineRootPath>
|
||||||
<Optimize>true</Optimize>
|
</PropertyGroup>
|
||||||
<LangVersion>7.3</LangVersion>
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<Import Project="$(EngineRootPath)/Directory.Build.props" />
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
||||||
<OutputPath>../engine/bin</OutputPath>
|
<ItemGroup>
|
||||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
<ProjectReference Include="$(EngineRootPath)/OpenRA.Game/OpenRA.Game.csproj">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
<Private>False</Private>
|
||||||
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
</ProjectReference>
|
||||||
<CodeAnalysisRuleSet>../engine/OpenRA.ruleset</CodeAnalysisRuleSet>
|
|
||||||
</PropertyGroup>
|
<ProjectReference Include="$(EngineRootPath)/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj">
|
||||||
<ItemGroup>
|
<Private>False</Private>
|
||||||
<!-- Work around an issue where Rider does not detect files in the project root using the default glob -->
|
</ProjectReference>
|
||||||
<Compile Include="**/*.cs" Exclude="$(DefaultItemExcludes)" />
|
</ItemGroup>
|
||||||
</ItemGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
<ItemGroup>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<None Include="$(EngineRootPath)/AUTHORS">
|
||||||
<Optimize>false</Optimize>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</PropertyGroup>
|
</None>
|
||||||
<ItemGroup>
|
</ItemGroup>
|
||||||
<ProjectReference Include="../engine/OpenRA.Game/OpenRA.Game.csproj">
|
|
||||||
<Private>False</Private>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="../engine/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj">
|
|
||||||
<Private>False</Private>
|
|
||||||
</ProjectReference>
|
|
||||||
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
|
|
||||||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
|
|
||||||
<AdditionalFiles Include="../engine/stylecop.json" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Target Name="DisableAnalyzers" BeforeTargets="CoreCompile" Condition="'$(Configuration)'=='Release'">
|
|
||||||
<!-- Disable code style analysis on Release builds to improve compile-time performance -->
|
|
||||||
<ItemGroup Condition="'$(Configuration)'=='Release'">
|
|
||||||
<Analyzer Remove="@(Analyzer)" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Target>
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -17,7 +17,7 @@ namespace OpenRA.Mods.Example.Widgets.Logic
|
|||||||
public class TemplateMenuLogic : ChromeLogic
|
public class TemplateMenuLogic : ChromeLogic
|
||||||
{
|
{
|
||||||
[ObjectCreator.UseCtor]
|
[ObjectCreator.UseCtor]
|
||||||
public TemplateMenuLogic(Widget widget, World world, ModData modData)
|
public TemplateMenuLogic(Widget widget)
|
||||||
{
|
{
|
||||||
widget.Get<ButtonWidget>("QUIT_BUTTON").OnClick = Game.Exit;
|
widget.Get<ButtonWidget>("QUIT_BUTTON").OnClick = Game.Exit;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,2 +0,0 @@
|
|||||||
english:
|
|
||||||
english: English
|
|
||||||
2
mods/example/languages/en.ftl
Normal file
2
mods/example/languages/en.ftl
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Game speeds:
|
||||||
|
Normal = Normal
|
||||||
Binary file not shown.
@ -22,5 +22,8 @@ Players:
|
|||||||
OwnsWorld: True
|
OwnsWorld: True
|
||||||
NonCombatant: True
|
NonCombatant: True
|
||||||
Faction: example
|
Faction: example
|
||||||
|
PlayerReference@Multi0:
|
||||||
|
Name: Multi0
|
||||||
|
Playable: True
|
||||||
|
|
||||||
Actors:
|
Actors:
|
||||||
|
|||||||
@ -37,7 +37,8 @@ Notifications:
|
|||||||
example|audio/notifications.yaml
|
example|audio/notifications.yaml
|
||||||
|
|
||||||
Translations:
|
Translations:
|
||||||
example|english.yaml
|
common|languages/en.ftl
|
||||||
|
example|languages/en.ftl
|
||||||
|
|
||||||
Hotkeys:
|
Hotkeys:
|
||||||
common|hotkeys/game.yaml
|
common|hotkeys/game.yaml
|
||||||
@ -66,12 +67,20 @@ MapGrid:
|
|||||||
|
|
||||||
SpriteFormats: ShpTS
|
SpriteFormats: ShpTS
|
||||||
|
|
||||||
|
SoundFormats: Wav
|
||||||
|
|
||||||
|
TerrainFormat: DefaultTerrain
|
||||||
|
|
||||||
SpriteSequenceFormat: DefaultSpriteSequence
|
SpriteSequenceFormat: DefaultSpriteSequence
|
||||||
|
|
||||||
ModelSequenceFormat: PlaceholderModelSequence
|
ModelSequenceFormat: PlaceholderModelSequence
|
||||||
|
|
||||||
|
DefaultOrderGenerator: UnitOrderGenerator
|
||||||
|
|
||||||
GameSpeeds:
|
GameSpeeds:
|
||||||
default:
|
DefaultSpeed: default
|
||||||
Name: Normal
|
Speeds:
|
||||||
Timestep: 40
|
default:
|
||||||
OrderLatency: 3
|
Name: Normal
|
||||||
|
Timestep: 40
|
||||||
|
OrderLatency: 3
|
||||||
|
|||||||
@ -16,6 +16,7 @@ World:
|
|||||||
CursorPalette: true
|
CursorPalette: true
|
||||||
ShadowIndex:
|
ShadowIndex:
|
||||||
Selection:
|
Selection:
|
||||||
|
ControlGroups:
|
||||||
|
|
||||||
DummyActor:
|
DummyActor:
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user