示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
        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;
 }
示例#5
0
 // Debugging
 public abstract void VRenderDiagnostics(Cv_CameraNode camera, Cv_Renderer renderer);
示例#6
0
 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;
 }