Ejemplo n.º 1
0
    public new IModable copyDeep()
    {
        var result = ModableValueTypeHashDictionary <string> .copyDeep <ItemsCollection>(this);

        result.cacheDirty = true;

        return(result);
    }
Ejemplo n.º 2
0
    public void mod(IModable modable)
    {
        if (modable.GetType() != GetType())
        {
            Debug.LogError($"Type mismatch in mod(): {modable.GetType()} != {GetType()}");
            return;
        }

        ModableValueTypeHashDictionary <V> modData = (ModableValueTypeHashDictionary <V>)modable;

        foreach (KeyValuePair <string, V> entry in modData)
        {
            this[entry.Key] = entry.Value;
        }
    }