static void SaveAllSubscribedObjects(bool saveFile = false) { for (int i = 0; i < statefulItemList.Count; i++) { StatefulItem item = (StatefulItem)statefulItemList[i]; if (item) { item.SaveState(saveFile); } } }
public static void AddStatefulItem(StatefulItem item) { statefulItemList.Add(item); }