The No. 473 Day of work

Source: Internet
Author: User

Today is a bit tired, may be recently overloaded overtime study, also may be last night's right hand and naughty, so today's efficiency is a bit low.

But I figured out the two of the three major categories of server business logic, namely resource managers and communication modules.

The communication module is initialized when the server is started, and the message processing method of each communication module (NPC module, consumable module, etc.) corresponding to the client's request is registered to a global array. Then after the client has the message come over, based on the product of ModuleID and funcid to adjust the global array inside the processing method. The server main loop will read the message queue after a certain amount of time, processing those requests in turn.

The resource Manager also works in the main loop of the server, and when it is cycled to a manager, the corresponding Update method is adjusted. For example, to update the characters of the current scene, each role entity corresponding to the scene has a linked list, including the current interface that the appearance of the characters, such as strange, NPC or other players, etc., beyond the interface of the characters will be deleted from the list, and then update the first to empty all the characters, and then see what the list of characters, Then place (The individual feels this method is less efficient).

There are also many communication modules and resource managers involved in business logic, which I would like to play after the game to see, because I hate to see the code to guess business logic, very silly.

The third entity subsystem, to tell the truth, I have not read what is going on, tomorrow should be able to understand.

In addition, Feng elder brother gave me the assignment of that task, I have not finished. although I have searched all the places that could have been wrong, I haven't read them. Because I have asked my next-door predecessor, he was also looking for again, also did not find. Then he can not find the experience, Feng Elder brother can not find, how can I find it? In this state of mind, I feel that I will never find this loophole in my life, should be self-criticism, and then look good tomorrow.

The connection between things is always wonderful, as long as you think of one thing, and try to approach it, it will come, this is the legendary fate.

The No. 473 Day of work

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.