2024-09-12 20:06:47 -07:00
|
|
|
using UnityEngine;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
// Integrated Air Defense System
|
2024-09-13 22:45:25 -07:00
|
|
|
public class IADS : MonoBehaviour {
|
|
|
|
public enum TargetStatus { UNASSIGNED, ASSIGNED, HIT, DEGRADED, DESTROYED }
|
|
|
|
|
|
|
|
// Look up target status by unique target ID
|
|
|
|
public Dictionary<string, TargetStatus> _targetStatusDictionary;
|
|
|
|
|
|
|
|
private List<Target> _targets;
|
|
|
|
|
|
|
|
private List<Missile> _missiles;
|
|
|
|
|
|
|
|
private List<Vessel> _vessels;
|
|
|
|
|
|
|
|
public delegate void RegisterNewTargetDelegate(Target target);
|
|
|
|
public event RegisterNewTargetDelegate OnRegisterNewTarget;
|
|
|
|
|
|
|
|
void Start() {
|
|
|
|
_targets = new List<Target>();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void RegisterNewTarget(Target target) {
|
|
|
|
_targets.Add(target);
|
|
|
|
OnRegisterNewTarget?.Invoke(target);
|
|
|
|
}
|
2024-09-12 20:06:47 -07:00
|
|
|
}
|