This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.lua
105 lines (74 loc) · 2.32 KB
/
main.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
local Lib = require 'functions'
local Queue = require 'services.queue'
local queue = Queue:new()
do
local party = Lib.CreateParty()
local players = {
{ id = 1, partyId = party.id, name = 'ViperGT', leader = true }
}
for playerIdx = 1, #players do
local player = Lib.CreatePlayer(players[playerIdx])
party:addPlayer(player:getId())
end
queue:addParty(party)
end
do
local party = Lib.CreateParty()
local players = {
{ id = 2, partyId = party.id, name = 'BlazeGamer' },
{ id = 3, partyId = party.id, name = 'SpeedRacer' },
{ id = 4, partyId = party.id, name = 'ShadowNinja', leader = true },
{ id = 5, partyId = party.id, name = 'PhoenixFire' }
}
for playerIdx = 1, #players do
local player = Lib.CreatePlayer(players[playerIdx])
party:addPlayer(player:getId())
end
queue:addParty(party)
end
do
local party = Lib.CreateParty()
local players = {
{ id = 6, partyId = party.id, name = 'ThunderBolt', leader = true },
{ id = 7, partyId = party.id, name = 'GhostRider' }
}
for playerIdx = 1, #players do
local player = Lib.CreatePlayer(players[playerIdx])
party:addPlayer(player:getId())
end
queue:addParty(party)
end
do
local party = Lib.CreateParty()
local players = {
{ id = 8, partyId = party.id, name = 'NeonSpectre' },
{ id = 9, partyId = party.id, name = 'DriftKing', leader = true }
}
for playerIdx = 1, #players do
local player = Lib.CreatePlayer(players[playerIdx])
party:addPlayer(player:getId())
end
queue:addParty(party)
end
do
local party = Lib.CreateParty()
local players = {
{ id = 10, partyId = party.id, name = 'MidnightWolf', leader = true }
}
for playerIdx = 1, #players do
local player = Lib.CreatePlayer(players[playerIdx], party)
party:addPlayer(player:getId())
end
queue:addParty(party)
end
-- do
-- local party = Lib.CreateParty()
-- local players = {
-- { id = 11, partyId = party.id, name = 'MidnightWolf2', leader = true }
-- }
-- for playerIdx = 1, #players do
-- local player = Lib.CreatePlayer(players[playerIdx], party)
-- party:addPlayer(player:getId())
-- end
-- queue:addParty(party)
-- end