PlayerCharacterStats.GetClassLevel
Declaration#
public virtual Int32 GetClassLevel(string id)Parameters#
| Name | Description |
|---|---|
| id | Id 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)); }
}