Skip to main content

PlayerCharacterStats.JSONExport

Declaration#

public string JSONExport(List<Int32> statIndexes, List<Int32> conditionIndexes, List<Int32> attributeIndexes, bool includeRace, bool includeBackground, bool includeClass, bool includeLevel, bool includeRespawn)

Parameters#

NameDescription
statIndexesList of stat indexes to export
conditionIndexesList of condition indexes to export
attributeIndexesList of attribute indexes to export
includeRaceInclude Race
includeBackgroundInclude Background
includeClassInclude Class
includeLevelInclude Level
includeRespawnInclude Respawn data

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(PlayerCharacterStats 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, true, true, true, true, true);    }
}

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(PlayerCharacterStats target)    {        string result = target.JSONExport();    }
}

Declaration#

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

Parameters#

NameDescription
statIndexesList of stat indexes to export
conditionIndexesList of condition indexes to export
attributeIndexesList of attribute indexes to export
includeRespawnInclude respawn data

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(PlayerCharacterStats 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, true);    }
}

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(PlayerCharacterStats 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);    }
}