LobbyAPI - Open discussion
#2
Whoops. I put my post on the other thread. I guess I'll move it over here. Tongue

EDIT:

Already privately working on it a bit, I might post stuff on GitHub in a few days/a week or so. Smile My question is, how would you want the API to be laid out?

For example, I was thinking of placing everything in a single (well organized and commented this time) .lua file and have it so that the plugin developer could drop that file in with the rest of his plugin and be able to pass tables. Then I could create functions which accept a table of arguments for arena creation and stuff. The API would mostly control the state of arena objects and player modifiers by itself.


NewMinigame = 
{
    -- This would contain a bunch of hooks, including normal player hooks for each person in the arena, and a tick function, I\'ll have to get a bit more in depth with it.
    -- Basically, the developer would create a minigame table specific to what they want to make and stick it here and it will run this code for each arena with this minigame.
}

local NewArgs = {
    -- Name the arena, a function could be used to grab a reference using this later
    Name = "NiceArenaYouGotThere",
    -- Define the bounding box that the arena covers
    MinCoord = Vector3d(-50, 50, -50),
    MaxCoord = Vector3d(50, 70, 50),
    IsSolid = true,
    Minigame = NewMinigame
}

local NewArena = LNewArena(NewArgs)

Mainly just ideas and stuff for now, input for how you guys want this laid out would be nice.
Reply
Thanks given by:


Messages In This Thread
LobbyAPI - Open discussion - by chrobione - 12-09-2015, 04:39 AM
RE: LobbyAPI - Open discussion - by DiamondToaster - 12-09-2015, 06:48 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: 2 Guest(s)