ManiaMap.Unity
Procedural generation of metroidvania style maps for Unity.
Rand Class Reference

Contains methods for creating random ID's. More...

Static Public Member Functions

static int AutoAssignId (int id)
 If the specified ID is greater than zero, returns the ID. Otherwise, returns a random positive integer. More...
 
static int GetRandomId ()
 Returns a random positive integer. More...
 

Detailed Description

Contains methods for creating random ID's.

Definition at line 8 of file Rand.cs.

Member Function Documentation

◆ AutoAssignId()

static int AutoAssignId ( int  id)
static

If the specified ID is greater than zero, returns the ID. Otherwise, returns a random positive integer.

Parameters
idThe ID to test for validity.

Definition at line 15 of file Rand.cs.

◆ GetRandomId()

static int GetRandomId ( )
static

Returns a random positive integer.

Definition at line 23 of file Rand.cs.


The documentation for this class was generated from the following file: