Paul Chote
0c52d275fa
Add TransparentIndex to PaletteFromFile.
2021-03-20 17:15:56 +01:00
Paul Chote
0bdd46451e
Overhaul resource layer logic:
...
* ResourceType trait has been removed.
* Simulation-related data is now defined on the
ResourceLayer (which mods can subclass/replace).
* Support non-money resources by moving the resource
values to the PlayerResources trait.
* Allow mods to disable the neighbour density override
and instead always use the map-defined densities.
* Allow mods to define their own resource placement
logic (e.g. allow resources on slopes) by subclassing
(Editor)ResourceLayer.
* Improve ability to subclass/override ResourceRenderer
by exposing more virtual methods.
2021-03-20 16:45:41 +01:00
Paul Chote
80e92849da
Replace ResourceType with strings in interfaces/public methods.
2021-03-20 16:45:41 +01:00
Paul Chote
dcd8eccee4
Replace ResourceLayer references with IResourceLayer in traits/warheads.
2021-03-20 16:45:41 +01:00
Paul Chote
5adcbe4c78
Use IResourceLayer for editor resources.
2021-03-20 16:45:41 +01:00
Paul Chote
0b93556c06
Add resource updating methods to IResourceLayer.
2021-03-20 16:45:41 +01:00
Paul Chote
7e9d291223
Add IResourceRenderer interface.
2021-03-20 16:45:41 +01:00
teinarss
6b74093c04
Add readonly to structs
2021-03-14 15:17:57 +01:00
Paul Chote
7694d0842b
Fix two outdated comments.
2021-03-12 21:52:16 +01:00
Paul Chote
a90e6940ab
Add sequence scale and alpha support to ShroudRenderer.
2021-03-12 21:52:16 +01:00
Paul Chote
96c3825b6a
Add alpha support to TerrainSpriteLayer.
2021-03-12 21:52:16 +01:00
Paul Chote
d52ba83f96
Replace terniary null checks with coalescing.
2021-03-08 18:11:25 +01:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
teinarss
ed295ae315
Change throw exceptions to use nameof in parameter
2021-02-28 18:43:51 +01:00
teinarss
53b781960c
Change FieldLoader.LoadUsing to use nameof
2021-02-28 18:43:51 +01:00
Paul Chote
0975102e92
Add Alpha support to sequences.
...
Alpha can specify a single value for the sequence
or values for each frame in the sequence.
AlphaFade: True can be specified to linearly fade
to transparent over the length of the animation.
2021-02-24 19:20:48 +01:00
Paul Chote
d09476c603
Remove custom palettes from building placement previews.
2021-02-12 02:08:30 +01:00
abcdefg30
a1dd1fc5d1
Fix an compiler error on bleed
2021-01-23 23:15:58 +00:00
Paul Chote
889153ce81
Add shadow rendering for resource sprites.
2021-01-23 20:59:53 +01:00
Paul Chote
f6b40b2bce
Allow sequences to define a Scale factor.
2021-01-21 18:22:11 +01:00
Paul Chote
632af7c7e6
Support mixed indexed/BGRA terrain tiles.
2021-01-16 22:09:08 +01:00
Paul Chote
142870d78a
Support multiple sheets in TerrainSpriteLayer.
2021-01-16 22:09:08 +01:00
Paul Chote
b0aa32cd1b
Support multiple palettes in TerrainSpriteLayer.
2021-01-16 22:09:08 +01:00
Paul Chote
53db1230ab
Move default tileset parsing to Mods.Common.
2021-01-11 21:57:55 +01:00
Paul Chote
b86b638700
Move editor template rendering to TerrainRenderer.
2021-01-11 21:57:55 +01:00
Paul Chote
6d6efd5fe8
Move tileset image validation to TerrainRendererInfo.
2021-01-11 21:57:55 +01:00
Paul Chote
2782620081
Add ITemplatedTerrainInfo interface.
2021-01-11 21:57:55 +01:00
Paul Chote
87790069e9
Add ITerrainInfo interface.
2021-01-11 21:57:55 +01:00
Paul Chote
0a374e2264
Move ownership of tile sprites to the terrain renderer.
2021-01-11 21:57:55 +01:00
Paul Chote
02a2624bcc
Add a per-player handicap option to the lobby.
...
Handicaps reduce unit health, firepower, and build speed.
2021-01-10 22:23:52 +01:00
Paul Chote
96641873ae
Replace highlight palette with tint effects.
2021-01-06 00:06:51 +01:00
Paul Chote
8edd9de278
Replace ITintableRenderable with IModifyableRenderable.
2021-01-06 00:06:51 +01:00
Paul Chote
b88495c689
Remove palettes from base IRenderable.
2021-01-06 00:06:51 +01:00
Paul Chote
60195e2842
Prevent Health: 100 from being added to actors.
2021-01-02 15:12:20 +01:00
abcdefg30
1d4891b017
Rename several MP traits
2020-12-31 12:09:56 +01:00
Paul Chote
6e7ad9df25
Remove vestigial translation plumbing.
...
This was never completed to the level required to
be properly used ingame.
2020-12-25 16:18:28 +01:00
Taryn Hill
2671e40c1d
feat: ActorSpawnManager.SpawnInterval supports 1 or 2 values
...
Providing 2 values creates a range from which a value is randomly selected.
2020-12-24 22:15:15 +00:00
Paul Chote
e0b3e631fe
Remove obsolete null checks.
2020-12-19 13:07:01 +01:00
Paul Chote
6606d7dd93
Add DisplayFaction details to the replay metadata.
2020-12-11 18:05:44 +01:00
Paul Chote
d61bd675c4
Revert "Remove BuildingInfluence from ResourceLayer."
...
This reverts commit 1634f3b70e97c015b97a047facd877155af2a402.
2020-12-05 17:06:04 +00:00
teinarss
2c9a36b9a3
Update float3 to readonly and use in modifier for parameters.
2020-12-02 20:37:50 +01:00
abcdefg30
8840a690c6
Fix maps without spawn points no longer working
2020-11-15 09:38:02 +01:00
abcdefg30
ea3c7a3c34
Remove the Stances dictionary
2020-11-14 11:04:41 +00:00
abcdefg30
10f645bf77
Replace usage of the Stances dict by a method call
2020-11-14 11:04:41 +00:00
abcdefg30
eda9966d27
Rename Stance to PlayerRelationship
2020-11-14 11:04:41 +00:00
Trevor Nichols
d66e0bb22e
Right click lobby spawns to disable or remove players.
2020-11-07 19:33:28 +01:00
Paul Chote
6b6b1e56e6
Resolve random players and spawn points in server replays.
2020-10-31 14:31:44 +01:00
Paul Chote
90b25be1b6
Remove BuildingInfluence from ResourceLayer.
2020-10-26 16:51:12 +01:00
Paul Chote
5e032edd28
Remove redundant BuildingInfluence checks.
...
Buildings are already excluded by the ActorMap checks.
2020-10-26 16:51:12 +01:00
Vapre
63d597e4ad
ShroudRenderer UpdateShroud only when at least one cell is dirty.
...
UpdateShroud shows up in profile reports as one of the most
active methods (2.3% CPU time, main mono thread).
This commit introduces `anyCellDirty` to indicate that at lease one
of the cells was marked as dirty.
Avoiding the need to traverse all projected cells of the map
to find any dirty cell.
This reduces the number of shroud updates by at least 50% during a
test game. I assume this is related to renders occurring more
often than logic ticks(?).
2020-10-25 23:01:19 +01:00