CanInsertMaterial

Kategorie: Landschaft / Material
Ab Engineversion: 4.0 OC

Beschreibung

Tests if a material pixel at the given position can be inserted.

Syntax

bool CanInsertMaterial(int material_index, int x, int y, proplist out_insertpos);

Parameter

material_index:
Material to test to be inserted (see Material()).
x:
[opt] X-Einfügeposition/-offset
y:
[opt] Y-Einfügeposition/-offset
out_insertpos:
[opt] If a writeable proplist is passed, members x and y are filled with the position at which the material would be inserted.

Anmerkung

If the target position already contains material of the same density as the inserted material, the engine will search upwards for a proper insertion position.
Siehe auch: Material
Sven2, 2001-11