public override void VOnDestroy() { Cv_CameraNode cameraNode = this.CameraNode; Cv_Event newEvent = new Cv_Event_DestroyCameraComponent(Owner.ID, cameraNode, this); Cv_EventManager.Instance.TriggerEvent(newEvent); }
public override bool VPostInitialize() { Cv_CameraNode cameraNode = this.CameraNode; Cv_Event newEvent = new Cv_Event_NewCameraComponent(Owner.ID, Owner.Parent, cameraNode, IsDefaultCamera, this); Cv_EventManager.Instance.TriggerEvent(newEvent); return(true); }
internal void VRenderDiagnostics(Cv_CameraNode camera, Cv_Renderer renderer) { if (camera == null) { return; } GamePhysics.VRenderDiagnostics(camera, renderer); }
public Cv_Event_DestroyCameraComponent(Cv_EntityID entityID, Cv_CameraNode cameraNode, object sender) : base(entityID, sender) { CameraNode = cameraNode; }
// Debugging public abstract void VRenderDiagnostics(Cv_CameraNode camera, Cv_Renderer renderer);
public Cv_Event_NewCameraComponent(Cv_EntityID entityID, Cv_EntityID parentId, Cv_CameraNode cameraNode, bool isDefault, object sender) : base(entityID, sender) { ParentID = parentId; CameraNode = cameraNode; IsDefault = isDefault; }