yapb-noob-edition/inc/product.h
Владислав Сухов 2d2ca5fd22
Some menu tweaks (#397)
* add: debug goal menu and new node flags to the flag selection menu

* translate: russian: translated new lines

* update: bump the year
2023-01-22 19:12:03 +06:00

47 lines
1.3 KiB
C++

//
// YaPB - Counter-Strike Bot based on PODBot by Markus Klinge.
// Copyright © 2004-2023 YaPB Project <yapb@jeefo.net>.
//
// SPDX-License-Identifier: MIT
//
#pragma once
#ifdef VERSION_GENERATED
# define VERSION_HEADER <version.build.h>
#else
# define VERSION_HEADER <version.h>
#endif
#include VERSION_HEADER
// simple class for bot internal information
class Product final : public Singleton <Product> {
public:
struct Build {
StringRef hash { MODULE_BUILD_HASH };
StringRef author { MODULE_BUILD_AUTHOR };
StringRef count { MODULE_BUILD_COUNT };
StringRef machine { MODULE_BUILD_MACHINE };
StringRef compiler { MODULE_BUILD_COMPILER };
StringRef id { MODULE_BOT_BUILD_ID };
} build { };
public:
StringRef name { "YaPB" };
StringRef year { &__DATE__[7] };
StringRef author { "YaPB Project" };
StringRef email { "yapb@jeefo.net" };
StringRef url { "https://yapb.jeefo.net/" };
StringRef download { "yapb.jeefo.net" };
StringRef folder { "yapb" };
StringRef logtag { "YB" };
StringRef dtime { __DATE__ " " __TIME__ };
StringRef date { __DATE__ };
StringRef version { MODULE_BOT_VERSION "." MODULE_BUILD_COUNT };
StringRef cmdPri { "yb" };
StringRef cmdSec { "yapb" };
};
// expose product info
CR_EXPOSE_GLOBAL_SINGLETON (Product, product);