Ejemplo n.º 1
0
 public bool TransProtocol(ref CSDT_GAMING_CSSYNCINFO msg)
 {
     msg.stCSSyncDt.stObjectiveSkill.iObjectID  = (int)this.ObjectID;
     msg.stCSSyncDt.stObjectiveSkill.chSlotType = (sbyte)this.SlotType;
     msg.stCSSyncDt.stObjectiveSkill.iSkillID   = this.iSkillID;
     return(true);
 }
 public bool TransProtocol(ref CSDT_GAMING_CSSYNCINFO msg)
 {
     msg.stCSSyncDt.stDirectionSkill.stDirection = CommonTools.CSDTFromVector3(this.Direction);
     msg.stCSSyncDt.stDirectionSkill.chSlotType  = (sbyte)this.SlotType;
     msg.stCSSyncDt.stDirectionSkill.iSkillID    = this.iSkillID;
     return(true);
 }
 public bool TransProtocol(CSDT_GAMING_CSSYNCINFO msg)
 {
     msg.stCSSyncDt.stDirectionSkill.nDegree    = this.Degree;
     msg.stCSSyncDt.stDirectionSkill.chSlotType = (sbyte)this.SlotType;
     msg.stCSSyncDt.stDirectionSkill.dwObjectID = this.dwObjectID;
     return(true);
 }
Ejemplo n.º 4
0
        public static IFrameCommand Creator(ref CSDT_GAMING_CSSYNCINFO msg)
        {
            FrameCommand <MoveDirectionCommand> frameCommand = FrameCommandFactory.CreateCSSyncFrameCommand <MoveDirectionCommand>();

            frameCommand.cmdData.Degree = msg.stCSSyncDt.get_stMove().nDegree;
            frameCommand.cmdData.nSeq   = msg.stCSSyncDt.get_stMove().bSeq;
            return(frameCommand);
        }
        public static IFrameCommand Creator(ref CSDT_GAMING_CSSYNCINFO msg)
        {
            FrameCommand <UsePositionSkillCommand> frameCommand = FrameCommandFactory.CreateCSSyncFrameCommand <UsePositionSkillCommand>();

            frameCommand.cmdData.SlotType = (SkillSlotType)msg.stCSSyncDt.stPositionSkill.chSlotType;
            frameCommand.cmdData.Position = CommonTools.ToVector2(msg.stCSSyncDt.stPositionSkill.stPosition);
            return(frameCommand);
        }
Ejemplo n.º 6
0
        public static IFrameCommand Creator(ref CSDT_GAMING_CSSYNCINFO msg)
        {
            FrameCommand <UseObjectiveSkillCommand> frameCommand = FrameCommandFactory.CreateCSSyncFrameCommand <UseObjectiveSkillCommand>();

            frameCommand.cmdData.ObjectID = (uint)msg.stCSSyncDt.get_stObjectiveSkill().iObjectID;
            frameCommand.cmdData.SlotType = (SkillSlotType)msg.stCSSyncDt.get_stObjectiveSkill().chSlotType;
            return(frameCommand);
        }
Ejemplo n.º 7
0
        public static IFrameCommand Creator(ref CSDT_GAMING_CSSYNCINFO msg)
        {
            FrameCommand <UseCommonAttackCommand> frameCommand = FrameCommandFactory.CreateCSSyncFrameCommand <UseCommonAttackCommand>();

            frameCommand.cmdData.Start       = (sbyte)msg.stCSSyncDt.stBaseAttack.bStart;
            frameCommand.cmdData.uiRealObjID = msg.stCSSyncDt.stBaseAttack.dwObjectID;
            return(frameCommand);
        }
        public static IFrameCommand Creator(ref CSDT_GAMING_CSSYNCINFO msg)
        {
            FrameCommand <UseDirectionalSkillCommand> command = FrameCommandFactory.CreateCSSyncFrameCommand <UseDirectionalSkillCommand>();

            command.cmdData.Direction = CommonTools.ToVector3(msg.stCSSyncDt.stDirectionSkill.stDirection);
            command.cmdData.SlotType  = (SkillSlotType)msg.stCSSyncDt.stDirectionSkill.chSlotType;
            command.cmdData.iSkillID  = msg.stCSSyncDt.stDirectionSkill.iSkillID;
            return(command);
        }
        public static IFrameCommand Creator(ref CSDT_GAMING_CSSYNCINFO msg)
        {
            FrameCommand <UseDirectionalSkillCommand> frameCommand = FrameCommandFactory.CreateCSSyncFrameCommand <UseDirectionalSkillCommand>();

            frameCommand.cmdData.Degree     = msg.stCSSyncDt.stDirectionSkill.nDegree;
            frameCommand.cmdData.SlotType   = (SkillSlotType)msg.stCSSyncDt.stDirectionSkill.chSlotType;
            frameCommand.cmdData.dwObjectID = msg.stCSSyncDt.stDirectionSkill.dwObjectID;
            return(frameCommand);
        }
Ejemplo n.º 10
0
 public static IFrameCommand CreateFrameCommandByCSSyncInfo(ref CSDT_GAMING_CSSYNCINFO msg)
 {
     if ((msg.bSyncType >= 0) && (msg.bSyncType < s_CommandCreator.Length))
     {
         CreatorCSSyncDelegate delegate2 = s_CSSyncCommandCreator[msg.bSyncType];
         object[] objArray1 = new object[] { msg.bSyncType };
         DebugHelper.Assert(delegate2 != null, "Creator is null at index {0}", objArray1);
         return(delegate2(ref msg));
     }
     object[] inParameters = new object[] { msg.bSyncType };
     DebugHelper.Assert(false, "not register framec ommand creator {0}", inParameters);
     return(null);
 }
Ejemplo n.º 11
0
 public static IFrameCommand CreateFrameCommandByCSSyncInfo(ref CSDT_GAMING_CSSYNCINFO msg)
 {
     if (msg.bSyncType >= 0 && (int)msg.bSyncType < FrameCommandFactory.s_CSSyncCommandCreator.Length)
     {
         CreatorCSSyncDelegate creatorCSSyncDelegate = FrameCommandFactory.s_CSSyncCommandCreator[(int)msg.bSyncType];
         DebugHelper.Assert(creatorCSSyncDelegate != null, "Creator is null at index {0}", new object[]
         {
             msg.bSyncType
         });
         return(creatorCSSyncDelegate(ref msg));
     }
     DebugHelper.Assert(false, "not register framec ommand creator {0}", new object[]
     {
         msg.bSyncType
     });
     return(null);
 }
Ejemplo n.º 12
0
 public bool TransProtocol(ref CSDT_GAMING_CSSYNCINFO msg)
 {
     return(true);
 }
Ejemplo n.º 13
0
 public bool TransProtocol(CSDT_GAMING_CSSYNCINFO msg)
 {
     msg.stCSSyncDt.get_stMove().nDegree = this.Degree;
     msg.stCSSyncDt.get_stMove().bSeq    = this.nSeq;
     return(true);
 }
 public bool TransProtocol(CSDT_GAMING_CSSYNCINFO msg)
 {
     msg.stCSSyncDt.stPositionSkill.chSlotType = (sbyte)this.SlotType;
     CommonTools.CSDTFromVector2(this.Position, ref msg.stCSSyncDt.stPositionSkill.stPosition);
     return(true);
 }
Ejemplo n.º 15
0
 public bool TransProtocol(CSDT_GAMING_CSSYNCINFO msg)
 {
     msg.bSyncType = this.cmdType;
     return(this.cmdData.TransProtocol(msg));
 }
Ejemplo n.º 16
0
 public bool TransProtocol(CSDT_GAMING_CSSYNCINFO msg)
 {
     msg.stCSSyncDt.stBaseAttack.bStart     = (byte)this.Start;
     msg.stCSSyncDt.stBaseAttack.dwObjectID = this.uiRealObjID;
     return(true);
 }