User Tools

Site Tools


playground:k75:irpl_test_code2

This is an old revision of the document!


Okay, I've removed the references to `GameSpace` and reviewed the information on handling vectors in IRPL. I've updated the documentation to use vector notation where appropriate.

====== CreateSand ====== CreateSand(<-x <-y <-sandDef)

Description

Creates sand at the specified coordinates (x, y) using the provided sand definition (`sandDef`).

Examples

10 20 1 ->sandDef ->y ->x 
CreateSand(<-x <-y <-sandDef)

See Also

* CreateSandInRoundArea * CreateSandInAreaRand * CreateSandInArea

====== CreateSandInRoundArea ====== CreateSandInRoundArea(<-rect <-probability <-sandDef)

Description

Creates sand within a rectangular area defined by a vector (`rect`) containing the bottom-left (x,y) and top-right (x,y) corner coordinates. The `probability` value (between 0 and 1) determines the chance of sand being created at each cell within the area. Sand is created using the specified `sandDef`. The `true` flag indicates that the area is treated as a round area.

Examples

{0 0 10 10} ->rect 
0.5 ->probability 
1 ->sandDef
CreateSandInRoundArea(<-rect <-probability <-sandDef)

See Also

* CreateSand * CreateSandInAreaRand * CreateSandInArea

====== CreateSandInAreaRand ====== CreateSandInAreaRand(<-rect <-probability <-sandDef)

Description

Creates sand within a rectangular area defined by a vector (`rect`) containing the bottom-left (x,y) and top-right (x,y) corner coordinates. The `probability` value (between 0 and 1) determines the chance of sand being created at each cell within the area. The distribution of sand is randomized. Sand is created using the specified `sandDef`. The `false` flag indicates that the area is treated as a rectangular area.

Examples

{0 0 10 10} ->rect
0.5 ->probability
1 ->sandDef
CreateSandInAreaRand(<-rect <-probability <-sandDef)

See Also

* CreateSand * CreateSandInRoundArea * CreateSandInArea

====== CreateSandInArea ====== CreateSandInArea(<-rect <-sandDef)

Description

Creates sand within a rectangular area defined by a vector (`rect`) containing the bottom-left (x,y) and top-right (x,y) corner coordinates. Sand is created at every cell within the area using the specified `sandDef`.

Examples

{0 0 10 10} ->rect
1 ->sandDef
CreateSandInArea(<-rect <-sandDef)

See Also

playground/k75/irpl_test_code2.1732551779.txt.gz · Last modified: 2025/02/14 14:56 (external edit)