pub fn new(a: account::Account, c: crate::Config) -> Client {
        Client {
            base: a,
            game_connection: network::GameConnection::new(),
            factory_handle: None,
            is_connected: false,
            is_running: false,
            object_id: -1,
            ign: String::with_capacity(10),
            current_map: String::with_capacity(20),
            time_keeper: TimeKeeper::new(),
            movement: Movement::new(),
            recon: ReconnectBase::new(),
            stats: StatBase::new(),
            combat: CombatBase::new(),
            goods: TradeBase::new(),
            objects: GameObjects::new(),
            config: c,
        }
    }
/// Creates a new instance of the Client struct
Creates a new instance of the Client struct
Creates a new instance of the Client struct
pub fn new(a: account::Account, c: crate::Config) -> Client {
        Client {
            base: a,
            game_connection: network::GameConnection::new(),
            factory_handle: None,
            is_connected: false,
            is_running: false,
            object_id: -1,
            ign: String::with_capacity(10),
            current_map: String::with_capacity(20),
            time_keeper: TimeKeeper::new(),
            movement: Movement::new(),
            recon: ReconnectBase::new(),
            stats: StatBase::new(),
            combat: CombatBase::new(),
            goods: TradeBase::new(),
            objects: GameObjects::new(),
            config: c,
        }
    }
pub fn new ( a : account :: Account , c : crate :: Config ) -> Client { Client { base : a , game_connection : network :: GameConnection :: new ( ) , factory_handle : None , is_connected : false , is_running : false , object_id : - 1 , ign : String :: with_capacity ( 10 ) , current_map : String :: with_capacity ( 20 ) , time_keeper : TimeKeeper :: new ( ) , movement : Movement :: new ( ) , recon : ReconnectBase :: new ( ) , stats : StatBase :: new ( ) , combat : CombatBase :: new ( ) , goods : TradeBase :: new ( ) , objects : GameObjects :: new ( ) , config : c , } }
Creates a new instance of the Client struct
Creates a new instance of the Client struct
a
account::Account
c
crate::Config
a
account::Account
c
crate::Config