Skip to content

Commit

Permalink
feat: add arma reforger support
Browse files Browse the repository at this point in the history
  • Loading branch information
CosminPerRam committed Apr 28, 2024
1 parent c357b45 commit 1dcc7b7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions GAMES.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ requirements/information.
| PixARK | PIXARK | Valve | |
| Ark: Survival Ascended | ASA | Epic | Available on the 'tls' feature |
| Aliens vs. Predator 2010 | AVP | Valve | |
| Arma Reforger | ARMAREFORGER | Valve | |

## Planned to add support:

Expand Down
1 change: 1 addition & 0 deletions crates/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Games:
- [Ark: Survival Ascended](https://store.steampowered.com/app/2399830/ARK_Survival_Ascended/) support, note: not yet in
the games definitions.
- [Aliens vs. Predator 2010](https://store.steampowered.com/app/10680/Aliens_vs_Predator/) support.
- [Arma Reforger](https://store.steampowered.com/app/1874880/Arma_Reforger/) support.

Protocols:

Expand Down
5 changes: 5 additions & 0 deletions crates/lib/src/games/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ pub static GAMES: Map<&'static str, Game> = phf_map! {
"a2oa" => game!("ARMA 2: Operation Arrowhead", 2304, Protocol::Valve(Engine::new(33930))),
"ase" => game!("ARK: Survival Evolved", 27015, Protocol::Valve(Engine::new(346_110))),
"asrd" => game!("Alien Swarm: Reactive Drop", 2304, Protocol::Valve(Engine::new(563_560))),
"armareforger" => game!("Arma Reforger", 17777, Protocol::Valve(Engine::new(1_874_880)), GatheringSettings {
players: GatherToggle::Enforce,
rules: GatherToggle::Enforce,
check_app_id: false,
}.into_extra()),
"atlas" => game!("ATLAS", 57561, Protocol::Valve(Engine::new(834_910))),
"avorion" => game!("Avorion", 27020, Protocol::Valve(Engine::new(445_220))),
"avp2010" => game!("Aliens vs. Predator 2010", 27015, Protocol::Valve(Engine::new(10_680))),
Expand Down
11 changes: 11 additions & 0 deletions crates/lib/src/games/valve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ game_query_mod!(
Engine::new(296_300),
27016
);
game_query_mod!(
armareforger,
"Arma Reforger",
Engine::new(0),
17777,
GatheringSettings {
players: GatherToggle::Enforce,
rules: GatherToggle::Enforce,
check_app_id: false,
}
);
game_query_mod!(
avp2010,
"Aliens vs. Predator 2010",
Expand Down

0 comments on commit 1dcc7b7

Please sign in to comment.