Add UnhookEventEx since HookEventEx already exists

オープン
#2,602 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
game-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C++
スター
1.2k
フォーク
476
平均マージ
2日 9時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

alliedmodders/sourcemod のほかの issue

alliedmodders/sourcemod の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。