Exemple #1
0
 public void Perform(int skill, UserChar target, QuickPlaySession session)
 {
     switch (skill)
     {
     case 1:
         Skill_1(target, session);
         break;
     }
 }
 public static void Initialize()
 {
     while (true)
     {
         if (Clients.Count > 1)
         {
             Clients.Sort(SortByRating);
             QuickPlaySession session = new QuickPlaySession(Clients[0], Clients[1], roomId++);
             Sessions.Add(session.roomId, session);
             Clients.RemoveRange(0, 2);
         }
     }
 }
Exemple #3
0
 public virtual void Skill_3(UserChar target, QuickPlaySession session)
 {
 }
Exemple #4
0
 public virtual void Skill_1(UserChar target, QuickPlaySession session)
 {
     session.moveLogs.Add(target.GetPhysicalDamage(this));
 }
 public static void DestroySession(QuickPlaySession session)
 {
     Sessions.Remove(session.roomId);
 }