Game backpack configuration method and device, electronic equipment and storage medium
The backpack graphic tool generates grid configuration data and updates the backpack configuration information, which solves the problem of low development efficiency in the backpack configuration process in the prior art, and realizes more efficient backpack type addition and modification.
Patent Information
- Application Number
- CN202411274657.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2024-12-31
AI Technical Summary
The existing game backpack configuration process relies on a large number of code modifications, resulting in low development efficiency and making it difficult to quickly add or change the lattice layout of the backpack type.
Generate grid configuration data through the backpack graphics tool, and update backpack configuration information according to the preset backpack configuration data structure, avoiding developers editing a large amount of code and improving development efficiency.
It realizes the configuration of backpack lattice layout without a lot of code editing, improves game development efficiency, and simplifies the process of adding and modifying backpack types.
Smart Images

Figure CN119215429A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a game backpack configuration method, device, electronic device and storage medium. Background Art
[0002] In some online games, there is a backpack function that can store various game props, and the grid layout of the backpack interface is generally a fixed row*column format. However, people's backpacks in life are often of different sizes, and the things in the backpacks occupy different spaces, and some things can even compress the space. So in order to make the game experience closer to real life, game developers have designed a new backpack, and the backpack grid layout is no longer a conventional fixed row and column layout.
[0003] The existing process of creating different types of backpacks is too dependent on program developers. Once a new type of backpack is added or the sub-backpack grid layout of the original backpack is changed, the program developers need to add a lot of new code to implement the function, resulting in low development efficiency. Summary of the invention
[0004] The purpose of the present invention is to provide a game backpack configuration method, device, electronic device and storage medium to solve the problem of low development efficiency.
[0005] In a first aspect, the present invention provides a game backpack configuration method, which is applied to an electronic device, wherein the electronic device runs a backpack graphic tool, and the method comprises:
[0006] In response to the developer performing a grid layout configuration operation on at least one backpack in the backpack graphic tool, grid configuration data of at least one backpack is obtained; the grid configuration data is layout data defining each grid in the corresponding backpack;
[0007] The preset backpack configuration data structure is updated according to all the grid configuration data to obtain backpack configuration information, so as to display the backpack according to the backpack configuration information when the game is running; the preset backpack configuration data structure is a storage structure of the grid configuration data.
[0008] In an optional implementation, the electronic device stores a correspondence between the identification of the backpack and the grid configuration data; the preset backpack configuration data structure includes a backpack identification sequence, and the backpack identification sequence is the order of the identifications of multiple backpacks; the updating of the preset backpack configuration data structure according to all the grid configuration data to obtain the backpack configuration information includes:
[0009] According to the backpack identification sequence, the grid configuration data corresponding to each identification is read in sequence to update the preset backpack configuration data structure to obtain backpack configuration information.
[0010] In an optional embodiment, the method further comprises:
[0011] In response to the developer's modification operation on the target backpack in the backpack graphic tool, new grid configuration data of the target backpack is obtained;
[0012] The grid configuration data of the target backpack in the corresponding relationship is updated according to the new grid configuration data.
[0013] In an optional implementation, the grid configuration data includes a plurality of parameter values corresponding to the backpack, and the preset backpack configuration data structure is provided with a plurality of parameter items of each backpack; and the updating of the preset backpack configuration data structure according to all the grid configuration data to obtain the backpack configuration information includes:
[0014] The plurality of parameter values are written into the plurality of parameter items of the corresponding backpack to obtain the backpack configuration information.
[0015] In a second aspect, the present invention provides a game backpack configuration device, which is applied to an electronic device, wherein the electronic device runs a backpack graphic tool, and the device comprises:
[0016] A grid configuration data acquisition module, used for obtaining grid configuration data of at least one backpack in response to a developer performing a grid layout configuration operation on at least one backpack in the backpack graphic tool;
[0017] The data updating module is used to update the preset backpack configuration data structure according to all the grid configuration data to obtain backpack configuration information.
[0018] In an optional implementation, the electronic device stores a correspondence between the backpack identifier and the grid configuration data; the preset backpack configuration data structure includes a backpack identifier sequence, and the backpack identifier sequence is a sequence of identifiers of a plurality of backpacks;
[0019] The data updating module is also used to read the grid configuration data corresponding to each identifier in turn according to the backpack identification sequence to update the preset backpack configuration data structure to obtain backpack configuration information.
[0020] In an optional embodiment, the device further comprises:
[0021] The backpack layout modification module is used to respond to the developer's modification operation on the target backpack in the backpack graphic tool, obtain new grid configuration data of the target backpack; and update the grid configuration data of the target backpack in the corresponding relationship according to the new grid configuration data.
[0022] In an optional embodiment, the grid configuration data includes a plurality of parameter values corresponding to the backpack, and the preset backpack configuration data structure is provided with a plurality of parameter items of each backpack;
[0023] The data updating module is further used to write the plurality of parameter values into the plurality of parameter items of the corresponding backpack to obtain the backpack configuration information.
[0024] In a third aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a computer program executable by the processor, and the computer program executable by the processor is used to implement the game backpack configuration method described in any of the aforementioned embodiments.
[0025] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a game backpack configuration method as described in any one of the aforementioned embodiments.
[0026] The game backpack configuration method, device, electronic device and storage medium provided by the embodiment of the present invention include: in response to the developer performing a grid layout configuration operation on at least one backpack in the backpack graphic tool, obtaining the grid configuration data of at least one backpack; the grid configuration data is the layout data defining each grid in the corresponding backpack, and the preset backpack configuration data structure is updated according to all the grid configuration data to obtain the backpack configuration information, so as to display the backpack according to the backpack configuration information when the game is running; the preset backpack configuration data structure is the storage structure of the grid configuration data. Therefore, the grid configuration data corresponding to each backpack is obtained through the backpack graphic tool, and the backpack configuration information is obtained according to the preset backpack configuration data structure and the grid configuration data of all backpacks, without the need for the developer to edit a large amount of code, thereby improving the development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 A schematic diagram showing the grid layout of a backpack;
[0029] Figure 2 A schematic diagram showing a flow chart of a method for configuring a game backpack provided by an embodiment of the present invention;
[0030] Figure 3 A schematic diagram of a backpack graphic tool provided by an embodiment of the present invention is shown;
[0031] Figure 4 Another schematic diagram of the process of configuring a game backpack provided by an embodiment of the present invention is shown;
[0032] Figure 5 A module block diagram of a game backpack configuration device provided by an embodiment of the present invention is shown;
[0033] Figure 6 A block diagram of an electronic device provided by an embodiment of the present invention is shown.
[0034] Icon: 100 - electronic device; 110 - memory; 120 - processor; 130 - communication module; 200 - game backpack configuration device; 210 - grid configuration data acquisition module; 220 - data update module. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0036] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0038] In the prior art, a backpack class is defined, an array of sub-backpack objects is defined in the backpack class, a backpack type member variable is defined, and backpacks with different grid layouts are created through the type variable. Different types of backpacks have different numbers of sub-backpacks, and the grid positions of the sub-backpacks in the backpack are also different. In this way, the grid layout of a new backpack can be realized.
[0039] The specific grid layout procedure is as follows:
[0040]
[0041]
[0042] like Figure 1 As shown in (a), the backpack 1 includes 1 grid, 6 grids wide and 6 grids high; Figure 1 As shown in (b), backpack 2 includes 2 grids, one is 2 grids wide and 3 grids high, located at the 1*1 position of the backpack, and the other is 2 grids wide and 3 grids high, located at the 3*1 position of the backpack.
[0043] It can be seen that in the prior art, the grid layout of each backpack is written in the grid layout program. If a new type of backpack needs to be added or the grid layout of the original backpack needs to be changed, the developer needs to add or modify a large amount of code to implement the function, thereby reducing the development efficiency.
[0044] In view of the above problems, the inventor has discovered after long-term research and proposed the game backpack configuration method, device, electronic device and storage medium provided in the embodiments of the present application, which can generate the grid configuration data corresponding to the backpack through the backpack graphic tool, and obtain the backpack configuration information according to the preset backpack configuration data structure and the grid configuration data of all backpacks, without requiring the developer to edit a large amount of code, thereby improving the development efficiency. Among them, the specific image determination method is described in detail in the subsequent embodiments.
[0045] See also Figure 2 , Figure 2 A schematic diagram of a process flow of a game backpack configuration method provided by an embodiment of the present invention is shown. The game backpack configuration method can be applied to an electronic device, and the electronic device runs a backpack graphic tool. The specific process of this embodiment is described below using an electronic device as an example. Figure 2 The process shown is described in detail, and the game backpack configuration method may specifically include the following steps:
[0046] Step 110: In response to the developer performing a grid layout configuration operation on at least one backpack in the backpack graphic tool, grid configuration data of at least one backpack is obtained.
[0047] The grid configuration data is the layout data defining each grid in the corresponding backpack, for example, the size of each grid and the position of each grid.
[0048] In some implementations, developers can use a lightweight interface development framework to design a backpack graphic tool, deploy the backpack graphic tool in an electronic device, and perform grid layout configuration operations on the backpack through the backpack graphic tool running in the electronic device. The lightweight interface development framework can be a common UI (User Interface) framework such as imgui.
[0049] like Figure 3 As shown, the backpack graphic tool can display a backpack container grid layout interface, and the backpack container grid layout interface includes controls such as a backpack name configuration control 101, a first grid layout configuration control 102, and a second grid layout configuration control 103.
[0050] As an implementation method, the developer can first set the name and size of the backpack in the backpack name configuration control 101, and then enter the grid data in the first grid layout configuration control 102 to generate a new grid, and after entering the grid data, display the corresponding grid in the second grid layout configuration control 103.
[0051] For example, the developer first sets the name of the backpack to bag_01 and the size of the backpack to 8*8 in the backpack name configuration control 101, then enters 1 in the number of grid columns, enters 2 in the number of grid rows, and enters the grid coordinates 5*1, then grid A will be displayed in the second grid layout configuration control 103.
[0052] As another way, the developer can first set the name and size of the backpack in the backpack name configuration control 101, and the developer can perform a drag operation in the second grid layout configuration control 103 to determine the size and position of the new grid from the backpack of the set size to generate a new grid.
[0053] For example, the developer first sets the name of the backpack to bag_01 in the backpack name configuration control 101, and the size of the backpack is 8*8. The developer can drag from the upper left corner of the 1*2 grid to the lower right corner of the 4*5 grid to determine the size and position of the new grid and generate grid C.
[0054] In some embodiments, the electronic device can respond to a developer performing a grid layout configuration operation on at least one backpack in a backpack graphic tool. The backpack graphic tool can generate grid configuration data for the corresponding backpack based on the grid layout after the grid layout configuration operation, and the electronic device can obtain the grid configuration data for at least one backpack.
[0055] like Figure 3 As shown, after the grid layout configuration operation is performed on backpack bag_01, the layout of the grids in backpack bag_01 is the layout in the second grid layout configuration control 103, the backpack graphic tool can generate the grid configuration data of backpack bag_01 according to the layout in the second grid layout configuration control 103, and the electronic device can obtain the grid configuration data of backpack bag_01.
[0056] It is understandable that by configuring the layout of the backpack through the visual backpack graphic tool, the grid layout configuration result of the backpack can be more intuitively reflected, and the operation is simpler, and the grid configuration data of the backpack can be directly generated without editing a large amount of code as in the prior art, thereby improving the efficiency of game development. In addition, the functions and interfaces of the backpack graphic tool can be modified according to the actual application situation, which is more convenient for developers to perform grid layout configuration operations and game development.
[0057] Step 120: Update the preset backpack configuration data structure according to all grid configuration data to obtain backpack configuration information so as to display the backpack according to the backpack configuration information when the game is running.
[0058] Among them, the preset backpack configuration data structure is a storage structure of grid configuration data.
[0059] In some embodiments, the electronic device can update the preset backpack configuration data structure according to all grid configuration data to obtain backpack configuration information, that is, store all grid configuration data according to the structure designed in the preset backpack configuration data structure, so that the grid configuration data can be read and parsed by the electronic device according to the preset backpack configuration data structure when the game is running.
[0060] The game backpack configuration method provided by the embodiment of the present invention responds to the developer performing a grid layout configuration operation on at least one backpack in a backpack graphic tool, and obtains the grid configuration data of at least one backpack; the grid configuration data is the layout data defining each grid in the corresponding backpack, and the preset backpack configuration data structure is updated according to all the grid configuration data to obtain the backpack configuration information, so as to display the backpack according to the backpack configuration information when the game is running; the preset backpack configuration data structure is the storage structure of the grid configuration data. Therefore, the grid configuration data corresponding to each backpack is obtained through the backpack graphic tool, and the backpack configuration information is obtained according to the preset backpack configuration data structure and the grid configuration data of all backpacks, without the need for the developer to edit a large amount of code, thereby improving the development efficiency.
[0061] In order to improve development efficiency, the electronic device stores the correspondence between the backpack identification and the grid configuration data. The preset backpack configuration data structure includes the backpack identification order, and the backpack identification order is the sorting of the identifications of multiple backpacks. Step 120 specifically also includes the following steps: according to the backpack identification order, read the grid configuration data corresponding to each identification in turn to update the preset backpack configuration data structure to obtain the backpack configuration information.
[0062] The correspondence between the backpack identifier and the grid configuration data is shown in Table 1, where the identifier of backpack 1 is 1 and the identifier of backpack 2 is 2; 1.json is the grid configuration data corresponding to backpack 1; 2.json is the grid configuration data corresponding to backpack 2.
[0063] Table 1
[0064] Logo Grid configuration data 1 1.json 2 2.json
[0065] In some embodiments, the backpack identifier may be a number or a letter, etc., which is not limited here. When the backpack identifier is a number, the backpack identifier sequence may be the backpack identifiers increasing in sequence, for example, the backpack identifier sequence is 1, 2, 3. The backpack identifier sequence may be the backpack identifiers decreasing in sequence, for example, the backpack identifier sequence is 3, 2, 1.
[0066] For example, the content of the preset backpack configuration data structure is as follows:
[0067]
[0068] In some embodiments, the grid configuration data includes multiple parameter values corresponding to the backpack, and multiple parameter items for each backpack are set in the preset backpack configuration data structure. Step 120 specifically also includes the following steps: writing the multiple parameter values into the multiple parameter items corresponding to the backpack to obtain the backpack configuration information.
[0069] For example, the grid configuration data of backpack bag_01 is as follows:
[0070]
[0071] The contents of the preset backpack configuration data structure are as follows:
[0072]
[0073]
[0074] Write multiple parameter values into the multiple parameter items of the corresponding backpack to obtain the backpack configuration information. The backpack configuration information content is:
[0075]
[0076] Take grid A as an example:
[0077]
[0078] In the actual development process, developers can modify the layout of the backpack, such as Figure 4 As shown, the above-mentioned game backpack configuration method specifically also includes the following steps:
[0079] Step 130: In response to the developer's modification operation on the target backpack in the backpack graphic tool, new grid configuration data of the target backpack is obtained.
[0080] Step 140: Update the grid configuration data of the target backpack in the corresponding relationship according to the new grid configuration data.
[0081] For example, the developer modifies backpack 2 (target backpack) in the backpack graphic tool, obtains new grid configuration data 2A.json of backpack 2 (target backpack), and updates the grid configuration data of the target backpack in the corresponding relationship according to the new grid configuration data 2A.json. The updated corresponding relationship is shown in Table 2.
[0082] Table 2
[0083] Logo Grid configuration data 1 1.json 2 2A.json
[0084] In order to execute the corresponding steps in the above embodiments and various possible methods, a method for implementing a game backpack configuration device is provided below. Figure 5, FIG. 1 is a functional module diagram of a game backpack configuration device provided by an embodiment of the present invention. It should be noted that the game backpack configuration device provided by this embodiment is applied to an electronic device, and the electronic device runs a backpack graphic tool. Its basic principle and the technical effects produced are the same as those of the above embodiments. For the sake of brief description, for the parts not mentioned in this embodiment, please refer to the corresponding contents in the above embodiments. The game backpack configuration device 200 includes: a grid configuration data acquisition module 210 and a data update module 220, wherein:
[0085] The grid configuration data acquisition module 210 is used to obtain the grid configuration data of at least one backpack in response to the developer performing a grid layout configuration operation on at least one backpack in the backpack graphic tool;
[0086] The data updating module 220 is used to update the preset backpack configuration data structure according to all grid configuration data to obtain backpack configuration information.
[0087] Furthermore, the electronic device stores the correspondence between the backpack identification and the grid configuration data; the preset backpack configuration data structure includes a backpack identification sequence, and the backpack identification sequence is the sorting of the identifications of multiple backpacks; the data update module is also used to update the preset backpack configuration data structure by reading the grid configuration data corresponding to each identification in turn according to the backpack identification sequence to obtain the backpack configuration information.
[0088] Furthermore, the game backpack configuration device 200 further includes: a backpack layout modification module, wherein:
[0089] The backpack layout modification module is used to respond to the developer's modification operation on the target backpack in the backpack graphic tool, obtain the new grid configuration data of the target backpack; and update the grid configuration data of the target backpack in the corresponding relationship according to the new grid configuration data.
[0090] Furthermore, the grid configuration data includes multiple parameter values corresponding to the backpack, and the preset backpack configuration data structure is provided with multiple parameter items of each backpack; the data update module is also used to write the multiple parameter values into the multiple parameter items corresponding to the backpack to obtain the backpack configuration information.
[0091] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0092] In several embodiments provided by the present invention, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0093] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.
[0094] Please refer to Figure 6 , is a block diagram of an electronic device 100 provided in an embodiment of the present invention. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, the processor 120, and the communication module 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
[0095] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.
[0096] The processor 120 is used to read / write data or programs stored in the memory and execute corresponding functions. For example, when the computer program stored in the memory 110 is executed by the processor 120, the game backpack configuration method disclosed in the above embodiments can be implemented.
[0097] The communication module 130 is used to establish a communication connection between the electronic device 100 and a server through a network, and to send and receive data through the network.
[0098] It should be understood that Figure 6 The structure shown is only a schematic diagram of the structure of the electronic device. The electronic device may also include Figure 6 More or fewer components may be shown. Figure 6 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0099] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program can be executed by a processor, the game backpack configuration method described in the above method embodiment is implemented.
[0100] The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.
[0101] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0102] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0103] The above are only preferred embodiments of the present invention and are 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 game backpack configuration method, characterized in that: Applied to an electronic device, the electronic device running a backpack graphic tool, the method comprising: In response to the developer performing a grid layout configuration operation on at least one backpack in the backpack graphic tool, grid configuration data of at least one backpack is obtained; the grid configuration data is layout data defining each grid in the corresponding backpack; The preset backpack configuration data structure is updated according to all the grid configuration data to obtain backpack configuration information, so as to display the backpack according to the backpack configuration information when the game is running; the preset backpack configuration data structure is a storage structure of the grid configuration data.
2. The method according to claim 1, characterized in that The electronic device stores a correspondence between the identification of the backpack and the grid configuration data; the preset backpack configuration data structure includes a backpack identification sequence, and the backpack identification sequence is the order of the identifications of the plurality of backpacks; The step of updating the preset backpack configuration data structure according to all the grid configuration data to obtain backpack configuration information includes: According to the backpack identification sequence, the grid configuration data corresponding to each identification is read in sequence to update the preset backpack configuration data structure to obtain backpack configuration information.
3. The method according to claim 2, characterized in that The method further comprises: In response to the developer's modification operation on the target backpack in the backpack graphic tool, new grid configuration data of the target backpack is obtained; The grid configuration data of the target backpack in the corresponding relationship is updated according to the new grid configuration data.
4. The method according to claim 1, characterized in that: The grid configuration data includes a plurality of parameter values corresponding to the backpack, and the preset backpack configuration data structure is provided with a plurality of parameter items of each backpack; The step of updating the preset backpack configuration data structure according to all the grid configuration data to obtain backpack configuration information includes: The plurality of parameter values are written into the plurality of parameter items of the corresponding backpack to obtain the backpack configuration information.
5. A game backpack configuration device, characterized in that: Applied to an electronic device, the electronic device runs a backpack graphic tool, the device comprises: A grid configuration data acquisition module, used for obtaining grid configuration data of at least one backpack in response to a developer performing a grid layout configuration operation on at least one backpack in the backpack graphic tool; The data updating module is used to update the preset backpack configuration data structure according to all the grid configuration data to obtain backpack configuration information.
6. The device according to claim 5, characterized in that The electronic device stores a correspondence between the identification of the backpack and the grid configuration data; the preset backpack configuration data structure includes a backpack identification sequence, and the backpack identification sequence is the order of the identifications of the plurality of backpacks; The data updating module is also used to read the grid configuration data corresponding to each identifier in turn according to the order of the backpack identifiers to update the preset backpack configuration data structure and obtain backpack configuration information.
7. The device according to claim 6, characterized in that The device also includes: The backpack layout modification module is used to respond to the developer's modification operation on the target backpack in the backpack graphic tool, obtain new grid configuration data of the target backpack; and update the grid configuration data of the target backpack in the corresponding relationship according to the new grid configuration data.
8. The device according to claim 5, characterized in that The grid configuration data includes a plurality of parameter values corresponding to the backpack, and the preset backpack configuration data structure is provided with a plurality of parameter items of each backpack; The data updating module is further used to write the plurality of parameter values into the plurality of parameter items of the corresponding backpack to obtain the backpack configuration information.
9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program executable by the processor, and the computer program executable by the processor is used to implement the game backpack configuration method described in any one of claims 1-4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the game backpack configuration method according to any one of claims 1 to 4 is implemented.
