Beispiel #1
0
        internal void SyncPlayerMoveStop(float x, float z)
        {
            ArkCrossEngineMessage.Msg_CRC_MoveStop builder = new ArkCrossEngineMessage.Msg_CRC_MoveStop();
            builder.send_time = TimeUtility.GetServerMilliseconds();
            Position pos = new Position();

            pos.x            = x;
            pos.z            = z;
            builder.position = pos;
            SendMessage(builder);
        }
Beispiel #2
0
        internal void SyncPlayerMoveStop()
        {
            UserInfo userInfo = WorldSystem.Instance.GetPlayerSelf();

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