Commit Graph

14479 Commits

Author SHA1 Message Date
atlimit8
b736e059e9 Removed Enter(Actor self, Actor target, Activity inside) & made Enter abstract 2014-10-09 18:04:13 -05:00
atlimit8
ad24a70235 Infiltrate as Enter subclass 2014-10-09 18:04:12 -05:00
atlimit8
c994ee4668 DonateSupplies as Enter subclass 2014-10-09 18:04:12 -05:00
atlimit8
41452dcfeb RepairBuilding & RepairBridge as Enter subclasses 2014-10-09 18:04:12 -05:00
atlimit8
6d0feb9fbf Demolish as Enter subclass 2014-10-09 18:04:12 -05:00
atlimit8
4783b1f646 CaptureActor as Enter subclass & fixes 6658 2014-10-09 18:04:12 -05:00
atlimit8
31a096dcf1 HashSet<byte> => BitArray resourceTypeIndices
BitArray can store 256 bits in 32 bytes plus overhead (pointer & length),
which gives it better memory locality too (<= 2 locations in memory).
Also, the actual count will be much less, probably at most around a dozen.
This might not impact performance, but the AI is dumb & HashSet<byte> is
clearly inefficient.
2014-10-09 20:03:25 +01:00
RoosterDragon
bbb3990a0f Don't store pre-calculated texture coords in Sprite.
By storing only the four corners, we can save the object overhead of an array and 4 float elements per sprite. This results in savings of around 5 MiB to store these coordinates.
2014-10-09 20:03:03 +01: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
obrakmann
268c63f7df Merge pull request #6714 from penev92/bleed
Moved DeployOrderTargeter.cs from OpenRA.Mods.RA to Common
2014-10-09 18:02:48 +02:00
Paul Chote
d64a8fbd47 Merge pull request #6719 from reaperrr/ts-cleanup01
Minor TS cleanup
2014-10-09 21:45:57 +13:00
Guido L
7306cd32c8 [TS] fix Prerequisites and typos
changed the Prereqs

aircraft changes

vehicle changes

Infantry changes

removed forgotten (who has added this crap)
2014-10-08 22:54:04 +02:00
reaperrr
827eb6806e Merge pull request #6705 from steelphase-forks/common-resharp
Mods.Common resharpered
2014-10-08 22:15:00 +02:00
Taryn Hill
3f83e8432d Merge pull request #6712 from steelphase-forks/bleed-copy-local
remove copy local
2014-10-08 15:01:42 -05:00
reaperrr
71d81eb4ad Fixes a TS weapon typo and removes redundant armament recoil values 2014-10-08 21:49:19 +02:00
Taryn Hill
dc9b97c695 Merge pull request #6675 from Mailaender/ts-harvester-attack-notifier
Fixed Tiberian Sun harvester under attack notification not playing.
2014-10-08 10:41:48 -05:00
penev92
7e59e1bf9a Moved DeployOrderTargeter.cs from OpenRA.Mods.RA to Common 2014-10-08 15:29:58 +03:00
steelphase
628463f920 remove copy local
remove copy local from project references
2014-10-08 02:29:14 -04:00
Oliver Brakmann
36477ae323 Added notifications for new objectives to scripted missions
Fixes #6692
2014-10-08 06:24:51 +02:00
obrakmann
c1d1c6f226 Merge pull request #6653 from pchote/empdisable
Disable movement of EMPd actors
2014-10-07 21:31:19 +02:00
Paul Chote
d610c02642 Add an early TS tileset importer and temperate tileset. 2014-10-08 08:11:39 +13:00
obrakmann
3c791f0eb9 Merge pull request #6643 from DeadlySurprise/assetBrowser
Adds vqa playback to the asset browser
2014-10-07 21:07:08 +02:00
Paul Chote
446d98e625 Support ini files with spaces around the ‘=‘. 2014-10-08 08:06:50 +13:00
obrakmann
220bc2ec08 Merge pull request #6673 from pchote/unhardcode-sprites
Move sprite parsers into mod code
2014-10-07 20:45:50 +02:00
obrakmann
532c658b5d Merge pull request #6704 from chrisforbes/closure-hazards
Closure hazards -- Fixes #6703
2014-10-07 20:01:19 +02:00
DeadlySurprise
e187876bdf Adds vqa playback to the asset browser 2014-10-07 18:59:02 +02:00
Paul Chote
5050748afe Fix invalid targets invalidating GrantUpgradeWarhead for all nearby actors. 2014-10-07 20:21:28 +13:00
Paul Chote
fde963a993 Make EMP freeze mobile actors. 2014-10-07 19:30:24 +13:00
Paul Chote
6b54575569 Fix Move activity ignoring IDisableMove. 2014-10-07 19:30:24 +13:00
Paul Chote
34eb634779 Add self argument to Move constructors. 2014-10-07 19:30:23 +13:00
Paul Chote
772994c1c4 Remove Mobile assumptions from Lua APIs. 2014-10-07 19:30:23 +13:00
steelphase
0cb0ae57f3 Mods.Common Commands namespace
Added Commands Namespace.
2014-10-07 02:14:09 -04:00
steelphase
c5bea39bf8 Mods.Common R# Console
Resharper corrections.
2014-10-07 02:07:40 -04:00
Chris Forbes
ea475ed39b DomainIndex: Fix benign loop variable in closure hazard
This never outlived a single iteration of the neighbors loop.
2014-10-07 18:30:23 +13:00
Chris Forbes
3360b11962 WithMuzzleFlash: fix loop variable in closure hazard
This fixes a real bug -- if the actor had multiple armaments, we'd end
up placing the muzzle flashes all based on the offsets of the last one.
2014-10-07 18:27:31 +13:00
Chris Forbes
98563eb854 PrimaryBuilding: Fix benign loop variable in closure hazard
This never outlived a single loop iteration.
2014-10-07 18:24:00 +13:00
Chris Forbes
f2492f4155 LevelUpCrateAction: fix loop variable in closure bug
This was a real bug -- if there were multiple recipients, we'd apply the
levels N times to the last recipient rather than once to each.
2014-10-07 18:19:55 +13:00
Chris Forbes
edbd65bdf3 filesystem: Fix benign use of loop variable in closure
This closure never outlives a single loop iteration.
2014-10-07 18:17:09 +13:00
Chris Forbes
f61b52ccae editor: Fix a benign loop-variable-inside-closure issue
The getter is accessed exactly once, at call time.
The setter is stored, and invoked later on losing focus, but we pass a
bogus one anyway, so there is no issue.
2014-10-07 18:12:41 +13:00
Paul Chote
41c296e5c2 Fix some bogus cell accesses in Map. 2014-10-07 09:55:50 +13:00
Paul Chote
9312d1915f Fix the legacy map editor. 2014-10-07 09:55:50 +13:00
Paul Chote
fff8c7680b Support tmp(ts) templates with empty tiles. 2014-10-07 09:55:50 +13:00
Paul Chote
6a72e87028 Remove the remaining legacy sprite plumbing. 2014-10-07 09:55:50 +13:00
Paul Chote
beb7a394a2 Move ShpD2 sprite loading into Mods.Common. 2014-10-07 09:55:50 +13:00
Paul Chote
533d044755 Move TmpTS sprite loading into Mods.TS. 2014-10-07 09:55:50 +13:00
Paul Chote
37cedd88a2 Move TmpTD sprite loading into Mods.Common. 2014-10-07 09:55:49 +13:00
Paul Chote
997c79130a Move TmpRA sprite loading into Mods.Common. 2014-10-07 09:55:49 +13:00
Paul Chote
ca38193264 Move R8 sprite loading into Mods.D2k. 2014-10-07 09:55:49 +13:00
Paul Chote
c798b306c4 Move ShpTS sprite loading into Mods.Common. 2014-10-07 09:55:49 +13:00
Paul Chote
d658643b73 Move ShpTD sprite loading into Mods.Common. 2014-10-07 09:55:49 +13:00