Ejemplo n.º 1
0
        internal void SyncPlayerMoveStart(float x, float z, float dir)
        {
            ArkCrossEngineMessage.Msg_CRC_MoveStart builder = new ArkCrossEngineMessage.Msg_CRC_MoveStart();
            builder.send_time = TimeUtility.GetServerMilliseconds();
            builder.dir       = dir;
            Position pos = new Position();

            pos.x                   = x;
            pos.z                   = z;
            builder.position        = pos;
            builder.is_skill_moving = false;
            SendMessage(builder);
        }
Ejemplo n.º 2
0
        internal void SyncPlayerMoveStart(float dir)
        {
            WorldSystem.Instance.IsAlreadyNotifyMeetObstacle = false;

            UserInfo userInfo = WorldSystem.Instance.GetPlayerSelf();

            if (null != userInfo)
            {
                MovementStateInfo msi = userInfo.GetMovementStateInfo();
                ArkCrossEngineMessage.Msg_CRC_MoveStart builder = new ArkCrossEngineMessage.Msg_CRC_MoveStart();
                builder.send_time = TimeUtility.GetServerMilliseconds();
                builder.dir       = dir;
                Position pos = new Position();
                pos.x                   = msi.PositionX;
                pos.z                   = msi.PositionZ;
                builder.position        = pos;
                builder.is_skill_moving = msi.IsSkillMoving;
                SendMessage(builder);
            }
        }