Completed
Push — master ( a1e8f3...b95acc )
by Oleksandr
02:23
created

Anticheat

Complexity

Total Complexity 0

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
c 1
b 0
f 0
dl 0
loc 14
ccs 4
cts 4
cp 1
1
# coding: utf-8
2
3 1
from schematics.models import Model
4 1
from schematics.types import IntType
5 1
from schematics.types.compound import ModelType
6
7 1
from .lags import Lags
8 1
from .speedhack import Speedhack
9
10
11 1
class Anticheat(Model):
12 1
    version_check_level = IntType(
13
        min_value=0,
14
        max_value=2,
15
        default=0,
16
        required=True,
17
    )
18 1
    lags = ModelType(
19
        model_spec=Lags,
20
        required=True,
21
    )
22 1
    speedhack = ModelType(
23
        model_spec=Speedhack,
24
        required=True,
25
    )
26