| 104 | } |
| 105 | |
| 106 | static cell_t sm_CreateEvent(IPluginContext *pContext, const cell_t *params) |
| 107 | { |
| 108 | char *name; |
| 109 | EventInfo *pInfo; |
| 110 | |
| 111 | pContext->LocalToString(params[1], &name); |
| 112 | |
| 113 | pInfo = g_EventManager.CreateEvent(pContext, name, params[2] ? true : false); |
| 114 | |
| 115 | if (pInfo) |
| 116 | { |
| 117 | return handlesys->CreateHandle(g_EventManager.GetHandleType(), pInfo, pContext->GetIdentity(), g_pCoreIdent, NULL); |
| 118 | } |
| 119 | |
| 120 | return BAD_HANDLE; |
| 121 | } |
| 122 | |
| 123 | static cell_t sm_FireEvent(IPluginContext *pContext, const cell_t *params) |
| 124 | { |
nothing calls this directly
no test coverage detected