Add support for loading player info from lazy-parser

This commit is contained in:
Lol3rrr
2024-10-18 13:47:29 +02:00
parent a0eab7c68f
commit 4b1cb50566
3 changed files with 100 additions and 3 deletions

View File

@@ -12,6 +12,8 @@ fn cmp_lazy_nonlazy_events() {
let lazy_demo =
csdemo::lazyparser::LazyParser::new(csdemo::Container::parse(&content).unwrap());
assert_eq!(demo.player_info, lazy_demo.player_info());
for (normal, lazied) in demo
.events
.into_iter()
@@ -35,6 +37,8 @@ fn cmp_lazy_nonlazy_entities() {
let lazy_demo =
csdemo::lazyparser::LazyParser::new(csdemo::Container::parse(&content).unwrap());
assert_eq!(demo.player_info, lazy_demo.player_info());
let mut normal_iter = demo
.entity_states
.ticks