Paul Chote
fe41dcb45e
Restore 0xFE order for handshakes.
...
This restores handshake compatibility with protocol 7 servers.
2019-06-20 22:50:17 +02:00
Paul Chote
bfddfec461
Replace magic numbers with an OrderType enum.
2019-06-20 22:50:17 +02:00
Paul Chote
862a274357
Merge ServerOrder into Order and 0xFE order type into 0xFF.
2019-06-20 22:50:17 +02:00
abcdefg30
e6feba8884
Remove the TeamChat order type
2019-04-22 19:55:04 +01:00
abcdefg30
9a84ccdd1d
Send the designated team number as extra data in the order
2019-04-22 19:55:04 +01:00
abcdefg30
991093df81
Let immediate orders send a bitfield for extra order data
2019-04-22 19:55:04 +01:00
Paul Chote
00496e2ec2
Remove Order.TargetLocation.
2019-03-04 18:08: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
Paul Chote
3e490e5843
Cache FrozenActorLayer on the Player object.
...
This avoids unnecessary trait queries.
2018-12-17 22:19:26 +01:00
Andre Mohren
b1a44086a0
Removed unused using directives.
2018-11-17 17:23:22 +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
teinarss
cfaf5a6467
Updated CPos struct to use a bit field for all properties.
2018-10-02 00:54:45 +01:00
teinarss
e353c8c176
Changed SubCell to byte
2018-09-30 19:48:27 +01:00
Paul Chote
8475bd6294
Ignore malformed orders instead of crashing.
2018-08-25 18:23:35 +02:00
Paul Chote
ba8eac0e38
Remove deprecated Order.TargetActor and Target.FromOrder.
2018-05-30 18:06:59 +02:00
Paul Chote
768265bbd2
Unify TargetFlash handling around Targets.
2018-05-30 18:06:59 +02:00
RoosterDragon
a726b57367
Fix order serialization issues.
2018-01-28 15:41:28 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Paul Chote
f8abd5d319
Serialize the correct player in FrozenActor-targeting orders.
2018-01-01 16:01:44 +01:00
Paul Chote
b3cde077fc
Don't break the order stream if a frozen actor refers to a bogus player.
2018-01-01 16:01:44 +01:00
Paul Chote
ec4cf0646f
Rewrite Serialize to improve clarity.
2017-12-21 20:01:14 +01:00
Paul Chote
5b51261dd3
Serialize the correct target type.
2017-12-21 20:01:14 +01:00
Paul Chote
9c88fc154f
Remove redundant switch from order serialization.
2017-12-21 20:01:14 +01:00
RoosterDragon
ca01a1f186
Presize MemoryStream when possible.
...
Also use GetBuffer when we know we have presized the stream to the exact required size to prevent a needless copy.
2017-12-19 00:59:11 +01:00
Pavel Penev
8d7eb0bc47
Fix order deserialization when there is no indended order subject
2017-11-13 00:37:44 +01:00
Paul Chote
5f9a67ed87
Migrate frozen actors from ExtraData to Target.
2017-10-26 18:48:41 +03:00
Paul Chote
29c423772f
Serialize order Target directly instead of TargetActor/TargetCell.
2017-10-26 18:48:41 +03:00
Paul Chote
d967c564a2
Remove TargetActor and TargetLocation from order issuing.
2017-10-15 19:07:46 +02:00
Paul Chote
4896a90b8d
Add plumbing to issue orders against a generic Target.
2017-10-15 19:07:46 +02:00
Paul Chote
d9800d4e2b
Fix repair cursor visual feedback target.
2017-04-24 08:52:48 +01:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Oliver Brakmann
d1ef1ed1ba
Log unknown orders instead of crashing with an NIE
2016-09-26 20:39:01 +02:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
RoosterDragon
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
RoosterDragon
a0117a3890
Add a method to look up actors by ID.
...
This can be used to speed up some methods.
2015-08-09 20:25:34 +01:00
Matthias Mailänder
e428e6d8cc
remove executable bits from source code
2015-08-06 18:05:50 +02:00
Matthias Mailänder
24deec2a7b
fix CodeLineMustNotEndWithWhitespace
2015-01-25 18:41:29 +01:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
Paul Chote
563efd678a
Revert "DevEnableTech now displays from all factions"
...
This reverts commit 5d5f302d07 .
2014-11-15 09:20:04 +13:00
huwpascoe
dfc6ebd3ba
Introduced NUnit and some tests.
2014-11-02 20:18:04 +00:00
Matthias Mailänder
fb0d5036da
beautify comment
2014-11-01 22:16:03 +01:00
Matthias Mailänder
b28615c2f6
StyleCop clean Order
2014-11-01 21:50:53 +01:00
huwpascoe
5d5f302d07
DevEnableTech now displays from all factions
2014-10-19 20:28:29 +01:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +02:00
Paul Chote
a256e722d5
Remove conversions between legacy and world types.
2014-06-27 23:30:41 +12:00
Paul Chote
7d24053f52
Introduce Order.SuppressVisualFeedback to cleanly disable flashes.
2014-06-26 23:14:13 +12:00
Oliver Brakmann
63f4a0646f
Fix build palette showing too many queued items when BuildLimit is reached
...
When a BuildLimit on an actor type is set and nearly reached, you could
shift-click the build palette and it would show it had five more items
queued when really less are allowed to be built. This fixes it so that
only the allowed number of items is enqueued, and thus showing the
correct number on the build palette.
2014-04-26 16:27:02 +02:00
Paul Chote
6b1b8d9ed4
Add Order.ExtraData field.
2013-08-11 22:23:51 +12:00
Matthias Mailänder
6b261534d8
remove some plenks
...
no logic changes
2013-06-17 22:50:39 +02:00