Crosstales.TrueRandom.Module.ModuleVector2 Class Reference

This generator will generate true random Vector2 in configurable intervals. More...

Inheritance diagram for Crosstales.TrueRandom.Module.ModuleVector2:
Crosstales.TrueRandom.Module.BaseModule

Static Public Member Functions

static System.Collections.IEnumerator Generate (Vector2 min, Vector2 max, int number=1, bool prng=false, bool silent=false, string id="")
 Generates random Vector2. More...
 
static System.Collections.Generic.List< Vector2 > GeneratePRNG (Vector2 min, Vector2 max, int number=1, int seed=0)
 Generates random Vector2 with the C#-standard Pseudo-Random-Number-Generator. More...
 
static System.Collections.Generic.List< Vector2 > GenerateInEditor (Vector2 min, Vector2 max, int number=1, bool prng=false, string id="")
 Generates random Vector2 (Editor only). More...
 

Static Public Attributes

static System.Collections.Generic.List< Vector2 > Result => new System.Collections.Generic.List<Vector2>(result)
 Returns the list of Vector2 from the last generation. More...
 

Events

static GenerateVector2Start OnGenerateStart
 Event to get a message when generating Vector2 has started. More...
 
static GenerateVector2Finished OnGenerateFinished
 Event to get a message with the generated Vector2 when finished. More...
 
- Events inherited from Crosstales.TrueRandom.Module.BaseModule
static ErrorInfo OnErrorInfo
 Event to get a message when an error occured. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Crosstales.TrueRandom.Module.BaseModule
static void onErrorInfo (string errorInfo, string id)
 
- Static Protected Attributes inherited from Crosstales.TrueRandom.Module.BaseModule
const int timeout = 5
 

Detailed Description

This generator will generate true random Vector2 in configurable intervals.

Member Function Documentation

◆ Generate()

static System.Collections.IEnumerator Crosstales.TrueRandom.Module.ModuleVector2.Generate ( Vector2  min,
Vector2  max,
int  number = 1,
bool  prng = false,
bool  silent = false,
string  id = "" 
)
static

Generates random Vector2.

Parameters
minSmallest possible Vector2 (range: -1'000'000'000 - 1'000'000'000)
maxBiggest possible Vector2 (range: -1'000'000'000 - 1'000'000'000)
numberHow many vectors you want to generate (range: 1 - 10'000, default: 1, optional)
prngUse Pseudo-Random-Number-Generator (default: false, optional)
silentIgnore callbacks (default: false, optional)
idid to identify the generated result (optional)

◆ GenerateInEditor()

static System.Collections.Generic.List<Vector2> Crosstales.TrueRandom.Module.ModuleVector2.GenerateInEditor ( Vector2  min,
Vector2  max,
int  number = 1,
bool  prng = false,
string  id = "" 
)
static

Generates random Vector2 (Editor only).

Parameters
minSmallest possible Vector2 (range: -1'000'000'000 - 1'000'000'000)
maxBiggest possible Vector2 (range: -1'000'000'000 - 1'000'000'000)
numberHow many Vector2 you want to generate (range: 1 - 10'000, default: 1, optional)
prngUse Pseudo-Random-Number-Generator (default: false, optional)
idid to identify the generated result (optional)
Returns
List with the generated Vector2.

◆ GeneratePRNG()

static System.Collections.Generic.List<Vector2> Crosstales.TrueRandom.Module.ModuleVector2.GeneratePRNG ( Vector2  min,
Vector2  max,
int  number = 1,
int  seed = 0 
)
static

Generates random Vector2 with the C#-standard Pseudo-Random-Number-Generator.

Parameters
minSmallest possible Vector2
maxBiggest possible Vector2
numberHow many Vector2 you want to generate (default: 1, optional)
seedSeed for the PRNG (default: 0 (=standard), optional)
Returns
List with the generated Vector2.

Member Data Documentation

◆ Result

System.Collections.Generic.List<Vector2> Crosstales.TrueRandom.Module.ModuleVector2.Result => new System.Collections.Generic.List<Vector2>(result)
static

Returns the list of Vector2 from the last generation.

Returns
List of Vector2 from the last generation.

Event Documentation

◆ OnGenerateFinished

GenerateVector2Finished Crosstales.TrueRandom.Module.ModuleVector2.OnGenerateFinished
static

Event to get a message with the generated Vector2 when finished.

◆ OnGenerateStart

GenerateVector2Start Crosstales.TrueRandom.Module.ModuleVector2.OnGenerateStart
static

Event to get a message when generating Vector2 has started.


The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/TrueRandom/TrueRandomPro/Assets/Plugins/crosstales/TrueRandom/Scripts/Module/ModuleVector2.cs