bz eGetWorldEvent

From BZFlagWiki
Revision as of 20:45, 30 November 2007 by Tulcod (Talk | contribs)

Jump to: navigation, search
BZFS API Documentation This page contains part of the BZFS API documentation for use by Plug-ins on the BZFS server.

BZFS Event. This page documents a BZFS event that is called by the game server to notify plug-ins of various actions and state changes in the game world.


The bz_eGetWorldEvent is an API event that is called when the world is defined.


bz_eGetWorldEvent returns the bz_GetWorldEventData_V1 data class.

name type value description
eventType bz_eEventType bz_eGetWorldEvent
generated bool Set to true if the world is generated (ie, not literally loaded from a file)
ctf bool Set to true if the game is a CTF-type game
rabit bool Set to true if the game is a Rabbit Hunt-type game
openFFA bool Set to true if the game is a Free For All-type game
worldFile bz_ApiString Path to the world file, set to "" (empty string) if not used
eventTime double Time of the event


This event is a notification only event, none of the data returned can be changed.