Object management method and system, electronic equipment and computer readable storage medium
By dividing object IDs into indexes and identification codes, and managing mapping relationships in the object manager, the problem of low object ID query efficiency in the game battle server is solved, and efficient object query and resource management are achieved.
Patent Information
- Application Number
- CN202410670188.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-10-08
AI Technical Summary
The object ID query efficiency in existing game battle servers is low and takes up a lot of computing resources, which causes performance problems especially when a large number of objects exist.
Divide the object ID into index and identification code, establish the mapping relationship between the object ID and the object object through the identification code, and manage the mapping relationship in the object manager to realize the recycling and query optimization of the dead object ID.
It effectively reduces the calculation amount during subsequent queries, improves the query efficiency of object objects, reduces the consumption of data bits and computing resources, and improves query efficiency.
Smart Images

Figure CN118747170A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to an object management method, system, electronic device and computer-readable storage medium. Background Art
[0002] In the game battle server, each object is assigned an ID. Since the object ID is used in multiple modules, when the object dies, its ID may still be used by other modules. However, it is very expensive to recycle the ID from all modules, so the object ID will not be recycled for reuse. Therefore, the object ID is generally assigned in an incremental manner.
[0003] Existing algorithms for searching for object objects by object ID generally use a binary tree or a hash value method, but both methods have certain performance issues. When there are a large number of object objects, the query efficiency is low and more computing resources are occupied. Summary of the invention
[0004] The embodiments of the present application provide an object management method, system, electronic device and computer-readable storage medium to at least solve the problems of low query efficiency and large amount of computing resources occupied in the related art.
[0005] The embodiment of the present application provides an object management method, which is applied to an object manager, and the object manager is used to cooperate with a game system, and the method includes:
[0006] Constructing a mapping relationship between an object ID and an object object, wherein the object ID includes an index and an identification code, the index of the object ID represents the index of the mapping relationship, and the identification code corresponds to the object object one by one;
[0007] In response to receiving the extinct object ID sent by the game system, determining a first target mapping relationship in the mapping relationship according to an index in the extinct object ID;
[0008] The first target mapping relationship is released.
[0009] In one embodiment, the object manager is configured to store, in the mapping relationship, a corresponding relationship between the identification code and the object.
[0010] In one embodiment, the step of constructing a mapping relationship between the object ID and the object object includes:
[0011] In response to receiving the newly created object sent by the game system, selecting an element whose object value is null, and setting the value of the element to the newly created object;
[0012] Determine the index of the newly created object according to the position of the element in the mapping relationship, and determine the identification code of the newly created object according to a preset rule;
[0013] The newly created object ID is determined according to the index and identification code of the newly created object, and a mapping relationship between the newly created object ID and the newly created object object is obtained.
[0014] In one embodiment, the releasing the target mapping relationship includes:
[0015] Determine a first target identification code and a first target object according to the first target mapping relationship;
[0016] The queried first target identification code and the first target object are modified.
[0017] In one embodiment, the modifying of the queried target identification code and target object includes:
[0018] Add 1 to the value of the first target identification code found;
[0019] The value of the first target object found is modified to a null value.
[0020] In one embodiment, the method further comprises:
[0021] Determine, according to the index in the target object ID, a target index of the second target mapping relationship in the mapping relationship;
[0022] Determine a second target identification code and a second target object of the second target mapping relationship according to the target index;
[0023] Determine whether the second target identification code is equal to the identification code in the target object ID. If they are equal, output the second target object.
[0024] In one embodiment, determining the identification code of the newly created object according to a preset rule includes: determining the identification code of the newly created object according to a creation order of the newly created object objects.
[0025] In one embodiment, the maximum capacity of the object manager is the same as the maximum capacity of the index.
[0026] In a second aspect, an embodiment of the present application provides an object management system, the system comprising an object manager, the object manager being used to cooperate with a game system, the object management system comprising:
[0027] Mapping module: used to construct a mapping relationship between an object ID and an object object, wherein the object ID includes an index and an identification code, the index of the object ID represents the index of the mapping relationship, and the identification code corresponds to the object object one by one;
[0028] A determination module: configured to determine a first target mapping relationship in the mapping relationship according to an index in the ID of the destroyed object in response to receiving the ID of the destroyed object sent by the game system;
[0029] Release module: used to release the first target mapping relationship.
[0030] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the object management method described in the first aspect when executing the computer program.
[0031] The object management method, system, electronic device, and computer-readable storage medium provided by the embodiments of the present application have at least the following technical effects.
[0032] This application divides the object ID into an index and an identification code, establishes a mapping relationship between the object ID and the object object through the identification code, manages the mapping relationship through the object manager, and recycles the ID of the dead object. In this way, the impact of a large amount of invalid data left after the object disappears is avoided, thereby effectively reducing the amount of calculation during subsequent queries and improving the query efficiency of the object object. At the same time, the target object object can be directly queried from the object manager through the index of the target object, involving fewer data bits, lower time complexity, and higher query efficiency.
[0033] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0035] Figure 1 is a flow chart of an object management method according to an exemplary embodiment;
[0036] Figure 2 is a structural block diagram of an object management system according to an exemplary embodiment;
[0037] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0039] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0040] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0041] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0042] In a first aspect, an embodiment of the present application provides an object management method, which is applied to an object manager, and the object manager is used to cooperate with a game system. Optionally, the object manager is used to store and manage the mapping relationship between the object ID and the object object during the game, including the addition, search and release of the mapping relationship. Among them, the implementation method of the object manager includes: implementation in an array manner and implementation in a list manner, and the number of game systems is at least one.
[0043] Figure 1 is a flow chart of an object management method according to an exemplary embodiment. Figure 1 As shown, the method includes:
[0044] Step S101, constructing a mapping relationship between an object ID and an object object, wherein the object ID includes an index and an identification code, the index of the object ID represents the index of the mapping relationship, and the identification code corresponds to the object object one by one.
[0045] Optionally, the object ID is divided into two parts: an index and an identification code. The object ID involved in this application consists of a 32-bit integer, with the first 12 bits used as the index (index) and the last 20 bits used as the identification code (code). An object ID can be uniquely identified by (index, code). The index part can represent 4096 objects, and the range of the index is from 0 to 4095 (a battle in the game usually does not exceed 4096 objects). The number of bits for the index and identification code can be determined according to actual conditions and is not limited to the number of bits involved in this application. The index of the object ID is consistent with the index in the mapping relationship. The storage method of the mapping relationship in the object manager includes but is not limited to one of an array and a list, and the storage capacity of the object manager in this application is 4096. The storage capacity of the object manager can be limited according to the specific application scenario.
[0046] In one example, the mapping relationship in the object manager is stored as a corresponding relationship between the identification code and the object.
[0047] Optionally, the mapping relationship is stored in the object manager in the form of a data pair, wherein the identification code of an object ID and the corresponding object object are a data pair, and the storage method includes but is not limited to one of an array and a list. The object ID in the present application consists of a 32-bit integer, the first 12 bits are the index, and the last 20 bits are the identification code. In the mapping relationship, only the identification code and object object of the object ID are stored instead of the complete object ID. On the one hand, it can reduce the amount of data during storage and save storage resources; on the other hand, it can reduce the amount of data during subsequent queries and improve query efficiency. Thereby effectively improving the management efficiency of the object manager.
[0048] Step S101 constructs a mapping relationship between an object ID and an object object through an identification code and an object object, and associates an index of the object ID with an index of the mapping relationship, so as to facilitate subsequent operations such as querying and releasing the mapping relationship in the object manager according to the index of the object ID.
[0049] In one example, step S101 includes:
[0050] Step S1011, in response to receiving a newly created object sent by the game system, select an element in the object manager whose object value is empty, and set the value of the element to the newly created object.
[0051] Optionally, the object manager stores the identification code and object object in the object ID. If the object object is empty, it means that the position is free and can be used to map a new object; if the object object is not empty, it means that the position is in use. Initially, all object objects in the object manager are empty and the identification code part is 0.
[0052] Step S1012: determining the index of the newly created object according to the position of the element in the mapping relationship, and determining the identification code of the newly created object according to a preset rule.
[0053] Optionally, when the mapping relationship is stored in an array or list, there will be an index number. The position of the element in the mapping relationship is the index number. The index number in the mapping relationship is used as the index in the newly created object ID, and the identification code of the newly created object is determined according to preset rules.
[0054] Among them, determining the identification code of the newly created object according to the preset rule includes at least the following two implementation methods:
[0055] (1) Determine the identification code of the newly created object according to the creation order of the newly created object. For example, the identification code of the first created object is set to 1, and the identification code of the second created object is set to 2.
[0056] (2) When the identification code already exists but the object is empty, the existing identification code is used as the identification code of the newly created object.
[0057] Specifically, when there is a demapped relationship, the elements of the object object have been reset to empty, but the identification code part has been modified but still exists. Therefore, the newly created object object can be directly stored in the reset position. At this time, the identification code already exists, and the existing identification code can be used as the identification code of the newly created object.
[0058] In one example, the maximum capacity of the object manager is the same as the maximum capacity of the index.
[0059] Optionally, the index of the newly created object is determined according to the position of the element in the mapping relationship, that is, the index number of the mapping relationship is used as the index of the object ID. In order to maintain the balance of storage, the maximum capacity of the object manager is the same as the maximum capacity of the index. In this application, the maximum capacity of the object manager and the index are both 4096, and the size of the capacity can be set according to the actual application requirements.
[0060] Step S1013, determining the newly created object ID according to the index and identification code of the newly created object, and obtaining a mapping relationship between the newly created object ID and the newly created object object.
[0061] In this example, the newly created object is stored in an element of the object manager with a null value in step S1011, the index and identification code of the newly created object ID are generated in step S1012, and the mapping relationship between the newly created object and the newly created object ID is constructed in step S1013. In this way, a new mapping relationship is added in the device manager, and the application breadth of the device manager is improved.
[0062] Step S102, in response to receiving the ID of the destroyed object sent by the game system, determining a first target mapping relationship in the mapping relationship according to the index in the ID of the destroyed object.
[0063] Optionally, the index of the object ID in step S101 represents the index of the mapping relationship, so the first target mapping relationship can be determined in the mapping relationship of the object manager according to the index in the extinct object ID. For example, the extinct object ID is represented by (index, code), F represents the object manager, F[N] represents the Nth object in the object manager, and N represents the index in the mapping relationship, where N=index. F[N].code represents the code of the Nth object ID, F[N].obj represents the Nth mapped object, and F[N].code and F[N].obj are the first target mapping relationship.
[0064] Step S102 determines the first target mapping relationship through the index in the ID of the dead object, so as to facilitate the subsequent release of the first target mapping relationship. At the same time, compared with the method of querying through the ID, determining the first target mapping relationship through the index in the ID of the dead object has a smaller amount of calculation, consumes less computing resources, and has a higher query speed and efficiency.
[0065] Step S103, canceling the first target mapping relationship. Optionally, the data in the first target mapping relationship is modified so that the original mapping relationship cannot be established, thereby canceling the first target mapping relationship.
[0066] In one example, step S103 includes:
[0067] Step S301: determine a first target identification code and a first target object according to a first target mapping relationship.
[0068] Step S302: modify the queried first target identification code and the first target object.
[0069] Optionally, releasing the first target mapping relationship by modifying the first target identification code and the first target object includes: releasing the value of the first target object, that is, setting the value of the first target object to null; adding 1 to the value of the first target identification code; or adding 2 to the value of the first target identification code; or modifying the value of the first target identification code to 0.
[0070] Preferably, the value of the first target identification code queried is increased by 1, and the value of the first target object queried is modified to a null value. Thus, the original object object is released, the mapping relationship between the object ID and the object is cancelled, and 1 is directly added to the original identification code value, which is equivalent to directly generating the next identification code. When a new object object is subsequently created, there is no need to regenerate the identification code. The new object object can be directly stored in the free area, and the identification code corresponding to the area can be directly used as the identification code of the new object ID. In this way, the mapping relationship between the object ID and the object object is cancelled, and the efficiency of data management in the device manager is improved.
[0071] Step S103 cancels the mapping relationship between the extinct object ID and the extinct object object by modifying the data in the target mapping relationship, thereby realizing the recovery of the extinct object ID, avoiding the influence of a large amount of invalid data left after the object disappears, facilitating the effective reduction of the calculation amount in subsequent queries, reducing the consumption of data resources, and improving the data management efficiency of the device manager and the query efficiency of subsequent object objects.
[0072] In one example, the method further includes:
[0073] Step S401, determining the target index of the second target mapping relationship in the mapping relationship according to the index in the target object ID.
[0074] Step S402: determining a second target identification code and a second target object of a second target mapping relationship according to the target index.
[0075] Step S403, determining whether the second target identification code is equal to the identification code in the target object ID, and if they are equal, outputting the second target object.
[0076] Optionally, assuming that the target object ID is (index, code), F represents the object manager, F[N] represents the Nth object in the object manager, and N represents the index in the mapping relationship, the target index is index. Determine the second target identification code and the second target object according to index, which can be expressed as determining F[N].code and F[N].obj according to F[index]. Determine whether F[N].code is equal to code. If they are equal, output the second target object F[N].obj.
[0077] In this example, the target object is directly queried from the object manager through the index in the target object ID. Compared with the method of directly querying through the object ID, the number of data bits and the amount of data involved are fewer, the computing resources consumed are also less, the computing time complexity is lower, and the query efficiency is higher. At the same time, the present application establishes a mapping relationship between the object object and the object ID through steps S101 to S103, and releases the mapping relationship of the dead object through the object manager to realize the recovery of the dead object ID, avoiding the influence of a large amount of invalid data retained after the object disappears, thereby effectively reducing the amount of data in subsequent queries and improving the query efficiency of the object object.
[0078] In summary, the present application divides the object ID into an index and an identification code, establishes a mapping relationship between the object ID and the object object through the identification code, and cancels the mapping relationship of the extinct object through step S103 to realize the recovery of the extinct object ID. In this way, the influence of a large amount of invalid data retained after the object disappears is avoided, thereby effectively reducing the amount of calculation during subsequent queries and improving the query efficiency of the object object. The present application can realize the addition, cancellation and query of mapping relationships, and the data management efficiency is relatively high. At the same time, the present application can directly query the target object object from the object manager directly through the index of the target object. Compared with the method of directly querying through the object ID, the number of data bits and the amount of data involved are fewer, the computing resources consumed are also less, the computing time complexity is lower, and the query efficiency is higher.
[0079] In a second aspect, an embodiment of the present application provides an object management system, the system includes an object manager, and the object manager is used to cooperate with a game system. Figure 2 is a structural block diagram of an object management system according to an exemplary embodiment. Figure 2 As shown, the system includes:
[0080] Mapping module 100: used to construct a mapping relationship between an object ID and an object object. The object ID includes an index and an identification code. The index of the object ID represents the index of the mapping relationship. The identification code corresponds to the object object one by one.
[0081] Determination module 200: is used to determine a first target mapping relationship in the mapping relationship according to an index in the ID of the destroyed object in response to receiving the ID of the destroyed object sent by the game system.
[0082] Release module 300: used to release the first target mapping relationship.
[0083] In one example, the object manager is configured to store, in a mapping relationship, a corresponding relationship between the identification code and the object.
[0084] In one example, the mapping module 100 includes:
[0085] Object unit: used to respond to receiving a new object sent by the game system, select an element whose object value is empty, and set the value of the element to the new object.
[0086] ID unit: used to determine the index of the newly created object according to the position of the element in the mapping relationship, and determine the identification code of the newly created object according to the preset rules.
[0087] In one example, the ID unit in the mapping module 100 includes: determining the identification code of the newly created object according to the creation order of the newly created object.
[0088] Mapping unit: used to determine the newly created object ID according to the index and identification code of the newly created object, and determine the mapping relationship between the newly created object ID and the newly created object according to the newly created object and its corresponding identification code.
[0089] In one example, the maximum capacity of the object manager in the mapping module 100 is the same as the maximum capacity of the index.
[0090] In one example, the release module 300 includes:
[0091] Determining unit: used to determine the first target identification code and the first target object according to the first target mapping relationship.
[0092] Modification unit: used to modify the queried first target identification code and the first target object.
[0093] In one example, the modification unit in the release module 300 includes: a unit for adding 1 to the value of the queried first target identification code, and modifying the value of the queried first target object to a null value.
[0094] In one example, the system is further configured to:
[0095] According to the index in the target object ID, the target index of the second target mapping relationship in the mapping relationship is determined.
[0096] Determine a second target identification code and a second target object of a second target mapping relationship according to the target index.
[0097] It is determined whether the second target identification code is equal to the identification code in the target object ID. If they are equal, the second target object is output.
[0098] In summary, the present application divides the object ID into an index and an identification code through the mapping module 100, establishes a mapping relationship between the object ID and the object object through the identification code, and cancels the mapping relationship of the disappeared object through the cancellation module 300 to realize the recovery of the disappeared object ID. In this way, the influence of a large amount of invalid data retained after the object disappears is avoided, thereby effectively reducing the amount of calculation during subsequent queries and improving the query efficiency of the object object. The present application can realize the addition, cancellation and query of mapping relationships, and the data management efficiency is relatively high. At the same time, the present application can directly query the target object object from the object manager directly through the index of the target object. Compared with the method of directly querying through the object ID, the number of data bits and the amount of data involved are fewer, the computing resources consumed are also less, the computing time complexity is lower, and the query efficiency is higher.
[0099] In a third aspect, an embodiment of the present application provides an electronic device, Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the object management method provided in the first aspect is implemented. Figure 3 The electronic device 60 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0100] The electronic device 60 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 60 may include but are not limited to: at least one processor 61, at least one memory 62, and a bus 63 connecting different system components (including the memory 62 and the processor 61).
[0101] The bus 63 includes a data bus, an address bus, and a control bus.
[0102] The memory 62 may include a volatile memory, such as a random access memory (RAM) 621 and / or a cache memory 622 , and may further include a read-only memory (ROM) 623 .
[0103] The memory 62 may also include a program / utility 625 having a set (at least one) of program modules 624, such program modules 624 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0104] The processor 61 executes various functional applications and data processing by running the computer programs stored in the memory 62, such as the object management method of the first aspect of the present application.
[0105] The electronic device 60 may also communicate with one or more external devices 64 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 65. Furthermore, the model-generated device 60 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 66. As shown, the network adapter 66 communicates with other modules of the model-generated device 60 via a bus 63. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the model-generated device 60, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems.
[0106] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0107] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0108] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for object management, It is characterized in that The method is applied to an object manager, and the object manager is used to cooperate with a game system. The method includes: Constructing a mapping relationship between an object ID and an object object, wherein the object ID includes an index and an identification code, the index of the object ID represents the index of the mapping relationship, and the identification code corresponds to the object object one by one; In response to receiving the extinct object ID sent by the game system, determining a first target mapping relationship in the mapping relationship according to an index in the extinct object ID; The first target mapping relationship is released.
2. The object management method according to claim 1, It is characterized in that The object manager is configured to store, in the mapping relationship, the corresponding relationship between the identification code and the object object.
3. The object management method according to claim 1, It is characterized in that The step of constructing a mapping relationship between the object ID and the object object includes: In response to receiving the newly created object sent by the game system, selecting an element whose object value is null, and setting the value of the element to the newly created object; Determine the index of the newly created object according to the position of the element in the mapping relationship, and determine the identification code of the newly created object according to a preset rule; The newly created object ID is determined according to the index and identification code of the newly created object, and a mapping relationship between the newly created object ID and the newly created object object is obtained.
4. The object management method according to claim 3, It is characterized in that The releasing the target mapping relationship comprises: Determine a first target identification code and a first target object according to the first target mapping relationship; The queried first target identification code and the first target object are modified.
5. The object management method according to claim 4, It is characterized in that The modifying of the queried target identification code and target object includes: Add 1 to the value of the first target identification code found; The value of the first target object found is modified to a null value.
6. The object management method according to claim 1, It is characterized in that The method further comprises: Determine, according to the index in the target object ID, a target index of the second target mapping relationship in the mapping relationship; Determine a second target identification code and a second target object of the second target mapping relationship according to the target index; Determine whether the second target identification code is equal to the identification code in the target object ID. If they are equal, output the second target object.
7. The object management method according to claim 3, It is characterized in that The determining the identification code of the newly created object according to a preset rule includes: determining the identification code of the newly created object according to a creation order of the newly created object objects.
8. The object management method according to claim 1, It is characterized in that The maximum capacity of the object manager is the same as the maximum capacity of the index.
9. An object management system, It is characterized in that The system includes an object manager, which is used to cooperate with the game system. The object management system includes: Mapping module: used to construct a mapping relationship between an object ID and an object object, wherein the object ID includes an index and an identification code, the index of the object ID represents the index of the mapping relationship, and the identification code corresponds to the object object one by one; A determination module: configured to determine a first target mapping relationship in the mapping relationship according to an index in the ID of the destroyed object in response to receiving the ID of the destroyed object sent by the game system; Release module: used to release the first target mapping relationship.
10. An electronic device, It is characterized in that Memory, processor, and A computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the object management method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Method for protecting private data through separately storing query logics and segmented data
CN107229872A
Methods and systems for determining a reaction time for a response synchronizing user interface(s) with content being rendered
CN110691633A
Account cancellation method and device and computer equipment
CN112235303A
Searching method and device, computer equipment and storage medium
CN114817717A
Data storage method and device
CN115034953A
