C# Class HelloWorld.PlaceActing

Datei anzeigen Open project: Ivony/HelloWorld Class Usage Examples

Public Methods

Method Description
Check ( System.DateTime now ) : void

检查活动状态

Equals ( object obj ) : bool
FromData ( HelloWorld.Place place, Newtonsoft.Json.Linq.JObject data ) : PlaceActing

从 JSON 数据中读取

GetHashCode ( ) : int
GetInfo ( ) : object

获取可以展示给玩家的信息

GetPlayer ( ) : GamePlayer

获取发起活动的玩家对象

ToJson ( ) : Newtonsoft.Json.Linq.JObject

Private Methods

Method Description
PlaceActing ( ) : System
StartAt ( GamePlayer player, HelloWorld.Place place, ActionDescriptorBase action ) : PlaceActing

在指定地块开始这个活动

Method Details

Check() public method

检查活动状态
public Check ( System.DateTime now ) : void
now System.DateTime
return void

Equals() public method

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

FromData() public static method

从 JSON 数据中读取
public static FromData ( HelloWorld.Place place, Newtonsoft.Json.Linq.JObject data ) : PlaceActing
place HelloWorld.Place 活动所处地块
data Newtonsoft.Json.Linq.JObject 活动数据
return PlaceActing

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetInfo() public method

获取可以展示给玩家的信息
public GetInfo ( ) : object
return object

GetPlayer() public method

获取发起活动的玩家对象
public GetPlayer ( ) : GamePlayer
return GamePlayer

ToJson() public method

public ToJson ( ) : Newtonsoft.Json.Linq.JObject
return Newtonsoft.Json.Linq.JObject