Skip to main content

PlayerCharacterStats.GetClassLevel

Declaration#

public virtual Int32 GetClassLevel(string id)

Parameters#

NameDescription
idId of the Class to get level for

Description#

Get the level of a Class available on this object by id

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(PlayerCharacterStats source)    {        string id = source.database.classes[0].info.id;        Debug.Log("Class Level: " + source.GetClassLevel(id));    }
}