From 5b56f8ae0873b6602d8819e690638f099cfffa22 Mon Sep 17 00:00:00 2001 From: Austin Bischoff Date: Sun, 29 Mar 2015 20:54:15 -0500 Subject: [PATCH] Added Battlefield Hardline which is just BF4 broken return and all. Tagged v2.0.4 --- GameQ.php | 2 +- composer.json | 2 +- gameq/protocols/bfh.php | 46 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 gameq/protocols/bfh.php diff --git a/GameQ.php b/GameQ.php index 746431a2..4ef43711 100644 --- a/GameQ.php +++ b/GameQ.php @@ -43,7 +43,7 @@ class GameQ /* * Constants */ - const VERSION = '2.0.3'; + const VERSION = '2.0.4'; /* * Server array keys diff --git a/composer.json b/composer.json index 9fb3ff1d..548af133 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "austinb/gameq", "description": "GameQ Gameserver Library", - "version": "2.0.3", + "version": "2.0.4", "license": "LGPL-3.0+", "authors": [ { diff --git a/gameq/protocols/bfh.php b/gameq/protocols/bfh.php new file mode 100644 index 00000000..e94f2389 --- /dev/null +++ b/gameq/protocols/bfh.php @@ -0,0 +1,46 @@ +. + */ + +/** + * Battlefield Hardline Protocol Class + * + * @author Austin Bischoff + */ +class GameQ_Protocols_Bfh extends GameQ_Protocols_Bf4 +{ + /** + * The protocol being used + * + * @var string + */ + protected $protocol = 'bfh'; + + /** + * String name of this protocol class + * + * @var string + */ + protected $name = 'bfh'; + + /** + * Longer string name of this protocol class + * + * @var string + */ + protected $name_long = "Battlefield Hardline"; +}