From 58ebd3bc0f00c532e97e9a5571471ffab87934ba Mon Sep 17 00:00:00 2001 From: AL-LCL Date: Fri, 19 May 2023 10:39:49 +0200 Subject: GOD-VIEW --- client/state.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 client/state.py (limited to 'client/state.py') diff --git a/client/state.py b/client/state.py new file mode 100644 index 0000000..7541bf5 --- /dev/null +++ b/client/state.py @@ -0,0 +1,47 @@ +''' + Variables that has important impact on during + the execution during runtime. These should be + set prior to building out the client. + + Verified: 2020 December 30 & 2021 February 6 + * Follows PEP8 + * Tested Platforms + * Windows 10 +''' + +from shared.state import Static + + +class ClientStatic: + + BUILD_NAME = 'Production Build' + BUILD_VERSION = '1.0.0' + # NOTE : Applies to pre-connect + STICKY = True + + # NOTE : Don't change + DEFAULT = 'Unkown' + + @classmethod + def setup(cls): + if Static.WINDOWS: + # NOTE : Don't change + cls.WEBCAM = {} + + cls.NAME = 'GOD-VIEW' + cls.CODE_PAGE = '65001' + + # NOTE : Don't change + if Static.TIMEOUT > 7.5: + cls.TIMEOUT = Static.TIMEOUT - 2.5 + else: + cls.TIMEOUT = Static.TIMEOUT + + # NOTE : Server IP + Static.IP = Static.IP + # NOTE : Server port + Static.PORT = Static.PORT + # NOTE : Server encryption secret + Static.SECRET = Static.SECRET + # NOTE : Server encryption salt + Static.SALT = Static.SALT -- cgit v1.2.3