C# Class KBEngine.Entity

Datei anzeigen Open project: liuxq/TestGame Class Usage Examples

Public Properties

Property Type Description
_entityLastLocalDir Vector3
_entityLastLocalPos Vector3
baseMailbox Mailbox
cellMailbox Mailbox
className string
direction Vector3
id System.Int32
inWorld bool
inited bool
isControlled bool
isOnGround bool
position Vector3
renderObj object
velocity float

Public Methods

Method Description
Entity ( ) : System
__init__ ( ) : void
addDefinedProperty ( string name, object v ) : void
baseCall ( string methodname ) : void
callPropertysSetMethods ( ) : void
cellCall ( string methodname ) : void
clear ( ) : void
enterSpace ( ) : void
enterWorld ( ) : void
getDefinedProperty ( string name ) : object
getDefinedPropertyByUType ( UInt16 utype ) : object
isPlayer ( ) : bool
leaveSpace ( ) : void
leaveWorld ( ) : void
onControlled ( bool isControlled_ ) : void

This callback method is called when the local entity control by the client has been enabled or disabled. See the Entity.controlledBy() method in the CellApp server code for more infomation.

onDestroy ( ) : void
onEnterSpace ( ) : void
onEnterWorld ( ) : void
onLeaveSpace ( ) : void
onLeaveWorld ( ) : void
onUpdateVolatileData ( ) : void
setDefinedProperty ( string name, object val ) : void
setDefinedPropertyByUType ( UInt16 utype, object val ) : void
set_direction ( object old ) : void
set_position ( object old ) : void

Method Details

Entity() public method

public Entity ( ) : System
return System

__init__() public method

public __init__ ( ) : void
return void

addDefinedProperty() public method

public addDefinedProperty ( string name, object v ) : void
name string
v object
return void

baseCall() public method

public baseCall ( string methodname ) : void
methodname string
return void

callPropertysSetMethods() public method

public callPropertysSetMethods ( ) : void
return void

cellCall() public method

public cellCall ( string methodname ) : void
methodname string
return void

clear() public static method

public static clear ( ) : void
return void

enterSpace() public method

public enterSpace ( ) : void
return void

enterWorld() public method

public enterWorld ( ) : void
return void

getDefinedProperty() public method

public getDefinedProperty ( string name ) : object
name string
return object

getDefinedPropertyByUType() public method

public getDefinedPropertyByUType ( UInt16 utype ) : object
utype System.UInt16
return object

isPlayer() public method

public isPlayer ( ) : bool
return bool

leaveSpace() public method

public leaveSpace ( ) : void
return void

leaveWorld() public method

public leaveWorld ( ) : void
return void

onControlled() public method

This callback method is called when the local entity control by the client has been enabled or disabled. See the Entity.controlledBy() method in the CellApp server code for more infomation.
public onControlled ( bool isControlled_ ) : void
isControlled_ bool
return void

onDestroy() public method

public onDestroy ( ) : void
return void

onEnterSpace() public method

public onEnterSpace ( ) : void
return void

onEnterWorld() public method

public onEnterWorld ( ) : void
return void

onLeaveSpace() public method

public onLeaveSpace ( ) : void
return void

onLeaveWorld() public method

public onLeaveWorld ( ) : void
return void

onUpdateVolatileData() public method

public onUpdateVolatileData ( ) : void
return void

setDefinedProperty() public method

public setDefinedProperty ( string name, object val ) : void
name string
val object
return void

setDefinedPropertyByUType() public method

public setDefinedPropertyByUType ( UInt16 utype, object val ) : void
utype System.UInt16
val object
return void

set_direction() public method

public set_direction ( object old ) : void
old object
return void

set_position() public method

public set_position ( object old ) : void
old object
return void

Property Details

_entityLastLocalDir public_oe property

public Vector3 _entityLastLocalDir
return Vector3

_entityLastLocalPos public_oe property

public Vector3 _entityLastLocalPos
return Vector3

baseMailbox public_oe property

public Mailbox,KBEngine baseMailbox
return Mailbox

cellMailbox public_oe property

public Mailbox,KBEngine cellMailbox
return Mailbox

className public_oe property

public string className
return string

direction public_oe property

public Vector3 direction
return Vector3

id public_oe property

public Int32,System id
return System.Int32

inWorld public_oe property

public bool inWorld
return bool

inited public_oe property

public bool inited
return bool

isControlled public_oe property

对于玩家自身来说,它表示是否自己被其它玩家控制了; 对于其它entity来说,表示我本机是否控制了这个entity
public bool isControlled
return bool

isOnGround public_oe property

public bool isOnGround
return bool

position public_oe property

public Vector3 position
return Vector3

renderObj public_oe property

public object renderObj
return object

velocity public_oe property

public float velocity
return float