1
0
forked from 0ad/0ad
0ad/source/simulation2/serialization
Ykkrosh 05422ad545 Avoid slightly-expensive QueryInterface() calls
Add CEntityHandle which wraps an entity_id_t and also has a pointer to a
per-entity array of IComponents. QueryInterface/CmpPtr on a handle just
involve a couple of pointer dereferences instead of a map lookup.

This requires sizeof(void*) per registered interface type per entity,
which is currently ~0.5KB per entity, which shouldn't be a problem.

This was SVN commit r13825.
2013-09-11 20:41:53 +00:00
..
BinarySerializer.cpp Extends binary serializer to support some standard JS classes: Number, String, Boolean. Fixes #406. 2013-05-26 21:57:24 +00:00
BinarySerializer.h Extends binary serializer to support some standard JS classes: Number, String, Boolean. Fixes #406. 2013-05-26 21:57:24 +00:00
DebugSerializer.cpp Detect and fix printf signedness errors. Fixes #1086, #1087. 2012-01-01 16:43:10 +00:00
DebugSerializer.h Add initial serialization test mode. 2011-10-24 14:31:05 +00:00
HashSerializer.cpp Convert serialization code to use less virtuals and allow more inlining. 2010-05-25 19:01:30 +00:00
HashSerializer.h Convert serialization code to use less virtuals and allow more inlining. 2010-05-25 19:01:30 +00:00
IDeserializer.cpp # Partial support for saved games with AI. 2011-12-22 14:04:32 +00:00
IDeserializer.h Fix test failures on Windows 2011-12-23 13:37:11 +00:00
ISerializer.cpp cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
ISerializer.h # Support AI construction of buildings. 2011-02-10 16:06:28 +00:00
SerializedScriptTypes.h Extends binary serializer to support some standard JS classes: Number, String, Boolean. Fixes #406. 2013-05-26 21:57:24 +00:00
SerializeTemplates.h Avoid slightly-expensive QueryInterface() calls 2013-09-11 20:41:53 +00:00
StdDeserializer.cpp Extends binary serializer to support some standard JS classes: Number, String, Boolean. Fixes #406. 2013-05-26 21:57:24 +00:00
StdDeserializer.h Extends binary serializer to support some standard JS classes: Number, String, Boolean. Fixes #406. 2013-05-26 21:57:24 +00:00
StdSerializer.cpp # Add initial basic player AI framework. 2011-01-12 12:29:00 +00:00
StdSerializer.h Improve debugging of binary serialization 2011-10-27 20:10:53 +00:00