Paul Chote
8d2ec78713
Replace TerrainType.CustomCursor with Mobile.TerrainCursors.
2021-05-04 11:56:23 +02:00
Paul Chote
01371f2c65
Expose TransformsIntoAircraft move cursor to yaml.
2021-05-04 11:56:23 +02: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
a1df91b665
Allow BuildingInfluence to track overlapping buildings in the same cell.
2021-04-10 14:28:31 +02:00
Paul Chote
bc286b78bf
Add AnyBuildingAt method to BuildingInfluence.
2021-04-10 14:28:31 +02:00
Paul Chote
19c7e14393
Simplify BuildingInfo.IsCloseEnoughToBase adjacency checks.
2021-04-10 14:28:31 +02:00
teinarss
8b0a3ea680
Remove our own impl of ReadOnlyList and update usages
2021-04-03 11:33:31 +02:00
teinarss
e12ff2c59d
Remove our own ReadOnlyDictionary and update usages
2021-04-03 11:33:31 +02:00
teinarss
d60c05eff3
Change to use pattern matching
2021-03-27 17:29:20 +01:00
Matthias Mailänder
bbbed49f82
Add a lint check for cursor definitions.
2021-03-20 17:37:16 +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
1dc26a9b8e
Pass resource type and count to IAcceptResources instead of the value.
2021-03-20 16:45:41 +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
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
Paul Chote
82a9809192
Remove RenderSprites.Scale.
2021-01-21 18:22:11 +01:00
Paul Chote
53db1230ab
Move default tileset parsing to Mods.Common.
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
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
2fee62af4d
Fix exit priority ordering.
2021-01-02 15:43:03 +01:00
Paul Chote
7a256dcafa
Fix rally point target line exit display.
2020-12-11 17:25:30 +01:00
Paul Chote
5a2f91be1c
Fix building bibs not blocking placement.
2020-12-05 17:06:04 +00:00
Paul Chote
582e2774ac
Revert "Remove BuildingInfluence from building adjacency check."
...
This reverts commit 33a1ca5965d10079f89bd9aa1e33f1b07db72a48.
2020-12-05 17:06:04 +00:00
Paul Chote
5a52ce5330
Revert "Remove BuildingInfluence trait."
...
This reverts commit 34bf14332887267e206d217956aab143720fc87d.
2020-12-05 17:06:04 +00:00
Paul Chote
da5c94858f
Evaluate exit distance from the exit cell instead of the spawn position.
2020-12-01 22:35:43 +01:00
Paul Chote
3b1f4ba07f
Fix production exit desync.
2020-11-28 17:49:36 +01:00
Paul Chote
e9ad38667e
Expose TransformsInto* targetline colors to yaml.
2020-11-21 14:52:54 +01:00
abcdefg30
05e8026713
Remove or use unused variables in TransformsIntoAircraft
2020-11-20 23:12:44 +01:00
abcdefg30
5b75649888
Fix TransformsIntoAircraft transforming on all orders
2020-11-20 23:12:44 +01:00
tovl
84eb3c54ef
Expose targetline colors to yaml.
...
All targetlines can now be set to a custom color in yaml or set to be invisible.
All automated behaviours including scripted activities now have no visible target lines.
2020-11-14 12:04:19 +00:00
abcdefg30
718cf37146
Misc code improvements
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
teinarss
13581c030d
Use in parameter for Target
2020-11-06 22:02:24 +01:00
abcdefg30
e3929d7ded
Fix reservable crashing when unreserving and attack moving
2020-11-05 13:22:22 +01:00
abcdefg30
f5a963ac47
Production now uses nearest exit to rally point.
2020-10-29 21:42:03 +00:00
Paul Chote
72c82cb080
Remove BuildingInfluence trait.
2020-10-26 16:51:12 +01:00
Paul Chote
b9dd59cd63
Remove BuildingInfluence from building adjacency check.
2020-10-26 16:51:12 +01:00
Paul Chote
daa8c74c37
Improve Replaceable logic:
...
- Remove BuildingInfluence checks
- Support multiple Replaceable/Replacement traits on the same actors
- Fix description typos
2020-10-22 22:15:43 +02:00
Mustafa Alperen Seki
8aeec24c9b
Add DamageTypes to Demolition
2020-10-21 18:41:16 +02:00
Matthias Mailänder
14fc0254c6
Make all range circles fully configurable.
2020-10-18 15:08:17 +01:00
RoosterDragon
71e3ca4493
Sort renderables in-place in WorldRenderer.GenerateRenderables
2020-10-17 23:48:48 +02:00
abcdefg30
75fe0e524f
Fix units not attack moving to waypoints after resupply/takeoff
2020-10-17 19:48:54 +01:00