public void AddPhysicsObject(ICoreComponent coreComponent)
 {
     if (coreComponent != null && coreComponent.GetComponentType() == ICoreComponent.ComponentType.COMPONENT_Physics)
     {
         m_physicsObjects.AddLast((PhysicsObject)coreComponent);
     }
 }
 public void AddNetworkObject(ICoreComponent networkObject)
 {
     if (networkObject != null && networkObject.GetComponentType() == ICoreComponent.ComponentType.COMPONENT_Networking)
     {
         m_GONetComponents[networkObject.GetParent().GetRef()] = (NetworkObject)networkObject;
     }
 }
Пример #3
0
 public void RemoveComponent(ICoreComponent component)
 {
     int componentType = (int)component.GetComponentType();
     if (m_GOComponents[componentType] == component)
     {
         m_GOComponents[componentType] = null;
     }
 }
Пример #4
0
 public void AddRenderObject(ICoreComponent coreComponent)
 {
     if (coreComponent != null && coreComponent.GetComponentType() == ICoreComponent.ComponentType.COMPONENT_Rendering)
     {
         // Have the render object load its asset and add it to the render object list.
         RenderObject renderObject = (RenderObject)coreComponent;
         renderObject.LoadAssetContent(m_mainGame);
         m_renderObjects.AddLast(renderObject);
     }
 }
Пример #5
0
 public ICoreComponent GetComponentByTypeOrNULL(ICoreComponent.ComponentType componentType)
 {
     return m_GOComponents[(int)componentType];
 }
Пример #6
0
 public void AddComponent(ICoreComponent component)
 {
     m_GOComponents[(int)component.GetComponentType()] = component;
 }