C# Class HelloWorld.GamePlayer

Show file Open project: Ivony/HelloWorld Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetInfo ( ) : object

获取可以用于显示的玩家信息

GetPlace ( Coordinate coordinate ) : HelloWorld.Place

根据玩家原点相对坐标获取地块

Save ( ) : System.Threading.Tasks.Task

通知保存玩家信息修改

Units ( ) : HelloWorld.Unit[]

获取玩家拥有的所有单位列表

operator ( ) : bool

Protected Methods

Method Description
GamePlayer ( IGameDataService service, System.Guid userId ) : System

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GamePlayer() protected method

protected GamePlayer ( IGameDataService service, System.Guid userId ) : System
service IGameDataService
userId System.Guid
return System

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetInfo() public method

获取可以用于显示的玩家信息
public GetInfo ( ) : object
return object

GetPlace() public method

根据玩家原点相对坐标获取地块
public GetPlace ( Coordinate coordinate ) : HelloWorld.Place
coordinate Coordinate 相对坐标
return HelloWorld.Place

Save() public abstract method

通知保存玩家信息修改
public abstract Save ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Units() public method

获取玩家拥有的所有单位列表
public Units ( ) : HelloWorld.Unit[]
return HelloWorld.Unit[]

operator() public static method

public static operator ( ) : bool
return bool