summaryrefslogtreecommitdiff
path: root/client/state.py
blob: 7541bf5e5216a4a74a014865af65b9bfa1da46e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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