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
abcdefg30
0dac4520ad
Add a 'refundableValue' parameter to 'Produce'
2020-10-02 11:51:48 +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
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
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
86f61298e6
Replace ITraitInfo interface with TraitInfo class.
2020-05-21 13:01:04 +02:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
teinarss
12484caf04
Added field to ProductionQueue to customize ordering in ObserverProductionIconsWidget
2019-05-26 19:04:54 +01:00
Paul Chote
78a70be0d4
Fix and enable SA1133, SA1134 style rules.
2019-05-24 10:47:57 +02:00
teinarss
9fc8b829e4
Updated the observer ui
2019-05-22 22:37:50 +01:00
Mustafa Alperen Seki
de7706c98f
Add ProductionCost/TimeMultiplier
2019-04-22 20:44:50 +02:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Andre Mohren
c3f4bc484d
Correctly handle Production traits disabled by condition.
2018-11-21 22:13:20 +01:00
Andre Mohren
0fca984463
Implemented InfiniteBuildAfter.
2018-11-17 17:39:18 +00:00
Ivaylo Draganov
a7279415dc
Allow player to add a "priority unit" to production queue
...
* If production is ordered by `Ctrl + Left Click` the item is added to the top of the stack after the currently produced item
* Works with `Shift` for priority queueing of 5 items
* This modifier is not taken into account for `ParallelProductionQueue` as it doesn't make sense in that context
2018-11-03 17:54:50 +01:00
Mustafa Alperen Seki
5b00c12ca3
Change default value of LowPowerModifier to 100
2018-10-08 21:38:30 +01:00
Mustafa Alperen Seki
53304a0353
Change LowPowerSlowdown to LowPowerModifier
2018-10-08 21:38:30 +01:00
Andre Mohren
3bfcecd539
Refactored ProductionQueue to support different production styles.
2018-09-30 16:58:49 +02: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
Andre Mohren
fac758f38e
ProductionQueue notifications now optional.
2018-09-24 22:43:14 +02:00
Andre Mohren
a57cfc7d40
Fixed ProductionItem costs calculation.
2018-07-26 14:01:37 +00:00
Andre Mohren
81e1b39bb9
Made PowerManager optional for traits who do not require it.
2018-07-26 14:02:42 +01:00
Paul Chote
0654f18f22
Break out of cancellation loop when there is nothing left to cancel.
2018-04-22 18:01:57 +02:00
Paul Chote
f2cf51d1a4
Play appropriate audio notifications when build/production limit is reached.
2018-04-22 18:01:57 +02:00
Paul Chote
da10e94b41
Add per-item and total queue length limits to ProductionQueue.
...
Implement 999 per-actor limit.
2018-04-22 18:01:57 +02:00
Andre Mohren
5b7d43f1e0
Virtual ProductionQueue.AllQueued
2018-04-12 08:08:45 +02:00
Mustafa Alperen Seki
356f24b78c
Add logic to disallowing On Hold on a queue.
2018-03-18 15:58:57 +01:00
reaperrr
5ae1d1c4bf
Fix bracket style issue in ProductionQueue
...
While it's really minor and insignificant, our style convention is to put opening { brackets on a newline (unless everything fits into a single line).
2018-02-21 22:04:33 +03:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Alexis Hunt
157a783df5
Correct UI for unslowed queues in low power.
...
Because of the way the tick logic works, 0 (or any negative number) for
LowPowerSlowdown is functionally equivalent to 1. But LowPowerSlowdown
is multipled by a time in several cases, so while 1 will produce the
correct result (no slowdown), 0 will say that the time remaining is
00:00. Forbid nonpositive values, and correct the d2k mod which was
using 0.
Additionally, in the production tooltip, the colour should display as
white even in low power if there is no slowdown.
2018-01-13 16:13:59 +01:00
Mustafa Alperen Seki
acf25354b0
Consider BuildAtProductionType for exit types too for normal ProductionQueue
2017-12-27 13:46:20 +00:00
reaperrr
383840135f
Replace IsDisabled checks in production with IsTraitPaused/Disabled checks
...
Note: We might want to separate IsTraitDisabled checks later (possibly make the latter cancel the currently produced item), but that can be done in a follow-up.
2017-12-17 21:18:44 +00:00
GSonderling
488cec64b8
Added support for filtering exits by production type.
2017-12-13 04:08:52 +01:00
abcdefg30
cba7c60f6f
Fix the "Unit Ready" notification playing erroneously
2017-10-25 22:43:35 +01:00
Paul Chote
cfac996438
Generalize factionVariant to a TypeDictionary of Inits.
2017-10-22 03:32:21 +03:00
reaperrr
28e1f391e0
Make ITick require explicit implementation
2017-09-16 15:51:37 +02:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
reaperrr
61284d73dd
Make interface implementations explicit where possible in traits that implement INotifySold
2016-10-20 19:02:30 +02:00
reaperrr
22dcb1c66f
Move INotifySold to Common and require explicit implementation
2016-10-20 19:02:28 +02:00
Zimmermann Gyula
d9f38d57a7
Cache the *Infos in ProductionItem.
2016-08-21 12:05:34 +02:00
Zimmermann Gyula
f80ac6e5c0
Rename ProductionQueue.BuildSpeed and change it's default value.
2016-08-21 12:05:34 +02:00
Zimmermann Gyula
de10cb22e8
Shift CustomBuildTimeValue to Buildable.
2016-08-21 12:05:32 +02:00
Paul Chote
7e49ae7eb0
Prepare DeveloperMode code for trait-defined lobby options.
2016-05-14 18:54:44 +01:00
Oliver Brakmann
87e1acfc9f
Re-implement the insufficient funds warning in a simpler manner
2016-04-11 19:06:18 +02:00
Oliver Brakmann
41388b9c63
Revert the previous InsufficientFundsWarning implementation
2016-04-11 19:06:18 +02:00
reaperrr
38cea38f6b
Migrate BuildSpeed from float to int
2016-03-24 18:43:48 +01:00
abcdefg30
be1080f7bd
Add support for playing an InsufficientFunds warning
2016-02-23 22:16:51 +01:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00