// // YaPB - Counter-Strike Bot based on PODBot by Markus Klinge. // Copyright © 2004-2020 YaPB Development Team . // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // #pragma once #ifdef VERSION_GENERATED # define VERSION_HEADER #else # define VERSION_HEADER #endif #include VERSION_HEADER // simple class for bot internal information class Product final : public Singleton { public: const struct Build { const StringRef hash { MODULE_BUILD_HASH }; const StringRef author { MODULE_BUILD_AUTHOR }; const StringRef count { MODULE_BUILD_COUNT }; const StringRef machine { MODULE_BUILD_MACHINE }; const StringRef compiler { MODULE_BUILD_COMPILER }; const StringRef id { MODULE_BOT_BUILD_ID }; } build { }; public: const StringRef name { "YaPB" }; const StringRef year { __DATE__ + 7 }; const StringRef author { "YaPB Development Team" }; const StringRef email { "team@yapb.ru" }; const StringRef url { "https://yapb.ru/" }; const StringRef download { "yapb.ru" }; const StringRef folder { "yapb" }; const StringRef logtag { "YB" }; const StringRef dtime { __DATE__ " " __TIME__ }; const StringRef date { __DATE__ }; const StringRef version { MODULE_BOT_VERSION }; const StringRef cmdPri { "yb" }; const StringRef cmdSec { "yapb" }; }; // expose product info CR_EXPOSE_GLOBAL_SINGLETON (Product, product);