Example #1
0
 protected internal override void UpdateComponent(ref Camera camera, int index, UpdateInfo updateInfo)
 {
     if (camera.ConstraintMode == CameraConstraints.Constrained)
     {
         ClampCamera(ref camera);
     }
     else if (camera.ConstraintMode == CameraConstraints.WrapAround)
     {
         WrapCamera(ref camera);
     }
     camera.Transform = Matrix.CreateTranslation(new Vector3(-camera.PositionX, -camera.PositionY, 0f));
 }
Example #2
0
 protected internal abstract void Update(UpdateInfo updateInfo);
Example #3
0
 protected internal override void UpdateComponent(ref Sprite sprite, int index, UpdateInfo updateInfo)
 {
 }
Example #4
0
 public void ScheduleTask(int task, int source, int target, UpdateInfo updateInfo)
 {
     TaskManager.ScheduleTask(task, source, target, updateInfo);
 }
Example #5
0
 protected internal override void Update(UpdateInfo updateInfo)
 {
 }