mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-04 04:06:34 +00:00
Don't include ComponentManager.h in ScriptComponent
ScriptComponent does not use ComponentManager, and its derived classes (most ICMP*.cpp files) do not either. Therefore, we can skip a lot of transitive inclusions and speed up recompiling by not including it there. Differential Revision: https://code.wildfiregames.com/D3962 This was SVN commit r25447.
This commit is contained in:
@@ -25,8 +25,9 @@
|
||||
#include "simulation2/serialization/IDeserializer.h"
|
||||
|
||||
CComponentTypeScript::CComponentTypeScript(const ScriptInterface& scriptInterface, JS::HandleValue instance) :
|
||||
m_ScriptInterface(scriptInterface), m_Instance(scriptInterface.GetGeneralJSContext(), instance)
|
||||
m_ScriptInterface(scriptInterface)
|
||||
{
|
||||
m_Instance.init(ScriptRequest(m_ScriptInterface).cx, instance);
|
||||
}
|
||||
|
||||
void CComponentTypeScript::Init(const CParamNode& paramNode, entity_id_t ent)
|
||||
|
||||
Reference in New Issue
Block a user