Skip to main content

StatsAndEffects.JSONExport

Declaration#

public virtual string JSONExport()

Description#

Export all data to JSON

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(StatsAndEffects target)    {        string result = target.JSONExport();    }
}

Declaration#

public string JSONExport(List<Int32> statIndexes, List<Int32> conditionIndexes, List<Int32> attributeIndexes)

Parameters#

NameDescription
statIndexesList of stat indexes to export
conditionIndexesList of condition indexes to export
attributeIndexesList of attribute indexes to export

Description#

Export selected data to JSON

Usage#

Example
using NullSave.GDTK.Stats;using System.Collections.Generic;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(StatsAndEffects target)    {        List<int> statIndexes = new List<int> { 1, 2, 3 };        List<int> conditionIndexes = new List<int> { 1, 5 };        List<int> attributeIndexes = new List<int> { 3 };        string result = target.JSONExport(statIndexes,  conditionIndexes, attributeIndexes);    }
}