Paul Chote
79019b06ca
Remove BuildingInfluence from Plug placement.
2020-10-26 16:51:12 +01:00
Paul Chote
90b25be1b6
Remove BuildingInfluence from ResourceLayer.
2020-10-26 16:51:12 +01:00
Paul Chote
e4faa6b0f0
Remove BuildingInfluence from Aircraft.
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
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
Paul Chote
5a7dc385a3
Remove obsolete LocomotorInfo caching.
2020-10-18 18:19:56 +02:00
darkademic
49e7a33db0
Fixed WithRangeCircle when Visibility is set to Always.
2020-10-18 18:06:22 +02:00
Matthias Mailänder
14fc0254c6
Make all range circles fully configurable.
2020-10-18 15:08:17 +01:00
abcdefg30
a7bb217887
Make the calculation of DesiredLocalFacing more readable
2020-10-18 14:48:05 +01:00
RoosterDragon
e11c8436bd
Misc changes to reduce allocation:
...
- Avoid creating new strings in SpriteRenderer.Flush.
- ProductionQueue.CancelUnbuildableItems can exit early if the queue is empty. It can also use a set of names for quicker lookups.
- OpenGL.CheckGLError avoids a Enum.HasFlag call.
2020-10-17 23:48:48 +02:00
RoosterDragon
8d3cec5bea
When a render method has nothing to render, eagerly return.
...
By eagerly returning an empty enumerable in these cases, this avoids allocating an enumerable for the whole render method if nothing will be drawn.
2020-10-17 23:48:48 +02:00
RoosterDragon
71e3ca4493
Sort renderables in-place in WorldRenderer.GenerateRenderables
2020-10-17 23:48:48 +02:00
RoosterDragon
2adee1e374
Use HasMovementType to avoid Enum.HasFlag allocations.
2020-10-17 23:48:48 +02:00
RoosterDragon
094ccf76b0
Prefer Min/MaxBy overloads to OrderBy().First() patterns
2020-10-17 23:48:48 +02:00
RoosterDragon
bb116034c7
Avoid or reduce LINQ allocations required in various areas.
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
Matthias Mailänder
0d64fa549b
Fix the command bar selecting dead units
...
and crashing while doing a trait lookup on them.
2020-10-14 19:58:24 +02:00
Curtis Shmyr
8d5ed65feb
Remove effective owner check when choosing armament
2020-10-14 19:52:34 +02:00
Paul Chote
a375f0e58a
Rewrite spawn point assignment logic.
2020-10-13 20:41:39 +02:00
dnqbob
ca8341d432
Avoid WaterCheck crash in base builder
2020-10-10 11:44:43 +02:00
Paul Chote
dd18829def
Traits: add ICreatePlayersInfo
...
Signed-off-by: Clément Bœsch <u@pkh.me >
2020-10-10 01:17:39 +02:00
Mustafa Alperen Seki
3ec3eac160
Don't StartOnThreshold if the trait is disabled.
2020-10-06 13:29:33 +02:00
Paul Chote
fc1786e243
Fix turrets immediately realigning on actor creation.
2020-10-05 15:13:48 +02:00
reaperrr
8d1f72c104
Fix for SquadManagerBotModule
...
Aircraft and ships are immediately assigned a squad,
so adding them to `unitsHangingAroundTheBase` is bogus.
2020-10-04 00:31:35 +01:00
reaperrr
6337067032
Clean up property names + defaults of smudge smoke
2020-10-02 23:46:48 +02:00
reaperrr
7395a3ed2d
Use cached world instead of query in SmudgeLayer
2020-10-02 23:46:48 +02:00
abcdefg30
cc8908d7eb
Make ProductionParadrop and ProductionAirdrop refund undelivered actors
2020-10-02 11:51:48 +02:00
abcdefg30
0dac4520ad
Add a 'refundableValue' parameter to 'Produce'
2020-10-02 11:51:48 +02:00
tovl
92189e4b50
Let docking angle be determined by the host building.
2020-10-02 11:28:14 +02:00
abcdefg30
798aff1140
Fix ValidStances of RevealsMap not working
2020-10-02 11:17:03 +02:00
Matthias Mailänder
7e992d44c8
Fix a crash when refineries share a cell.
2020-09-28 12:45:20 +02:00
Mustafa Alperen Seki
3e83346915
Add DamageTypes to SoundOnDamageTransition.
2020-09-27 21:22:52 +01:00
Mustafa Alperen Seki
761d3583c4
Add DeathTypes to ShakeOnDeath.
2020-09-27 21:22:52 +01:00
abcdefg30
4627387ae3
Document the 'CancelActivity' field
2020-09-26 23:20:00 +01:00
abcdefg30
fd69bce609
Use CancelActivity instead of hackily using ResolveOrder
2020-09-26 23:20:00 +01:00
Paul Chote
b72a58b917
Add missing ActorReferences to yaml dictionaries.
2020-09-15 09:27:50 +02:00
Paul Chote
290e214638
Remove unexpected RenderSprite.FactionImage fallback.
2020-09-12 17:52:46 +02:00
Paul Chote
cd9bf53e1a
Use nameof() to reference image fields.
2020-09-12 17:52:46 +02:00
Paul Chote
5d6961619d
Fix WithIdleOverlayInfo Image override.
2020-09-12 17:52:46 +02:00
Paul Chote
94180f6a0a
Add SequenceReference support for dictionaries.
2020-09-12 17:52:46 +02:00
Paul Chote
7803686aec
Rewrite sequence linting / missing file handling.
...
- Distinguish between missing sequences and missing sprites
- Lint default sequences as well as maps
- Improved performance
- Correctly handle null images
2020-09-12 17:52:46 +02:00
Paul Chote
b8e60ca8ec
Fix SequenceReference definitions.
2020-09-12 17:52:46 +02:00
Paul Chote
ffdb3f86d7
Move mod-specific lint attributes to Mods.Common.
2020-09-12 17:52:46 +02:00
abcdefg30
ad3722e19f
Add support for circumventing the target scan limit in AttackMove
2020-09-12 00:30:33 +02:00
abcdefg30
4669d6b378
Work around a sound issue when loading saves
2020-09-12 00:18:25 +02:00
abcdefg30
9f093da61e
Unhardcode the leeway range of AttackFollow
2020-09-11 23:55:57 +02:00
abcdefg30
3fc5859f08
Add 'AddToAssetsValue' to 'UpdatesPlayerStatistics'
2020-09-11 23:44:30 +02:00
Paul Chote
9cd6df2929
Replace DecorationPosition with mod-defined string ids.
2020-09-09 23:16:05 +02:00