コード例 #1
0
ファイル: ChatFormat.cs プロジェクト: zeaf/NexusForever
        public void Read(GamePacketReader reader)
        {
            Type       = reader.ReadEnum <ChatFormatType>(4);
            StartIndex = reader.ReadUShort();
            StopIndex  = reader.ReadUShort();

            FormatModel = SocialManager.GetChatFormatModel(Type);
            if (FormatModel == null)
            {
                throw new NotImplementedException();
            }

            FormatModel.Read(reader);
        }