From 7a798253441a8bd499d36bd8153b92ab08de8a9f Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 2 Dec 2021 11:41:42 +0800 Subject: *fixed --- Client/Source/Phy2DLite/Constants.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Client/Source/Phy2DLite/Constants.h (limited to 'Client/Source/Phy2DLite/Constants.h') diff --git a/Client/Source/Phy2DLite/Constants.h b/Client/Source/Phy2DLite/Constants.h new file mode 100644 index 0000000..aa50e8c --- /dev/null +++ b/Client/Source/Phy2DLite/Constants.h @@ -0,0 +1,19 @@ +#pragma once + +#include "Settings.h" + +namespace Phy2D +{ +#if NUMBER_ALIAS == NUMBER_FPM +#define CONSTANT(name, value) static number name = number::from_raw_value(value) + + CONSTANT(_1, 65536); + CONSTANT(_0, 0); + CONSTANT(_0_01, 655); + CONSTANT(_0_2, 13107); + CONSTANT(_0_5, 32768); + CONSTANT(_0_95, 62259); + CONSTANT(_12, 786432); + +#endif +} \ No newline at end of file -- cgit v1.1-26-g67d0