Closed Maximusya closed 10 years ago
Since the whole staticness of ComponentType system does not smell good, and I didn't bother redesigning it, so wrote unit tests using Reflection - thus relying on private static implementation >_<
Are NUnit tests (under Mono) run concurrently? I can see Travis reported of multiple NullReferenceExceptions. Attempted to soften assertions.
Nunit call each test sequentially
Regarding #53 This optional initialization is supposed to solve multi-world multithreading issue. An app with a single world running on a single thread does not need this kind of initialization.
The intention is to call
ComponentTypeManager.Initialize
method once at startup, prior to creating any EntityWorld in any thread.Example usage:
Warning
The new code in ComponentTypeManager has been tested only in FULLDOTNET environment. METRO-functionality regarding Reflection needs review.