1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using ObjectScripts;
- using UnityEngine;
- using CSVReader;
- public abstract class AbstractObjectHandler : MonoBehaviour
- {
- ///<summary>
- /// Dicitionary to keep track of each GameObject corresponding to input.ID
- ///</summary>
- public Dictionary<int, GameObject> ObjectDictionary;
- ///<summary>
- /// Prefab EventType Human
- ///</summary>
- [SerializeField] public GameObject prefabHuman;
- ///<summary>
- /// Prefab EventType Car
- ///</summary>
- [SerializeField] public GameObject prefabCar;
- ///<summary>
- /// Prefab EventType Truck
- ///</summary>
- [SerializeField] public GameObject prefabTruck;
- ///<summary>
- /// Prefab EventType Bike
- ///</summary>
- [SerializeField] public GameObject prefabBike;
- ///<summary>
- /// Manager to get inputs to handle
- ///</summary>
- [SerializeField] public AbstractManager ManagerObject;
- ///<summary>
- /// UpdateRat: velocity/managerUpdateRate
- ///</summary>
- public float UpdateRate { get; set; }
- ///<summary>
- /// Velocity of the simulation/Game
- ///</summary>
- public float GameVelocity { get; set; }
- ///<summary>
- /// Simulation runs forward
- ///</summary>
- public bool Forward { get; set; }
- ///<summary>
- /// Method to handle the Input given by the Manager
- ///</summary>
- public abstract void Handle(List<InputObject> InputBuffer);
- ///<summary>
- /// Method to start the delete process
- ///</summary>
- public abstract void DeleteObject(DataObject dataObject);
- ///<summary>
- /// Deletes every Object
- ///</summary>
- public abstract void ClearAll();
- }
|