1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! # Naia Shared
//! Common functionality shared between naia-server & naia-client crates.

#![deny(
    missing_docs,
    trivial_casts,
    trivial_numeric_casts,
    unsafe_code,
    unstable_features,
    unused_import_braces
)]

#[macro_use]
extern crate log;

#[macro_use]
extern crate cfg_if;

mod ack_manager;
mod config;
mod connection;
mod duration;
mod entities;
mod events;
mod instant;
mod manager_type;
mod manifest;
mod packet_reader;
mod packet_type;
mod packet_writer;
mod rtt;
mod sequence_buffer;
mod standard_header;
mod timestamp;

/// Commonly used utility methods to be used by naia-server & naia-client
pub mod utils;

pub use naia_socket_shared::{find_my_ip_address, Timer};

pub use ack_manager::AckManager;
pub use config::Config;
pub use connection::Connection;
pub use entities::{
    entity::Entity, entity_builder::EntityBuilder, entity_mutator::EntityMutator,
    entity_notifiable::EntityNotifiable, entity_type::EntityType, local_entity_key::LocalEntityKey,
    property::Property, property_io::PropertyIo, state_mask::StateMask,
};
pub use events::{
    event::{Event, EventClone},
    event_builder::EventBuilder,
    event_manager::EventManager,
    event_type::EventType,
};
pub use instant::Instant;
pub use manager_type::ManagerType;
pub use manifest::Manifest;
pub use packet_reader::PacketReader;
pub use packet_type::PacketType;
pub use packet_writer::{PacketWriter, MTU_SIZE};
pub use rtt::rtt_tracker::RttTracker;
pub use sequence_buffer::SequenceNumber;
pub use timestamp::Timestamp;