Upgradeable traits are notified whenever an upgrade of their declared types are granted or revoked. The traits maintain their own internal level counter, which is then used to enable or disable the trait functionality. A trait can register for multiple upgrade types which then all affect the internal level counter. IDisabledTrait for identifying (and filtering) disabled traits UpgradableTrait provides an abstract base for traits to support upgrade levels Added IDisabledTrait support to GlobalButtonOrderGenerator Includes rework by pchote with alterations.
201 lines
10 KiB
XML
201 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
<ProjectGuid>{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}</ProjectGuid>
|
|
<OutputType>Library</OutputType>
|
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
<RootNamespace>OpenRA.Mods.Common</RootNamespace>
|
|
<AssemblyName>OpenRA.Mods.Common</AssemblyName>
|
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
|
<FileAlignment>512</FileAlignment>
|
|
<TargetFrameworkProfile />
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<DebugType>full</DebugType>
|
|
<Optimize>false</Optimize>
|
|
<OutputPath>bin\Debug\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<WarningLevel>4</WarningLevel>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<CustomCommands>
|
|
<CustomCommands>
|
|
<Command type="AfterBuild" command="cp ${TargetFile} ../mods/common" workingdir="${ProjectDir}" />
|
|
<Command type="AfterBuild" command="cp ${TargetFile}.mdb ../mods/common" workingdir="${ProjectDir}" />
|
|
</CustomCommands>
|
|
</CustomCommands>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Reference Include="Eluant, Version=1.0.5229.27703, Culture=neutral, processorArchitecture=MSIL">
|
|
<SpecificVersion>False</SpecificVersion>
|
|
<HintPath>..\thirdparty\Eluant.dll</HintPath>
|
|
<Private>False</Private>
|
|
</Reference>
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Drawing" />
|
|
<Reference Include="System.Core" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\OpenRA.Game\OpenRA.Game.csproj">
|
|
<Project>{0dfb103f-2962-400f-8c6d-e2c28ccba633}</Project>
|
|
<Name>OpenRA.Game</Name>
|
|
<Private>False</Private>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="CommonTraitsInterfaces.cs" />
|
|
<Compile Include="DefaultLoadScreen.cs" />
|
|
<Compile Include="Effects\Beacon.cs" />
|
|
<Compile Include="Effects\Bullet.cs" />
|
|
<Compile Include="Effects\Contrail.cs" />
|
|
<Compile Include="Effects\ContrailFader.cs" />
|
|
<Compile Include="Effects\Corpse.cs" />
|
|
<Compile Include="Effects\CrateEffect.cs" />
|
|
<Compile Include="Effects\Explosion.cs" />
|
|
<Compile Include="Effects\FloatingText.cs" />
|
|
<Compile Include="Effects\GravityBomb.cs" />
|
|
<Compile Include="Effects\LaserZap.cs" />
|
|
<Compile Include="Effects\Missile.cs" />
|
|
<Compile Include="Effects\NukeLaunch.cs" />
|
|
<Compile Include="Effects\PowerdownIndicator.cs" />
|
|
<Compile Include="Effects\RallyPoint.cs" />
|
|
<Compile Include="Effects\Smoke.cs" />
|
|
<Compile Include="Commands\ChatCommands.cs" />
|
|
<Compile Include="Commands\DevCommands.cs" />
|
|
<Compile Include="Commands\HelpCommand.cs" />
|
|
<Compile Include="Commands\PlayerCommands.cs" />
|
|
<Compile Include="Graphics\ActorPreview.cs" />
|
|
<Compile Include="Graphics\BeamRenderable.cs" />
|
|
<Compile Include="Graphics\ContrailRenderable.cs" />
|
|
<Compile Include="Graphics\RangeCircleRenderable.cs" />
|
|
<Compile Include="Graphics\SpriteActorPreview.cs" />
|
|
<Compile Include="Graphics\TextRenderable.cs" />
|
|
<Compile Include="Graphics\VoxelActorPreview.cs" />
|
|
<Compile Include="Graphics\VoxelRenderable.cs" />
|
|
<Compile Include="LoadWidgetAtGameStart.cs" />
|
|
<Compile Include="ModChooserLoadScreen.cs" />
|
|
<Compile Include="NullLoadScreen.cs" />
|
|
<Compile Include="Modifiers\TimedUpgradeBar.cs" />
|
|
<Compile Include="Orders\DeployOrderTargeter.cs" />
|
|
<Compile Include="Orders\EnterAlliedActorTargeter.cs" />
|
|
<Compile Include="Orders\UnitOrderTargeter.cs" />
|
|
<Compile Include="ServerTraits\ColorValidator.cs" />
|
|
<Compile Include="ServerTraits\LobbyCommands.cs" />
|
|
<Compile Include="ServerTraits\LobbySettingsNotification.cs" />
|
|
<Compile Include="ServerTraits\MasterServerPinger.cs" />
|
|
<Compile Include="ServerTraits\PlayerPinger.cs" />
|
|
<Compile Include="Traits\BlocksBullets.cs" />
|
|
<Compile Include="Traits\Burns.cs" />
|
|
<Compile Include="Traits\CustomBuildTimeValue.cs" />
|
|
<Compile Include="Traits\CustomSellValue.cs" />
|
|
<Compile Include="Traits\Demolishable.cs" />
|
|
<Compile Include="Traits\Immobile.cs" />
|
|
<Compile Include="Traits\JamsMissiles.cs" />
|
|
<Compile Include="Traits\Modifiers\DisabledOverlay.cs" />
|
|
<Compile Include="Traits\Modifiers\HiddenUnderFog.cs" />
|
|
<Compile Include="Traits\Modifiers\UpgradeOverlay.cs" />
|
|
<Compile Include="Traits\PaletteEffects\CloakPaletteEffect.cs" />
|
|
<Compile Include="Traits\PaletteEffects\LightPaletteRotator.cs" />
|
|
<Compile Include="Traits\PaletteEffects\MenuPaletteEffect.cs" />
|
|
<Compile Include="Traits\PaletteEffects\NukePaletteEffect.cs" />
|
|
<Compile Include="Traits\PaletteEffects\WaterPaletteRotation.cs" />
|
|
<Compile Include="Traits\Power\AffectedByPowerOutage.cs" />
|
|
<Compile Include="Traits\Power\CanPowerDown.cs" />
|
|
<Compile Include="Traits\Power\Player\PowerManager.cs" />
|
|
<Compile Include="Traits\Power\Power.cs" />
|
|
<Compile Include="Traits\Power\RequiresPower.cs" />
|
|
<Compile Include="Traits\Power\ScalePowerWithHealth.cs" />
|
|
<Compile Include="Traits\ProvidesRadar.cs" />
|
|
<Compile Include="Traits\RallyPoint.cs" />
|
|
<Compile Include="Traits\Render\RenderSprites.cs" />
|
|
<Compile Include="Traits\ShakeOnDeath.cs" />
|
|
<Compile Include="Traits\Sound\ActorLostNotification.cs" />
|
|
<Compile Include="Traits\Sound\AnnounceOnBuild.cs" />
|
|
<Compile Include="Traits\Sound\AnnounceOnKill.cs" />
|
|
<Compile Include="Traits\Sound\DeathSounds.cs" />
|
|
<Compile Include="Traits\Sound\SoundOnDamageTransition.cs" />
|
|
<Compile Include="Traits\Valued.cs" />
|
|
<Compile Include="Traits\World\CreateMPPlayers.cs" />
|
|
<Compile Include="Traits\World\MPStartLocations.cs" />
|
|
<Compile Include="Traits\World\MPStartUnits.cs" />
|
|
<Compile Include="Traits\World\PaletteFromCurrentTileset.cs" />
|
|
<Compile Include="Traits\World\PaletteFromFile.cs" />
|
|
<Compile Include="Traits\World\PaletteFromRGBA.cs" />
|
|
<Compile Include="Traits\World\PlayerPaletteFromCurrentTileset.cs" />
|
|
<Compile Include="Traits\World\PlayMusicOnMapLoad.cs" />
|
|
<Compile Include="Traits\World\RadarPings.cs" />
|
|
<Compile Include="Traits\World\ResourceClaim.cs" />
|
|
<Compile Include="Traits\World\ResourceClaimLayer.cs" />
|
|
<Compile Include="Traits\World\ShroudPalette.cs" />
|
|
<Compile Include="Traits\World\ShroudRenderer.cs" />
|
|
<Compile Include="Traits\World\SmudgeLayer.cs" />
|
|
<Compile Include="Traits\World\SpawnMapActors.cs" />
|
|
<Compile Include="Traits\World\StartGameNotification.cs" />
|
|
<Compile Include="Traits\World\TerrainGeometryOverlay.cs" />
|
|
<Compile Include="Upgrades\UpgradableTrait.cs" />
|
|
<Compile Include="Upgrades\UpgradeManager.cs" />
|
|
<Compile Include="UtilityCommands\ConvertPngToShpCommand.cs" />
|
|
<Compile Include="UtilityCommands\ConvertSpriteToPngCommand.cs" />
|
|
<Compile Include="UtilityCommands\ExtractFilesCommand.cs" />
|
|
<Compile Include="UtilityCommands\ExtractLanguageStringsCommand.cs" />
|
|
<Compile Include="UtilityCommands\ExtractLuaDocsCommand.cs" />
|
|
<Compile Include="UtilityCommands\ExtractTraitDocsCommand.cs" />
|
|
<Compile Include="UtilityCommands\GenerateMinimapCommand.cs" />
|
|
<Compile Include="UtilityCommands\GetMapHashCommand.cs" />
|
|
<Compile Include="UtilityCommands\Glob.cs" />
|
|
<Compile Include="UtilityCommands\ImportLegacyMapCommand.cs" />
|
|
<Compile Include="UtilityCommands\LegacyMapImporter.cs" />
|
|
<Compile Include="UtilityCommands\RemapShpCommand.cs" />
|
|
<Compile Include="UtilityCommands\UpgradeMapCommand.cs" />
|
|
<Compile Include="UtilityCommands\UpgradeModCommand.cs" />
|
|
<Compile Include="UtilityCommands\UpgradeRules.cs" />
|
|
<Compile Include="Warheads\CreateEffectWarhead.cs" />
|
|
<Compile Include="Warheads\HealthPercentageDamageWarhead.cs" />
|
|
<Compile Include="Warheads\LeaveSmudgeWarhead.cs" />
|
|
<Compile Include="Warheads\SpreadDamageWarhead.cs" />
|
|
<Compile Include="Widgets\ConfirmationDialogs.cs" />
|
|
<Compile Include="Widgets\HueSliderWidget.cs" />
|
|
<Compile Include="Widgets\LabelWithTooltipWidget.cs" />
|
|
<Compile Include="Widgets\LogicKeyListenerWidget.cs" />
|
|
<Compile Include="Widgets\Logic\AssetBrowserLogic.cs" />
|
|
<Compile Include="Widgets\ColorMixerWidget.cs" />
|
|
<Compile Include="Widgets\LogicTickerWidget.cs" />
|
|
<Compile Include="Widgets\Logic\ButtonTooltipLogic.cs" />
|
|
<Compile Include="Widgets\Logic\ColorPickerLogic.cs" />
|
|
<Compile Include="Widgets\ColorPreviewManagerWidget.cs" />
|
|
<Compile Include="Widgets\Logic\DisconnectWatcherLogic.cs" />
|
|
<Compile Include="Widgets\Logic\Ingame\IngameRadarDisplayLogic.cs" />
|
|
<Compile Include="Widgets\Logic\Ingame\LoadIngamePlayerOrObserverUILogic.cs" />
|
|
<Compile Include="Widgets\Logic\ModBrowserLogic.cs" />
|
|
<Compile Include="Widgets\MenuButtonWidget.cs" />
|
|
<Compile Include="Widgets\RadarWidget.cs" />
|
|
<Compile Include="Widgets\ResourceBarWidget.cs" />
|
|
<Compile Include="SpriteLoaders\ShpTDLoader.cs" />
|
|
<Compile Include="SpriteLoaders\ShpTSLoader.cs" />
|
|
<Compile Include="SpriteLoaders\TmpRALoader.cs" />
|
|
<Compile Include="SpriteLoaders\TmpTDLoader.cs" />
|
|
<Compile Include="SpriteLoaders\ShpD2Loader.cs" />
|
|
<Compile Include="Widgets\Logic\SettingsLogic.cs" />
|
|
<Compile Include="Widgets\TerrainTemplatePreviewWidget.cs" />
|
|
</ItemGroup>
|
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
<PropertyGroup>
|
|
<PostBuildEvent>mkdir "$(SolutionDir)mods/common/"
|
|
copy "$(TargetPath)" "$(SolutionDir)mods/common/"
|
|
cd "$(SolutionDir)thirdparty/"
|
|
copy "FuzzyLogicLibrary.dll" "$(SolutionDir)"
|
|
cd "$(SolutionDir)"</PostBuildEvent>
|
|
</PropertyGroup>
|
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
Other similar extension points exist, see Microsoft.Common.targets.
|
|
<Target Name="BeforeBuild">
|
|
</Target>
|
|
<Target Name="AfterBuild">
|
|
</Target>
|
|
-->
|
|
</Project> |