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

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

        mod((ItemsFilter)modable);
    }
Beispiel #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);
        }
    }
Beispiel #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);
    }