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));
     }
 }
 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));
     }
 }
 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));
     }
 }
Ejemplo n.º 4
0
 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);
     }
 }
 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);
     }
 }
Ejemplo n.º 6
0
 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 0) {
         m_Time.InitFromDsl(callData.GetParam(0));
     }
 }
 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);
     }
 }
Ejemplo n.º 8
0
 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));
     }
 }
Ejemplo n.º 9
0
 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);
     }
 }
Ejemplo n.º 10
0
 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);
     }
 }
 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));
     }
 }
Ejemplo n.º 12
0
 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));
     }
 }
 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";
     }
 }
 private void LoadUserId(Dsl.CallData callData)
 {
     if (callData.GetId() == "touser" && callData.GetParamNum() == 1) {
         m_UserId.InitFromDsl(callData.GetParam(0));
         m_HaveUserId = true;
     }
 }
 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));
     }
 }
Ejemplo n.º 16
0
 private void LoadVarName(Dsl.CallData callData)
 {
     if (callData.GetId() == "seq" && callData.GetParamNum() == 1) {
         m_SeqVarName.InitFromDsl(callData.GetParam(0));
         m_HaveSeq = true;
     }
 }
 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 7) {
         m_Receiver.InitFromDsl(callData.GetParam(0));
         m_Title.InitFromDsl(callData.GetParam(1));
         m_Content.InitFromDsl(callData.GetParam(2));
         m_Sender.InitFromDsl(callData.GetParam(3));
         m_LevelDemand.InitFromDsl(callData.GetParam(4));
         m_ValidPeriod.InitFromDsl(callData.GetParam(5));
         m_Money.InitFromDsl(callData.GetParam(6));
         m_Gold.InitFromDsl(callData.GetParam(7));
     }
     for (int i = 8; i < callData.GetParamNum(); ++i) {
         StoryValue<int> val = new StoryValue<int>();
         val.InitFromDsl(callData.GetParam(i));
         m_MailItems.Add(val);
     }
 }
 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 1) {
         m_UserGuid.InitFromDsl(callData.GetParam(0));
         m_MemberId.InitFromDsl(callData.GetParam(1));
     }
 }
 private void LoadVar(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num >= 2) {
         VarInfo info = new VarInfo();
         info.m_VarName.InitFromDsl(callData.GetParam(0));
         info.m_ControlPath.InitFromDsl(callData.GetParam(1));
         m_VarInfos.Add(info);
     }
 }
 private void LoadEvent(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num >= 3) {
         EventInfo info = new EventInfo();
         info.m_Event.InitFromDsl(callData.GetParam(0));
         info.m_Tag.InitFromDsl(callData.GetParam(1));
         info.m_Path.InitFromDsl(callData.GetParam(2));
         m_EventInfos.Add(info);
     }
 }
 private static void LoadPaths(List<IStoryValue<string>> List, Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     for (int i = 0; i < num; ++i) {
         IStoryValue<string> path = new StoryValue<string>();
         path.InitFromDsl(callData.GetParam(i));
         List.Add(path);
     }
 }
Ejemplo n.º 22
0
 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 2) {
         m_UnitId.InitFromDsl(callData.GetParam(0));
         m_Event.InitFromDsl(callData.GetParam(1));
         m_Enable.InitFromDsl(callData.GetParam(2));
     }
 }
Ejemplo n.º 23
0
 protected override void Load(Dsl.CallData callData)
 {
     m_ParamNum = callData.GetParamNum();
     if (m_ParamNum > 1) {
         m_UnitId.InitFromDsl(callData.GetParam(0));
         m_TargetUnitId.InitFromDsl(callData.GetParam(1));
     }
 }
        protected override void Load(Dsl.CallData callData, SkillInstance instance)
        {
            int num = callData.GetParamNum();
            if (num > 0) {
                m_Duration = long.Parse(callData.GetParamId(0));
            } else {
                m_Duration = 0;
            }
            if (num > 1) {
                m_Height = float.Parse(callData.GetParamId(1));
            }
            if (num > 2) {
                m_Velocity = float.Parse(callData.GetParamId(2));
            }
            if (num > 3) {
                m_StopAtTarget = int.Parse(callData.GetParamId(3));
            }
            if (num > 4) {
                m_Offset = DslUtility.CalcVector3(callData.GetParam(4) as Dsl.CallData);
            }
            if (num > 5) {
                StartTime = long.Parse(callData.GetParamId(5));
            }

            CalcYVelocityAndG();
        }
Ejemplo n.º 25
0
 private void LoadVarName(Dsl.CallData callData)
 {
     if (callData.GetId() == "objid" && callData.GetParamNum() == 1) {
         m_ObjIdVarName.InitFromDsl(callData.GetParam(0));
         m_HaveObjId = true;
     }
 }
Ejemplo n.º 26
0
 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 1) {
         m_UnitId.InitFromDsl(callData.GetParam(0));
         m_SummonSkillId.InitFromDsl(callData.GetParam(1));
     }
 }
 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 2) {
         m_UserGuid.InitFromDsl(callData.GetParam(0));
         m_Key.InitFromDsl(callData.GetParam(1));
         m_Type.InitFromDsl(callData.GetParam(2));
     }
 }
 private void LoadSet(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num >= 3) {
         m_SetVar.InitFromDsl(callData.GetParam(0));
         m_SetVal.InitFromDsl(callData.GetParam(1));
         m_ElseSetVal.InitFromDsl(callData.GetParam(2));
     }
 }
 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 3) {
         m_Pos.InitFromDsl(callData.GetParam(0));
         m_Radius.InitFromDsl(callData.GetParam(1));
         m_Type.InitFromDsl(callData.GetParam(2));
         m_EventName.InitFromDsl(callData.GetParam(3));
     }
 }
 protected override void Load(Dsl.CallData callData)
 {
     int num = callData.GetParamNum();
     if (num > 1) {
         m_BeginUnitId.InitFromDsl(callData.GetParam(0));
         m_EndUnitId.InitFromDsl(callData.GetParam(1));
     }
 }