C# Class HelloWorld.GameHost

游戏宿主类型,用于获取游戏规则和游戏资源文件
Show file Open project: Ivony/HelloWorld

Public Methods

Method Description
Initialize ( GameRulesBase rules, IGameDataService dataService, IGameMessageService messageService ) : void
Random ( int maxValue ) : int

获取一个小于指定整数的随机整数数

Method Details

Initialize() public static method

public static Initialize ( GameRulesBase rules, IGameDataService dataService, IGameMessageService messageService ) : void
rules GameRulesBase
dataService IGameDataService
messageService IGameMessageService
return void

Random() public static method

获取一个小于指定整数的随机整数数
public static Random ( int maxValue ) : int
maxValue int 指定整数
return int