C# 클래스 CryEngine.Entity

Represents an entity created via CryMono.
상속: EntityBase
파일 보기 프로젝트 열기: PoppermostProductions/CryMono

공개 메소드들

메소드 설명
GetEditorType ( Type type, EditorPropertyType propertyType ) : EditorPropertyType
GetHashCode ( ) : int
InvalidateTrigger ( ) : void

Invalidate the TriggerBounds, so it gets recalculated and catches things which are already inside when it gets enabled.

OnPostSpawn ( object args ) : void

Called after spawning, with the parameters supplied to Entity.Spawn.

OnSpawn ( ) : void

This callback is called when this entity has spawned. The entity has been created and added to the list of entities. Some functionality is not yet available at the point this method is called. For all game object interactions, use OnPostSpawn.

보호된 메소드들

메소드 설명
OnAttach ( CryEngine.EntityId child ) : void

Called whenever another entity has been linked to this entity.

OnCollision ( ColliderInfo source, ColliderInfo target, Vec3 hitPos, Vec3 contactNormal, float penetration, float radius ) : void

Sent on entity collision.

OnDetach ( CryEngine.EntityId child ) : void

Called whenever another entity has been unlinked from this entity.

OnDetachThis ( CryEngine.EntityId parent ) : void

Called whenever this entity is unliked from another entity.

OnEditorReset ( bool enteringGame ) : void

Called when resetting the state of the entity in Editor.

OnEnterArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void

Sent when entity enters to the area proximity.

OnEnterNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void
OnLeaveArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void

Sent when entity leaves the area proximity.

OnLeaveNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void
OnLevelLoaded ( ) : void

Called after level has been loaded, is not called on serialization. Note that this is called prior to GameRules.OnClientConnect and OnClientEnteredGame!

OnMove ( EntityMoveFlags moveFlags ) : void

Called when the entities local or world transformation matrix changes. (Position / Rotation / Scale)

OnMoveInsideArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void

Sent when entity moves inside the area proximity.

OnMoveNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId, float fade ) : void
OnPostUpdate ( ) : void
OnPrePhysicsUpdate ( ) : void
OnPropertyChanged ( MemberInfo memberInfo, EditorPropertyType propertyType, object newValue ) : void

Called when the user changes a property from within the Editor.

OnRemove ( ) : bool

Called when the entity is being removed.

OnStartGame ( ) : void

Called when game is started (games may start multiple times)

OnStartLevel ( ) : void

Called when the level is started.

PostSerialize ( ) : void

비공개 메소드들

메소드 설명
FullSerialize ( Serialization serialize ) : void
GetPropertyValue ( string propertyName ) : string
InternalFullSerialize ( Serialization serialize ) : void
InternalInitialize ( IScriptInitializationParams initParams ) : bool

Initializes the entity, not recommended to set manually.

InternalNetSerialize ( Serialization serialize, int aspect, byte profile, int flags ) : void
NetSerialize ( Serialization serialize, int aspect, byte profile, int flags ) : void
OnAnimationEvent ( AnimationEvent animEvent ) : void
SetPropertyValue ( string propertyName, EditorPropertyType propertyType, string valueString ) : void

메소드 상세

GetEditorType() 공개 정적인 메소드

public static GetEditorType ( Type type, EditorPropertyType propertyType ) : EditorPropertyType
type System.Type
propertyType EditorPropertyType
리턴 EditorPropertyType

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

InvalidateTrigger() 공개 메소드

Invalidate the TriggerBounds, so it gets recalculated and catches things which are already inside when it gets enabled.
public InvalidateTrigger ( ) : void
리턴 void

OnAttach() 보호된 메소드

Called whenever another entity has been linked to this entity.
protected OnAttach ( CryEngine.EntityId child ) : void
child CryEngine.EntityId
리턴 void

OnCollision() 보호된 메소드

Sent on entity collision.
protected OnCollision ( ColliderInfo source, ColliderInfo target, Vec3 hitPos, Vec3 contactNormal, float penetration, float radius ) : void
source ColliderInfo
target ColliderInfo
hitPos Vec3
contactNormal Vec3
penetration float
radius float
리턴 void

OnDetach() 보호된 메소드

Called whenever another entity has been unlinked from this entity.
protected OnDetach ( CryEngine.EntityId child ) : void
child CryEngine.EntityId
리턴 void

OnDetachThis() 보호된 메소드

Called whenever this entity is unliked from another entity.
protected OnDetachThis ( CryEngine.EntityId parent ) : void
parent CryEngine.EntityId
리턴 void

OnEditorReset() 보호된 메소드

Called when resetting the state of the entity in Editor.
protected OnEditorReset ( bool enteringGame ) : void
enteringGame bool true if currently entering gamemode, false if exiting.
리턴 void

OnEnterArea() 보호된 메소드

Sent when entity enters to the area proximity.
protected OnEnterArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void
entityId CryEngine.EntityId
areaId int
areaEntityId CryEngine.EntityId
리턴 void

OnEnterNearArea() 보호된 메소드

protected OnEnterNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void
entityId CryEngine.EntityId
areaId int
areaEntityId CryEngine.EntityId
리턴 void

OnLeaveArea() 보호된 메소드

Sent when entity leaves the area proximity.
protected OnLeaveArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void
entityId CryEngine.EntityId
areaId int
areaEntityId CryEngine.EntityId
리턴 void

OnLeaveNearArea() 보호된 메소드

protected OnLeaveNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void
entityId CryEngine.EntityId
areaId int
areaEntityId CryEngine.EntityId
리턴 void

OnLevelLoaded() 보호된 메소드

Called after level has been loaded, is not called on serialization. Note that this is called prior to GameRules.OnClientConnect and OnClientEnteredGame!
protected OnLevelLoaded ( ) : void
리턴 void

OnMove() 보호된 메소드

Called when the entities local or world transformation matrix changes. (Position / Rotation / Scale)
protected OnMove ( EntityMoveFlags moveFlags ) : void
moveFlags EntityMoveFlags
리턴 void

OnMoveInsideArea() 보호된 메소드

Sent when entity moves inside the area proximity.
protected OnMoveInsideArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId ) : void
entityId CryEngine.EntityId
areaId int
areaEntityId CryEngine.EntityId
리턴 void

OnMoveNearArea() 보호된 메소드

protected OnMoveNearArea ( CryEngine.EntityId entityId, int areaId, CryEngine.EntityId areaEntityId, float fade ) : void
entityId CryEngine.EntityId
areaId int
areaEntityId CryEngine.EntityId
fade float
리턴 void

OnPostSpawn() 공개 메소드

Called after spawning, with the parameters supplied to Entity.Spawn.
public OnPostSpawn ( object args ) : void
args object
리턴 void

OnPostUpdate() 보호된 메소드

protected OnPostUpdate ( ) : void
리턴 void

OnPrePhysicsUpdate() 보호된 메소드

protected OnPrePhysicsUpdate ( ) : void
리턴 void

OnPropertyChanged() 보호된 메소드

Called when the user changes a property from within the Editor.
protected OnPropertyChanged ( MemberInfo memberInfo, EditorPropertyType propertyType, object newValue ) : void
memberInfo System.Reflection.MemberInfo
propertyType EditorPropertyType
newValue object
리턴 void

OnRemove() 보호된 메소드

Called when the entity is being removed.
protected OnRemove ( ) : bool
리턴 bool

OnSpawn() 공개 메소드

This callback is called when this entity has spawned. The entity has been created and added to the list of entities. Some functionality is not yet available at the point this method is called. For all game object interactions, use OnPostSpawn.
public OnSpawn ( ) : void
리턴 void

OnStartGame() 보호된 메소드

Called when game is started (games may start multiple times)
protected OnStartGame ( ) : void
리턴 void

OnStartLevel() 보호된 메소드

Called when the level is started.
protected OnStartLevel ( ) : void
리턴 void

PostSerialize() 보호된 메소드

protected PostSerialize ( ) : void
리턴 void