public void mod(IModable modable) { if (modable.GetType() != GetType()) { Debug.LogError($"Type mismatch in mod(): {modable.GetType()} != {GetType()}"); return; } ModableValueTypeSortedDictionary <V> modData = (ModableValueTypeSortedDictionary <V>)modable; foreach (KeyValuePair <string, V> entry in modData) { this[entry.Key] = entry.Value; } }
public void mod(IModable modable) { if (modable.GetType() != GetType()) { Debug.LogError("Type mismatch"); return; } mod((DialogueStages)modable); }
public void mod(IModable modable) { if (modable.GetType() != GetType()) { Debug.LogError("Type mismatch"); return; } mod((ItemsFilter)modable); }
public void mod(IModable modable) { if (modable.GetType() != GetType()) { Debug.LogError($"Type mismatch in mod(): {modable.GetType()} != {GetType()}"); return; } ModableObjectSortedDictionary <V> modData = (ModableObjectSortedDictionary <V>)modable; foreach (KeyValuePair <string, V> entry in modData) { if (!ContainsKey(entry.Key)) { this[entry.Key] = Modable.copyDeep(entry.Value); continue; } this[entry.Key] = Modable.mod(this[entry.Key], entry.Value); } }
public void mod(IModable modable) { if (modable.GetType() != GetType()) { Debug.LogError("Type mismatch"); return; } Location modableLocation = (Location)modable; //subLocations.mod(((Location)modable).subLocations); subLocations = Modable.mod(subLocations, modableLocation.subLocations); }