コード例 #1
0
        public static void UpdateServerAvatar(byte[] data)
        {
            server_avatar = Scale(data);

            if (UserPool.AUsers != null)
            {
                UserPool.AUsers.ForEachWhere(x => x.SendPacket(TCPOutbound.BotAvatar(x, server_avatar)),
                                             x => x.LoggedIn);
            }
        }
コード例 #2
0
 internal static byte[] Server(AresClient client)
 {
     if (server_avatar == null)
     {
         return(TCPOutbound.BotAvatarCleared(client));
     }
     else
     {
         return(TCPOutbound.BotAvatar(client, server_avatar));
     }
 }