RoosterDragon
5a2a448c32
Fix IDE0250
2023-02-24 22:00:25 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
penev92
8ba6d13b2f
Removed unused using directives
2021-10-15 13:12:33 +02:00
Paul Chote
7f94d67d39
Replace Map.CustomTerrain radar colors with IRadarTerrainLayer.
...
* TSVeinsRenderer now shows border cells on the radar
* BuildableTerrainLayer now uses the radar colors defined on the individual tiles
* CliffBackImpassabilityLayer no longer overrides the underlying terrain color.
2021-08-21 14:16:02 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
Matthias Mailänder
5a0bcc01a6
Add a lint check for trait placement on hardcoded actor names.
2021-04-11 20:20:00 +02:00
Paul Chote
bc286b78bf
Add AnyBuildingAt method to BuildingInfluence.
2021-04-10 14:28:31 +02: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
0b93556c06
Add resource updating methods to IResourceLayer.
2021-03-20 16:45:41 +01:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
87790069e9
Add ITerrainInfo interface.
2021-01-11 21:57:55 +01:00
Paul Chote
d61bd675c4
Revert "Remove BuildingInfluence from ResourceLayer."
...
This reverts commit 1634f3b70e97c015b97a047facd877155af2a402.
2020-12-05 17:06:04 +00:00
Paul Chote
90b25be1b6
Remove BuildingInfluence from ResourceLayer.
2020-10-26 16:51:12 +01:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
Paul Chote
46cf56d6ff
Remove editor-specific resource rendering.
...
Mods must manually move their *ResourceRenderer definitions from
World onto BaseWorld to restore resource rendering in the editor.
2020-08-15 18:43:40 +02:00
Andre Mohren
006a87692a
Removed unused imports.
2020-07-28 18:22:51 +02:00
Paul Chote
4614f6febe
Cache cell ramps to avoid repeated tileset lookups.
2020-05-28 09:41:55 -05:00
Paul Chote
86f61298e6
Replace ITraitInfo interface with TraitInfo class.
2020-05-21 13:01:04 +02:00
teinarss
f0b69f8b8d
Separated resource rendering into another trait
2020-01-14 19:38:47 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
ebd36891dc
Switch other struct types to default(T).
2019-06-08 13:19:57 +02:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
reaperrr
b5ffe17d60
Make AI skip harvester orders if map has no resources
2017-12-11 01:55:18 +01:00
reaperrr
8ec3d5ddb8
Require explicit ITickRender
2017-10-07 10:17:11 +02:00
reaperrr
9aaf800bca
Require explicit INotifyActorDisposing
2017-09-28 13:14:08 +02:00
reaperrr
a8e6cd2604
Require explicit IRenderOverlay
2017-09-28 13:14:08 +02:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
65df25b1a4
Remove lazy loading of binary map data.
2016-03-18 20:16:24 +00:00
Paul Chote
602acabe47
Remove World.TileSet.
2016-03-12 19:47:07 +00:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
Matthias Mailänder
4f080a996e
also render highest density sprite frame
2015-12-25 19:37:55 +01:00
RoosterDragon
9f728b287b
Remove event handlers to CellEntryChanged when done.
...
Several classes would attach event handlers to the Map which would live longer then they did. Detaching them when no longer needed allows the GC to reclaim them.
2015-11-04 23:09:32 +00:00
reaperrr
2f69711341
Rename ActorMap *UnitsAt* occurences to *ActorsAt*
...
These enumerate actors in general, not just mobile actors (which the term 'unit' usually refers to).
2015-10-16 00:07:06 +02:00
abcdefg30
e291606dad
Fix a possible crash in ResourceLayer
2015-10-04 00:18:38 +02:00
Paul Chote
155d0cc97d
Reveal the initial resources if shroud is disabled.
...
Fixes #8943 .
2015-08-05 20:27:36 +01:00
Paul Chote
d2b7d42cca
Use TerrainSpriteLayer for rendering resources.
2015-07-06 20:36:29 +01:00
Paul Chote
7c0d3f4e40
Use a HashSet for ResourceLayer dirty cells.
2015-07-06 19:54:44 +01:00
Paul Chote
ae0d9c0e7d
Move ResourceLayer init into the constructor.
...
Stylecop rules force renaming content and render.
2015-07-06 19:54:43 +01:00
Paul Chote
2156a234db
Render shroud outside map bounds.
...
Fixes a regression from #8337 .
2015-06-15 18:06:43 +01:00
Paul Chote
aee951c86f
Remove region assumptions from fast shroud tests.
2015-06-15 18:06:42 +01:00
Paul Chote
6e09c62fdd
Allow resource placement outside the map cordon.
2015-06-11 21:27:35 +01:00
Paul Chote
bf4722fb9f
Distinguish between all map cells and cells inside map bounds.
2015-06-02 21:53:25 +01:00
Paul Chote
d211fe9fe1
Add the world components of the new editor.
2015-05-15 17:09:20 +01:00
Paul Chote
098d69f120
Prevent resources from spawning on ramps.
2015-04-27 19:21:12 +12:00