示例#1
0
文件: ChatModel.cs 项目: Stein-3/chat
        public async Task AddUsersAsync(List <string> userEmails, HttpClient httpClient)
        {
            var response = await RoomUtility.AddUsersToRoom(RoomId, userEmails, httpClient);

            RoomParticipants = response.Users;

            InOutUser?.Invoke();
        }
示例#2
0
    public Packet GetSpecialNodeData(Packet packet, Node node, Character player)
    {
        RoomUtility.DATA dataType = (RoomUtility.DATA)(int)(node.Call("get_data"));

        switch (dataType)
        {
        case RoomUtility.DATA.CHEST:
        case RoomUtility.DATA.SOUL_KEEPER:
            return(packet.AddU8(RoomUtility.IsChestOpened(player, node.GetMeta("id") as string + mapId) ? (byte)1 : (byte)0));
        }

        return(null);
    }