C# Class World, kbengine_unity3d_demo

Inheritance: MonoBehaviour
Show file Open project: kbengine/kbengine_unity3d_demo Class Usage Examples

Public Properties

Property Type Description
avatarPerfab UnityEngine.GameObject
entityPerfab UnityEngine.GameObject
terrainPerfab UnityEngine.GameObject

Public Methods

Method Description
Awake ( ) : void
OnDestroy ( ) : void
Start ( ) : void
Update ( ) : void
addSpaceGeometryMapping ( string respath ) : void
createPlayer ( ) : void
installEvents ( ) : void
onAddSkill ( KBEngine entity ) : void
onAvatarEnterWorld ( UInt64 rndUUID, Int32 eid, KBEngine avatar ) : void
onControlled ( KBEngine entity, bool isControlled ) : void
onEnterWorld ( KBEngine entity ) : void
onLeaveWorld ( KBEngine entity ) : void
otherAvatarOnJump ( KBEngine entity ) : void
recvDamage ( KBEngine entity, KBEngine attacker, Int32 skillID, Int32 damageType, Int32 damage ) : void
set_HP ( KBEngine entity, object v ) : void
set_HP_Max ( KBEngine entity, object v ) : void
set_MP ( KBEngine entity, object v ) : void
set_MP_Max ( KBEngine entity, object v ) : void
set_direction ( KBEngine entity ) : void
set_entityName ( KBEngine entity, object v ) : void
set_level ( KBEngine entity, object v ) : void
set_modelID ( KBEngine entity, object v ) : void
set_modelScale ( KBEngine entity, object v ) : void
set_moveSpeed ( KBEngine entity, object v ) : void
set_position ( KBEngine entity ) : void
set_state ( KBEngine entity, object v ) : void
updatePosition ( KBEngine entity ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

addSpaceGeometryMapping() public method

public addSpaceGeometryMapping ( string respath ) : void
respath string
return void

createPlayer() public method

public createPlayer ( ) : void
return void

installEvents() public method

public installEvents ( ) : void
return void

onAddSkill() public method

public onAddSkill ( KBEngine entity ) : void
entity KBEngine
return void

onAvatarEnterWorld() public method

public onAvatarEnterWorld ( UInt64 rndUUID, Int32 eid, KBEngine avatar ) : void
rndUUID UInt64
eid Int32
avatar KBEngine
return void

onControlled() public method

public onControlled ( KBEngine entity, bool isControlled ) : void
entity KBEngine
isControlled bool
return void

onEnterWorld() public method

public onEnterWorld ( KBEngine entity ) : void
entity KBEngine
return void

onLeaveWorld() public method

public onLeaveWorld ( KBEngine entity ) : void
entity KBEngine
return void

otherAvatarOnJump() public method

public otherAvatarOnJump ( KBEngine entity ) : void
entity KBEngine
return void

recvDamage() public method

public recvDamage ( KBEngine entity, KBEngine attacker, Int32 skillID, Int32 damageType, Int32 damage ) : void
entity KBEngine
attacker KBEngine
skillID Int32
damageType Int32
damage Int32
return void

set_HP() public method

public set_HP ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

set_HP_Max() public method

public set_HP_Max ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

set_MP() public method

public set_MP ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

set_MP_Max() public method

public set_MP_Max ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

set_direction() public method

public set_direction ( KBEngine entity ) : void
entity KBEngine
return void

set_entityName() public method

public set_entityName ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

set_level() public method

public set_level ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

set_modelID() public method

public set_modelID ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

set_modelScale() public method

public set_modelScale ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

set_moveSpeed() public method

public set_moveSpeed ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

set_position() public method

public set_position ( KBEngine entity ) : void
entity KBEngine
return void

set_state() public method

public set_state ( KBEngine entity, object v ) : void
entity KBEngine
v object
return void

updatePosition() public method

public updatePosition ( KBEngine entity ) : void
entity KBEngine
return void

Property Details

avatarPerfab public property

public GameObject,UnityEngine avatarPerfab
return UnityEngine.GameObject

entityPerfab public property

public GameObject,UnityEngine entityPerfab
return UnityEngine.GameObject

terrainPerfab public property

public GameObject,UnityEngine terrainPerfab
return UnityEngine.GameObject