# perl-tfdemo `Games::TF2::Demo` reads Team Fortress 2 demo files (`.dem`) in Perl, and `Games::TF2::Server` follows a running Team Fortress 2 server live. Both are XS bindings of the C API of [libtfdemo](https://github.com/davenonymous/tf-demo-parser-cpp), which the distribution compiles in: no libtfdemo has to be installed beforehand. - **Demos**: the header, game events, user messages, entities, temp entities, sounds, string tables, players, chat, the match summary, direct hits and the game state at a tick. Writing demos is not part of it. - **Live connections** (libtfnet): as a SourceTV spectator (`Games::TF2::Server::SourceTV`) or as a player on a LAN server (`Games::TF2::Server::Player`), with subscriptions to entities, game events, chat, menus, cvars, console output and statistics, and the same state readers as a demo. The distribution needs Perl 5.26 or later and a C and a C++17 compiler. ## Documentation - [docs/guide.md](docs/guide.md): a guide with examples, from installing to live connections. - [docs/api.md](docs/api.md): the reference of `Games::TF2::Demo` (its POD). - [docs/server-api.md](docs/server-api.md): the reference of `Games::TF2::Server` (its POD). The POD of every module is the reference: `perldoc Games::TF2::Demo`, `perldoc Games::TF2::Server`. ## License Same terms as Perl itself, see [LICENSE](LICENSE).