public void RestoreActionDoorData(ActionDoorData_v1[] actionDoors) { if (actionDoors == null || actionDoors.Length == 0) { return; } for (int i = 0; i < actionDoors.Length; i++) { ulong key = actionDoors[i].loadID; if (SerializableActionDoors.ContainsKey(key)) { SerializableActionDoors[key].RestoreSaveData(actionDoors[i]); } } }
/// <summary> /// Check if a LoadID is already in action door serialization list. /// </summary> public bool ContainsActionDoor(ulong id) { return(SerializableActionDoors.ContainsKey(id)); }