-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added an AMX* property to callback events
This change addresses #20 by providing a way of associating RequestData and ResponseData objects to specific AMX instances. Unfortunately this breaks the isolation of impl.* files from AMX and SA:MP related code but it's a necessary change. When a request is created, the address of the AMX it is called from is stored into the request object which is then passed on to the response object when the request has finished. During the processTick function, each queued responses' AMX address is then checked against the AMX that called processTick to ensure no duplicate events are dispatched to AMX instances.
- Loading branch information
1 parent
1c4747e
commit 5e4e5c5
Showing
3 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters