Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

send

Description

Fires out an event. An alias to this method is called 'fire'.

Arguments

1 string eventName

the event to fire out.

2 vararg arguments

any amount of arguments to pass into the receivers event handling method.

Example

events:send("eventOne", "one two three", 123, {1, 2, 3})

-- alias of 'send'

events:fire("eventOne", "one two three", 123, {1, 2, 3})