C# Class MUDServer.EntityBase

Inheritance: IEntity, IDisposable
显示文件 Open project: sq/Fracture

Protected Properties

Property Type Description
_Description string
_Name string
_State string

Public Methods

Method Description
Dispose ( ) : void
EntityBase ( Location location, string name ) : System
NotifyEvent ( EventType type, object evt ) : void
ToString ( ) : string

Protected Methods

Method Description
AddEventHandler ( EventType type, EventHandler handler ) : void
DispatchEvent ( EventType type, object evt ) : IEnumerator
EventDispatchTask ( ) : IEnumerator
GetDefaultName ( ) : string
GetNewEvent ( ) : IFuture
InvokeEventHandlers ( EventType type, object evt, EventHandler handlers ) : IEnumerator
OnLocationChange ( Location oldLocation, Location newLocation ) : void
ShouldFilterNewEvent ( EventType type, object evt ) : bool
ThinkTask ( ) : IEnumerator

Method Details

AddEventHandler() protected method

protected AddEventHandler ( EventType type, EventHandler handler ) : void
type EventType
handler EventHandler
return void

DispatchEvent() protected method

protected DispatchEvent ( EventType type, object evt ) : IEnumerator
type EventType
evt object
return IEnumerator

Dispose() public method

public Dispose ( ) : void
return void

EntityBase() public method

public EntityBase ( Location location, string name ) : System
location Location
name string
return System

EventDispatchTask() protected method

protected EventDispatchTask ( ) : IEnumerator
return IEnumerator

GetDefaultName() protected static method

protected static GetDefaultName ( ) : string
return string

GetNewEvent() protected method

protected GetNewEvent ( ) : IFuture
return IFuture

InvokeEventHandlers() protected method

protected InvokeEventHandlers ( EventType type, object evt, EventHandler handlers ) : IEnumerator
type EventType
evt object
handlers EventHandler
return IEnumerator

NotifyEvent() public method

public NotifyEvent ( EventType type, object evt ) : void
type EventType
evt object
return void

OnLocationChange() protected method

protected OnLocationChange ( Location oldLocation, Location newLocation ) : void
oldLocation Location
newLocation Location
return void

ShouldFilterNewEvent() protected method

protected ShouldFilterNewEvent ( EventType type, object evt ) : bool
type EventType
evt object
return bool

ThinkTask() protected method

protected ThinkTask ( ) : IEnumerator
return IEnumerator

ToString() public method

public ToString ( ) : string
return string

Property Details

_Description protected_oe property

protected string _Description
return string

_Name protected_oe property

protected string _Name
return string

_State protected_oe property

protected string _State
return string