Paul Chote
dc211cc729
Fix an unrelated editor regression.
2014-12-23 10:00:23 +13:00
Paul Chote
2ed594fd86
Introduce map Visibility field.
...
This replaces the Selectable, UseAsShellmap, and special-cased Type = "Mission" fields.
2014-12-23 09:08:00 +13:00
Paul Chote
b4c9c19cce
Don’t crash when saving automatically-upgraded maps.
2014-12-23 09:08:00 +13:00
Paul Chote
14deb1efdf
Drop support for map format 5.
2014-12-23 09:08:00 +13:00
RoosterDragon
c37a691c33
Convert some keys users of CellLayer to index via map-coords for efficiency.
2014-12-20 23:39:03 +00:00
Paul Chote
5b011e6baf
Merge pull request #7072 from obrakmann/fmv-overhaul
...
Move FMV playback from Lua scripts to widgets
2014-12-19 17:43:07 +13:00
Oliver Brakmann
280b30961f
Add plumbing for short game option
2014-12-18 20:03:26 +01:00
Oliver Brakmann
e342619ac7
Add video support to legacy map importer
...
This enables the map importer to map the .ini video definitions to ours.
The mapping generally is as follows:
Intro => BackgroundInfo
Brief => Briefing
Action => GameStart
Win => GameWon
Lose => GameLost
An issue in some Red Alert maps means that this mapping is not always
quite correct. In those maps that do not have a 'Brief' video defined
(scg03a is an example), Westwood has assigned the video that should
probaby have been the 'Action' video to the 'Intro' slot instead. I can
only assume that that was done due to some limitation in the original
game code. Mappers will have to correct that assignment manually in
those cases.
2014-12-18 18:59:42 +01:00
Oliver Brakmann
04bd4627d4
Add yaml-defined FMV playback to GUI elements
2014-12-18 18:59:42 +01:00
Paul Chote
60420340fb
Add height map support.
2014-11-07 18:18:41 +13:00
obrakmann
6a24b28f92
Merge pull request #6783 from pchote/consistent-map-uids
...
Update shipped map UIDs
2014-10-19 10:23:23 +02:00
Paul Chote
fa01808962
Save the preview video field when saving a map.
2014-10-19 21:06:28 +13:00
Paul Chote
50643b0cfe
Fix the handling of maps with invalid rules. Fixes #6787 .
2014-10-19 15:52:13 +13:00
Paul Chote
fad0215842
Merge pull request #6698 from RoosterDragon/memory-savings
...
Small memory savings
2014-10-12 11:43:08 +13:00
Paul Chote
5d32e97ef1
Add support for briefing videos in the mission menu.
2014-10-11 23:05:35 +13:00
RoosterDragon
59b3cd154d
Change indexes into tile arrays to be stored as bytes to save memory.
...
The index value needs only be big enough to handle all defined terrain types. This is a low number so we can save memory by defining it as a byte. This particularly saves memory for the CustomTerrain field in the Map class, which defines a cell layer for the map using tile indexes, so we can reduce the size of that layer 4x as a result.
2014-10-09 20:03:01 +01:00
Paul Chote
41c296e5c2
Fix some bogus cell accesses in Map.
2014-10-07 09:55:50 +13:00
huwpascoe
488d2d57e0
Fix map.png lock
2014-10-04 01:18:18 +01:00
atlimit8
e29b9edfc1
Changes to map.cs, rename IPositionable.IsLeaving{ => Cell}, add IPositionable.GetValidSubCell
2014-08-29 23:30:16 -05:00
atlimit8
63c28ee4d7
Refactored in new enum SubCell
2014-08-29 23:00:53 -05:00
atlimit8
9b30c21f93
Load subcells and default subcell index from mod.yaml
2014-08-04 18:09:26 -05:00
atlimit8
4b7537bb13
Moved MobileInfo.SubCellOffsets to Map (dropping static) & added Map.SubCellsDefaultIndex
2014-08-04 18:09:26 -05:00
Pavlos Touboulidis
f45d063f1e
Make tiles sorting deterministic in all cases
...
This may fix issue #5916 .
In any case, it's wanted because this kind of sort is "unstable".
According to the docs:
"This implementation performs an unstable sort; that is, if two
elements are equal, their order might not be preserved."
2014-07-10 12:40:38 +03:00
Matthias Mailänder
65d61dff3e
Merge pull request #5767 from pchote/isqrt
...
Add Exts.ISqrt to avoid fp sqrt calculations.
2014-07-04 15:48:20 +02:00
Paul Chote
ce99f02ba6
Merge pull request #5678 from pavlos256/find-tiles-in-circle
...
Fix and optimize FindTilesInCircle
2014-07-04 10:27:37 +12:00
Pavlos Touboulidis
daed053a57
Fix and optimize FindTilesInCircle
2014-07-03 18:11:28 +03:00
Paul Chote
a30c8b53a7
Add support for diamond cell grids.
2014-06-30 23:44:23 +12:00
Matthias Mailänder
7fa51712ec
Merge pull request #5758 from pchote/cell-world-conversions
...
Generalize cell/world coordinate conversions.
2014-06-28 08:27:18 +02:00
Paul Chote
4216f66ca4
Add Exts.ISqrt to avoid fp sqrt calculations.
2014-06-28 15:48:53 +12:00
RoosterDragon
bcbd1c2577
Cache tileset lookup in map so GetTerrainIndex and GetTerrainInfo need not repeat it every time.
...
The lookup accounts for ~50-60% of the time spent in GetTerrainIndex and GetTerrainInfo, and these methods themselves can account for up to 1.3% of total CPU used so this is a small but measurable win.
2014-06-27 19:52:57 +01:00
Paul Chote
d7f1b1c9e2
Remove CVec -> WVec conversion.
2014-06-27 23:30:41 +12:00
Paul Chote
9487f49cd5
Replace WPos.ToCPos -> Map.CellContaining.
2014-06-27 23:30:40 +12:00
Paul Chote
7b52fa52b6
Replace CPos.CenterPosition -> Map.CenterOfCell.
2014-06-27 23:30:40 +12:00
Paul Chote
5560f276ca
Map: Rename IsInMap -> Contains.
2014-06-27 22:07:03 +12:00
Paul Chote
fd4d3b40d0
Simplify shroud range checks.
2014-06-27 22:07:03 +12:00
Paul Chote
435f47158f
Remove unused Map.IsInMap(x,y) overload.
2014-06-27 22:07:03 +12:00
Paul Chote
997216aef0
Use CellLayer for terrain.
2014-06-27 22:07:02 +12:00
Paul Chote
ad730a44c3
Use CellLayer for resources.
2014-06-27 22:07:02 +12:00
Paul Chote
ce331a28e8
Use CellLayer for custom terrain.
2014-06-27 22:07:02 +12:00
Paul Chote
386b71de82
Integrate CellRegion with Map, Viewport.
2014-06-27 19:20:46 +12:00
RoosterDragon
22abf9b4c4
Remove and sort usings.
2014-06-18 21:43:35 +01:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12: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
Pavlos Touboulidis
092352729f
Change terrain type from string based dictionaries to arrays
2014-06-13 11:20:54 +03: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