Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. private static List<ServerConstants.TALENTS> GetRange( int start, int end )
  2.     {
  3.         List<ServerConstants.TALENTS> ret = new List<ServerConstants.TALENTS>();
  4.         foreach ( ServerConstants.TALENTS en in Enum.GetValues( typeof( ServerConstants.TALENTS ) ) )
  5.         {
  6.             if ( (int)en >= start && (int)en <= end )
  7.             {
  8.                 ret.Add( en );
  9.             }
  10.         }
  11.         return ret;
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement