WildStar:API GameLib CodeEnumClass: Difference between revisions
Jump to navigation
Jump to search
m (Bear moved page //API GameLib CodeEnumClass to API GameLib CodeEnumClass without leaving a redirect) |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{\|uiapi|toc=0}} | ||
Enum | Enum | ||
Latest revision as of 07:30, 9 August 2023
← UI API < GameLib.CodeEnumClass
Enum
Examples[edit]
Example 1
CodeEnumClass = { Engineer = 2, Esper = 3, Medic = 4, Spellslinger = 7, Stalker = 5, Warrior = 1 }
Example 2
local eClassId = unitPlayer:GetClassId() if eClassId == GameLib.CodeEnumClass.Engineer then self:OnCreateEngineer() elseif unitPlayer:GetClassId() == GameLib.CodeEnumClass.Esper then self:OnCreateEsper() elseif unitPlayer:GetClassId() == GameLib.CodeEnumClass.Spellslinger then self:OnCreateSlinger() elseif unitPlayer:GetClassId() == GameLib.CodeEnumClass.Medic then self:OnCreateMedic() elseif unitPlayer:GetClassId() == GameLib.CodeEnumClass.Warrior then self:OnCreateWarrior() elseif unitPlayer:GetClassId() == GameLib.CodeEnumClass.Stalker then self:OnCreateStalker() end