Skip to content

Class: HeroLoadoutData ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
public class HeroLoadoutData

Fields ​

NameDeclarationDescription
cDestructionpublic List<LoadoutStarItem> cDestruction
cFlexiblepublic List<LoadoutStarItem> cFlexible
cImaginationpublic List<LoadoutStarItem> cImagination
cLifepublic List<LoadoutStarItem> cLife
HeroLoadoutCountpublic const int HeroLoadoutCount = 5
skillMovementpublic int skillMovement
skillQpublic int skillQ
skillRpublic int skillR
skillTraitpublic int skillTrait

Methods ​

ContainsStar(string) ​

csharp
public bool ContainsStar(string starName)

Parameters:

NameTypeDescription
starNamestring

Returns: bool

GetSkill(HeroSkillLocation) ​

csharp
public int GetSkill(HeroSkillLocation type)

Parameters:

NameTypeDescription
typeHeroSkillLocation

Returns: int

GetStarList(StarType) ​

csharp
public List<LoadoutStarItem> GetStarList(StarType type)

Parameters:

NameTypeDescription
typeStarType

Returns: System.Collections.Generic.List&lt;T&gt;&lt;LoadoutStarItem&gt;

IsValidFor(string) ​

csharp
public bool IsValidFor(string heroType)

Parameters:

NameTypeDescription
heroTypestring

Returns: bool

PopulateLevelsByLocalSaveData() ​

csharp
public void PopulateLevelsByLocalSaveData()

SetSkill(HeroSkillLocation, int) ​

csharp
public void SetSkill(HeroSkillLocation type, int value)

Parameters:

NameTypeDescription
typeHeroSkillLocation
valueint

Validate_Imp(string, bool, bool, HeroStarSlotUnlockData) ​

Returns false if something is invalid.If isRepair is true, the loadout data will be repaired.If not, nothing will be changed.

csharp
public bool Validate_Imp(string heroType, bool isRepair, bool checkStarLevels, DewProfile.HeroStarSlotUnlockData unlockedSlots)

Parameters:

NameTypeDescription
heroTypestring
isRepairbool
checkStarLevelsbool
unlockedSlotsDewProfile.HeroStarSlotUnlockData

Returns: bool

Maintained by the Shape of Dreams Modding Community