internal override void VisitRefs(RefSet refSet, Action <CellRef> refAct, Action <CellArea> areaAct) { foreach (Expr e in es) { e.VisitRefs(refSet, refAct, areaAct); } }
internal override void VisitRefs(RefSet refSet, Action <CellRef> refAct, Action <CellArea> areaAct) { if (!refSet.SeenBefore(this)) { areaAct(this); } }
protected void AddEvent(EventBean theEvent) { _array = null; if (!RefSet.TryGetValue(theEvent, out var value)) { RefSet.Put(theEvent, 1); return; } value++; RefSet.Put(theEvent, value); }
protected void RemoveEvent(EventBean theEvent) { _array = null; if (!RefSet.TryGetValue(theEvent, out var value)) return; if (value == 1) { RefSet.Remove(theEvent); return; } value--; RefSet.Put(theEvent, value); }
internal override void VisitRefs(RefSet refSet, Action <CellRef> refAct, Action <CellArea> areaAct) { }
// Apply refAct once to each CellRef in expression, and areaAct once to each CellArea internal abstract void VisitRefs(RefSet refSet, Action <CellRef> refAct, Action <CellArea> areaAct);
public void Clear() { RefSet.Clear(); _array = null; }
public PrefabFactory() { this.refSet = ResourcesManager.GetUnmanagedRefSet("prefab.factory"); }