Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Class for players
- // Create a class that gets and sets values for each object of a player
- public class player
- {
- public int id { get; set; }
- public string name { get; set; }
- public int face { get; set; }
- // you can add more objects..
- }
- // I don't know all the methods of using classes, but lists work
- public static List<player> playerList = new List<player>();
- // How to use
- case "add":
- playerList.Add(new player { id = m.GetInt(0), name = m.GetString(1), face = m.GetInt(2), ... // If you have more objects });
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement