AbstractManager.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace ObjectScripts
  5. {
  6. public abstract class AbstractManager : MonoBehaviour
  7. {
  8. ///<summary>
  9. /// Rate in seconds at which new values are read.
  10. ///</summary>
  11. public float UpdateRateInSeconds { get; set; }
  12. ///<summary>
  13. /// Current Game/simulation velocity
  14. ///</summary>
  15. public float GameVelocity { get; set; }
  16. ///<summary>
  17. /// Simulation runs forward
  18. ///</summary>
  19. public bool forward { get; set; }
  20. ///<summary>
  21. /// newest read timestamp
  22. ///</summary>
  23. public double NewestTimestamp;
  24. ///<summary>
  25. ///
  26. ///</summary>
  27. public double CurrentTimestamp;
  28. ///<summary>
  29. /// earliest read timestamp
  30. ///</summary>
  31. public double EarliestTimestamp;
  32. ///<summary>
  33. /// current game/simulation timestamp
  34. ///</summary>
  35. public double GameTimestamp;
  36. ///<summary>
  37. /// end timestamp of timeinterval
  38. ///</summary>
  39. public double endChunk;
  40. ///<summary>
  41. /// start timestamp of timeinterval
  42. ///</summary>
  43. public double startChunk;
  44. ///<summary>
  45. /// Rate at which new values are read.
  46. ///</summary>
  47. [SerializeField] public float UpdateRate;
  48. ///<summary>
  49. /// On play pressed
  50. ///</summary>
  51. public abstract void PlayPressed();
  52. ///<summary>
  53. /// on stop pressed
  54. ///</summary>
  55. public abstract void StopPressed();
  56. ///<summary>
  57. /// on reverse pressed
  58. ///</summary>
  59. public abstract void ReversePressed();
  60. ///<summary>
  61. /// on plus pressed
  62. ///</summary>
  63. public abstract void PlusPressed();
  64. ///<summary>
  65. /// on minus pressed
  66. ///</summary>
  67. public abstract void MinusPressed();
  68. ///<summary>
  69. /// Jumps to timestamp by calling InputProzessor.JumpToTimestamp(timestamp)
  70. ///</summary>
  71. public abstract void JumpToTimestamp(double timestamp);
  72. ///<summary>
  73. /// Sets startChunk
  74. ///</summary>
  75. public abstract void SetChunkStarttimestamp(double time);
  76. ///<summary>
  77. /// Sets endChunk
  78. ///</summary>
  79. public abstract void SetChunkEndtimestamp(double time);
  80. }
  81. }