2using System.Collections.Generic;
11 public List<ZoneEvent>
list =
new List<ZoneEvent>();
14 public List<ZonePreEnterEvent>
listPreEnter =
new List<ZonePreEnterEvent>();
28 Add(Activator.CreateInstance<T>(), allowDuplicate);
41 if (e.GetType() ==
item.GetType())
50 Debug.Log(
"#game zone event " + e.GetType()?.ToString() +
" added.");
79 for (
int num =
list.Count - 1; num >= 0; num--)
98 public void Tick(
float delta)
138 item.OnSimulateHour();
void Add< T >(bool allowDuplicate=false)
List< ZonePreEnterEvent > listPreEnter
void Add(ZoneEvent e, bool allowDuplicate=false)
void AddPreEnter(ZonePreEnterEvent e, bool executeIfActiveZone=true)
virtual void OnCharaDie(Chara c)