Exemple #1
0
        internal void SyncFaceDirection(float face_direction)
        {
            Msg_CRC_Face bd = new Msg_CRC_Face();

            bd.face_direction = face_direction;
            SendMessage(bd);
        }
Exemple #2
0
    internal static void Execute(object msg, NetConnection conn, NetworkSystem networkSystem)
    {
        Msg_CRC_Face face_msg = msg as Msg_CRC_Face;

        if (null == face_msg)
        {
            return;
        }
    }
Exemple #3
0
        internal static void Execute(object msg, User user)
        {
            Msg_CRC_Face face_dir = msg as Msg_CRC_Face;

            if (null == face_dir)
            {
                return;
            }

            user.Info.GetMovementStateInfo().SetFaceDir(face_dir.face_direction);
        }
Exemple #4
0
        public void SyncFaceDirection(float face_direction)
        {
            if (Math.Abs(m_LastFaceDir - face_direction) <= 0.01)
            {
                return;
            }
            m_LastFaceDir = face_direction;
            Msg_CRC_Face bd = new Msg_CRC_Face();

            bd.face_direction = face_direction;
            SendMessage(bd);
        }
Exemple #5
0
    internal static void Execute(object msg, RoomPeer peer)
    {
        Msg_CRC_Face face_msg = msg as Msg_CRC_Face;

        if (null == face_msg)
        {
            return;
        }
        Msg_CRC_Face bd = face_msg;

        bd.role_id = peer.RoleId;
        peer.BroadCastMsgToRoom(bd);
    }