//Default Constructor
 public EquippedPlaystyles()
 {
     playstyles    = new Playstyle[3];
     playstyles[0] = PlaystyleHelper.GetPlaystyle(PlaystyleHelper.NAME.NEUTRAL);
     playstyles[1] = PlaystyleHelper.GetPlaystyle(PlaystyleHelper.NAME.AGGRESSIVE_SMASHING);
     playstyles[2] = PlaystyleHelper.GetPlaystyle(PlaystyleHelper.NAME.LONG_SHOTS);
 }
 public Playstyle GetPlaystyle(int index)
 {
     if (index < 0 || index > 2)
     {
         return(PlaystyleHelper.GetPlaystyle(PlaystyleHelper.NAME.NEUTRAL));
     }
     return(playstyles[index]);
 }
 public EquippedPlaystyles(List <string> ids)
 {
     playstyles = new Playstyle[3];
     for (int i = 0; i < 3; i++)
     {
         playstyles[i] = PlaystyleHelper.GetPlaystyle(ids[0]);
     }
 }
예제 #4
0
 public void AddPlaystyle(string id)
 {
     playstyles.Add(PlaystyleHelper.GetPlaystyle(id));
 }
예제 #5
0
 public void AddPlaystyle(PlaystyleHelper.NAME playstyleName)
 {
     playstyles.Add(PlaystyleHelper.GetPlaystyle(playstyleName));
 }