This repository has moved! Please check out the latest version at the new location https://git.exmods.org/NGnius/GameSDKcraft
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

27 行
742B

  1. using System;
  2. using System.Runtime.InteropServices;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Discord
  6. {
  7. public partial class LobbyManager
  8. {
  9. public IEnumerable<User> GetMemberUsers(Int64 lobbyID)
  10. {
  11. var memberCount = MemberCount(lobbyID);
  12. var members = new List<User>();
  13. for (var i = 0; i < memberCount; i++)
  14. {
  15. members.Add(GetMemberUser(lobbyID, GetMemberUserId(lobbyID, i)));
  16. }
  17. return members;
  18. }
  19. public void SendLobbyMessage(Int64 lobbyID, string data, SendLobbyMessageHandler handler)
  20. {
  21. SendLobbyMessage(lobbyID, Encoding.UTF8.GetBytes(data), handler);
  22. }
  23. }
  24. }