AbstractEventHandler.cs 889 B

123456789101112131415161718192021222324252627282930
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using CSVReader;
  5. namespace ObjectScripts
  6. {
  7. public abstract class AbstractEventHandler : MonoBehaviour
  8. {
  9. ///<summary>
  10. /// Gameobject of the Camera/Player
  11. ///</summary>
  12. [SerializeField] public GameObject Camera;
  13. ///<summary>
  14. /// List to keep track of each event
  15. ///</summary>
  16. public List<AbstractEventScript> EventList;
  17. ///<summary>
  18. /// current simulation timestamp
  19. ///</summary>
  20. public double CurrentTimestamp;
  21. ///<summary>
  22. /// Handle events
  23. ///</summary>
  24. public abstract void Handle(EventObject[] events);
  25. ///<summary>
  26. /// Setup Eventhandler
  27. ///</summary>
  28. public abstract void SetUp(EventCSVReader eventCSV, IMapSensor mapSensor);
  29. }
  30. }