Game resource query method and device
By building and querying forward or backreference index files for game resources, the problem of low efficiency in game resource query is solved, and fast query and efficient management are achieved.
Patent Information
- Application Number
- CN202311642859.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-01
- Publication Date
- 2025-01-10
AI Technical Summary
The existing game resource query methods are inefficient, resulting in poor management results, especially when the number of resources is huge, the forward and reverse reference relationship query is slow.
By obtaining the global unique identifier and file type of the resource file to be queried, the forward or reverse reference relationship index file is retrieved, the resource identifier is constructed based on the index relationship, query and determine the reference relationship of the resource file, reduce the data processing volume, and improve the Query speed.
It realizes the reference relationship of quickly querying game resources, improves query efficiency and management effect, and reduces the amount of search data for all resources.
Smart Images

Figure CN119292996A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of game development, and in particular to a method and device for querying game resources. Background Art
[0002] In the process of developing games based on game engines, it is usually necessary to organize a large number of game resources so that they can be quickly queried and retrieved at different development stages, thereby optimizing the development manpower and material resources of different game projects. Among them, game resources include various types of files such as models, textures, and materials used in the game development process. When making game scenes, it is necessary to retrieve the corresponding game resources to make games. At this time, organizing the reference relationship between game resources plays an important role in optimizing game development projects.
[0003] At present, the existing game resource query is usually based on the forward reference relationship list established based on the reference relationship between the interface and the resource. That is, by searching the interface to query other resources referenced by the current resource, for example, the identifiers of all resource files are cached, and the reference relationship list between the identifiers is used to retrieve and query the reference relationship of each resource. When reverse reference is required, that is, when querying which other resources the current resource is referenced by, it is necessary to traverse the forward reference relationship of all resources and then obtain the reverse reference relationship. However, due to the large number of resources, the system processing resources for traversing all resources and then determining the forward and reverse reference relationships are also huge, resulting in slow query of the forward and reverse reference relationships of game resources, thereby reducing the query efficiency of game resources and affecting the management effect of game resources. Summary of the invention
[0004] In view of this, the present invention provides a method and device for querying game resources, the main purpose of which is to solve the problem of poor management effect and low efficiency of existing game resources.
[0005] According to one aspect of the present invention, a method for querying game resources is provided, comprising:
[0006] Obtain the globally unique identifier and file type of the resource file to be queried;
[0007] Retrieving a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determining a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier, wherein the forward reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a first index relationship for characterizing forward references, and the reverse reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a second index relationship for characterizing reverse references, wherein the resource identifier is constructed based on the number of traversals of the file type and the file type identifier;
[0008] Based on the first index relationship and / or the second index relationship, all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier are queried, and based on the all forward reference relationships and / or all reverse reference relationships, the game resources with which the resource file has a reference relationship are determined.
[0009] Furthermore, before obtaining the globally unique identifier and file type of the resource file to be queried, the method further includes:
[0010] Obtaining globally unique identifiers and resource identifier correspondences of all resource files, calling forward reference relationship files of the resource files, wherein the resource identifier correspondences include mapping relationships between resource identifiers of the resource files and globally unique identifiers, and the forward reference relationship files include mapping relationships between globally unique identifiers of the resource files and forward reference relationship hash values;
[0011] Based on the resource identifier correspondence, the resource identifier is used to replace the globally unique identifier in the forward reference relationship file to obtain a forward reference resource identifier correspondence;
[0012] The forward reference relationship hash value of the resource file, the corresponding relationship between the forward reference resource identifier and the resource identifier are determined as a first index relationship, and a forward reference relationship index file corresponding to the file type of the resource file is generated.
[0013] Furthermore, before obtaining the globally unique identifier and file type of the resource file to be queried, the method further includes:
[0014] Obtaining the file types of all resource files, and searching for the resource identifier of the resource file in the reverse reference relationship file of the file type, wherein the reverse reference relationship file includes a mapping relationship between a globally unique identifier of the resource file and a resource identifier;
[0015] If the resource identifier exists in the reverse reference relationship file, obtain the reverse reference relationship hash value of the resource file and the reverse reference resource identifier correspondence relationship, and construct a second index relationship between the reverse reference relationship hash value, the reverse reference resource identifier correspondence relationship and the resource identifier;
[0016] If the resource identifier does not exist in the reverse reference relationship file, constructing a second index relationship based on the resource identifier of the resource file and the resource identifier of the reverse reference file;
[0017] A reverse reference relationship index file corresponding to the file type of the resource file is generated based on the first index relationship or the second index relationship.
[0018] Further, the determining the forward reference relationship hash value of the resource file, the corresponding relationship between the forward reference resource identifier and the resource identifier as a first index relationship includes:
[0019] The reference relationship hash value of the resource file and the corresponding relationship of the forward reference resource identifier are configured as a data unit, and the resource identifier is configured as a key value;
[0020] The first index relationship is constructed based on the data unit and the key value.
[0021] Furthermore, before obtaining the globally unique identifiers of all resource files and the corresponding relationships between resource identifiers, the method further includes:
[0022] Get the file types and globally unique identifiers of all resource files;
[0023] Counting the number of traversals of the file type, and constructing a resource identifier based on the number of traversals and the file type identifier of the file type;
[0024] A resource identifier correspondence relationship including a mapping relationship between the resource identifier and the globally unique identifier is generated.
[0025] Furthermore, the method further comprises:
[0026] In response to a reference relationship update instruction of a target resource file, obtaining a globally unique identifier of the target resource file, wherein the reference relationship update instruction carries a hash value of the reference relationship to be updated;
[0027] Under the condition that a resource identifier corresponding to the globally unique identifier is found, a forward reference relationship index file and / or a reverse reference relationship index file corresponding to the file type of the target resource file is determined;
[0028] Under the condition that the forward reference relationship hash value and / or the reverse reference relationship hash value queried based on the resource identifier exist in the forward reference relationship index file and / or the reverse reference relationship index file, the forward reference relationship hash value and / or the reverse reference relationship hash value are updated based on the reference relationship hash value to be updated.
[0029] According to another aspect of the present invention, a game resource query device is provided, comprising:
[0030] An acquisition module, used to obtain a globally unique identifier and a file type of a resource file to be queried;
[0031] A determination module, used to retrieve a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determine a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier, wherein the resource identifier is constructed based on the number of traversals of the file type and the file type identifier;
[0032] The query module is used to query all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier, and determine the game resources with which the resource file has a reference relationship based on all forward reference relationships and / or all reverse reference relationships.
[0033] Furthermore, the device also includes:
[0034] A calling module, used to obtain the globally unique identifiers and resource identifier correspondences of all resource files, and call the forward reference relationship file of the resource file, wherein the resource identifier correspondence includes a mapping relationship between the resource identifier of the resource file and the globally unique identifier, and the forward reference relationship file includes a mapping relationship between the globally unique identifier of the resource file and the forward reference relationship hash value;
[0035] A replacement module, used for replacing the globally unique identifier in the forward reference relationship file with the resource identifier based on the resource identifier correspondence relationship to obtain a forward reference resource identifier correspondence relationship;
[0036] The first generation module is used to determine the forward reference relationship hash value of the resource file, the corresponding relationship of the forward reference resource identifier and the resource identifier as a first index relationship, and generate a forward reference relationship index file corresponding to the file type of the resource file.
[0037] Furthermore, the device also includes:
[0038] A query module, used to obtain the file types of all resource files, and query the resource identifier of the resource file in the reverse reference relationship file of the file type, wherein the reverse reference relationship file includes a mapping relationship between the global unique identifier of the resource file and the resource identifier;
[0039] A first construction module is used to obtain a reverse reference relationship hash value of the resource file and a reverse reference resource identifier correspondence relationship if the resource identifier exists in the reverse reference relationship file, and to construct a second index relationship between the reverse reference relationship hash value, the reverse reference resource identifier correspondence relationship and the resource identifier;
[0040] A second construction module, configured to construct a second index relationship based on the resource identifier of the resource file and the resource identifier of the reverse reference file if the resource identifier does not exist in the reverse reference relationship file;
[0041] The second generating module is used to generate a reverse reference relationship index file corresponding to the file type of the resource file based on the first index relationship or the second index relationship.
[0042] Furthermore, the first generation module is specifically used to configure the reference relationship hash value of the resource file and the corresponding relationship of the forward reference resource identifier as a data unit, and configure the resource identifier as a key value; and construct the first index relationship based on the data unit and the key value.
[0043] Furthermore, the device further comprises: a statistical module, a third generating module,
[0044] The acquisition module is further used to acquire the file types and globally unique identifiers of all resource files;
[0045] The statistical module is used to count the number of traversals of the file type and construct a resource identifier based on the number of traversals and the file type identifier of the file type;
[0046] The third generating module is used to generate a resource identifier correspondence relationship including a mapping relationship between the resource identifier and the globally unique identifier.
[0047] Furthermore, the device further comprises: an updating module,
[0048] The acquisition module is further used to acquire the global unique identifier of the target resource file in response to a reference relationship update instruction of the target resource file, wherein the reference relationship update instruction carries a hash value of the reference relationship to be updated;
[0049] The determination module is further used to determine the forward reference relationship index file and / or the reverse reference relationship index file corresponding to the file type of the target resource file under the condition that a resource identifier corresponding to the global unique identifier is found;
[0050] The update module is used to update the forward reference relationship hash value and / or the reverse reference relationship hash value based on the reference relationship hash value to be updated, under the condition that the forward reference relationship hash value and / or the reverse reference relationship hash value queried based on the resource identifier in the forward reference relationship index file and / or the reverse reference relationship index file exist.
[0051] According to another aspect of the present invention, a storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned game resource query method.
[0052] According to another aspect of the present invention, there is provided a terminal, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0053] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned game resource query method.
[0054] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:
[0055] The present invention provides a method and device for querying game resources. Compared with the prior art, the embodiment of the present invention obtains a global unique identifier and a file type of a resource file to be queried; retrieves a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determines a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier, wherein the forward reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a first index relationship for characterizing a forward reference, and the reverse reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a first index relationship for characterizing a reverse reference. Two index relationships, the resource identifier is constructed based on the number of traversal times of the file type and the file type identifier; based on the first index relationship and / or the second index relationship, all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier are queried, and based on all forward reference relationships and / or all reverse reference relationships, the game resources with which the resource file has a reference relationship are determined, so as to realize the search based on the resource identifier as the reference relationship, reduce the data processing amount for searching the entire amount of resources, greatly reduce the data amount for querying the reference relationship, and improve the query speed of the forward and reverse reference relationships, thereby improving the query efficiency of the game resources and improving the management effect of the game resources.
[0056] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0058] Figure 1 A flow chart of a first game resource query method provided by an embodiment of the present invention is shown;
[0059] Figure 2 A flow chart of a second method for querying game resources provided by an embodiment of the present invention is shown;
[0060] Figure 3 A flowchart of a third method for querying game resources provided by an embodiment of the present invention is shown;
[0061] Figure 4A flowchart of a fourth method for querying game resources provided by an embodiment of the present invention is shown;
[0062] Figure 5 A flowchart of a fifth method for querying game resources provided by an embodiment of the present invention is shown;
[0063] Figure 6 A block diagram showing a game resource query device provided by an embodiment of the present invention;
[0064] Figure 7 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0065] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0066] The embodiment of the present invention provides a method for querying game resources, such as Figure 1 As shown, the method includes:
[0067] 101. Obtain a globally unique identifier and a file type of a resource file to be queried.
[0068] In an embodiment of the present invention, the current execution end may be a terminal or a server end for executing game resource query. For example, the search engine for game resource query may be embedded in a terminal device, including but not limited to tablets, mobile phones, computers and other devices, or may be embedded in a server end device, including but not limited to a cloud service platform, a game engine server, etc., which is not specifically limited in the embodiment of the present invention. Among them, the current execution end first obtains a globally unique identifier of the resource file to be queried. At this time, the resource file is a file of resource data called for game development. The resource data stored in the resource file includes but is not limited to game system resources, game map resources, game model resources, game material resources, game texture resources, etc. Correspondingly, while the resource data is stored as a resource file, a globally unique identifier will be generated to distinguish the identity of each resource file and determine the type of this resource file. In addition, the file type is used to characterize the type obtained by classifying the resource data in the file, including but not limited to map type, model type, material type, system type, etc., which is not specifically limited in the embodiment of the present invention.
[0069] It should be noted that the globally unique identifier in the embodiment of the present invention can be generated based on a string by sorting it once according to the time and type of generating the resource file, so as to serve as a unique identifier for identifying the resource file, and the embodiment of the present invention does not make any specific limitation.
[0070] 102. Retrieve a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determine a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier.
[0071] In an embodiment of the present invention, after the current execution end determines the file type, it calls up a pre-generated forward reference relationship index file and / or a reverse reference relationship index file corresponding to the file type. The forward reference relationship index file includes resource identifiers corresponding to different globally unique identifiers and a first index relationship for characterizing forward references, and the reverse reference relationship index file includes resource identifiers corresponding to different globally unique identifiers and a second index relationship for characterizing reverse references. The resource identifier is constructed based on the number of traversals of the file type and the file type identifier. For example, the resource identifier is nt, n is used to indicate the number of resource file traversals for the same file type, and t is used to characterize the file type tag. The embodiment of the present invention does not make specific limitations. In addition, a forward reference indicates a relationship in which a resource file refers to other resource files, such as resource data in resource file a refers to resource data in resource file b, a->b is a forward reference, and a reverse reference indicates a relationship in which a resource file is referenced by other resource files, such as resource data in resource file a is referenced by resource data in resource file b, a<-b is a reverse reference. The embodiment of the present invention does not make specific limitations.
[0072] It should be noted that, since the forward reference relationship index file includes resource identifiers corresponding to different globally unique identifiers and the first index relationship used to characterize the forward reference, after determining the globally unique identifier of the resource file, the corresponding resource identifier and the corresponding first index relationship are retrieved from the forward reference index file. At this time, the first index relationship includes the index relationship of the forward references of all other resource files referenced by the resource file, which is not specifically limited in the embodiment of the present invention. Similarly, the resource identifier and the corresponding second index relationship can be determined based on the reverse reference index relationship file. At this time, the second index relationship includes the index relationship of the reverse references of all other resource files referenced by the resource file, which is not specifically limited in the embodiment of the present invention.
[0073] 103. Query all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier based on the first index relationship and / or the second index relationship, and determine the game resources with which the resource file has a reference relationship based on all forward reference relationships and / or all reverse reference relationships.
[0074] In the embodiment of the present invention, after determining the first index relationship and / or the second index relationship, all forward reference relationships and / or reverse reference relationships corresponding to the resource identifier are queried based on the index relationship, thereby determining the game resources having a reference relationship with the resource file. At this time, the resource identifier greatly shortens the processing amount of the global unique identifier as the search data for the resource file, thereby reducing the storage space of the resource reference relationship.
[0075] In another embodiment of the present invention, in order to further define and illustrate, as Figure 2 As shown, before the step of obtaining the globally unique identifier and the file type of the resource file to be queried, the method further includes:
[0076] 201. Obtain the globally unique identifiers of all resource files and the corresponding relationships between resource identifiers, and retrieve the forward reference relationship files of the resource files;
[0077] 202. Based on the resource identifier correspondence, replace the globally unique identifier in the forward reference relationship file with the resource identifier to obtain a forward reference resource identifier correspondence;
[0078] 203. Determine the forward reference relationship hash value of the resource file, the corresponding relationship between the forward reference resource identifier and the resource identifier as a first index relationship, and generate a forward reference relationship index file corresponding to the file type of the resource file.
[0079] In order to construct a forward reference relationship index file for querying, so as to improve the search efficiency of resource files, in the specific implementation method of constructing the forward reference relationship index file, the global unique identifiers and resource identifier correspondences of all resource files are pre-acquired in the current execution end to retrieve the forward reference relationship file constructed by the resource file. Among them, the resource identifier correspondence includes the mapping relationship between the resource identifier and the global unique identifier of the resource file, and the forward reference relationship file includes the mapping relationship between the global unique identifier of the resource file and the forward reference relationship hash value, that is, the forward reference relationship hash value corresponding to the global unique identifier of a resource file can be determined by the mapping relationship in the forward reference relationship file. At this time, the forward reference relationship hash value is the hash value of the latest forward reference relationship that has been configured or generated, which is calculated in advance and is not specifically limited in the embodiment of the present invention. Furthermore, the global unique identifier in the forward reference relationship file is replaced according to the mapping relationship between the resource identifier and the global unique identifier in the resource identifier correspondence, and a forward reference resource identifier correspondence containing the mapping relationship between the resource identifier and the forward reference relationship hash value is obtained. At this time, since each resource identifier can find a newly generated forward reference relationship hash value, thereby resolving a latest forward reference relationship, the forward reference relationship hash values corresponding to all resource files, the corresponding relationships of the forward reference resource identifiers and the resource identifiers are indexed and connected to create a first index relationship, and a forward reference relationship index file corresponding to the file type of the resource file is generated, that is, the forward reference relationship index file stores index relationships corresponding to different file types for forward search of reference relationships.
[0080] For example, obtain the globally unique identifier qwe of resource file a and the globally unique identifier ert of resource file b, and at the same time, obtain the resource identifier correspondence a-qwe-3d corresponding to resource file a and the resource identifier correspondence b-ert-5f of resource file b. The current execution end calls the existing or generated forward reference relationship files of resource files a and b, in which the globally unique identifiers and the forward reference relationship hash values are stored respectively, that is, the forward reference relationship file 1 stores the qwe-forward reference relationship hash value 2344, and the forward reference relationship file 2 stores the ert-forward reference relationship hash value 45462. Then, the globally unique identifiers in the forward reference relationship files are replaced with the resource identifiers 3d and 5f respectively, that is, the forward reference resource identifier correspondences are obtained as 3d-2344 and 5f-45462 respectively, so as to create a first index relationship between the forward reference relationship hash value, the forward reference resource identifier correspondence and the resource identifier. At this time, determine the file types of all resource files, including d and f, then store 3d-2344 in forward reference index file 1 according to type d, and store 5f-45462 in forward reference index file 2 according to type f, so as to query based on the resource identifier, obtain the hash value, and then parse it to obtain the reference relationship, and determine the referenced resource file according to the reference relationship.
[0081] In another embodiment of the present invention, in order to further define and illustrate, as Figure 3 As shown, before the step of obtaining the globally unique identifier and the file type of the resource file to be queried, the method further includes:
[0082] 301. Obtain file types of all resource files, and search for resource identifiers of the resource files in reverse reference relationship files of the file types;
[0083] 302. If the resource identifier exists in the reverse reference relationship file, obtain the reverse reference relationship hash value of the resource file and the reverse reference resource identifier correspondence relationship, and construct a second index relationship between the reverse reference relationship hash value, the reverse reference resource identifier correspondence relationship and the resource identifier;
[0084] 303. If the resource identifier does not exist in the reverse reference relationship file, construct a second index relationship based on the resource identifier of the resource file and the resource identifier of the reverse reference file;
[0085] 304. Generate a reverse reference relationship index file corresponding to the file type of the resource file based on the first index relationship or the second index relationship.
[0086] In order to construct a reverse reference relationship index file for querying, so as to improve the search efficiency of resource files, in the specific implementation method of constructing the reverse reference relationship index file, the file types of all resource files are pre-acquired in the current execution end, so as to query the resource identifier of the resource file in the reverse reference relationship file of the file type, and the reverse reference relationship file includes the mapping relationship between the global unique identifier of the resource file and the resource identifier. Further, when querying whether there is a resource identifier in the reverse reference relationship file, if there is, it means that the resource file has been referenced by other resource files, so the latest reverse reference relationship hash value of the resource file is obtained. At this time, the reverse reference relationship hash value is the hash value of the latest reverse reference relationship that has been configured or produced, which is calculated in advance and is not specifically limited in the embodiment of the present invention. Further, according to the reverse reference relationship hash value corresponding to the resource identifier and the resource file in the corresponding relationship of the reverse reference resource identifier, a second index relationship is created, that is, each resource identifier can find a newly generated reverse reference relationship hash value, so as to resolve the corresponding reverse reference relationship, and the reverse reference relationship hash values corresponding to all resource files established are indexed and connected with the resource identifier, and stored as a reverse reference relationship index file, and the index relationship for reverse search reference relationship corresponding to different file types in the second index relationship.
[0087] In another embodiment of the present invention, for further definition and explanation, the step of determining the forward reference relationship hash value of the resource file, the forward reference resource identifier correspondence relationship and the resource identifier as a first index relationship includes:
[0088] The reference relationship hash value of the resource file and the corresponding relationship of the forward reference resource identifier are configured as a data unit, and the resource identifier is configured as a key value;
[0089] The first index relationship is constructed based on the data unit and the key value.
[0090] In order to generate the first index relationship efficiently and with low occupancy, when the current execution end generates the first index relationship based on the reference relationship hash value and the corresponding relationship of the forward reference identifier and the resource identifier, the reference relationship hash value and the corresponding relationship of the forward reference resource identifier are first configured as a data unit, and represented based on the value. At the same time, the resource identifier is configured as a key value, and represented based on the key. The embodiment of the present invention does not make specific limitations. Then, the data unit is bound to the key value to construct the first index relationship. At this time, the first index relationship can be represented as multiple key-values to parse the content in the data unit when querying. The embodiment of the present invention does not make specific limitations.
[0091] In another embodiment of the present invention, for further definition and description, the steps further include:
[0092] The forward reference relationship index file and / or the reverse reference relationship index file are cached in blocks according to the file type of the resource files generated or configured in different game scenes, so that the forward reference relationship index file and / or the reverse reference relationship index file stored in the corresponding cache can be retrieved when querying the resource file.
[0093] In order to reduce the memory pressure occupied by the search and improve the query efficiency of the game resources, the current execution end needs to cache the forward reference relationship index file and / or the reverse reference relationship index file in blocks after generating it. In a specific implementation scenario, the generated forward reference relationship index file and / or the reverse reference relationship index file can be cached in blocks based on the game scene. At this time, different game scenes can match different caches. For example, each index file corresponding to the resource file corresponding to game scene a needs to be stored in cache database 1, and each index file corresponding to the resource file corresponding to game scene b needs to be stored in cache database 2. The mapping relationship between the game scene and different caches can be pre-configured based on the developer, and the embodiment of the present invention does not make specific limitations. In another specific implementation scenario, since the forward reference relationship index file and / or the reverse reference relationship index file are generated by matching according to the file type, when performing block caching, they can be cached in different cache databases according to the file type. For example, each index file corresponding to the material type is stored in the cache database s, and each index file corresponding to the model type is stored in the cache database w. The mapping relationship between different file types and different caches can be pre-configured based on the developer, and the embodiment of the present invention does not make specific limitations.
[0094] It should be noted that the block cache in the embodiment of the present invention can be divided into cache according to time blocks, character blocks, scene blocks or attribute blocks. For example, file type 1 is divided into 10 corresponding index files according to time blocks. Therefore, when caching to the corresponding database, the database is stored in 10 blocks. The embodiment of the present invention does not make specific limitations.
[0095] In another embodiment of the present invention, in order to further define and illustrate, as Figure 4 Before the step of obtaining the globally unique identifiers of all resource files and the corresponding relationship between resource identifiers, the method further includes:
[0096] 401. Get the file types and globally unique identifiers of all resource files;
[0097] 402. Count the number of traversals of the file type, and construct a resource identifier based on the number of traversals and the file type identifier of the file type;
[0098] 403. Generate a resource identifier correspondence relationship including a mapping relationship between the resource identifier and the globally unique identifier.
[0099] In order to reduce storage space and improve the query efficiency of game resources, the current execution end pre-constructs resource identifiers and corresponding resource identifier correspondences. Specifically, first traverse to obtain the file types of all resource files and the globally unique identifier GUID of each resource file. At the same time, while traversing the file types of all resource files, count and count the same file types traversed to obtain the number of traversals corresponding to each file type. The current execution end combines the number of traversals and the identifier of the file type to construct a resource identifier. For example, the number of traversals is 10 times, and the identifier of the file type is s, then the combined resource identifier is As, A is obtained by hexadecimal conversion of 10, and the embodiment of the present invention does not make specific restrictions. In addition, after constructing the resource identifier, the globally unique identifier GUID of each resource file is used to generate a resource identifier correspondence with the resource identifier created corresponding to this resource file, that is, the resource identifier corresponding to each globally unique identifier GUID is included in the resource identifier correspondence, so that the file type to which the resource file belongs and the number of other resource files belonging to the same file type globally can be determined, and the embodiment of the present invention does not make specific restrictions.
[0100] In another embodiment of the present invention, for further definition and explanation, the step of querying all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier based on the first index relationship and / or the second index relationship includes:
[0101] Based on the first index relationship and / or the second index relationship, the forward reference relationship hash value and / or the reverse reference relationship hash value corresponding to the resource identifier is queried, and the forward reference relationship hash value and / or the reverse reference relationship hash value are converted into hash values to obtain the forward reference relationship and / or the reverse reference relationship.
[0102] In order to improve the efficient query of game resources, when the current execution end queries all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier, specifically, it first queries the resource identifier key based on the first index relationship or the second index relationship, and retrieves the corresponding forward reference relationship hash value and / or reverse reference relationship hash value according to this resource identifier key, and then parses and converts the hash value to obtain all forward reference relationships and / or reverse reference relationships that match the resource identifier.
[0103] In a specific implementation scenario, the first index relationship includes key-value: 1-sss, 2-eee, 3-www, 1, 2, 3 are resource identifier keys respectively, sss, eee, www are data unit identifiers respectively, and each data unit stores the resource identifier correspondence relationship of each resource identifier and the global unique identifier correspondence and the forward reference relationship hash value. Therefore, after determining the resource identifier 2, 2-eee is queried, and the forward reference hash value in the eee data unit is parsed and converted to obtain the forward reference relationship, and matched with the global unique identifier in the resource identifier correspondence relationship to determine the forward reference relationship of the query.
[0104] The embodiment of the present invention provides another method for querying game resources, such as Figure 5 As shown, the method includes:
[0105] 501. In response to a reference relationship update instruction of a target resource file, obtain a globally unique identifier of the target resource file;
[0106] 502. Under the condition that a resource identifier corresponding to the globally unique identifier is found, determine a forward reference relationship index file and / or a reverse reference relationship index file corresponding to the file type of the target resource file;
[0107] 503. Under the condition that the forward reference relationship hash value and / or the reverse reference relationship hash value queried based on the resource identifier exists in the forward reference relationship index file and / or the reverse reference relationship index file, the forward reference relationship hash value and / or the reverse reference relationship hash value is updated based on the reference relationship hash value to be updated;
[0108] 504. Obtain a globally unique identifier and a file type of the resource file to be queried;
[0109] 505. Retrieve a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determine a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the globally unique identifier;
[0110] 506. Query all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier based on the first index relationship and / or the second index relationship, and determine the game resources with which the resource file has a reference relationship based on all the forward reference relationships and / or all the reverse reference relationships;
[0111] 507. If no resource identifier generated based on the globally unique identifier is found, a step of generating a resource identifier based on the globally unique identifier is performed to reconstruct the first index relationship and the second index relationship.
[0112] In order to improve the effectiveness of resource query after the reference relationship is updated, so as to meet the flexible update requirements of different reference relationships, before querying the resource identifier corresponding to the global unique identifier based on the forward reference relationship index file and / or the reverse reference relationship index file, the current execution end can also update the forward reference relationship and / or reverse reference relationship in the forward reference relationship index file and / or the reverse reference relationship index file according to the target resource file to be updated as needed, that is, the current execution end receives the update instruction of the reference relationship of the target resource file to update the original reference relationship hash value with the reference relationship hash value to be updated. Among them, the reference relationship update instruction can be triggered by the developer, or it can be automatically triggered by executing the code after the reference relationship is updated, and the embodiment of the present invention does not make specific limitations. After obtaining the globally unique identifier of the target resource file for updating the reference relationship, it is queried whether the global identifier of the target resource file corresponds to a generated resource identifier. That is, when the corresponding resource identifier is queried, it means that before the reference relationship is updated, it has been generated or stored in a forward or reverse reference relationship index file based on the reference relationship of the target resource file. Therefore, by retrieving the file type of this target resource file, the forward reference relationship index file and / or reverse reference relationship index file corresponding to the file type can be determined.
[0113] It should be noted that in order to accurately and effectively update the reference relationships that need to be updated in each index file, the current execution end queries the forward reference relationship index file and / or the reverse reference relationship index file based on the resource identifier, that is, after querying the forward reference relationship hash value and / or the reverse reference relationship hash value corresponding to the resource identifier, it is explained that the original forward reference relationship hash value and / or the reverse reference relationship hash value can be updated based on the latest reference relationship hash value to be updated. In addition, before updating the forward application relationship hash value and / or the reverse application relationship hash value, the original hash value can be compared with the hash value to be updated as a verification basis for the cache data update, thereby ensuring the correct update of the reference relationship, which is not specifically limited in the embodiment of the present invention.
[0114] After completing the update of the forward reference relationship and / or reverse reference relationship of the target resource file in the forward reference relationship index file and / or the reverse reference relationship index file, the current execution end executes the query method such as steps 504-506. In the embodiment of the present invention, steps 504-506 are the same as steps 101-103 and are not repeated here. At the same time, after obtaining the global unique identifier of the target resource file, the current execution end queries the resource identifier corresponding to the global unique identifier. If it is not found, it means that the reference relationship of the target resource file is not stored in the forward reference relationship index file and / or the reverse reference relationship index file in the current execution end. Therefore, the current execution end executes the step of generating a resource identifier based on the global unique identifier to construct a first index relationship or a second index relationship and update it to the forward reference relationship index file and / or the reverse reference relationship index file, so as to accurately and timely perform low-occupancy searches on resource files that need to be queried.
[0115] In a specific implementation scenario, when querying the first index relationship in the forward reference relationship index file corresponding to the target resource file to find other resource files with reference relationships, it is also possible to query whether the resource identifiers of other resource files exist in the forward reference relationship index file corresponding to the current target resource file. If so, it means that there is a mutual reference between the target resource file and the other resource files. Therefore, in order to simplify the query of the reference relationship, you can choose to retain the resource identifier in the forward reference relationship index file corresponding to the target resource file, or choose to retain the resource identifier in the reverse reference relationship index file corresponding to other resource files. The embodiment of the present invention does not make specific restrictions. If it does not exist, there is no mutual reference between the target resource file and the other resource files, and no processing is required.
[0116] The embodiment of the present invention provides a method for querying game resources. Compared with the prior art, the embodiment of the present invention obtains a global unique identifier and a file type of a resource file to be queried; retrieves a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determines a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier, wherein the forward reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a first index relationship for characterizing a forward reference, and the reverse reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a first index relationship for characterizing a reverse reference. Two index relationships, the resource identifier is constructed based on the number of traversal times of the file type and the file type identifier; based on the first index relationship and / or the second index relationship, all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier are queried, and based on all forward reference relationships and / or all reverse reference relationships, the game resources with which the resource file has a reference relationship are determined, so as to realize the search based on the resource identifier as the reference relationship, reduce the data processing amount for searching the entire amount of resources, greatly reduce the data amount for querying the reference relationship, and improve the query speed of the forward and reverse reference relationships, thereby improving the query efficiency of the game resources and improving the management effect of the game resources.
[0117] Furthermore, as a response to the above Figure 1 The implementation of the method shown in the figure, the embodiment of the present invention provides a game resource query device, such as Figure 6 As shown, the device comprises:
[0118] An acquisition module 61 is used to acquire a globally unique identifier and a file type of a resource file to be queried;
[0119] A determination module 62, for retrieving a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determining a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier, wherein the resource identifier is constructed based on the number of traversals of the file type and the file type identifier;
[0120] The query module 63 is used to query all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier, and determine the game resources with which the resource file has a reference relationship based on all forward reference relationships and / or all reverse reference relationships.
[0121] Furthermore, the device also includes:
[0122] A calling module, used to obtain the globally unique identifiers and resource identifier correspondences of all resource files, and call the forward reference relationship file of the resource file, wherein the resource identifier correspondence includes a mapping relationship between the resource identifier of the resource file and the globally unique identifier, and the forward reference relationship file includes a mapping relationship between the globally unique identifier of the resource file and the forward reference relationship hash value;
[0123] A replacement module, used for replacing the globally unique identifier in the forward reference relationship file with the resource identifier based on the resource identifier correspondence relationship to obtain a forward reference resource identifier correspondence relationship;
[0124] The first generation module is used to determine the forward reference relationship hash value of the resource file, the corresponding relationship of the forward reference resource identifier and the resource identifier as a first index relationship, and generate a forward reference relationship index file corresponding to the file type of the resource file.
[0125] Furthermore, the device also includes:
[0126] A query module, used to obtain the file types of all resource files, and query the resource identifier of the resource file in the reverse reference relationship file of the file type, wherein the reverse reference relationship file includes a mapping relationship between the global unique identifier of the resource file and the resource identifier;
[0127] A first construction module is used to obtain a reverse reference relationship hash value of the resource file and a reverse reference resource identifier correspondence relationship if the resource identifier exists in the reverse reference relationship file, and to construct a second index relationship between the reverse reference relationship hash value, the reverse reference resource identifier correspondence relationship and the resource identifier;
[0128] A second construction module, configured to construct a second index relationship based on the resource identifier of the resource file and the resource identifier of the reverse reference file if the resource identifier does not exist in the reverse reference relationship file;
[0129] The second generating module is used to generate a reverse reference relationship index file corresponding to the file type of the resource file based on the first index relationship or the second index relationship.
[0130] Furthermore, the first generation module is specifically used to configure the reference relationship hash value of the resource file and the corresponding relationship of the forward reference resource identifier as a data unit, and configure the resource identifier as a key value; and construct the first index relationship based on the data unit and the key value.
[0131] Furthermore, the device also includes:
[0132] A storage module is used to cache the forward reference relationship index file and / or the reverse reference relationship index file in blocks according to the file type of the resource files generated or configured in different game scenes, so as to retrieve the forward reference relationship index file and / or the reverse reference relationship index file stored in the corresponding cache when querying the resource file.
[0133] Furthermore, the device further comprises: a statistical module, a third generating module,
[0134] The acquisition module is further used to acquire the file types and globally unique identifiers of all resource files;
[0135] The statistical module is used to count the number of traversals of the file type and construct a resource identifier based on the number of traversals and the file type identifier of the file type;
[0136] The third generating module is used to generate a resource identifier correspondence relationship including a mapping relationship between the resource identifier and the globally unique identifier.
[0137] Furthermore, the query module is specifically used to query the forward reference relationship hash value and / or the reverse reference relationship hash value corresponding to the resource identifier based on the first index relationship and / or the second index relationship, and perform hash value conversion on the forward reference relationship hash value and / or the reverse reference relationship hash value to obtain the forward reference relationship and / or the reverse reference relationship.
[0138] Furthermore, the device further comprises: an updating module,
[0139] The acquisition module is further used to acquire the global unique identifier of the target resource file in response to a reference relationship update instruction of the target resource file, wherein the reference relationship update instruction carries a hash value of the reference relationship to be updated;
[0140] The determination module is further used to determine the forward reference relationship index file and / or the reverse reference relationship index file corresponding to the file type of the target resource file under the condition that a resource identifier corresponding to the global unique identifier is found;
[0141] The update module is used to update the forward reference relationship hash value and / or the reverse reference relationship hash value based on the reference relationship hash value to be updated, under the condition that the forward reference relationship hash value and / or the reverse reference relationship hash value queried based on the resource identifier in the forward reference relationship index file and / or the reverse reference relationship index file exist.
[0142] Furthermore, the device also includes:
[0143] An execution module is used to execute the step of generating a resource identifier based on the global unique identifier under the condition that no resource identifier generated based on the global unique identifier is found, so as to reconstruct the first index relationship and the second index relationship.
[0144] The embodiment of the present invention provides a game resource query device. Compared with the prior art, the embodiment of the present invention obtains a global unique identifier and a file type of a resource file to be queried; retrieves a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determines a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier, wherein the forward reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a first index relationship for characterizing a forward reference, and the reverse reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a first index relationship for characterizing a reverse reference. Two index relationships, the resource identifier is constructed based on the number of traversal times of the file type and the file type identifier; based on the first index relationship and / or the second index relationship, all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier are queried, and based on all forward reference relationships and / or all reverse reference relationships, the game resources with which the resource file has a reference relationship are determined, so as to realize the search based on the resource identifier as the reference relationship, reduce the data processing amount for searching the entire amount of resources, greatly reduce the data amount for querying the reference relationship, and improve the query speed of the forward and reverse reference relationships, thereby improving the query efficiency of the game resources and improving the management effect of the game resources.
[0145] According to an embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the game resource query method in any of the above method embodiments.
[0146] Figure 7 A schematic diagram of the structure of a terminal provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the terminal.
[0147] like Figure 7 As shown, the terminal may include: a processor (processor) 702 , a communication interface (Communications Interface) 704 , a memory (memory) 706 , and a communication bus 708 .
[0148] The processor 702 , the communication interface 704 , and the memory 706 communicate with each other via a communication bus 708 .
[0149] The communication interface 704 is used to communicate with other devices such as clients or other servers.
[0150] The processor 702 is used to execute the program 710, and specifically can execute the relevant steps in the above-mentioned game resource query method embodiment.
[0151] Specifically, the program 710 may include program codes, which include computer operation instructions.
[0152] The processor 702 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the terminal may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0153] The memory 706 is used to store the program 710. The memory 706 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0154] The program 710 may be specifically configured to enable the processor 702 to perform the following operations:
[0155] Obtain the globally unique identifier and file type of the resource file to be queried;
[0156] Retrieving a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determining a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier, wherein the forward reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a first index relationship for characterizing forward references, and the reverse reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a second index relationship for characterizing reverse references, wherein the resource identifier is constructed based on the number of traversals of the file type and the file type identifier;
[0157] Based on the first index relationship and / or the second index relationship, all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier are queried, and based on the all forward reference relationships and / or all reverse reference relationships, the game resources with which the resource file has a reference relationship are determined.
[0158] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0159] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for querying game resources, characterized in that: include: Obtain the globally unique identifier and file type of the resource file to be queried; Retrieving a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determining a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier, wherein the forward reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a first index relationship for characterizing forward references, and the reverse reference relationship index file includes resource identifiers corresponding to different global unique identifiers and a second index relationship for characterizing reverse references, wherein the resource identifier is constructed based on the number of traversals of the file type and the file type identifier; Based on the first index relationship and / or the second index relationship, all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier are queried, and based on the all forward reference relationships and / or all reverse reference relationships, the game resources with which the resource file has a reference relationship are determined.
2. The method according to claim 1, characterized in that: Before obtaining the globally unique identifier and the file type of the resource file to be queried, the method further includes: Obtaining globally unique identifiers and resource identifier correspondences of all resource files, calling forward reference relationship files of the resource files, wherein the resource identifier correspondences include mapping relationships between resource identifiers of the resource files and globally unique identifiers, and the forward reference relationship files include mapping relationships between globally unique identifiers of the resource files and forward reference relationship hash values; Based on the resource identifier correspondence, the resource identifier is used to replace the globally unique identifier in the forward reference relationship file to obtain a forward reference resource identifier correspondence; The forward reference relationship hash value of the resource file, the corresponding relationship between the forward reference resource identifier and the resource identifier are determined as a first index relationship, and a forward reference relationship index file corresponding to the file type of the resource file is generated.
3. The method according to claim 1, characterized in that Before obtaining the globally unique identifier and file type of the resource file to be queried, the method further includes: Obtaining the file types of all resource files, and searching for the resource identifier of the resource file in the reverse reference relationship file of the file type, wherein the reverse reference relationship file includes a mapping relationship between a globally unique identifier of the resource file and a resource identifier; If the resource identifier exists in the reverse reference relationship file, obtain the reverse reference relationship hash value of the resource file and the reverse reference resource identifier correspondence relationship, and construct a second index relationship between the reverse reference relationship hash value, the reverse reference resource identifier correspondence relationship and the resource identifier; If the resource identifier does not exist in the reverse reference relationship file, constructing a second index relationship based on the resource identifier of the resource file and the resource identifier of the reverse reference file; A reverse reference relationship index file corresponding to the file type of the resource file is generated based on the first index relationship or the second index relationship.
4. The method according to claim 2, characterized in that: The step of determining the forward reference relationship hash value of the resource file, the forward reference resource identifier correspondence relationship and the resource identifier as a first index relationship comprises: The reference relationship hash value of the resource file and the corresponding relationship of the forward reference resource identifier are configured as a data unit, and the resource identifier is configured as a key value; The first index relationship is constructed based on the data unit and the key value.
5. The method according to claim 2 or 3, characterized in that: The method further comprises: The forward reference relationship index file and / or the reverse reference relationship index file are cached in blocks according to the file type of the resource files generated or configured in different game scenes, so that the forward reference relationship index file and / or the reverse reference relationship index file stored in the corresponding cache can be retrieved when querying the resource file.
6. The method according to claim 1, characterized in that Before obtaining the globally unique identifiers of all resource files and the corresponding relationships between resource identifiers, the method further includes: Get the file types and globally unique identifiers of all resource files; Counting the number of traversals of the file type, and constructing a resource identifier based on the number of traversals and the file type identifier of the file type; A resource identifier correspondence relationship including a mapping relationship between the resource identifier and the globally unique identifier is generated.
7. The method according to any one of claims 1 to 6, characterized in that: The querying of all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier based on the first index relationship and / or the second index relationship comprises: Based on the first index relationship and / or the second index relationship, the forward reference relationship hash value and / or the reverse reference relationship hash value corresponding to the resource identifier is queried, and the forward reference relationship hash value and / or the reverse reference relationship hash value are converted into hash values to obtain the forward reference relationship and / or the reverse reference relationship.
8. The method according to claim 1, characterized in that The method further comprises: In response to a reference relationship update instruction of a target resource file, obtaining a globally unique identifier of the target resource file, wherein the reference relationship update instruction carries a hash value of the reference relationship to be updated; Under the condition that a resource identifier corresponding to the globally unique identifier is found, a forward reference relationship index file and / or a reverse reference relationship index file corresponding to the file type of the target resource file is determined; Under the condition that the forward reference relationship hash value and / or the reverse reference relationship hash value queried based on the resource identifier exist in the forward reference relationship index file and / or the reverse reference relationship index file, the forward reference relationship hash value and / or the reverse reference relationship hash value are updated based on the reference relationship hash value to be updated.
9. The method according to claim 8, characterized in that After obtaining the globally unique identifier of the target resource file, the method further includes: Under the condition that no resource identifier generated based on the globally unique identifier is found, the step of generating a resource identifier based on the globally unique identifier is performed to reconstruct the first index relationship and the second index relationship.
10. A game resource query device, characterized in that: include: An acquisition module, used to obtain a globally unique identifier and a file type of a resource file to be queried; A determination module, used to retrieve a forward reference relationship index file and / or a reverse reference relationship index file based on the file type, and determine a resource identifier from the forward reference relationship index file and / or the reverse reference relationship index file based on the global unique identifier, wherein the resource identifier is constructed based on the number of traversals of the file type and the file type identifier; The query module is used to query all forward reference relationships and / or all reverse reference relationships corresponding to the resource identifier, and determine the game resources with which the resource file has a reference relationship based on all forward reference relationships and / or all reverse reference relationships.
11. A storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute an operation corresponding to the game resource query method according to any one of claims 1 to 9.
12. A terminal, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the game resource query method according to any one of claims 1-9.