WildStar:API GameLib CodeEnumClass

Revision as of 13:54, 11 July 2015 by 173.57.67.247 (talk) (Created page with " === Enum === == CodeEnumClass == CodeEnumClass = {       Engineer = 2,       Esper = 3,       Medic = 4,       Spellslinger = 7,       Stalker = 5,   ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Enum

CodeEnumClass

CodeEnumClass = {

      Engineer = 2,

      Esper = 3,

      Medic = 4,

      Spellslinger = 7,

      Stalker = 5,

      Warrior = 1

    }   

    Examples

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