Matthias Mailänder
7cd259d2b8
add a missing space for multi line property documentation
2014-07-01 09:12:13 +02:00
Paul Chote
281423c8f4
Merge pull request #5766 from RoosterDragon/read-only-frames
...
Make sprite frames read-only lists.
2014-06-28 21:54:30 +12:00
RoosterDragon
7030d8b2b6
Changed HardwarePalette.ApplyModifiers to be more efficient.
...
- Add separate ImmutablePalette and MutablePalette classes since the distinction is extremely important to HardwarePalette.
- Keep a cache of palettes in HardwarePalette to avoid reallocation them every time ApplyModifiers is called.
- Palettes that are not allowed to be modified are copied to the buffer once when added, rather than every time ApplyModifiers is called.
- The AdjustPalette method now takes a read-only dictionary to prevent the dictionary being messed with.
- Added a constant for the palette size to remove its usage as a magic number in several areas.
- The ColorPreviewManagerWidget is annoying in that it needs to actually permanently update a palette after it has been added. To allow this, HardwarePalette now allows a palette to be replaced after initialization. The WorldRenderer therefore now also updates the PaletteReference it created earlier with the new palette to prevent stale data being used elsewhere.
2014-06-28 01:11:48 +01:00
RoosterDragon
19072775d4
Changes ISpriteSource.Frames to be of type IReadOnlyList<ISpriteFrame>.
...
- Updated implementations to return a ReadOnlyList around an array (to reduce wasted memory from exposing lists or lazy enumerators around lists).
- Protect non-public ISpriteFrame classes by making them inner classes to prevent casting.
- Added an AsReadOnly extension method for lists.
2014-06-27 23:38:34 +01:00
Chris Forbes
87ff787f26
Merge pull request #5721 from RoosterDragon/stylecop-small-projects
...
Run StyleCop on the smaller projects.
2014-06-23 19:09:04 +12:00
RoosterDragon
38617dc0a9
Run StyleCop on the smaller projects.
...
Also add a copy of the rules to the CrashDialog and Irc projects.
2014-06-23 00:03:37 +01:00
Paul Chote
7cf2a32a2a
Revert "export health, cost and damage per section into a CSV file"
...
This reverts commit 8249012e4b .
Conflicts:
OpenRA.Utility/Command.cs
2014-06-23 09:31:40 +12:00
Matthias Mailänder
1d276e4186
add a pure data export for non-spreadsheet applications
2014-06-15 20:13:14 +02:00
Matthias Mailänder
6d2dfabb41
factor in burst delay
2014-06-15 20:12:47 +02:00
Matthias Mailänder
e0ba2046b5
add weapon name
2014-06-15 20:12:24 +02:00
Matthias Mailänder
de005c284c
add armor types and move calculation into spreadsheet
2014-06-15 20:11:41 +02:00
Matthias Mailänder
8249012e4b
export health, cost and damage per section into a CSV file
...
closes #3855
2014-06-15 20:10:51 +02:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
ScottNZ
dbffce81a6
Remove unused usings
2014-06-15 22:16:40 +12:00
RoosterDragon
0ea3509ee4
Added MinBy, MaxBy, MinByOrDefault and MaxByOrDefault methods and replaced calls of the style OrderBy[Descending]().First[OrDefault]() which is not as performant.
2014-05-23 08:23:42 +01:00
Pavlos Touboulidis
63ec6d60e7
Refactoring to remove static Rules & SequenceProvider
2014-05-17 14:32:03 +03:00
Pavlos Touboulidis
5fc7ef02bf
Fixes #4615 : OpenRA.Utility should expand wildcards in paths
...
The path to be expanded. It can be a relative or an absolute path.
Wildcards can appear as part of the path and as part of the file name/extension.
Example:
Expand("./mods/*/mod.?aml");
2014-05-16 19:36:05 +03:00
Matthias Mailänder
59ace5d01b
new shorthand Exts.(Try)ParseIntegerInvariant
2014-05-13 14:16:41 +02:00
Matthias Mailänder
b19d286f56
parse with NumberFormatInfo.InvariantInfo everywhere
...
closes #5240
2014-05-06 18:31:48 +02:00
Matthias Mailänder
b1045dfce6
Update Command.cs
...
WRange is actually a 1D world distance with 1024 units = 1 cell.
2014-05-05 12:03:01 +02:00
Paul Chote
d73af0190f
Add a new native-lua implementation.
2014-05-02 22:18:34 +12:00
Matthias Mailänder
589c7642d1
add a table of contents
2014-04-28 10:28:17 +02:00
Matthias Mailänder
5120cdf6d4
more non-technical type names
2014-04-28 09:41:22 +02:00
Matthias Mailänder
d9bd5f4d7f
tabular view, sorted by namespace and given headers
2014-04-28 09:38:11 +02:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Matthias Mailänder
c6d9574d52
automatically fix open areas
...
and don't hard-code the tiles no more
2014-01-03 16:46:38 +01:00
Matthias Mailänder
50bc073791
move legacy map import into the command line utility
...
closes #4368
2014-01-03 16:45:40 +01:00
Paul Chote
bd334a6295
Introduce a mod/map upgrade tool.
2013-12-26 19:58:23 +13:00
Matthias Mailänder
9acfbc30e5
this is now sprite to PNG
2013-12-15 12:03:21 +01:00
Paul Chote
ffcfe051e0
Fix bitrotted command descriptions.
2013-12-12 20:30:48 +13:00
Paul Chote
8f71861a6b
Remove mod argument from GenerateMinimap.
...
It is redundant now that we enforce v6 maps.
2013-12-12 20:30:48 +13:00
Paul Chote
250a7cb349
Move map upgrading to OpenRA.Utility.
2013-12-08 11:25:54 +13:00
Matthias Mailänder
8d9282811b
fixed System.IO.InvalidDataException`: Non-power-of-two array
2013-12-05 19:31:24 +01:00
Matthias Mailänder
52ecac7336
allow mod override
...
e.g. useful for legacy maps where RequiresMod: is not set
2013-12-05 19:27:40 +01:00
Matthias Mailänder
5a4fc712a9
added --minimap to OpenRA Utility
...
closes #4195
2013-12-05 17:41:03 +01:00
Matthias Mailänder
06b0ce621f
mixed line endings → Unix line endings
2013-12-05 17:14:55 +01:00
Paul Chote
e3e2758bfb
Remove --userdir argument from Utility --extract.
2013-12-01 09:59:15 +13:00
Paul Chote
3f2be59056
Clean up ShpReader code.
2013-12-01 09:48:44 +13:00
Paul Chote
ed163aea82
Fix D2 shp parsing and make it a proper frame source.
2013-12-01 09:48:44 +13:00
Paul Chote
246c5e4526
Update Utility --shp to match.
2013-12-01 09:48:44 +13:00
Paul Chote
e636f99c48
Change Utility --png to accept all ISpriteSources.
2013-12-01 09:48:44 +13:00
Paul Chote
f92ce8bf51
Define a consistent interface for sprite loading. Fixes #4176 .
2013-12-01 09:47:49 +13:00
Paul Chote
6d6d1e230b
Remove runtime mod merging. Closes #3421 .
2013-11-15 09:54:42 +13:00
Matthias Mailänder
ebd5a6a5dc
don't mount the mod folders at all for make docs
...
fixes #3873
2013-11-02 16:16:19 +01:00
Matthias Mailänder
9226073eb0
don't mount packages for make docs
2013-11-02 13:17:31 +01:00
Matthias Mailänder
b73ca27a8f
move vehicles to load sprites from DATA.R8 directly
2013-08-17 23:31:22 +02:00
Matthias Mailänder
8718a9cb44
load projectiles, muzzles and explosions from DATA.R8
2013-08-17 23:31:22 +02:00
Matthias Mailänder
bed3fc2498
replace the infantry sequences with transposed DATA.R8 frames
2013-08-17 23:31:22 +02:00
Matthias Mailänder
341522232e
migrate all other buildings to DATA.R8 sequences
...
4th conyard might be for the Corrino faction
TODO: active animations are yet unused overlays
no need to render build-top for refineries
2013-08-17 23:31:22 +02:00
Matthias Mailänder
a7504b5dd9
load Dune 2000 walls directly from DATA.R8
2013-08-17 23:31:22 +02:00