Example #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);
 }
Example #2
0
 private static void UpdateList(ref BufferedList list)
 {
     list.Update();
 }
Example #3
0
 public void HandleGlobal(BufferedList <SetLocalTransformPosition> arg)
 {
     arg.Run(_setLocalMoveDel);
 }
Example #4
0
 public void HandleGlobal(BufferedList <SetLocalTransformRotation> arg)
 {
     arg.Run(_setLocalRotDel);
 }
Example #5
0
 public void HandleGlobal(BufferedList <MoveTransform> arg)
 {
     arg.Run(_moveDel);
 }
Example #6
0
 public void HandleGlobal(BufferedList <SetLocalTransformRotation> arg)
 {
     arg.Run(RunUpdate);
 }
Example #7
0
 public void HandleGlobal(BufferedList <SetTransformPosition> arg)
 {
     arg.Run(RunUpdate);
 }
Example #8
0
 public void HandleGlobal(BufferedList <MoveTransform> arg)
 {
     arg.Run(RunUpdate);
 }
Example #9
0
 public void OnSystemUpdate(float dt, float unscaledDt)
 {
     BufferedList.UpdateAllLists();
 }