FB2SkillComponent
Overview
- Component that manages skills.
Metadata
| Field | Value |
|---|---|
| Kind | component |
| Environment | B2 - Simulation |
| Category | components |
| Extends | FB2Component |
| Require | require('Components.B2SkillComponent') |
Properties (3)
| Name | Type | Description |
|---|---|---|
BioComponent | any | |
ModifierComponent | any | |
Skills | table<string, FB1Skill> |
Functions (10)
| Function | Parameters | Returns | Description |
|---|---|---|---|
AddSkillExp | InSkillName: string, InValue: number | - | Adds Skill Exp. |
FindSkill | InFindSkillName: string | FB1Skill | Finds and returns Skill. |
GetDefaultCityMoveDataPolicy | - | EB1CityMoveDataPolicy | Returns Default City Move Data Policy. |
GetSkillLevel | InSkillName: string | integer | Returns Skill Level. |
IsMaxLevel | InSkillName: string | boolean | Returns whether Max Level. |
OnChangeGrowthStep | InPrevGrowthStep: EB1GrowthStep, InCurrentGrowthStep: EB1GrowthStep | - | Callback invoked on Change Growth Step. |
RefreshSkillMap | InCurrGrowthStep: EB1GrowthStep | - | |
SetSkillLevel | InSkillName: string, InSkillLevelInfoIndex: integer | - | Sets Skill Level. |
SetSkillLevelByAttribute | InSkillName: string, InLevel: integer | - | Sets Skill Level By Attribute. |
SetbLevelUpAtCurrentFrameFlag | InSkillName: string, bIsOn: boolean | - |
Override points (4)
Implement these in Lua as FB2SkillComponent.Override_Name = function(...) end.
| Function | Parameters | Returns | Description |
|---|---|---|---|
Override_AddSkillExp | InSkillName: string, InValue: number | - | Adds Skill Exp. |
Override_FindSkill | InFindSkillName: string | FB1Skill | Finds and returns Skill. |
Override_OnChangeGrowthStep | InPrevGrowthStep: EB1GrowthStep, InCurrGrowthStep: EB1GrowthStep | - | Callback invoked on Change Growth Step. |
Override_RefreshSkillMap | InCurrGrowthStep: EB1GrowthStep | - |