using DFEngine.Accounts; using DFEngine.Server; using DFEngine.Utils; namespace DFEngine.Network { /// /// Class that holds information about a server transfer. /// public class NetworkTransfer : Object { /// /// The account of the transferring client. /// public Account Account { get; set; } /// /// Timestamp representing the time when the transfer was initialized. /// public long CreateTime { get; set; } /// /// The connection that is being transferred. /// public NetworkConnection Connection { get; set; } /// /// The connection's unique ID. /// public string Guid { get; set; } /// /// The world that the connection is transferring to. /// public World World { get; set; } /// /// Creates a new instance of the class. /// /// The transfer's account. /// The transfer's unique ID. public NetworkTransfer(Account account, string guid) { Account = account; CreateTime = Time.Milliseconds; Guid = guid; } /// /// Returns the Guid of the transfer. /// public override string ToString() { return Guid; } } }