Ejemplo n.º 1
0
 public SensorCellsComponent(SerializationInfo info, StreamingContext context)
 {
     WatchTargets       = info.GetValue(nameof(WatchTargets), WatchTargets);
     MaxHearDistance    = info.GetValue(nameof(MaxHearDistance), MaxHearDistance);
     MaxVisionDistance  = info.GetValue(nameof(MaxVisionDistance), MaxVisionDistance);
     MaxTurnsNpcVisible = info.GetValue(nameof(MaxTurnsNpcVisible), MaxTurnsNpcVisible);
     Cells = info.GetValue(nameof(Cells), Cells);
 }
Ejemplo n.º 2
0
 private static void UpdateList(ref BufferedList list)
 {
     list.Update();
 }
Ejemplo n.º 3
0
 public void HandleGlobal(BufferedList <SetLocalTransformPosition> arg)
 {
     arg.Run(_setLocalMoveDel);
 }
Ejemplo n.º 4
0
 public void HandleGlobal(BufferedList <SetLocalTransformRotation> arg)
 {
     arg.Run(_setLocalRotDel);
 }
Ejemplo n.º 5
0
 public void HandleGlobal(BufferedList <MoveTransform> arg)
 {
     arg.Run(_moveDel);
 }
Ejemplo n.º 6
0
 public void HandleGlobal(BufferedList <SetLocalTransformRotation> arg)
 {
     arg.Run(RunUpdate);
 }
Ejemplo n.º 7
0
 public void HandleGlobal(BufferedList <SetTransformPosition> arg)
 {
     arg.Run(RunUpdate);
 }
Ejemplo n.º 8
0
 public void HandleGlobal(BufferedList <MoveTransform> arg)
 {
     arg.Run(RunUpdate);
 }
Ejemplo n.º 9
0
 public void OnSystemUpdate(float dt, float unscaledDt)
 {
     BufferedList.UpdateAllLists();
 }