RoosterDragon
0caffa8196
Remove some global state dependence in ActorInfo.
...
Instead on relying on the global Game.ModData.ObjectCreator, this is passed in via a parameter.
2015-11-28 17:20:32 +01:00
Paul Chote
c7249e6fa6
Move yaml removals to the end of the merge.
2015-11-28 17:20:32 +01:00
Paul Chote
a074bb1d4b
Rename MiniYaml MergeLiberal -> MergePartial, MergeStrict -> Merge.
2015-11-28 17:20:21 +01:00
RoosterDragon
bfe1804bf6
Fix some spellings.
2015-11-27 16:19:59 +00:00
atlimit8
9cef739dd5
Make ActorInfo.{Traits => traits} private
2015-09-21 15:50:57 -05:00
atlimit8
b889675c83
ActorInfoTest fixup with new ActorInfo ctor
2015-09-21 15:50:57 -05:00
atlimit8
b38b6eadd0
Add IEnumerable<ITraitInfo> ActorInfo.TraitInfos() replacing actorInfo.traits enumeration
2015-09-21 15:50:57 -05:00
atlimit8
09984683a7
Add ActorInfo.TraitInfo[OrDefault]<T>() requiring ITraitIfo types
2015-09-19 09:56:14 -05:00
atlimit8
8162fa27ab
Add ActorInfo.HasTraitInfo<T>() requiring ITraitInfo types
2015-09-19 09:49:24 -05:00
atlimit8
429a9380e8
Ignore trait property requirements for abstract actor types
2015-07-12 12:44:30 -05:00
atlimit8
7881ff40bf
Added FieldLoader.SerializeAttribute.Required to require fields in MiniYaml
2015-07-12 12:44:22 -05:00
abcdefg30
6afc6a879e
Update the ActorInfo summary
2015-07-05 18:43:10 +02:00
Paul Chote
8a1f9261c3
Convert hidden [Desc] to a <summary>.
2015-04-22 21:24:48 +12:00
Paul Chote
2cbe269c1e
Support multiple inheritance for actor rules.
2015-04-22 21:24:47 +12:00
Paul Chote
0a43b3da72
Rewrite yaml merging block removal.
...
Fixes #2922 , #6818 .
2015-04-22 19:58:10 +12:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
RoosterDragon
a6cda967c2
Formatted all files.
...
Automatically formatted all files via VS. This generally corrects indentation, removes trailing whitespace and corrects misplaced tabs or spaces. Manually tweaked a few files where required.
2015-01-06 21:28:50 +00:00
Hellhake
5a97a4b63b
Fix StyleCop warnings in OpenRA.Game
2015-01-02 12:11:01 +01:00
huwpascoe
db126ce1b6
Reimplemented TraitsInConstructOrder()
2014-10-29 20:37:14 +00:00
Alexander Fast
070d00c678
Fixes year numbers in license text in file headers.
2014-08-21 11:27:52 +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
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
e63f330717
Improved efficiency of startup methods.
...
- ShpReader will copy the input stream into memory just once rather than for every header.
- ShpReader.CopyImageData switched to use Array.Copy since that uses some unsafe magic for speed.
- In ActorInfo, cache a GetType call and prevent needless materialization in PrerequisitesOf.
- In ObjectCreator, cache type and ctor lookups since these are expensive and often repeated.
- Implement IReadOnlyDictionary<T, U> on Cache<T, U> to provide some supplementary functions.
- In TechTree.GatherOwnedPrerequisites, rearrange a Boolean 'and' expression to evaluate expensive functions later in the chain, and use ContainsKey to speed up name check.
2014-06-09 17:13:01 +01:00
RoosterDragon
2e992a7310
Changed MiniYaml.NodesDict property into a method.
...
Method is now called ToDictionary.
- Cached a few invocations into locals which should prevent some redundant evaluation.
- Added ToDictionary overloads that take projection functions for the keys and elements, since several callsites were doing a subsequent Linq.ToDictionary call to get this.
2014-06-09 17:06:42 +01:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
Scott_NZ
a25aa23805
radoc tidy
2013-03-22 18:12:47 +13:00
Matthias Mailänder
c731a7960e
embed the previously manually edited outdated documentation
...
from https://github.com/OpenRA/OpenRA/wiki/Trait-Documentation
2013-03-20 21:20:27 +01:00
Chris Forbes
3d8dc80f03
complain about junk values like the recent volkov breakage
2012-09-04 10:55:26 +12:00
Chris Forbes
6cb8ee1f9f
expose appropriate *Inits, and make them work in editor
2011-11-06 18:17:13 +13:00
Chris Forbes
9b5c7c2379
remove dead GetInheritanceChain in ActorInfo
2011-11-06 11:09:30 +13:00
Chris Forbes
564fdd650d
add mechanism for traits to export the *Inits they can use
2011-11-05 12:29:55 +13:00
Chris Forbes
f83c9fd4d7
add IEnum<T>.JoinWith, use it to clean up a bunch of things
2011-11-01 21:57:58 +13:00
Chris Forbes
bc6af1841b
fix indents everywhere
2011-10-18 15:10:17 +13:00
Chris Forbes
55036cd58c
fix trailing whitespace everywhere
2011-09-26 08:40:39 +13:00
Chris Forbes
ddc1311d87
Make RenderUnit require IFacing; RenderSimple can be used for crates, mines, etc; fix husk facing init
2011-08-09 08:51:35 +12:00
Chris Forbes
d86e0ec522
rename ITraitPrerequisite<T> to Requires<T>
2011-05-04 18:02:35 +12:00
Chris Forbes
ca81871b7b
fix broken merging of yaml overrides in maps; we now have a strict mode and a liberal mode.
2011-04-09 10:55:54 +12:00
Paul Chote
b0425aff3b
Renormalize line endings and fix copyright headers again.
2011-04-07 21:15:42 +12:00
Chris Forbes
55c609ee16
fix bug 609 -- removing traits that arent on an actor is an error.
2011-04-05 21:26:32 +12:00
Chris Forbes
1af23079eb
make it crash nicely when you inherit from a bogus actor type
2011-04-04 11:14:07 +12:00
Paul Chote
094907c1a9
Update copyright header. Normalize line endings to LF.
2011-02-13 10:38:57 +13:00
Chris Forbes
13d76f8e9c
removed editor -> ra dep; added EditorAppearance for inconvenient bits that the editor must have _some_ understanding of, but can't see
2010-11-06 15:10:29 +13:00
Bob
2f92b873e8
make yaml into a list, rather than a dict
2010-08-30 12:22:09 +12:00
Paul Chote
226fd167e7
Category dies in a fire
2010-08-27 00:32:00 +12:00
Bob
970eb4d6e1
use the new actorinit stuff when loading map yaml
2010-08-01 19:38:42 +12:00
Chris Forbes
d5f12dd8ee
trim down license spam in all files
2010-07-18 16:48:21 +12:00
Chris Forbes
ba850ec3f1
improve error message in ActorInfo.TraitsInConstructOrder
2010-05-27 22:17:15 +12:00
Bob
7deefc5246
debug (timing) spam, and perf fixed on SupportPower
...
Build timing (un)hacked by chrisf
2010-05-16 22:23:36 +12:00
Chris Forbes
3d0b0dc82b
clean that up...
2010-04-04 13:04:39 +12:00