Automated: update Fields |
Automated: update Replace |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|Name=Maze Generator | |Name=Maze Generator | ||
}} | }} | ||
The '''MazeGenerator''' component generates a maze (with a ton of [[Slot|slots]]) with given parameters. | |||
{{Table ComponentFields | {{Table ComponentFields | ||
|Seed|Int| | |Seed|Int| The random seed for generating this maze. | ||
|Cells|Int2| | |Cells|Int2| The maze square sections for this generated maze. | ||
|WallSize|Float2| | |WallSize|Float2| X: how long the walls are, Y: how tall the walls are. | ||
|Point0|Int2| | |Point0|Int2| The start position for this maze. | ||
|Point1|Int2| | |Point1|Int2| The end position for this maze. | ||
|Material|MaterialProvider| | |Material|MaterialProvider| The material for the walls of the maze. | ||
|Bake|Bool| | |Bake|Bool| Bakes the generated maze. | ||
}} | }} | ||
== | == Sync Delegates == | ||
{{Table ComponentTriggers | |||
|Generate()|[[Type:Action|Action]]| | |||
}} | |||
== Usage == | |||
Great for prototyping mazes, and can be baked. | |||
== Examples == | == Examples == | ||
Line 23: | Line 29: | ||
[[Category:Components:Generators{{#translation:}}|Maze Generator]] | [[Category:Components:Generators{{#translation:}}|Maze Generator]] | ||
[[Category:ComponentStubs]] | |||
[[Category:Components{{#translation:}}|Maze Generator]] | [[Category:Components{{#translation:}}|Maze Generator]] | ||
Latest revision as of 21:06, 6 November 2024
Component image
The MazeGenerator component generates a maze (with a ton of slots) with given parameters.
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
Seed
|
Int | The random seed for generating this maze. |
Cells
|
Int2 | The maze square sections for this generated maze. |
WallSize
|
Float2 | X: how long the walls are, Y: how tall the walls are. |
Point0
|
Int2 | The start position for this maze. |
Point1
|
Int2 | The end position for this maze. |
Material
|
MaterialProvider | The material for the walls of the maze. |
Bake
|
Bool | Bakes the generated maze. |
Sync Delegates
Method Name | Method type and Arguments. | Description |
---|---|---|
Generate()
|
Action |
Usage
Great for prototyping mazes, and can be baked.