当前位置: 首页>>代码示例>>C#>>正文


C# Dsl.GetParam方法代码示例

本文整理汇总了C#中Dsl.GetParam方法的典型用法代码示例。如果您正苦于以下问题:C# Dsl.GetParam方法的具体用法?C# Dsl.GetParam怎么用?C# Dsl.GetParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Dsl的用法示例。


在下文中一共展示了Dsl.GetParam方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Load

 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 1) {
         m_TargetSceneId.InitFromDsl(callData.GetParam(0));
         m_ObjId.InitFromDsl(callData.GetParam(1));
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:8,代码来源:GeneralCommands.cs

示例2: Load

 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 1) {
         m_Key.InitFromDsl(callData.GetParam(0));
         m_Value.InitFromDsl(callData.GetParam(1));
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:8,代码来源:GameLogicCommands.cs

示例3: Load

 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 1) {
         m_ObjPath.InitFromDsl(callData.GetParam(0));
         m_ComponentType.InitFromDsl(callData.GetParam(1));
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:8,代码来源:GeneralCommands.cs

示例4: Load

 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 0) {
         m_Format.InitFromDsl(callData.GetParam(0));
     }
     for (int i = 1; i < callData.GetParamNum(); ++i) {
         StoryValue val = new StoryValue();
         val.InitFromDsl(callData.GetParam(i));
         m_FormatArgs.Add(val);
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:12,代码来源:Log.cs

示例5: Load

 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 1) {
         m_Object.InitFromDsl(callData.GetParam(0));
         m_Method.InitFromDsl(callData.GetParam(1));
     }
     for (int i = 2; i < callData.GetParamNum(); ++i) {
         StoryValue val = new StoryValue();
         val.InitFromDsl(callData.GetParam(i));
         m_Args.Add(val);
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:13,代码来源:ReflectionCommand.cs

示例6: Load

 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 0) {
         m_Time.InitFromDsl(callData.GetParam(0));
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:7,代码来源:Wait.cs

示例7: 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);
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:8,代码来源:RotateTrigger.cs

示例8: LoadCondition

 private void LoadCondition(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 0 && callData.GetId() == "if") {
         m_HaveCondition = true;
         m_Condition.InitFromDsl(callData.GetParam(0));
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:8,代码来源:Wait.cs

示例9: Load

 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     for (int i = 0; i < num; ++i) {
         IStoryValue<string> val = new StoryValue<string>();
         val.InitFromDsl(callData.GetParam(i));
         m_MsgIds.Add(val);
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:9,代码来源:LocalMessage.cs

示例10: Load

 protected override void Load(Dsl.CallData callData)
 {
     m_LoadedArgs = new List<IStoryValue<object>>();
     int num = callData.GetParamNum();
     for (int i = 0; i < num; ++i) {
         StoryValue val = new StoryValue();
         val.InitFromDsl(callData.GetParam(i));
         m_LoadedArgs.Add(val);
     }
     IsCompositeCommand = true;
     if (null == m_LeadCommand) {
         m_LeadCommand = new CompositeCommandHelper(this);
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:14,代码来源:Composite.cs

示例11: Load

 protected override void Load(Dsl.CallData callData, SkillInstance instance)
 {
     int num = callData.GetParamNum();
     if (num >= 6) {
         StartTime = long.Parse(callData.GetParamId(0));
         m_RemainTime = long.Parse(callData.GetParamId(1));
         m_GoPath = callData.GetParamId(2);
         m_ShaderName = callData.GetParamId(3);
         m_StartColor = DslUtility.CalcColor(callData.GetParam(4) as Dsl.CallData);
         m_ChangeColor = DslUtility.CalcColor(callData.GetParam(5) as Dsl.CallData);
     }
     if (num >= 7) {
         m_ChangeTime = long.Parse(callData.GetParamId(6));
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:15,代码来源:ShaderPropertyTrigger.cs

示例12: LoadPositionConfig

 private void LoadPositionConfig(Dsl.CallData stCall)
 {
     if (stCall.GetParamNum() >= 2) {
         m_IsBoneSound = false;
         m_Position = DslUtility.CalcVector3(stCall.GetParam(0) as Dsl.CallData);
         m_IsAttach = bool.Parse(stCall.GetParamId(1));
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:8,代码来源:SoundTrigger.cs

示例13: Load

 protected override void Load(Dsl.CallData callData, SkillInstance instance)
 {
     int num = callData.GetParamNum();
     if (num > 0) {
         m_Duration = long.Parse(callData.GetParamId(0));
     }
     if (num > 1) {
         m_Velocity = float.Parse(callData.GetParamId(1));
     }
     if (num > 2) {
         m_StopAtTarget = int.Parse(callData.GetParamId(2));
     }
     if (num > 3) {
         m_Offset = DslUtility.CalcVector3(callData.GetParam(3) as Dsl.CallData);
     }
     if (num > 4) {
         StartTime = long.Parse(callData.GetParamId(4));
     }
     if (num > 5) {
         m_IsForRoundMove = callData.GetParamId(5) == "true";
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:22,代码来源:MovementTrigger.cs

示例14: LoadUserId

 private void LoadUserId(Dsl.CallData callData)
 {
     if (callData.GetId() == "touser" && callData.GetParamNum() == 1) {
         m_UserId.InitFromDsl(callData.GetParam(0));
         m_HaveUserId = true;
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:7,代码来源:GameLogicCommands.cs

示例15: Load

 protected override void Load(Dsl.CallData callData)
 {
     m_ParamNum = callData.GetParamNum();
     if (m_ParamNum > 1) {
         m_ObjId.InitFromDsl(callData.GetParam(0));
         m_LeaderId.InitFromDsl(callData.GetParam(1));
     } else if (m_ParamNum > 0) {
         m_LeaderId.InitFromDsl(callData.GetParam(0));
     }
 }
开发者ID:dreamanlan,项目名称:CSharpGameFramework,代码行数:10,代码来源:GameLogicCommands.cs


注:本文中的Dsl.GetParam方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。