LobbyAPI - Open discussion
#39
Results from the hackathon: For now, no code, but we did get a few things done:

Results from a chaospad:
Code:
- The LobbyAPI plugin creates a minigame folder for minigames on startup in the root of the server - The minigame plugins in this folder are loaded on startup if the folder already exists - The Admin has to create a seperate world for the LobbyAPI to manage all the arenas - The Admin can create "Rooms" of each minigame by creating a sign with a specific syntax e.g. Line1: [Lobby] Line2: [NameOfGame] -- Game Timers First Timer -> Time for players to join the game Second Timer -> No players can join the game, players can join teams Third Timer -> Game is about to start Fourth timer -> deadline/time until the game ends -- The API works by expanding upon a baseclass similar as described here: https://forum.cuberite.org/thread-2240-post-23788.html#pid23788 -- How events are handled BaseClass = {    OnSomeEvent() } -- The child class can override functions from the base class including events and can call the default behavior if desired. ChildClass = {    function OnSomeEvent()        BaseClass.OnSomeEvent(self)        -- Other logic    end } -- How are teams initialized -- If teamsEnabled is false all players are on their own. -- else teams is an array of objects containing information about the teams. function InitializeTeams(teamsEnabled, teams, assignPlayerRandomlyOnJoin) end -- Initialize with teams enabled InitializeTeams(true, {        {            visible = true,            worldInteraction = true,            color = "blue"            name = "SUPER TEAM!"        }    } ) -- Initialize without teams enabled InitializeTeams(false)

We were also working with a mindmap: https://www.mindmeister.com/maps/show/732187302#
Reply
Thanks given by:


Messages In This Thread
LobbyAPI - Open discussion - by chrobione - 12-09-2015, 04:39 AM
RE: LobbyAPI - Open discussion - by xoft - 12-09-2015, 03:55 PM
RE: LobbyAPI - Open discussion - by NiLSPACE - 12-10-2015, 12:33 AM
RE: LobbyAPI - Open discussion - by xoft - 12-10-2015, 02:27 AM
RE: LobbyAPI - Open discussion - by NiLSPACE - 12-10-2015, 06:19 PM
RE: LobbyAPI - Open discussion - by NiLSPACE - 12-10-2015, 07:35 AM
RE: LobbyAPI - Open discussion - by sphinxc0re - 12-10-2015, 07:40 AM
RE: LobbyAPI - Open discussion - by NiLSPACE - 12-10-2015, 08:00 AM
RE: LobbyAPI - Open discussion - by sphinxc0re - 12-10-2015, 09:34 AM
RE: LobbyAPI - Open discussion - by chrobione - 12-10-2015, 03:17 PM
RE: LobbyAPI - Open discussion - by sphinxc0re - 12-10-2015, 06:06 PM
RE: LobbyAPI - Open discussion - by Seadragon91 - 12-10-2015, 06:15 PM
RE: LobbyAPI - Open discussion - by jan64 - 12-11-2015, 01:11 AM
RE: LobbyAPI - Open discussion - by LO1ZB - 12-11-2015, 05:55 AM
RE: LobbyAPI - Open discussion - by chrobione - 12-11-2015, 06:00 AM
RE: LobbyAPI - Open discussion - by LO1ZB - 12-11-2015, 06:01 AM
RE: LobbyAPI - Open discussion - by xoft - 12-11-2015, 08:33 PM
RE: LobbyAPI - Open discussion - by NiLSPACE - 12-11-2015, 08:51 PM
RE: LobbyAPI - Open discussion - by xoft - 12-11-2015, 09:02 PM
RE: LobbyAPI - Open discussion - by LO1ZB - 12-11-2015, 10:33 PM
RE: LobbyAPI - Open discussion - by xoft - 12-11-2015, 10:34 PM
RE: LobbyAPI - Open discussion - by sphinxc0re - 07-13-2016, 06:07 PM
RE: LobbyAPI - Open discussion - by NiLSPACE - 07-13-2016, 08:04 PM
RE: LobbyAPI - Open discussion - by sphinxc0re - 07-13-2016, 11:39 PM
RE: LobbyAPI - Open discussion - by sphinxc0re - 07-14-2016, 11:38 PM
RE: LobbyAPI - Open discussion - by NiLSPACE - 07-15-2016, 12:54 AM
RE: LobbyAPI - Open discussion - by xoft - 07-15-2016, 07:30 AM
RE: LobbyAPI - Open discussion - by sphinxc0re - 07-15-2016, 05:26 PM
RE: LobbyAPI - Open discussion - by NiLSPACE - 07-15-2016, 05:34 PM
RE: LobbyAPI - Open discussion - by sphinxc0re - 07-23-2016, 04:56 AM
RE: LobbyAPI - Open discussion - by NiLSPACE - 07-23-2016, 05:51 AM
RE: LobbyAPI - Open discussion - by sphinxc0re - 07-23-2016, 09:59 PM
RE: LobbyAPI - Open discussion - by NiLSPACE - 07-23-2016, 10:57 PM
RE: LobbyAPI - Open discussion - by NiLSPACE - 07-24-2016, 03:09 AM
RE: LobbyAPI - Open discussion - by xoft - 07-24-2016, 05:03 AM
RE: LobbyAPI - Open discussion - by NiLSPACE - 07-30-2016, 11:44 PM
RE: LobbyAPI - Open discussion - by yangm97 - 12-03-2016, 11:22 PM



Users browsing this thread: 1 Guest(s)