本文整理汇总了C#中Dsl.GetParamId方法的典型用法代码示例。如果您正苦于以下问题:C# Dsl.GetParamId方法的具体用法?C# Dsl.GetParamId怎么用?C# Dsl.GetParamId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dsl
的用法示例。
在下文中一共展示了Dsl.GetParamId方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance)
{
if (callData.GetParamNum() >= 3) {
StartTime = long.Parse(callData.GetParamId(0));
m_RemainTime = long.Parse(callData.GetParamId(1));
m_RotateSpeed = DslUtility.CalcVector3(callData.GetParam(2) as Dsl.CallData);
}
}
示例2: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance)
{
int num = callData.GetParamNum();
if (num >= 1) {
StartTime = long.Parse(callData.GetParamId(0));
}
if (num >= 2) {
m_RemainTime = long.Parse(callData.GetParamId(1));
}
}
示例3: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance)
{
int num = callData.GetParamNum();
if (num >= 4) {
StartTime = long.Parse(callData.GetParamId(0));
m_RelativeOffset.X = float.Parse(callData.GetParamId(1));
m_RelativeOffset.Y = float.Parse(callData.GetParamId(2));
m_RelativeOffset.Z = float.Parse(callData.GetParamId(3));
}
}
示例4: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance )
{
int num = callData.GetParamNum();
if (num >= 2) {
StartTime = long.Parse(callData.GetParamId(0));
m_Speed = float.Parse(callData.GetParamId(1));
}
if (num >= 3) {
m_IsEffectSkillTime = bool.Parse(callData.GetParamId(2));
}
}
示例5: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance)
{
if (callData.GetParamNum() > 0) {
m_Type = callData.GetParamId(0);
}
if (callData.GetParamNum() > 1) {
StartTime = long.Parse(callData.GetParamId(1));
}
if (callData.GetParamNum() > 2) {
m_DeltaTime = long.Parse(callData.GetParamId(2));
}
}
示例6: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance)
{
int num = callData.GetParamNum();
if (num >= 4) {
StartTime = long.Parse(callData.GetParamId(0));
m_RelativeOffset.x = float.Parse(callData.GetParamId(1));
m_RelativeOffset.y = float.Parse(callData.GetParamId(2));
m_RelativeOffset.z = float.Parse(callData.GetParamId(3));
}
if (num >= 5) {
m_IsForRoundMove = callData.GetParamId(4) == "true";
}
}
示例7: CalcVector2
internal static Vector2 CalcVector2(Dsl.CallData callData)
{
if (null == callData || callData.GetId() != "vector2")
return Vector2.Zero;
int num = callData.GetParamNum();
if (2 == num) {
float x = float.Parse(callData.GetParamId(0));
float y = float.Parse(callData.GetParamId(1));
return new Vector2(x, y);
} else {
return Vector2.Zero;
}
}
示例8: CalcVector3
internal static Vector3 CalcVector3(Dsl.CallData callData)
{
if (null == callData || callData.GetId() != "vector3")
return Vector3.Zero;
int num = callData.GetParamNum();
if (3 == num) {
float x = float.Parse(callData.GetParamId(0));
float y = float.Parse(callData.GetParamId(1));
float z = float.Parse(callData.GetParamId(2));
return new Vector3(x, y, z);
} else {
return Vector3.Zero;
}
}
示例9: CalcEularRotation
internal static Quaternion CalcEularRotation(Dsl.CallData callData)
{
if (null == callData || callData.GetId() != "eular")
return Quaternion.Identity;
int num = callData.GetParamNum();
if (3 == num) {
float x = float.Parse(callData.GetParamId(0));
float y = float.Parse(callData.GetParamId(1));
float z = float.Parse(callData.GetParamId(2));
return Quaternion.CreateFromYawPitchRoll(x, y, z);
} else {
return Quaternion.Identity;
}
}
示例10: CalcEularAngles
public static Vector3 CalcEularAngles(Dsl.CallData callData)
{
if (null == callData || callData.GetId() != "eular")
return Vector3.Zero;
int num = callData.GetParamNum();
if (3 == num) {
float x = float.Parse(callData.GetParamId(0));
float y = float.Parse(callData.GetParamId(1));
float z = float.Parse(callData.GetParamId(2));
return new Vector3(x, y, z) * 59.29578f;
} else {
return Vector3.Zero;
}
}
示例11: CalcQuaternion
public static Quaternion CalcQuaternion(Dsl.CallData callData)
{
if (null == callData || callData.GetId() != "quaternion")
return Quaternion.identity;
int num = callData.GetParamNum();
if (4 == num) {
float x = float.Parse(callData.GetParamId(0));
float y = float.Parse(callData.GetParamId(1));
float z = float.Parse(callData.GetParamId(2));
float w = float.Parse(callData.GetParamId(3));
return new Quaternion(x, y, z, w);
} else {
return Quaternion.identity;
}
}
示例12: CalcColor
public static Color CalcColor(Dsl.CallData callData)
{
if (null == callData || callData.GetId() != "color")
return Color.white;
int num = callData.GetParamNum();
if (4 == num) {
float r = float.Parse(callData.GetParamId(0));
float g = float.Parse(callData.GetParamId(1));
float b = float.Parse(callData.GetParamId(2));
float a = float.Parse(callData.GetParamId(3));
return new Color(r, g, b, a);
} else {
return Color.white;
}
}
示例13: CalcEularRotation
public static Quaternion CalcEularRotation(Dsl.CallData callData)
{
if (null == callData || callData.GetId() != "eular")
return Quaternion.identity;
int num = callData.GetParamNum();
if (3 == num) {
float x = float.Parse(callData.GetParamId(0));
float y = float.Parse(callData.GetParamId(1));
float z = float.Parse(callData.GetParamId(2));
try {
return Quaternion.Euler(x, y, z);
} catch {
return Quaternion.identity;
}
} else {
return Quaternion.identity;
}
}
示例14: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance)
{
int num = callData.GetParamNum();
if (num > 0) {
StartTime = long.Parse(callData.GetParamId(0));
} else {
StartTime = 0;
}
}
示例15: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance)
{
int num = callData.GetParamNum();
if (num >= 1) {
StartTime = long.Parse(callData.GetParamId(0));
}
if (num >= 9) {
m_RelativeCenter.X = float.Parse(callData.GetParamId(1));
m_RelativeCenter.Y = float.Parse(callData.GetParamId(2));
m_RelativeCenter.Z = float.Parse(callData.GetParamId(3));
m_Radius = float.Parse(callData.GetParamId(4));
m_AngleOrLength = float.Parse(callData.GetParamId(5));
m_AoeType = int.Parse(callData.GetParamId(6));
m_MaxCount = int.Parse(callData.GetParamId(7));
m_RelativeToTarget = callData.GetParamId(8) == "true";
}
}