public interface ScriptWrapper
Modifier and Type | Method and Description |
---|---|
void |
addClientEventListener(Client client,
java.lang.String event,
java.lang.String method)
Add a client event listener to the given room.
|
void |
addRoomEventListener(Room room,
java.lang.String event,
java.lang.String method)
Add a room event listener to the given room.
|
void |
addRoomEventListener(java.lang.String event,
java.lang.String method)
Add a room event listener to the room to which the room module script is attached.
|
void |
addServerEventListener(java.lang.String event,
java.lang.String method)
Add an event listener to the server.
|
void |
removeClientEventListener(Client client,
java.lang.String event,
java.lang.String method)
Remove an event listener from the given client.
|
void |
removeRoomEventListener(Room room,
java.lang.String event,
java.lang.String method)
Remove an event listener from the given room.
|
void |
removeRoomEventListener(java.lang.String event,
java.lang.String method)
Remove an event listener from the room to which the room module script is attached.
|
void |
removeServerEventListener(java.lang.String event,
java.lang.String method)
Remove an event listener from the server.
|
void addRoomEventListener(java.lang.String event, java.lang.String method)
event
- - the event the script wants to listen tomethod
- - the method that will be invoked on the script when the event occursvoid removeRoomEventListener(java.lang.String event, java.lang.String method)
event
- - the event the script was listening tomethod
- - the method that was invoked on the script when the event occursvoid addRoomEventListener(Room room, java.lang.String event, java.lang.String method)
room
- - the room to listen to for the event occurringevent
- - the event the script wants to listen tomethod
- - the method that will be invoked on the script when the event occursvoid removeRoomEventListener(Room room, java.lang.String event, java.lang.String method)
room
- - the room that was being listened toevent
- - the event the script was listening tomethod
- - the method that was invoked on the script when the event occursvoid addClientEventListener(Client client, java.lang.String event, java.lang.String method)
client
- - the room to listen to for the event occurringevent
- - the event the script wants to listen tomethod
- - the method that will be invoked on the script when the event occursvoid removeClientEventListener(Client client, java.lang.String event, java.lang.String method)
client
- - the client that was being listened toevent
- - the event the script was listening tomethod
- - the method that was invoked on the script when the event occursvoid addServerEventListener(java.lang.String event, java.lang.String method)
event
- - the event the script wants to listen tomethod
- - the method that will be invoked on the script when the event occursvoid removeServerEventListener(java.lang.String event, java.lang.String method)
event
- - the event the script was listening tomethod
- - the method that was invoked on the script when the event occurs