-
Notifications
You must be signed in to change notification settings - Fork 0
/
headerUMM.lua
77 lines (63 loc) · 2.58 KB
/
headerUMM.lua
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---@diagnostic disable: lowercase-global, unused-local
----------------------------------------------------------------------------------
-- Callbacks --
----------------------------------------------------------------------------------
--[[
opponentNoteMiss(id: number, noteData: number, noteType: string, isSustainNote: boolean)
onTaunt(number: 1|2|3|4, character: "boyfriend" | "dad")
onReceive(message: string, side: "left" | "right")
onGameSet(winner: string, forfeit: boolean)
onResultScreen()
onResultsQuit()
onResultStats(name: table, accuracy: table, misses: table, score: table, average: table)
[1] - Left Player
[2] - Right Player
--]]
----------------------------------------------------------------------------------
-- Variables --
----------------------------------------------------------------------------------
---True if you are hosting in online\
---multiplayer, and false otherwise.
---@type boolean
Hosting = nil;
---True if you are the opponent,\
---and false otherwise.
---@type boolean
leftSide = nil;
---True if you are in local multiplayer,\
---and false otherwise.
---@type boolean
localPlay = nil;
---True if you are in online multiplayer,\
---and false otherwise.
---@type boolean
onlinePlay = nil;
--- The version of the Unnamed Multiplayer,\
--- Mod, which is being used.
---@type number
UMMversion = nil;
----------------------------------------------------------------------------------
-- Functions --
----------------------------------------------------------------------------------
---Sends `message` to the other connected\
---player in online multiplayer.
---@param message string A message string to send
function send(message) end
---Sets `character`'s scale to `size`.
---@param character "boyfriend" | "dad" The character to resize
---@param size number The new size for the character
function characterRezise(character, size) end
---Flips `character` horizontally while making\
---sure all animations are offsetted correctly.\
---(Only works on custom characters due to the\
---use of left and right .json files)
---@param character "boyfriend" | "dad" The character to flip
function characterFlip(character) end
---Gets the path to `character`'s .json file\
---only if a custom character is being used.
---@param character "boyfriend" | "dad" The character to get the path to
---@return string path The path to the character's .json file
function getCharPath(character) return '' end
---Gets the path to the stage's .lua file.
---@return string path The path to the stage's .lua file
function getStagePath() return '' end