yapb-noob-edition/inc/product.h
jeefo 53df621dfc
build: reworked build and package to simplify process
build: reworked build and package to simplify process
build: windows dll is now compiled by clang, msvc build added to extras package
fix: clear all the implicit conversions in the code (also fixed some bugs)
fix: crash on  never xash3d-fwgs engine
fix: fixed bad bot behaviors on aarch64
fix: crash on some maps due to missing previous node
fix: finally removed memset(this) within bot creatin
2023-04-02 12:17:12 +03: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_COMMIT_COUNT };
StringRef count { MODULE_COMMIT_HASH };
StringRef author { MODULE_AUTHOR };
StringRef machine { MODULE_MACHINE };
StringRef compiler { MODULE_COMPILER };
StringRef id { MODULE_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_VERSION "." MODULE_COMMIT_COUNT };
StringRef cmdPri { "yb" };
StringRef cmdSec { "yapb" };
};
// expose product info
CR_EXPOSE_GLOBAL_SINGLETON (Product, product);