メインコンテンツにスキップ

ModUtil & Events

Events in Elin can be registered via BaseModManager.SubscribeEvent<T>(EventId, Action<T>). Some of them also offer attribute usages allowing automatic subscription.

Game IO

  • EVENT.PreLoad, [ElinPreLoad]
  • EVENT.PostLoad, [ElinPostLoad]
  • EVENT.NewGame, [ElinPostLoad] // <- Same attribute
  • EVENT.PreSave, [ElinPreSave]
  • EVENT.PostSave, [ElinPostSave]

Parameter: GameIOContext

Game System

  • EVENT.CharaCreated, [ElinCharaOnCreate]
  • EVENT.ThingCreated, [ElinThingOnCreate]

Parameter: Chara or Thing

  • EVENT.ActPerformed, [ElinActPerform]

Parameter: Act that just performed

  • ModUtil.AddContextMenuEntry, [ElinContextMenuEntry]

Parameter: string langEntry, string langDisplay = "" Registers a context menu entry, such as SubGroup/ModButton1.

  • EVENT.PreSceneInit
  • EVENT.PostSceneInit

Parameter: Scene.Mode

Source

  • EVENT.SourceImporting
  • EVENT.SourceImported
  • EVENT.SourceLangSet

Drama

  • [ElinDramaActionInvoke]
  • [ElinDramaActionParser]

See Drama API

This project is an unofficial documentation site and is not affiliated with, endorsed by, or associated with Elin or Lafrontier / Noa. All trademarks are the property of their respective owners.