Commit Graph

107 Commits

Author SHA1 Message Date
dnqbob
1a3d3cd31e Add Firestrom generator (incomplete) 2024-05-19 14:35:09 +03:00
Wojciech Walaszek
32ad81d0ff fixes gapowr plugs offsets 2023-12-15 18:26:38 +02:00
RoosterDragon
b7e0ed9b87 Improve lookups of nodes by key in MiniYaml.
When handling the Nodes collection in MiniYaml, individual nodes are located via one of two methods:

// Lookup a single key with linear search.
var node = yaml.Nodes.FirstOrDefault(n => n.Key == "SomeKey");

// Convert to dictionary, expecting many key lookups.
var dict = nodes.ToDictionary();

// Lookup a single key in the dictionary.
var node = dict["SomeKey"];

To simplify lookup of individual keys via linear search, provide helper methods NodeWithKeyOrDefault and NodeWithKey. These helpers do the equivalent of Single{OrDefault} searches. Whilst this requires checking the whole list, it provides a useful correctness check. Two duplicated keys in TS yaml are fixed as a result. We can also optimize the helpers to not use LINQ, avoiding allocation of the delegate to search for a key.

Adjust existing code to use either lnear searches or dictionary lookups based on whether it will be resolving many keys. Resolving few keys can be done with linear searches to avoid building a dictionary. Resolving many keys should be done with a dictionary to avoid quaradtic runtime from repeated linear searches.
2023-09-23 14:31:04 +02:00
Paul Chote
5b8f148c50 Simplify tileset-specific sequence definitions.
All magic behaviour for constructing sprite filenames
has been removed in favour of an explicit Filename
(and TilesetFilenames for tileset-specific sequences)
property.
2023-01-22 22:10:48 +02:00
Paul Chote
be3412ee74 Fix depth offsets for sprite with non-zero ZRamp.
Bibs and other effects that should be drawn at ground level
can now simply define ZRamp: 1, Offset: <X>,<Y>,1, avoiding the
need to account for the Y offset or internal sprite offsets.
2021-08-20 20:17:55 +02:00
Paul Chote
08c7c80bb7 Render building lights as their own tint-ignoring animations. 2021-03-20 17:15:56 +01:00
Paul Chote
76a10283c4 Fix TS effect translucency/lighting effects. 2021-02-24 19:20:48 +01:00
reaperrr
c57cc96145 TS radars Z offset fixes
The lower borders of the sprites were cut off without this.
2021-02-14 14:40:58 +00:00
Matthias Mailänder
c48eb572e3 Remove MuzzleSplitFacings and expose MuzzleSequence to testing. 2020-09-01 18:53:43 +02:00
Matthias Mailänder
c7ba359688 Add drop pod reinforcements. 2020-06-21 17:28:24 +02:00
Matthias Mailänder
5ec136b57c Don't play the make animation on the wall sprite body. 2020-05-05 13:23:58 +02:00
Paul Chote
b3c1d96027 Add place previews for TS building plugs. 2019-05-31 15:44:09 +02:00
Paul Chote
a2e35144a7 Fix gate animations. 2019-01-27 21:37:55 +01:00
abc013
b55ae1dcf0 Fixed TS Hand of Nod lights 2017-10-03 13:52:06 +02:00
Matthias Mailänder
0018bf3063 Add start and stop repair overlay animation support. 2017-09-24 11:43:49 +01:00
Matthias Mailänder
4526344eed Add WithNukeLaunchAnimation and -Overlay traits. 2017-09-02 15:10:35 +02:00
Paul Chote
0ddb631117 Add TS Laser Fences. 2017-04-23 00:44:11 +01:00
reaperrr
5789b73091 Convert TS Nod Artillery to condition system
Getting rid of legacy Transforms approach.
2017-04-21 12:41:18 +02:00
reaperrr
d9b3d0fd84 Fix TS helipad anim speed
Too slow on bleed compared to original, especially the GDI one.
2017-04-01 16:39:11 +02:00
reaperrr
8ee67a4438 Fix TS ConYard top lights anim speed
Way too slow on bleed compared to original
2017-04-01 16:35:04 +02:00
reaperrr
fd717041ae Fix TS factory/barracks lights
In TS,
-GDI Factory lights were all idle and didn't have a damaged state
-GDI Barracks lights were all idle, and flag anim played more slowly
-Hand of Nod lights were all idle
-Nod Factory lights were idle
2017-04-01 16:30:20 +02:00
reaperrr
29355129d2 Fix TS service depot depth sorting 2016-11-12 12:56:37 +01:00
reaperrr
11ba90c690 Fix Vulcan Tower muzzle depth sorting 2016-10-23 18:19:05 +02:00
reaperrr
41dc76ef06 Fix Kodiak, Montauk, hospital & deployed ICBM depth sorting 2016-10-22 03:08:38 +02:00
Paul Chote
103e8075f2 Fix building EMP overlay depth offsets. 2016-08-27 19:14:00 +01:00
reaperrr
01282e7b3c TS yaml style fixes 2016-08-21 19:43:37 +02:00
Paul Chote
216d82d4ef Set up TS base structure depth metadata. 2016-07-13 22:22:13 +01:00
Matthias Mailänder
703388f034 Fixed sprite offsets. 2016-06-21 23:28:48 +02:00
reaperrr
8ee019a80a Fix Nod SAM Site sequence and armament offsets
The turret sequence in particular was located too far to the left.
2016-05-28 22:16:37 +02:00
reaperrr
805ffaa480 Fix TS Temple of Nod art offset 2016-05-28 22:16:28 +02:00
reaperrr
0d3500ee2f Fix Component Tower weapon and muzzle offsets 2016-05-28 22:16:27 +02:00
Pavel Penev
ba0781c28d Remove now-redundant actor gatick (deployed tick tank) 2016-02-22 02:44:27 +02:00
Paul Chote
a0bc556172 Implement new syntax for package-specific filesystem requests. 2016-02-15 00:44:36 +00:00
teees
65e1e301f4 Added Gates
FIXUP: account for full gate footprint when updating neighbours.

FIXUP: gate-wall connection adjacency yaml.
2016-01-25 09:14:00 +01:00
Matthias Mailänder
152ff32ded add the Tiberian Sun harvester unload overlay 2016-01-16 13:51:08 +01:00
Paul Chote
cec2c584e6 Fix TS EMP overlay. 2015-12-26 12:37:22 +00:00
reaperrr
04b5b3df5c Fix TS Obelisk charge overlay Z offset
To make sure it is played on top of the 'body'.
2015-12-06 02:04:40 +01:00
abcdefg30
abed25d293 Merge pull request #9501 from atlimit8/DeployedInit
Add DeployStateInit for Pre-deployment and Clean Up after #9124
2015-11-28 15:58:46 +01:00
teees
11cdd84606 Added nawast 2015-11-23 20:26:39 +01:00
atlimit8
607b345aaf Clean-up MiniYaml after #9124, closing #9497 2015-11-21 20:10:58 -06:00
Paul Chote
6dce8a1385 Implement Hunter-seeker support power. 2015-10-05 22:05:02 +01:00
reaperrr
522e7d5d04 Add custom sequence support to WithSiloAnimation
Additionally add description to Stages property, and remove unnecessary var (information is only needed once anyway).
2015-09-25 14:26:21 +02:00
reaperrr
4aaa62845d Fix TS repair depot idle overlay
This was an idle animation in the original, and this and "platform" cannot be displayed at the same time anyway.
Also increased Tick rate to match idle light.
2015-09-19 20:37:59 +02:00
Matthias Mailänder
735bb06c48 Merge pull request #9229 from pchote/fix-building-offsets
Fix TS building artwork offsets.
2015-09-02 20:45:15 +02:00
Pavel Penev
2042fccefd Merge pull request #9189 from reaperrr/bye-rendersimple3
Remove RenderBuilding
2015-09-02 19:21:01 +03:00
reaperrr
2031df965c Clarify TODO on TS missile silo sequences 2015-09-02 17:51:43 +02:00
Paul Chote
7063d785a3 Fix Nod stealth generator offsets. 2015-09-02 16:22:24 +01:00
Paul Chote
291ba0e664 Fix GDI upgrade center offset. 2015-09-02 16:18:37 +01:00
Paul Chote
abce4678ca Fix Nod advanced power plant offset. 2015-09-02 16:18:27 +01:00
reaperrr
10ab4cbe61 Fixed production overlay ZOffsets 2015-08-30 15:45:01 +02:00