예제 #1
0
        private void HandleSocialInitParty(SocialInitPartyMessage message)
        {
            var user = FieldManager
                       .GetAll()
                       .Select(f => f.GetObject <FieldUser>(message.CharacterID))
                       .FirstOrDefault(u => u != null);

            if (user == null)
            {
                return;
            }

            using var p = new Packet(SendPacketOperations.PartyResult);
            p.Encode <byte>(0x7);
            p.Encode <int>(message.Data.ID);
            message.Data.Encode(p);
            user.SendPacket(p);
        }