Add UnhookEventEx since HookEventEx already exists

Abierto
#2,602 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp
Área
game-dev

Línea de trabajo

The issue asks for an UnhookEventEx counterpart to HookEventEx, so start by finding where HookEventEx and UnhookEvent are declared and implemented, most likely in the event include and the C++ event manager. Read how UnhookEvent currently fails when the event is missing, then add a matching variant that returns quietly in that case. Done means a plugin can call UnhookEventEx for an event that does not exist on the current engine without an error.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Feature Request

Requesting a UnhookEventEx version like the HookEventEx.

I have some plugins that should work on multiple engines,
But since we don't know how each game is implemented, sometimes an obvious event may not exist

I usually do a hook method to hook only if the plugin is enabled, and then I unhook when goes disabled.
but if the event doesn't exist, then the UnhookEvent will throw an error

Lenguaje dominante
C++
Estrellas
1.2k
Forks
476
Merge medio
2 d 9 h
PR fusionados (30 d)
13

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de alliedmodders/sourcemod

Todos los issues de alliedmodders/sourcemod

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.