Matthias Mailänder
3e627d2eba
rename ore to the more generic name resources everywhere
2014-06-20 11:11:31 +02:00
Matthias Mailänder
0e1f98c2a9
Merge pull request #5600 from RoosterDragon/auto-restart
...
Offer user quick restart if settings change
2014-06-20 08:56:08 +02:00
Matthias Mailänder
18805779a8
document RejectsOrders
2014-06-19 21:21:14 +02:00
RoosterDragon
22abf9b4c4
Remove and sort usings.
2014-06-18 21:43:35 +01:00
RoosterDragon
e8111e8ac6
Restart the process rather than reloading a new AppDomain.
2014-06-18 21:36:59 +01:00
RoosterDragon
52b09bdfe8
If changed settings require a restart, offer the user to do it now.
...
Add a dialog when closing the settings screen asking the user if they would like to restart the game now in order to apply any settings that are only applied after restarting the game. The game is reloaded in-process by spinning up a new AppDomain in order to reset state.
2014-06-18 21:36:56 +01:00
RoosterDragon
85734defec
Improve trait enumeration speed for All and GetMultiple.
...
Use a hand-rolled enumerators to avoid the overhead from compiler generated enumerable blocks. This trades terseness for some minor performance gains.
2014-06-17 22:11:23 +01:00
RoosterDragon
909c5c7037
Some minor cleanup in TraitDictionary and affected callsites.
2014-06-17 22:10:41 +01:00
Paul Chote
50d3929862
Merge pull request #5616 from RoosterDragon/syncreport-simplify
...
Rewrite SyncReport for clarity and performance
2014-06-17 22:54:48 +12:00
Matthias Mailänder
1f7b0ad5d4
time limit the port forwarding if possible
2014-06-16 16:42:06 +02:00
Matthias Mailänder
a8c029f130
check if we really found a UPnP compatible NAT device
2014-06-16 16:35:33 +02:00
Matthias Mailänder
4d2412f4b8
this can't throw
2014-06-16 16:34:44 +02:00
Matthias Mailänder
d25fd654bc
NatUtility.DeviceLost is never fired
2014-06-16 16:33:57 +02:00
Matthias Mailänder
db319f8f0b
this will never happen
2014-06-16 16:33:16 +02:00
Matthias Mailänder
88480e0dc2
make it clear that this does not need to match content height
2014-06-16 10:17:30 +02:00
Paul Chote
887a515e14
Add MinRange plumbing to attack activities.
2014-06-15 22:48:43 +12: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
ScottNZ
831b9b3ca3
Remove some stray semicolons
2014-06-15 22:14:39 +12:00
ScottNZ
6b85660d7d
Compact lambda expressions in some (not all) places
2014-06-15 22:14:38 +12:00
Paul Chote
1169211893
Merge pull request #5579 from Mailaender/frozen-C4
...
Fixed C4 target inconsistencies with Fog of War and Husks
2014-06-15 22:01:04 +12:00
Matthias Mailänder
8f64835898
StyleCop
2014-06-15 10:51:57 +02:00
Matthias Mailänder
dac12839fd
Merge pull request #5630 from pavlos256/map-helpers
...
Move map helpers from WorldUtils to Map
2014-06-14 11:49:19 +02:00
Matthias Mailänder
fe0d7ab00e
Merge pull request #5627 from pchote/frozen-cloak-fix
...
Invalidate FrozenActors that don’t have any sprites.
2014-06-14 11:41:49 +02:00
Matthias Mailänder
1ebfc6bb06
Merge pull request #5631 from pavlos256/dev-iddqd
...
Add "/all" dev command
2014-06-14 10:27:58 +02:00
Matthias Mailänder
ee0df9c1cb
make C4 Demolition frozen actor aware
2014-06-14 09:35:38 +02:00
Paul Chote
c58d737400
Merge pull request #5597 from Happy0/mouse_window_focus
...
Removing requirement to restart game after applying changes to mouse focus option
2014-06-14 17:30:02 +12:00
Paul Chote
f115dda5df
Merge pull request #5550 from pavlos256/reload-chrome
...
Add developer shortcut to reload chrome files
2014-06-14 17:25:18 +12:00
Paul Chote
5e986b3079
Merge pull request #5615 from RoosterDragon/minor-alloc
...
Minor allocation tweaks
2014-06-14 12:26:39 +12:00
Pavlos Touboulidis
ee4f3e5642
Always allow cheats on single player games
2014-06-13 17:18:12 +03:00
Pavlos Touboulidis
3f2425f1d6
StyleCop
2014-06-13 15:55:48 +03:00
Pavlos Touboulidis
86febed0ce
Move ChooseRandomEdgeCell from WorldUtils to Map
2014-06-13 14:31:01 +03:00
Pavlos Touboulidis
060d5326ed
Move FindTilesInCircle from WorldUtils to Map
2014-06-13 14:24:53 +03:00
Pavlos Touboulidis
03b8096807
Move DistanceToMapEdge from WorldUtils to Map
2014-06-13 14:04:36 +03:00
Pavlos Touboulidis
f0c672b70c
Move ChooseRandomCell from WorldUtils to Map
2014-06-13 14:02:51 +03:00
Pavlos Touboulidis
77fb188585
Move ClampToWorld from WorldUtils to Map
2014-06-13 13:59:40 +03:00
Pavlos Touboulidis
c282fa1077
Move GetTerrainIndex/Info from WorldUtils to Map
2014-06-13 13:57:32 +03:00
Paul Chote
96477b7c1a
Invalidate FrozenActors that don’t have any sprites. Fixes #4809 .
2014-06-13 21:07:39 +12:00
Pavlos Touboulidis
db53f8e648
Add developer shortcut to reload chrome files
...
Hitting Ctrl+Shift+C will re-initialize the chrome provider,
reloading all chrome files instantly. Useful when changing the
UI.
Note: A new "RootWidget" was created to trap top-level (global)
shortcuts instead of putting everything in Widget.
2014-06-13 11:31:09 +03:00
Pavlos Touboulidis
092352729f
Change terrain type from string based dictionaries to arrays
2014-06-13 11:20:54 +03:00
Gordon Martin
89c9499909
Removing requirement to restart game after applying changes to mouse focus option. The setting now defaults to 'false' as it is likely to be disruptive to players who are used to the usual behaviour in windowed mode.
2014-06-12 22:57:25 +01:00
RoosterDragon
6f5fbeceb1
Use expressions to generate fast member access code rather than using the slower reflection based methods.
2014-06-12 08:32:26 +01:00
RoosterDragon
3e24e89477
Rewrite SyncReport for clarity and performance.
...
- Drop the impressive but inscrutable dynamically generated code in favour of some plain old code.
- Cache type information so costly reflection need not be performed each time.
- Only capture values from a sync object into an array rather than a dictionary lookup of both names and values for efficiency.
- Throw if the sync attribute is used on a property that cannot be read or that uses index parameters.
2014-06-12 08:30:27 +01:00
Paul Chote
b8cdb224d1
Merge pull request #5540 from RoosterDragon/begin-frame-cache-viewport
...
Avoid redundancy in BeginFrame.
2014-06-12 18:15:47 +12:00
Paul Chote
f6f366c4b3
Merge pull request #5401 from RoosterDragon/nodesdict
...
Changed MiniYaml.NodesDict property into a method.
2014-06-12 17:34:59 +12:00
RoosterDragon
b8b8b1e2df
Minor changes to reduce allocation.
...
- Cache a predicate in ActorMap.
- Use short circuiting to skip a call to HasTrait in AttackBase.
- In AutoTarget.ScanForTarget, move the check for the scan time above the calculations since we can skip them if it's not time yet.
- In AutoTarget.ChooseTarget, merge four Where calls into one.
2014-06-12 05:32:44 +01:00
Paul Chote
e0c59511fb
Merge pull request #5152 from Mailaender/auto-l10n
...
Automated translation string extraction
2014-06-12 10:31:07 +12:00
Chris Forbes
1c5c2b576c
Merge pull request #5601 from RoosterDragon/sheet-perf
...
Speed up some loops with Marshal.Copy
2014-06-12 10:07:29 +12:00
RoosterDragon
4ce8a4a648
Use Marshal.Copy for faster array copying.
...
- Rewrite several methods to use Marshal.Copy to copy data faster and more succinctly compared to doing it manually.
- Rewrite Sheet.AsBitmap(TextureChannel, Palette) with a faster and more self descriptive loop.
2014-06-11 05:02:38 +01:00
RoosterDragon
783fd8eb32
Streamline PerfSample.
...
- Avoid memory allocations by making PerfSample a struct, and tracking ticks manually rather than creating a Stopwatch instance.
2014-06-11 03:52:16 +01:00