예제 #1
0
        static void Main(string[] args)
        {
            users = (Users) Serialize.Deserialization("111.mdb",users);

               users.ClearStatus();

            // Создадим новый сервер на порту 80
               new Server(25565);
        }
예제 #2
0
 /// <summary>
 /// Create a new Users object.
 /// </summary>
 /// <param name="userID">Initial value of the UserID property.</param>
 public static Users CreateUsers(global::System.Int32 userID)
 {
     Users users = new Users();
     users.UserID = userID;
     return users;
 }
예제 #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Users EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUsers(Users users)
 {
     base.AddObject("Users", users);
 }
예제 #4
0
 public Users GetOnline()
 {
     Users tempOnlineUsers = new Users();
     for (int i = 0; i < usersList.Count; i++)
     {
         if (usersList[i].status != 0)
             tempOnlineUsers.usersList.Add(usersList[i]);
     }
     return tempOnlineUsers;
 }