Empyrion: Galactic Survival Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Empyrion: Galactic Survival Wiki
976
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Game API ModInterface
(section)
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
Game API ModInterface
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== ModInterface == Interface Empyrion will use to access your mod. This is what Empyrion will call from your DLL. All mod DLLs must have this interface implemented in their DLL for Empyrion to recognise the mod. === void Game_Start([[Game_API_ModGameAPI|ModGameAPI]] dediAPI); === This is called when the game starts. The ModGameAPI that is passed will be used by your mod for communication with the game === void Game_Update(); === It is during the invocation of this function that you are allowed to submit to the [[Game_API_ModGameAPI|ModGameAPI]] using the Game_Request function. This occurs on every game_update (tick) === void Game_Event([[Game API CmdId|CmdId]] eventId, ushort seqNr, object data); === This is called by the game when a qualifying event is triggered. Note that the prototype for this function is the same as Game_Request. The arguments to the function describe the event that has occurred in the game. {| class="wikitable" |- ! Parameter !! Description |- | [[Game API CmdId|CmdId]] eventId || Enum representing what event was triggered. |- | ushort seqNr|| When related to a request, this will match the corresponding request's sequence number. |- | object data|| Additional information that may be relevant. See [[Game API CmdId|CmdId]] for more detail. |} You can also submit to the [[Game_API_ModGameAPI|ModGameAPI]] using the Game_Request function, from here. === void Game_Exit(); === This is called on exit, and is a signal that you should dispose/clean up any resources that were in use
Summary:
Please note that all contributions to the Empyrion: Galactic Survival Wiki are considered to be released under the CC BY-SA 3.0
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab