9 public virtual bool isListable
19 public virtual bool AutoTask
38 public virtual void OnLoad()
40 foreach (
Point point
in this.points)
42 this.AddPoint(point,
true);
44 this.taskList.OnLoad();
45 this.type.owner =
this;
46 this.manager.mapIDs.Add(this.uid,
this);
50 public void AddPoint(
Point point,
bool onLoad =
false)
54 this.points.Add(point);
56 point.cell.GetOrCreateDetail().area =
this;
60 public void RemovePoint(
Point point)
62 if (this.points.Count <= 1)
66 foreach (
Point point2
in this.points)
68 if (point2.Equals(point))
70 this.OnRemovePoint(point2);
71 this.points.Remove(point2);
72 point.detail.area =
null;
73 point.cell.TryDespawnDetail();
80 public virtual void OnRemovePoint(
Point point)
85 public virtual void OnInstallCard(
Card t)
90 public virtual void OnUninstallCard(
Card t)
95 public void OnHoverArea(
MeshPass pass)
97 foreach (
Point point
in this.points)
99 pass.Add(point, (
float)((
EClass.scene.actionMode.AreaHihlight == AreaHighlightMode.Edit) ? 34 : 33), 0f);
104 public virtual byte GetTile(
int index)
110 public virtual void Update()
115 public void OnRemove()
117 if (this.isDestroyed)
121 this.isDestroyed =
true;
122 Task[] array = this.taskList.items.ToArray();
123 for (
int i = 0; i < array.Length; i++)
127 foreach (
Point point
in this.points)
129 this.OnRemovePoint(point);
130 point.detail.area =
null;
131 point.cell.TryDespawnDetail();
136 public static Area Create(
string id)
140 EClass._map.rooms.AssignUID(area);
149 public bool isDestroyed;