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

removeReceiver

Description

Removes a previously-added receiver via :addReceiver(). Must pass on the exact same object that was registered.

Arguments

1 table object

the object that was previously added via :addReceiver().

Example

local object = {
  handleObject = function(self, event, data)
    print("this is a dummy handleEvent method!")
  end
}

events:addReceiver(object)

-- do something


events:removeReceiver(object)