Skip to content
nyfrk edited this page Aug 22, 2020 · 1 revision

S4MapInitProc callback function

An application-defined or library-defined callback function used with the ISettlers4Api::AddMapInitListener method. The library calls this function whenever a map is loaded. It can be used to initialize your application for a new game.

The LPS4MAPINITCALLBACK type defines a pointer to this callback function.

Syntax

HRESULT S4HCALL S4MapInitProc(
	LPVOID lpReserved0,
	LPVOID lpReserved1
);

Parameters

lpReserved0

A parameter reserved for future use. Must be ignored.

lpReserved1

A parameter reserved for future use. Must be ignored.

Return value

Always return 0.

Remarks

none

Requirements

Minimum API Level 1
Target Edition Any
Header S4ModApi.h
Library S4ModApi.lib
DLL S4ModApi.dll

See also

ISettlers4Api

ISettlers4Api::AddMapInitListener

Clone this wiki locally