C# Class GameFramework.Skill.Trigers.TriggerUtil

Afficher le fichier Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

AoeQuery() public static méthode

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
Résultat void

AttachNodeToNode() public static méthode

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

DrawCircle() public static méthode

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

FiltByRelation() public static méthode

public static FiltByRelation ( GameObject source, List list, GameFramework relation ) : List
source UnityEngine.GameObject
list List
relation GameFramework
Résultat List

FindTargetInSector() public static méthode

public static FindTargetInSector ( Vector3 center, float radius, Vector3 direction, Vector3 degreeCenter, float degree ) : List
center Vector3
radius float
direction Vector3
degreeCenter Vector3
degree float
Résultat List

GetChildNodeByName() public static méthode

public static GetChildNodeByName ( GameObject gameobj, string name ) : Transform
gameobj UnityEngine.GameObject
name string
Résultat UnityEngine.Transform

GetHeightWithGround() public static méthode

public static GetHeightWithGround ( GameObject obj ) : float
obj UnityEngine.GameObject
Résultat float

GetObjFaceDir() public static méthode

public static GetObjFaceDir ( GameObject obj ) : float
obj UnityEngine.GameObject
Résultat float

GetObjectByPriority() public static méthode

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
Résultat UnityEngine.GameObject

GetSkillStartPosition() public static méthode

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
Résultat bool

Lookat() public static méthode

public static Lookat ( GameObject obj, Vector3 target ) : void
obj UnityEngine.GameObject
target Vector3
Résultat void

Lookat() public static méthode

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

MoveChildToNode() public static méthode

public static MoveChildToNode ( GameObject obj, string childname, string nodename ) : void
obj UnityEngine.GameObject
childname string
nodename string
Résultat void

MoveObjTo() public static méthode

public static MoveObjTo ( GameObject obj, Vector3 position ) : void
obj UnityEngine.GameObject
position Vector3
Résultat void

SetObjVisible() public static méthode

public static SetObjVisible ( GameObject obj, bool isShow ) : void
obj UnityEngine.GameObject
isShow bool
Résultat void