Scenes Documentation Beta

Protocol Entity​Mouse​Click​Handler

public protocol EntityMouseClickHandler : EventHandler, RenderableEntity 

A type conforming to EntityMouseClickHandler is capable of receiving entity mouse click events through the onEntityMouseClick method.

Before receiving events, it must be registered with the dispatcher via the registerEntityMouseClickHandler method. Similarly, it should be unregistered before deinitialization via the unregisterEntityMouseClickHandler method available through the dispatcher.

%19 EntityMouseClickHandler EntityMouseClickHandler EventHandler EventHandler EntityMouseClickHandler->EventHandler RenderableEntity RenderableEntity EntityMouseClickHandler->RenderableEntity

Conforms To

EventHandler

An Eventhandler is a type capable of being registered with the Dispatcher to receive events of a certain type.

RenderableEntity

A RenderableEntity provides the majority of rendering and interactive functionality by overriding the required methods and working with the Dispatcher to register events of intrest.

Requirements

on​Entity​Mouse​Click(global​Location:​)

func onEntityMouseClick(globalLocation:Point)