-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP][core] Dummy character system #608
Conversation
virtual void clearPacketList(); // отчистка PacketList | ||
virtual void pushPacket(CBasicPacket*); // добавление копии пакета в PacketList | ||
virtual void pushPacket(std::unique_ptr<CBasicPacket>); // push packet to packet list | ||
virtual bool isPacketListEmpty(); // проверка размера PacketList | ||
virtual auto popPacket() -> CBasicPacket*; // получение первого пакета из PacketList | ||
virtual auto getPacketList() -> PacketList_t; // returns a COPY of packet list | ||
virtual auto getPacketCount() -> size_t; | ||
virtual void erasePackets(uint8 num); // erase num elements from front of packet list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: What is the performance penalty here, probably pretty bad...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we store all of these in a separate object? ie: CCharEntity
has a member: std::unique_ptr<CPacketListContainer>
which we populate on CCharEntity contruction
, but we set as nullptr for dummies. Think pImp pattern?
00a558a
to
3d70678
Compare
Don't think I ever want this to make it into the actual codebase. Will save the patch and write an article about it |
Article, linked from the development wiki page: |
Adjusts mobType bits as well as addresses mobwsprep function.
it will be merg to master banch? |
No, this was just a proof of concept, it'll never be merged into master/base |
Concept
I affirm: