Esempio n. 1
0
 public string GetMainPlayerClassName()
 {
     if (TryGetCharacterWindow(out List <CharacterWindowUI> characterWindowList))
     {
         CharacterWindowUI characterWindow = characterWindowList.FirstOrDefault();
         if (characterWindow != null)
         {
             return(characterWindow.GetClassName());
         }
     }
     return("");
 }
Esempio n. 2
0
 public void GetMainPlayerSpirit(out int curSp, out int maxSp)
 {
     curSp = 0;
     maxSp = 0;
     if (TryGetCharacterWindow(out List <CharacterWindowUI> characterWindowList))
     {
         CharacterWindowUI characterWindow = characterWindowList.FirstOrDefault();
         if (characterWindow != null)
         {
             characterWindow.GetSpirit(out curSp, out maxSp);
         }
     }
 }
Esempio n. 3
0
 public void GetMainPlayerHealth(out int curHp, out int maxHp)
 {
     curHp = 0;
     maxHp = 0;
     if (TryGetCharacterWindow(out List <CharacterWindowUI> characterWindowList))
     {
         CharacterWindowUI characterWindow = characterWindowList.FirstOrDefault();
         if (characterWindow != null)
         {
             characterWindow.GetHealth(out curHp, out maxHp);
         }
     }
 }