C# Class GameFramework.Skill.Trigers.TriggerUtil

Exibir arquivo Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Methods

Method Description
AoeQuery ( GameObject srcObj, GameObject targetObj, int aoeType, float range, float angleOrLength, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
AoeQuery ( Scene scene, EntityInfo srcObj, EntityInfo targetObj, int aoeType, float range, float angleOrLength, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
AttachNodeToNode ( GameObject source, string sourcenode, GameObject target, string targetnode ) : bool
DrawCircle ( Vector3 center, float radius, Color color, float circle_step = 0.05f ) : GameObject
FiltByRelation ( GameObject source, List list, GameFramework relation ) : List
FindTargetInSector ( Vector3 center, float radius, Vector3 direction, Vector3 degreeCenter, float degree ) : List
GetChildNodeByName ( GameObject gameobj, string name ) : Transform
GetHeightWithGround ( GameObject obj ) : float
GetObjFaceDir ( GameObject obj ) : float
GetObjectByPriority ( GameObject source, List list, float distance_priority, float degree_priority, float max_distance, float max_degree ) : GameObject
GetSkillStartPosition ( Vector3 srcPos, TableConfig cfg, SkillInstance instance, int srcId, int targetId, Vector3 &targetPos ) : bool
Lookat ( GameObject obj, Vector3 target ) : void
Lookat ( GameObject obj, Vector3 target, float rotateDegree ) : void
MoveChildToNode ( GameObject obj, string childname, string nodename ) : void
MoveObjTo ( GameObject obj, Vector3 position ) : void
SetObjVisible ( GameObject obj, bool isShow ) : void

Private Methods

Method Description
AoeQuery ( GfxSkillSenderInfo senderObj, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
CalcImpactConfig ( int emitImpact, int hitImpact, SkillInstance instance, TableConfig cfg, object>.Dictionary &result ) : void
ConvertToSecond ( long delta ) : float
FindTargetInSector ( Scene scene, Vector3 center, float radius, Vector3 direction, Vector3 degreeCenter, float degree ) : List
FloatEqual ( float a, float b ) : bool
GetGroundPos ( Vector3 pos ) : Vector3
GetHeightWithGround ( EntityInfo obj ) : float
GetHeightWithGround ( Vector3 pos ) : float
GetObjFaceDir ( EntityInfo obj ) : float
GetSkillImpactId ( object>.Dictionary variables, TableConfig cfg ) : int
Lookat ( Scene scene, EntityInfo obj, Vector3 target ) : void
Lookat ( Scene scene, EntityInfo obj, Vector3 target, float rotateDegree ) : void
MoveObjTo ( EntityInfo obj, Vector3 position ) : void
SetObjVisible ( EntityInfo obj, bool isShow ) : void
TransformPoint ( Vector3 pos, Vector3 offset, float radian ) : Vector3

Method Details

AoeQuery() public static method

public static AoeQuery ( GameObject srcObj, GameObject targetObj, int aoeType, float range, float angleOrLength, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
srcObj UnityEngine.GameObject
targetObj UnityEngine.GameObject
aoeType int
range float
angleOrLength float
instance SkillSystem.SkillInstance
senderId int
targetType int
relativeCenter Vector3
relativeToTarget bool
callback MyFunc
return void

AoeQuery() public static method

public static AoeQuery ( Scene scene, EntityInfo srcObj, EntityInfo targetObj, int aoeType, float range, float angleOrLength, SkillInstance instance, int senderId, int targetType, Vector3 relativeCenter, bool relativeToTarget, MyFunc callback ) : void
scene Scene
srcObj EntityInfo
targetObj EntityInfo
aoeType int
range float
angleOrLength float
instance SkillSystem.SkillInstance
senderId int
targetType int
relativeCenter Vector3
relativeToTarget bool
callback MyFunc
return void

AttachNodeToNode() public static method

public static AttachNodeToNode ( GameObject source, string sourcenode, GameObject target, string targetnode ) : bool
source UnityEngine.GameObject
sourcenode string
target UnityEngine.GameObject
targetnode string
return bool

DrawCircle() public static method

public static DrawCircle ( Vector3 center, float radius, Color color, float circle_step = 0.05f ) : GameObject
center Vector3
radius float
color Color
circle_step float
return UnityEngine.GameObject

FiltByRelation() public static method

public static FiltByRelation ( GameObject source, List list, GameFramework relation ) : List
source UnityEngine.GameObject
list List
relation GameFramework
return List

FindTargetInSector() public static method

public static FindTargetInSector ( Vector3 center, float radius, Vector3 direction, Vector3 degreeCenter, float degree ) : List
center Vector3
radius float
direction Vector3
degreeCenter Vector3
degree float
return List

GetChildNodeByName() public static method

public static GetChildNodeByName ( GameObject gameobj, string name ) : Transform
gameobj UnityEngine.GameObject
name string
return UnityEngine.Transform

GetHeightWithGround() public static method

public static GetHeightWithGround ( GameObject obj ) : float
obj UnityEngine.GameObject
return float

GetObjFaceDir() public static method

public static GetObjFaceDir ( GameObject obj ) : float
obj UnityEngine.GameObject
return float

GetObjectByPriority() public static method

public static GetObjectByPriority ( GameObject source, List list, float distance_priority, float degree_priority, float max_distance, float max_degree ) : GameObject
source UnityEngine.GameObject
list List
distance_priority float
degree_priority float
max_distance float
max_degree float
return UnityEngine.GameObject

GetSkillStartPosition() public static method

public static GetSkillStartPosition ( Vector3 srcPos, TableConfig cfg, SkillInstance instance, int srcId, int targetId, Vector3 &targetPos ) : bool
srcPos Vector3
cfg TableConfig
instance SkillSystem.SkillInstance
srcId int
targetId int
targetPos Vector3
return bool

Lookat() public static method

public static Lookat ( GameObject obj, Vector3 target ) : void
obj UnityEngine.GameObject
target Vector3
return void

Lookat() public static method

public static Lookat ( GameObject obj, Vector3 target, float rotateDegree ) : void
obj UnityEngine.GameObject
target Vector3
rotateDegree float
return void

MoveChildToNode() public static method

public static MoveChildToNode ( GameObject obj, string childname, string nodename ) : void
obj UnityEngine.GameObject
childname string
nodename string
return void

MoveObjTo() public static method

public static MoveObjTo ( GameObject obj, Vector3 position ) : void
obj UnityEngine.GameObject
position Vector3
return void

SetObjVisible() public static method

public static SetObjVisible ( GameObject obj, bool isShow ) : void
obj UnityEngine.GameObject
isShow bool
return void