Paul Chote
cd9bf53e1a
Use nameof() to reference image fields.
2020-09-12 17:52:46 +02: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
Andre Mohren
006a87692a
Removed unused imports.
2020-07-28 18:22:51 +02:00
Paul Chote
ac975f4139
Convert yaml-exposed facings to WAngle.
2020-07-19 10:41:05 +02:00
Paul Chote
c6c3a8c60d
Make ActorPreview and EditorActorPreview wrap ActorReference.
2020-06-19 17:57:56 +02:00
Paul Chote
b856613194
Add ISingleInstanceInit interface.
...
Inits that are logically singletons (e.g. actor
location or owner) should implement this interface
to avoid runtime inconsistencies.
Duplicate instances are rejected at init-time,
allowing simpler queries when they are used.
2020-06-19 17:57:56 +02:00
Paul Chote
6adf45bcb4
Convert IFacing.Facing and TurnSpeed to WAngle.
2020-06-12 18:35:41 +02:00
Paul Chote
b38018af9c
Replace IActorInit with an abstract class.
...
A shared ValueActorInit<T> is introduced to reduce duplication
in the most common init cases, and an ActorInitActorReference
allow actors to be referenced by map.yaml name.
2020-06-08 19:18:38 +02:00
abcdefg30
44d3691fa1
Assign Player.IsBot before calling INotifyCreated.Created
2020-05-30 19:47:29 +02:00
abcdefg30
27d0465891
Remove workarounds for querying the PlayerActor in Created
2020-05-30 19:47:29 +02:00
Paul Chote
7c6ec577dc
Rewrite ActorInit queries.
2020-05-28 19:04:53 +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
atlimit8
1ef27d18c1
check name for Actor.GrantCondition()
2020-05-17 12:33:29 +02:00
atlimit8
259c8d2c98
Merge ConditionManager trait directly into Actor
2020-05-09 15:46:11 +02:00
Matthias Mailänder
42256bc262
Add an out of bounds check.
2020-05-01 19:41:06 +03:00
Paul Chote
1ff037a257
Remove invalid caching from GCOT.
2020-03-20 17:43:24 +01:00
Paul Chote
84419e4259
Add queued argument to CanIssueDeployOrder.
2020-02-24 12:56:49 +01:00
abcdefg30
e877bb1206
Fix GrantConditionOnProduction not using ShowSelectionBar
2020-02-22 18:05:40 +00:00
Mustafa Alperen Seki
d7f43b33c7
Make GrantConditionOnAttack PausableConditional
2020-01-26 17:05:02 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
matjaeck
ba73842747
Allow GrantCondition to grant conditions permanently.
2019-11-08 16:37:13 +01:00
Paul Chote
5f8fa7a35a
Add UndeployOnPickup to GrantConditionOnDeploy.
2019-10-19 13:11:00 +02:00
Paul Chote
3860cd1b98
Add "Deployed" checkbox in the map editor actor properties.
2019-10-10 19:50:05 +02:00
matt barbier
97fe36af5a
Moved GrantExternalConditionToProduced into the Traits/Conditions folder
2019-09-13 22:04:35 +01:00
Paul Chote
6eaf615798
Fix conditional traits that incorrectly override INotifyCreated.
2019-07-14 00:41:59 +02:00
tovl
b9c302a73a
Move ChildActivity handling into base Activity class.
2019-07-03 20:42:19 +02:00
RoosterDragon
58dced7e05
Silence some doc errors in VS2019.
2019-06-21 21:22:12 +02:00
Paul Chote
674155a8dd
Move ctor initializers to their own line.
2019-06-08 18:44:50 +02:00
Paul Chote
dabc7ec8dd
Remove unnecessary this. references.
2019-06-08 13:19:27 +02:00
tovl
ea036d4cc0
Allow move orders to cancel DeployForGrantedCondition.
2019-06-08 02:09:30 +02:00
Paul Chote
78a70be0d4
Fix and enable SA1133, SA1134 style rules.
2019-05-24 10:47:57 +02:00
tovl
8e91a1ba89
Add order voice to GrantConditionOnDeploy.
2019-04-22 15:34:07 +02:00
abcdefg30
1bb319425b
Add Sound.Play overloads that play a random sound from a list
2019-04-20 01:22:30 +02:00
reaperrr
4c53599736
Adapt GrantConditionOnMovement to INotifyMoving
2019-03-30 16:24:47 +00:00
reaperrr
a10af382b4
Add plumbing for notifying traits of movement
...
More precisely, about start and stop of movement.
2019-03-30 16:24:47 +00:00
Mustafa Alperen Seki
ac7d2e00e3
Use .Trait<ConditionManager>(); on GrantConditionOnDamageState
2019-03-21 14:36:33 +01:00
Mustafa Alperen Seki
d54e4395e5
Add GrantConditionOnHealth
2019-03-21 14:36:33 +01:00
abcdefg30
0ab7e0a855
Add support for multiple (un)deploy sounds on GrantConditionOnDeploy
2019-03-11 21:31:39 +00:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
abcdefg30
8689030f79
Add GrantConditionWhileAiming
2018-12-29 19:21:54 +01:00
Paul Chote
80842fd4b8
Add GrantConditionOnPlayerResources trait.
2018-11-22 22:16:56 +01:00
Andre Mohren
89051d40e8
Remove utf8 BOM.
2018-11-17 17:23:22 +00:00
Andre Mohren
b1a44086a0
Removed unused using directives.
2018-11-17 17:23:22 +00:00
Paul Chote
ea3731a7cc
Pass the original init dict to UnitProducedByOther.
2018-11-03 17:30:05 +01:00
Andre Mohren
640078a2b1
Refactored Health usage to IHealth.
2018-09-29 18:12:40 +02:00
Mustafa Alperen Seki
b53c13dca4
Add GrantConditionOnProduction
2018-09-29 12:10:11 +01:00
Paul Chote
09d8aafddf
Add a lint test for audio notifications.
...
Only traits are linted - the UI still hardcodes
too many audio references for this to be worthwhile.
2018-09-26 13:57:05 +02:00