Skip to content

Contexts

ZSolarDev edited this page Nov 12, 2026 · 5 revisions

Some hooks will pass in parameters, some giving you you ___Context objects (mod "hooks" are an exception, and come in the form of normal parameters). Properties will be inside of this ___Context object, and some of these may be pointers from Project DIVA or a result that needs to be passed back to Project DIVA. These parameters are wrapped because hxcpp can easily cause native type wrapping issues otherwise. If there are any pointers, they will be typed as Star<T>. Ensure not to accidentally dereference these.

Available Contexts

HitContext

  • game | A pointer to the PVGameArcade which contains the target.
  • target | A pointer to the next PvGameTarget in line to be hit.
  • result | The resulting state of that hit. Either None or an alternative state from diva.types.HitState.

DscCtrlContext

  • data | A pointer to the PVGamePvData which contains the data of the PV being loaded.
  • entry | A pointer to the PvDBEntry for the data.
  • difficulty | A pointer to the PvDBDifficulty that contains information on the PV's difficulty.

PvDBParseContext

  • entry | A pointer to the entry currently being parsed.
  • result | The result as a Bool.

DrawContext

  • game | A pointer to the PVGameArcade being drawn.

TargetUpdateContext

  • game | A pointer to the PVGameArcade that owns the targets being updated.
  • dt | The deltatime as a Float32.

TargetContext

  • game | A pointer to the PVGameTarget which has its kiseki*(trail)* being drawn. (I need to rename this to target.)

ResultContext

  • result | The result as a Bool.

MenuSelectionContext

  • selection | A pointer to the PVSelectorSwitch of the menu.
  • result | The result as a Bool.

FTMenuSelectionContext

  • selection | A pointer to the PVselPS4 of the menu.
  • result | The result as a Bool.

BasicFTMenuSelectionContext

  • selection | A pointer to the PVselPS4 of the menu.

Clone this wiki locally