Skip to content
nyfrk edited this page Feb 2, 2022 · 2 revisions

ISettlers4Api::GetSelection method

Get the current selection. This will retrieve the indices of the objects in the settlers pool.

Syntax

BOOL ISettlers4Api::GetSelection(
	PWORD lpOut, 
	SIZE_T szOut, 
	PSIZE_T lpSelectionCount
);

Parameters

lpOut

A buffer that receives the indices. If this parameter is NULL it is ignored.

szOut

The length of the buffer in elements.

lpSelectionCount

If this parameter is NULL it is ignored. Otherwise it will point to a SIZE_T that will receive the amount of elements in the current selection.

Return value

If this method could get the selection successfully it will return TRUE. If an error occurred it will return FALSE.

Remarks

none

Requirements

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

See also

ISettlers4Api

ISettlers4Api::RemoveSelection

ISettlers4Api::ClearSelection

ISettlers4Api::SetMaxSelection

ISettlers4Api::GetMaxSelection

Clone this wiki locally