LyokoWarriors

Lyokowarriors

The LyokoWarriors class is a enum-ish class that provides the Lyokowarrior object associated with a LyokoWarriorName.

Getting a LyokoWarrior

You can get a LyokoWarrior either by a string name, a static name, or it's LyokoWarriorName

By static name

You can get a specific LW like this:

//check the HP of William
int hp = Lyokowarriors.WILLIAM.HP

By string name

If you have to work with a string, for example when you are using user input, you can get it like this:

string name = "ODD";
Lyokowarrior warrior = LyokoWarriors.GetByName(name);

It will throw an ArgumentException if the warrior does not exist.

By LyokoWarriorName

You can also use LyokoWarriorName to find a Lyokowarrior:

LyokoWarrior warrior = LyokoWarriors.GetByName(LyokoWarriorName.ODD)

Last updated

Was this helpful?