Exemplo n.º 1
0
    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;
        }
    }
Exemplo n.º 2
0
    public void mod(IModable modable)
    {
        if (modable.GetType() != GetType())
        {
            Debug.LogError("Type mismatch");
            return;
        }

        mod((DialogueStages)modable);
    }
Exemplo n.º 3
0
    public void mod(IModable modable)
    {
        if (modable.GetType() != GetType())
        {
            Debug.LogError("Type mismatch");
            return;
        }

        mod((ItemsFilter)modable);
    }
Exemplo n.º 4
0
    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);
        }
    }
Exemplo n.º 5
0
    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);
    }