Oliver Brakmann
02fa63c1b4
Merge pull request #9853 from penev92/unglobalFileSystem
...
Unglobal file system
2015-12-14 20:52:30 +01:00
Pavel Penev
d08a400565
Add a context argument to package files contructors
2015-12-14 03:42:25 +02:00
Pavel Penev
1b88d24cfa
Unstatic GlobalFileSystem and rename it to FileSystem
...
Add a ModFiles field on ModData and move all access to the file system to go through that.
2015-12-14 03:42:22 +02:00
RoosterDragon
b0619a3e25
Added comments in performance sensitive code.
2015-12-13 16:24:54 +00:00
RoosterDragon
654ca6ed03
Fix some typos in vector strings.
2015-12-10 21:53:11 +00:00
Oliver Brakmann
44b940333a
Merge pull request #9988 from pchote/isometric-boundingregion
...
Fix CellRegion.BoundingRegion behaviour.
2015-12-03 21:36:58 +01:00
RoosterDragon
bfe1804bf6
Fix some spellings.
2015-11-27 16:19:59 +00:00
Paul Chote
f945e35136
Fix CellRegion.BoundingRegion behaviour.
2015-11-21 22:00:35 +00:00
Curtis Shmyr
f0e9b85ccc
I before E except after C
2015-11-14 22:32:37 -07:00
Oliver Brakmann
214945a61f
Merge pull request #9324 from atlimit8/ColorSpacePrefixes
...
Hex Color Parsing
2015-11-02 20:28:04 +01:00
Oliver Brakmann
88c20a6654
Merge pull request #9414 from atlimit8/TurretFacingsInit
...
Support loading multiple turret facings
2015-11-01 13:18:17 +01:00
atlimit8
dac15edce5
Load rgb[a] hex colors from MiniYaml (+ Lua)
2015-10-27 16:09:48 -05:00
Pavel Penev
b16ebd480b
Rename MapGridType.Diamond to MapGridType.RectangularIsometric
2015-10-26 00:42:30 +02:00
Pavel Penev
0e417a3cf3
Rename MapGridType.Rectangle to MapGridType.Rectangular
2015-10-26 00:41:26 +02:00
Pavel Penev
bb3aea338a
Rename enum TileShape to MapGridType
2015-10-26 00:41:21 +02:00
Paul Chote
be37717e6d
Account for cross-mod tile shapes in map previews.
2015-10-24 22:02:46 +01:00
Paul Chote
347eb6410c
Add a lint pass for map metadata.
2015-10-24 20:36:38 +01:00
abcdefg30
674b1672f5
Merge pull request #9488 from atlimit8/MapMusic
...
Map Music
2015-10-18 17:47:26 +02:00
Matthias Mailänder
b14f5ca608
Merge pull request #9661 from pchote/editor-preview-fix
...
Update the UID stored in the map file after saving.
2015-10-18 08:27:22 +02:00
Paul Chote
cf875c3db6
Update the UID stored in the map file after saving.
2015-10-17 23:25:52 +01:00
Paul Chote
3665d8f19b
Send TS terrain depth data to the GPU.
2015-10-17 22:35:07 +01:00
atlimit8
54b03c92d8
Support loading multiple turret facings
2015-10-02 21:58:02 -05:00
atlimit8
f6180d7fa4
Include add/replace playlist entries support using map.yaml
2015-09-30 10:31:49 -05:00
Pavel Penev
642468ce0c
Add MapGrid class
...
MapGrid is a mod Manifest field which includes (and thus makes redundant) TileSize, TileShape, SubCells info and MaximumTerrainHeight.
2015-09-27 04:14:43 +03:00
atlimit8
9acf121eb1
Replace ActorInfo.Traits.WithInterface with ActorInfo.TraitInfos<T>()
2015-09-21 15:50:57 -05:00
reaperrr
ca055eb7bb
Refactored WaterPaletteRotation
...
Moved RotationBase from tileset definition to WaterPaletteRotation effect.
Unhardcoded rotation range and rotation rate.
Added possibility to exclude Tilesets from effect.
Fixed RA water palette rotation for actors on desert maps (#8872 ).
2015-09-06 19:25:10 +02:00
atlimit8
8250f223c4
More HashSet trait fields & Lint support
2015-09-05 16:59:30 -05:00
RoosterDragon
d9dd96ca35
Speed up Map.ContainsAllProjectedCellsCovering on flat maps.
...
This method gets called often via Contains calls. We can significantly speed up the method for flat maps since we know the projection and it is trivial to perform. This avoids an expensive projection lookup.
2015-08-31 20:45:32 +01:00
RoosterDragon
4eacb6e5c9
Transparently cache results of GetTerrainIndex in Map.
...
This method performs an expensive calculation and is called often during pathfinding. We create a cache of the terrain indicies for the map to vastly reduce the cost.
2015-08-31 20:43:17 +01:00
RoosterDragon
fa87befeff
Add missing CellEntryChanged checks.
2015-08-31 20:43:16 +01:00
Matthias Mailänder
72dffe3391
dispose res properly
2015-08-29 18:47:10 +02:00
clemty
2bbc1fcda4
LUA and trait documentation fixes
...
- Typo in documentation ("proximitry").
- Add spaces between sentences.
- Remove most occurrences of " " (two spaces) unless clearly used as indendation
- Punctuation (although no fullstop after filenames like "notifications.yaml").
2015-08-24 19:41:15 +02:00
Pavel Penev
02dd5afbd9
Merge pull request #9058 from RoosterDragon/reduce-alloc
...
Reduce allocations in the main game loop
2015-08-24 02:11:08 +03:00
Pavel Penev
09f67d18bb
Some internal "race" to "faction" renaming
2015-08-22 23:34:36 +03:00
RoosterDragon
d415d3ba4e
Reduce allocations in the main game loop.
...
- Cache the shroud projection even for flat maps to avoid allocating single element arrays.
- Avoid LINQ in shroud and map projection queries to avoid enumerator allocations.
- Avoid LINQ in calculation of sync values.
- Cache enumerables in ProductionQueue.
- Cache delegate in HackyAI.
2015-08-18 21:17:28 +01:00
Matthias Mailänder
e428e6d8cc
remove executable bits from source code
2015-08-06 18:05:50 +02:00
Paul Chote
3d65ba39f6
Lazily initialize cell projection mapping.
2015-08-02 17:15:39 +01:00
Taryn Hill
6fa1f757b0
Add Map.DistanceAboveTerrain(WPos) and Actor.IsAtGroundLevel() extension method
2015-08-01 11:48:47 -05:00
Paul Chote
a0e92093a1
Fix the WPos <-> CPos conversion.
...
Fixes #8463 .
2015-08-01 11:09:07 +01:00
Paul Chote
d29519fca1
Implement height-aware map.ChooseClosestEdgeCell().
2015-07-31 08:38:07 +01:00
Paul Chote
05f41a0182
Implement height-aware map.DistanceToEdge().
2015-07-31 08:38:07 +01:00
Paul Chote
318d6aaa73
Implement height-aware map.ChooseRandomEdgeCell().
2015-07-31 08:38:07 +01:00
Paul Chote
e337710221
Implement height-aware map.ChooseRandomCell().
2015-07-31 08:38:06 +01:00
Paul Chote
13e0527f7c
Implement height-aware map.Clamp(MPos).
2015-07-30 08:18:45 +01:00
Paul Chote
2c00019715
Revert "Temporarily work around RadarWidget corruption."
...
This reverts commit 4bc75f1ed6 .
2015-07-30 08:18:45 +01:00
Paul Chote
4bc75f1ed6
Temporarily work around RadarWidget corruption.
2015-07-27 20:20:01 +01:00
Paul Chote
e8794032e0
Introduce initial PPos plumbing.
...
PPos is best thought of as a cell grid applied in
screen space. Multiple cells with different
terrain heights may be projected to the same PPos,
or to multiple PPos if they do not align with the
screen grid.
PPos coordinates are used primarily for map edge
checks and shroud / visibility queries.
2015-07-27 19:34:49 +01:00
Paul Chote
fb5bcd3889
Extract MapCoordsRegion from CellRegion.
2015-07-27 19:34:39 +01:00
penev92
7c1ef2231d
Rename RaceInit to FactionInit
2015-07-25 00:39:31 +03:00
Oliver Brakmann
380cf22477
Merge pull request #8661 from penev92/bleed_renameCountry
...
Rename the Country trait to Faction
2015-07-14 21:05:52 +02:00