From a8172a518ff8939c4402349b16c064fcaf855d31 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 5 Aug 2023 19:58:04 +0200 Subject: [PATCH] Add some functions to compatibility layer of gesioraac --- system/compat/classes.php | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/system/compat/classes.php b/system/compat/classes.php index 051fbdf2ce..2009140bbe 100644 --- a/system/compat/classes.php +++ b/system/compat/classes.php @@ -9,7 +9,30 @@ */ defined('MYAAC') or die('Direct access not allowed!'); -class Player extends OTS_Player {} -class Guild extends OTS_Guild {} +class Account extends OTS_Account { + public function loadById($id) { + $this->load($id); + } + public function loadByName($name) { + $this->find($name); + } +} + +class Player extends OTS_Player { + public function loadById($id) { + $this->load($id); + } + public function loadByName($name) { + $this->find($name); + } +} +class Guild extends OTS_Guild { + public function loadById($id) { + $this->load($id); + } + public function loadByName($name) { + $this->find($name); + } +} class GuildRank extends OTS_GuildRank {} class House extends OTS_House {}