C# Class Dwarrowdelf.Server.BaseObject

Inheritance: IBaseObject
显示文件 Open project: tomba/dwarrowdelf Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Destruct ( ) : void
SendTo ( IPlayer player, ObjectVisibility visibility ) : void

Protected Methods

Method Description
BaseObject ( ObjectType objectType ) : System
BaseObject ( SaveGameContext ctx, ObjectType objectType ) : System
CollectObjectData ( BaseGameObjectData baseData, ObjectVisibility visibility ) : void
Initialize ( World world ) : void
NotifyBool ( PropertyID id, bool value ) : void
NotifyInt ( PropertyID id, int value ) : void
NotifyString ( PropertyID id, string value ) : void
NotifyValue ( PropertyID id, ValueType value ) : void
SerializeProperties ( ) : object>.Dictionary

Method Details

BaseObject() protected method

protected BaseObject ( ObjectType objectType ) : System
objectType ObjectType
return System

BaseObject() protected method

protected BaseObject ( SaveGameContext ctx, ObjectType objectType ) : System
ctx SaveGameContext
objectType ObjectType
return System

CollectObjectData() protected method

protected CollectObjectData ( BaseGameObjectData baseData, ObjectVisibility visibility ) : void
baseData BaseGameObjectData
visibility ObjectVisibility
return void

Destruct() public method

public Destruct ( ) : void
return void

Initialize() protected method

protected Initialize ( World world ) : void
world World
return void

NotifyBool() protected method

protected NotifyBool ( PropertyID id, bool value ) : void
id PropertyID
value bool
return void

NotifyInt() protected method

protected NotifyInt ( PropertyID id, int value ) : void
id PropertyID
value int
return void

NotifyString() protected method

protected NotifyString ( PropertyID id, string value ) : void
id PropertyID
value string
return void

NotifyValue() protected method

protected NotifyValue ( PropertyID id, ValueType value ) : void
id PropertyID
value System.ValueType
return void

SendTo() public abstract method

public abstract SendTo ( IPlayer player, ObjectVisibility visibility ) : void
player IPlayer
visibility ObjectVisibility
return void

SerializeProperties() protected method

protected SerializeProperties ( ) : object>.Dictionary
return object>.Dictionary