Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Random

Public 成员函数

 Random ()
 Random (int seed)
void Seed ()
void Seed (int seed)
int Sign ()
bool Bool ()
bool Bool (float probability)
uint UInt ()
int Int ()
int Int (int bound)
int Int (int min, int max)
float Float ()
float Float (float min, float max)
float NormalFloat (float mean, float stddev)
Vector2 Vector2 ()
Vector2 Vector2 (float length)
Vector2 Vector2 (float minLength, float maxLength)
Vector3 Vector3 ()
Vector3 Vector3 (float length)
Vector3 Vector3 (float minLength, float maxLength)

属性

ulong State [get, set]

静态 Private 成员函数

static uint RotateLeft (uint x, int k)

Private 属性

uint m_s0
uint m_s1

静态 Private 属性

static int m_counter = (int)(Stopwatch.GetTimestamp() + DateTime.Now.Ticks)

详细描述

在文件 Random.cs4 行定义.

构造及析构函数说明

◆ Random() [1/2]

Engine.Random.Random ( )

在文件 Random.cs19 行定义.

函数调用图:

◆ Random() [2/2]

Engine.Random.Random ( int seed)

在文件 Random.cs23 行定义.

函数调用图:

成员函数说明

◆ Bool() [1/2]

bool Engine.Random.Bool ( )

在文件 Random.cs38 行定义.

◆ Bool() [2/2]

bool Engine.Random.Bool ( float probability)

在文件 Random.cs40 行定义.

◆ Float() [1/2]

float Engine.Random.Float ( )

在文件 Random.cs57 行定义.

这是这个函数的调用关系图:

◆ Float() [2/2]

float Engine.Random.Float ( float min,
float max )

在文件 Random.cs59 行定义.

◆ Int() [1/3]

int Engine.Random.Int ( )

在文件 Random.cs51 行定义.

◆ Int() [2/3]

int Engine.Random.Int ( int bound)

在文件 Random.cs53 行定义.

◆ Int() [3/3]

int Engine.Random.Int ( int min,
int max )

在文件 Random.cs55 行定义.

◆ NormalFloat()

float Engine.Random.NormalFloat ( float mean,
float stddev )

在文件 Random.cs61 行定义.

函数调用图:

◆ RotateLeft()

uint Engine.Random.RotateLeft ( uint x,
int k )
staticprivate

在文件 Random.cs117 行定义.

这是这个函数的调用关系图:

◆ Seed() [1/2]

void Engine.Random.Seed ( )

在文件 Random.cs27 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Seed() [2/2]

void Engine.Random.Seed ( int seed)

在文件 Random.cs31 行定义.

◆ Sign()

int Engine.Random.Sign ( )

在文件 Random.cs36 行定义.

◆ UInt()

uint Engine.Random.UInt ( )

在文件 Random.cs42 行定义.

函数调用图:

◆ Vector2() [1/3]

Vector2 Engine.Random.Vector2 ( )

在文件 Random.cs75 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Vector2() [2/3]

Vector2 Engine.Random.Vector2 ( float length)

在文件 Random.cs94 行定义.

函数调用图:

◆ Vector2() [3/3]

Vector2 Engine.Random.Vector2 ( float minLength,
float maxLength )

在文件 Random.cs96 行定义.

函数调用图:

◆ Vector3() [1/3]

Vector3 Engine.Random.Vector3 ( )

在文件 Random.cs98 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Vector3() [2/3]

Vector3 Engine.Random.Vector3 ( float length)

在文件 Random.cs113 行定义.

函数调用图:

◆ Vector3() [3/3]

Vector3 Engine.Random.Vector3 ( float minLength,
float maxLength )

在文件 Random.cs115 行定义.

函数调用图:

类成员变量说明

◆ m_counter

int Engine.Random.m_counter = (int)(Stopwatch.GetTimestamp() + DateTime.Now.Ticks)
staticprivate

在文件 Random.cs5 行定义.

◆ m_s0

uint Engine.Random.m_s0
private

在文件 Random.cs7 行定义.

◆ m_s1

uint Engine.Random.m_s1
private

在文件 Random.cs9 行定义.

属性说明

◆ State

ulong Engine.Random.State
getset

在文件 Random.cs11 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine/Random.cs