|
Iuvo Unity 0.5.1
This is library containing a variety of helper classes and extension methods for the Unity gane engine. GitHub | Iuvo Unity Updates | Creator |
Public Member Functions | |
| AnimationCurve | GetDefaultExperienceCurve () |
| virtual void | OnEnable () |
| virtual void | OnDisable () |
| void | Serialize (LevelComponentData levelComponent) |
| LevelComponentData? | DeserializeLevelComponent () |
| int | GetExpAtLevel (int level) |
| int | GetExperienceToNextLevel (int currLevel, int cumulativeExp) |
| Returns EXP still required to reach the next level from the current state. Uses cumulative EXP values stored in the exp curve. | |
| void | SetLevelScalingCurve (AnimationCurve newExpCurve) |
| Sets a new experience curve for level scaling. | |
| Dictionary< int, int > | GetFullLevelTable () |
| Returns a dictionary mapping each level to the cumulative EXP required to reach that level. | |
| override void | PrintInfo () |
| Prints detailed information about the level configuration, including the EXP curve and last known level component data. | |
| Public Member Functions inherited from IuvoUnity.Configurations.BaseConfig< T > | |
| virtual void | Configure (T configurable) |
| virtual void | Reconfigure (T reconfigurable) |
| virtual string | GetConfigSerializePath (string actingConfigClass, string objectToSerializeName, string parentConfigClass="BaseConfig") |
Public Attributes | |
| string | savedItemName = "LevelComponent" |
| Public Attributes inherited from IuvoUnity.Configurations.BaseConfig< T > | |
| string | configName |
Protected Member Functions | |
| virtual void | ImplementDefaultScalingAlgorithm () |
Properties | |
| int | MaxLevel [get] |
Private Attributes | |
| AnimationCurve | DefaultLevelingCurve |
| AnimationCurve | expCurve |
| LevelComponentData | lastLevelComponentData = new LevelComponentData { CurrentLevel = -1 } |
| LevelComponentData? IuvoUnity.Configurations.LevelConfiguration.DeserializeLevelComponent | ( | ) |
References IuvoUnity.Debug.IuvoDebug.DebugLogWarning(), IuvoUnity.Configurations.BaseConfig< T >.GetConfigSerializePath(), lastLevelComponentData, and savedItemName.
| AnimationCurve IuvoUnity.Configurations.LevelConfiguration.GetDefaultExperienceCurve | ( | ) |
References DefaultLevelingCurve.
Referenced by ImplementDefaultScalingAlgorithm().
| int IuvoUnity.Configurations.LevelConfiguration.GetExpAtLevel | ( | int | level | ) |
References IuvoUnity.Debug.IuvoDebug.DebugLogWarning(), expCurve, and MaxLevel.
Referenced by IuvoUnity.BaseClasses.LevelComponent.CheckLevelUp(), GetExperienceToNextLevel(), and GetFullLevelTable().
| int IuvoUnity.Configurations.LevelConfiguration.GetExperienceToNextLevel | ( | int | currLevel, |
| int | cumulativeExp ) |
Returns EXP still required to reach the next level from the current state. Uses cumulative EXP values stored in the exp curve.
References GetExpAtLevel(), and MaxLevel.
| Dictionary< int, int > IuvoUnity.Configurations.LevelConfiguration.GetFullLevelTable | ( | ) |
Returns a dictionary mapping each level to the cumulative EXP required to reach that level.
References GetExpAtLevel(), and MaxLevel.
Referenced by PrintInfo().
|
protectedvirtual |
References IuvoUnity.Debug.IuvoDebug.DebugLog(), expCurve, and GetDefaultExperienceCurve().
Referenced by OnEnable(), and SetLevelScalingCurve().
|
virtual |
References IuvoUnity.Debug.IuvoDebug.DebugLog().
|
virtual |
References IuvoUnity.Configurations.BaseConfig< T >.configName, expCurve, and ImplementDefaultScalingAlgorithm().
|
virtual |
Prints detailed information about the level configuration, including the EXP curve and last known level component data.
Reimplemented from IuvoUnity.Configurations.BaseConfig< T >.
References IuvoUnity.Debug.IuvoDebug.DebugLog(), GetFullLevelTable(), and lastLevelComponentData.
| void IuvoUnity.Configurations.LevelConfiguration.Serialize | ( | LevelComponentData | levelComponent | ) |
References IuvoUnity.Debug.IuvoDebug.DebugLog(), IuvoUnity.Debug.IuvoDebug.DebugLogError(), IuvoUnity.Configurations.BaseConfig< T >.GetConfigSerializePath(), and savedItemName.
| void IuvoUnity.Configurations.LevelConfiguration.SetLevelScalingCurve | ( | AnimationCurve | newExpCurve | ) |
Sets a new experience curve for level scaling.
| newExpCurve |
References IuvoUnity.Debug.IuvoDebug.DebugLog(), IuvoUnity.Debug.IuvoDebug.DebugLogError(), expCurve, and ImplementDefaultScalingAlgorithm().
|
private |
Referenced by GetDefaultExperienceCurve().
|
private |
Referenced by GetExpAtLevel(), ImplementDefaultScalingAlgorithm(), OnEnable(), and SetLevelScalingCurve().
|
private |
Referenced by DeserializeLevelComponent(), and PrintInfo().
| string IuvoUnity.Configurations.LevelConfiguration.savedItemName = "LevelComponent" |
Referenced by DeserializeLevelComponent(), and Serialize().
|
get |