CrazyAlex25
2d05e10819
Modify build properties
2021-04-12 00:44:17 +02:00
Matthias Mailänder
5a0bcc01a6
Add a lint check for trait placement on hardcoded actor names.
2021-04-11 20:20:00 +02:00
reaperrr
e161d9daa7
Misc TraitDictionary style fixes
2021-04-10 15:59:24 +02:00
reaperrr
aa834db1e3
Make perf.log output for ticking things opt-in
...
Both writing to perf.log frequently as well as GetTimestamp
aren't free and hurt performance particularly on slower systems
(which can have notably higher output to perf.log, further
amplifying the problem).
Therefore we make simulation perf logging opt-in.
Additionally, logging of the current tick and tick type
(local/net) is removed from debug.log, and some
remnant debug logging for kills and pips is removed
to keep performance-sensitive logging limited to
perf.log.
2021-04-10 15:59:24 +02:00
reaperrr
1a9dfc0893
Refactor GameSpeed setting
...
*Remove internal GameSpeed defaults
Enforce setting values explicitly all the time
Require definition of a DefaultSpeed
*Remove Global.Timestep default
*Remove the hacky Timestep/OrderLatency setting via LobbyInfo
*Fix shellmaps ignoring mod-defined gamespeeds
*Make DateTimeGlobal use the MapOptions gamespeed
2021-04-09 22:58:14 +01:00
teinarss
605181efe4
Update Log to use worker thread
2021-04-03 22:53:30 +01:00
Vapre
38f0d50648
Minor optimization. Save a call to IsAlliedWith if not disguised. #18791 .
2021-04-03 17:12:12 +01:00
teinarss
6ba9e64380
Rename modifiablePalettes to mutablePalettes in HardwarePalette
2021-04-03 11:33:31 +02:00
teinarss
8b0a3ea680
Remove our own impl of ReadOnlyList and update usages
2021-04-03 11:33:31 +02:00
teinarss
e12ff2c59d
Remove our own ReadOnlyDictionary and update usages
2021-04-03 11:33:31 +02:00
teinarss
3d381e6e32
Make SpriteFont.Measure take zero allocations
2021-04-03 11:22:45 +02:00
reaperrr
40aafe586d
Move Game.Timestep to Widget
...
Game.Timestep wasn't used for anything other than
UI anymore anyway, moving it makes this more clear.
2021-04-02 12:00:42 +01:00
Matthias Mailänder
d15e7f76fc
Port back to Mono.Nat and make discovery async.
2021-03-27 18:36:12 +00:00
Andre Mohren
3f510b6d93
Make ISpriteLoader aware of the source file name.
2021-03-27 17:36:59 +01:00
teinarss
d60c05eff3
Change to use pattern matching
2021-03-27 17:29:20 +01:00
Castle
12b6bb9448
Allow BlendMode of RgbaColorRenderer to be changed
2021-03-23 17:07:20 +01:00
Matthias Mailänder
bbbed49f82
Add a lint check for cursor definitions.
2021-03-20 17:37:16 +01:00
Paul Chote
0c52d275fa
Add TransparentIndex to PaletteFromFile.
2021-03-20 17:15:56 +01:00
Vapre
be224934a5
FieldLoader, use dictionary for GetValue to make it twice as fast.
2021-03-17 18:18:53 +01:00
teinarss
6b74093c04
Add readonly to structs
2021-03-14 15:17:57 +01:00
Paul Chote
7694d0842b
Fix two outdated comments.
2021-03-12 21:52:16 +01:00
Paul Chote
96c3825b6a
Add alpha support to TerrainSpriteLayer.
2021-03-12 21:52:16 +01:00
Paul Chote
a6467cb515
Fix Nullable type handling in Lua docs.
2021-03-10 17:46:44 +01:00
Paul Chote
d52ba83f96
Replace terniary null checks with coalescing.
2021-03-08 18:11:25 +01:00
reaperrr
2473b8763b
Rename methods/activities with Visual in them
...
While they may be only 'visual' in terms of influence/cell grid,
they all do update CenterPosition, which is essentially the
actual world position of the actor.
'Visual' would imply that it only affects the position where the
actor is drawn, which is inaccurate.
Furthermore, using the term 'Visual' here would make
naming future methods/properties related to visual interpolation
unnecessarily complicated, because that's where we might
need a real 'Visual(Only)Position'.
2021-03-08 11:19:11 +01:00
teinarss
7073279ab8
Replace WebClient with HttpClient
2021-03-07 16:04:57 +00:00
teinarss
ed43071792
Compile engine and mod dlls as NET5 when not using mono
2021-03-07 16:04:57 +00:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
teinarss
c2279d3071
Change GetField calls to use nameof
2021-02-28 18:43:51 +01:00
teinarss
ed295ae315
Change throw exceptions to use nameof in parameter
2021-02-28 18:43:51 +01:00
teinarss
53b781960c
Change FieldLoader.LoadUsing to use nameof
2021-02-28 18:43:51 +01:00
Paul Chote
0975102e92
Add Alpha support to sequences.
...
Alpha can specify a single value for the sequence
or values for each frame in the sequence.
AlphaFade: True can be specified to linearly fade
to transparent over the length of the animation.
2021-02-24 19:20:48 +01:00
Matthias Mailänder
5aa67a42c1
Bump Eluant version to support Unicode strings.
2021-02-18 23:16:49 +01:00
Vapre
f176a0ed83
Fix. Call EndGame in one place of server main loop. Ensure UPnP port forward is removed always. 18807.
2021-02-14 13:54:48 +00:00
Matthias Mailänder
e7cfd2765c
Make UI cursors configurable.
2021-02-14 13:09:59 +00:00
abcdefg30
96c4554644
Remove GenericSelectTarget
2021-02-14 12:51:12 +00:00
Adam Mitchell
9ee7294c81
Improve shroud performance
2021-02-12 20:58:56 +01:00
abcdefg30
e6c9d5fc96
Don't check IsTraitDisabled twice when calculating IsTargetableBy
2021-02-12 02:17:26 +01:00
Paul Chote
fb0031d34a
Rename remaining Stance references to PlayerRelationship.
2021-02-04 23:14:09 +01:00
Paul Chote
df1191db5b
Don't crash if a null uid is given to QueryRemoteMapDetails.
2021-01-30 13:44:51 +01:00
teinarss
58313520f0
Change renderables to class to avoid boxing
2021-01-29 00:24:27 +01:00
Paul Chote
82a9809192
Remove RenderSprites.Scale.
2021-01-21 18:22:11 +01:00
Paul Chote
f6b40b2bce
Allow sequences to define a Scale factor.
2021-01-21 18:22:11 +01:00
abcdefg30
fd75e03d9c
Use pattern matching in FieldSaver
2021-01-21 18:05:07 +01:00
Paul Chote
15c926b6b9
Move DefineConstants="MONO" into OpenRA.Game.csproj.
2021-01-16 22:58:05 +01:00
Paul Chote
142870d78a
Support multiple sheets in TerrainSpriteLayer.
2021-01-16 22:09:08 +01:00
Paul Chote
b0aa32cd1b
Support multiple palettes in TerrainSpriteLayer.
2021-01-16 22:09:08 +01:00
Paul Chote
53db1230ab
Move default tileset parsing to Mods.Common.
2021-01-11 21:57:55 +01:00
Paul Chote
207e09fea9
Add plumbing for mod-defined terrain loaders.
2021-01-11 21:57:55 +01:00
Paul Chote
995c33a942
Remove Ruleset.TileSet.
2021-01-11 21:57:55 +01:00