blob: 992d898b6c52b7cb1279287f26f0a2fbaf1eb239 (
plain)
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
|
#[cfg(feature = "gamenet_ddnet")]
extern crate gamenet_ddnet as gamenet;
#[cfg(feature = "gamenet_0_5")]
extern crate gamenet_teeworlds_0_5 as gamenet;
#[cfg(feature = "gamenet_0_6")]
extern crate gamenet_teeworlds_0_6 as gamenet;
#[cfg(feature = "gamenet_0_7")]
extern crate gamenet_teeworlds_0_7 as gamenet;
extern crate buffer;
extern crate common;
extern crate packer;
extern crate vec_map;
extern crate warn;
pub mod format;
pub mod manager;
pub mod receiver;
pub mod snap;
pub mod storage;
pub use manager::Manager;
pub use receiver::DeltaReceiver;
pub use receiver::ReceivedDelta;
pub use snap::Delta;
pub use snap::DeltaReader;
pub use snap::Snap;
pub use storage::Storage;
use common::num::Cast;
use std::ops;
fn to_usize(r: ops::Range<u32>) -> ops::Range<usize> {
r.start.usize()..r.end.usize()
}
|