Initial commit
This commit is contained in:
6
osuRepy/helpers/__init__.py
Normal file
6
osuRepy/helpers/__init__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from . import osuModes
|
||||
from . import osuMods
|
||||
from . import osuRanks
|
||||
from . import osuButtons
|
||||
|
||||
from . import typeSerializer
|
||||
12
osuRepy/helpers/osuButtons.py
Normal file
12
osuRepy/helpers/osuButtons.py
Normal file
@@ -0,0 +1,12 @@
|
||||
NONE = 0
|
||||
LEFTMOUSE = 1 << 0
|
||||
RIGHTMOUSE = 1 << 1
|
||||
LEFTKEY = 1 << 2
|
||||
RIGHTKEY = 1 << 3
|
||||
SMOKE = 1 << 4
|
||||
|
||||
# How a normal human should read it...
|
||||
M1 = LEFTMOUSE
|
||||
M2 = RIGHTMOUSE
|
||||
K1 = LEFTKEY | LEFTMOUSE
|
||||
K2 = RIGHTKEY | RIGHTMOUSE
|
||||
4
osuRepy/helpers/osuModes.py
Normal file
4
osuRepy/helpers/osuModes.py
Normal file
@@ -0,0 +1,4 @@
|
||||
STANDARD = 0
|
||||
TAIKO = 1
|
||||
CATCH_THE_BEAT = 2
|
||||
MANIA = 3
|
||||
37
osuRepy/helpers/osuMods.py
Normal file
37
osuRepy/helpers/osuMods.py
Normal file
@@ -0,0 +1,37 @@
|
||||
NOMOD = 0
|
||||
NOFAIL = 1 << 0
|
||||
EASY = 1 << 1
|
||||
TOUCHSCREEN = 1 << 2
|
||||
HIDDEN = 1 << 3
|
||||
HARDROCK = 1 << 4
|
||||
SUDDENDEATH = 1 << 5
|
||||
DOUBLETIME = 1 << 6
|
||||
RELAX = 1 << 7
|
||||
HALFTIME = 1 << 8
|
||||
NIGHTCORE = 1 << 9
|
||||
FLASHLIGHT = 1 << 10
|
||||
AUTOPLAY = 1 << 11
|
||||
SPUNOUT = 1 << 12
|
||||
RELAX2 = 1 << 13
|
||||
PERFECT = 1 << 14
|
||||
KEY4 = 1 << 15
|
||||
KEY5 = 1 << 16
|
||||
KEY6 = 1 << 17
|
||||
KEY7 = 1 << 18
|
||||
KEY8 = 1 << 19
|
||||
KEYMOD = 1 << 20
|
||||
FADEIN = 1 << 21
|
||||
RANDOM = 1 << 22
|
||||
LASTMOD = 1 << 23
|
||||
KEY9 = 1 << 24
|
||||
KEY10 = 1 << 25
|
||||
KEY1 = 1 << 26
|
||||
KEY3 = 1 << 27
|
||||
KEY2 = 1 << 28
|
||||
SCOREV2 = 1 << 29
|
||||
|
||||
def all_enabled(modmask, mods):
|
||||
return modmask & mods == mods
|
||||
|
||||
def any_enabled(modmask, mods):
|
||||
return modmask & mods > 0
|
||||
10
osuRepy/helpers/osuRanks.py
Normal file
10
osuRepy/helpers/osuRanks.py
Normal file
@@ -0,0 +1,10 @@
|
||||
SSH = 0
|
||||
SH = 1
|
||||
SS = 2
|
||||
S = 3
|
||||
A = 4
|
||||
B = 5
|
||||
C = 6
|
||||
D = 7
|
||||
F = 8
|
||||
N = 9
|
||||
18
osuRepy/helpers/typeSerializer.py
Normal file
18
osuRepy/helpers/typeSerializer.py
Normal file
@@ -0,0 +1,18 @@
|
||||
NULL = bytes([0])
|
||||
BOOL = bytes([1])
|
||||
BYTE = bytes([2])
|
||||
UINT16 = bytes([3])
|
||||
UINT32 = bytes([4])
|
||||
UINT64 = bytes([5])
|
||||
SBYTE = bytes([6])
|
||||
INT16 = bytes([7])
|
||||
INT32 = bytes([8])
|
||||
INT64 = bytes([9])
|
||||
CHAR = bytes([10])
|
||||
STRING = bytes([11])
|
||||
SINGLE = bytes([12])
|
||||
DOUBLE = bytes([13])
|
||||
DECIMAL = bytes([14])
|
||||
DATE = bytes([15])
|
||||
BYTEARRAY = bytes([16])
|
||||
CHARARRAY = bytes([17])
|
||||
Reference in New Issue
Block a user