CN112597266A - Editor generation method and processing method for processing game template data - Google Patents

Editor generation method and processing method for processing game template data Download PDF

Info

Publication number
CN112597266A
CN112597266A CN202011492313.5A CN202011492313A CN112597266A CN 112597266 A CN112597266 A CN 112597266A CN 202011492313 A CN202011492313 A CN 202011492313A CN 112597266 A CN112597266 A CN 112597266A
Authority
CN
China
Prior art keywords
data
file
processing
template data
game
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011492313.5A
Other languages
Chinese (zh)
Inventor
杨小强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhongqing Longtu Network Technology Co ltd
Original Assignee
Shenzhen Zhongqing Longtu Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhongqing Longtu Network Technology Co ltd filed Critical Shenzhen Zhongqing Longtu Network Technology Co ltd
Priority to CN202011492313.5A priority Critical patent/CN112597266A/en
Publication of CN112597266A publication Critical patent/CN112597266A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure relates to an editor generation method and a processing method for processing game template data, wherein the method comprises the following steps: acquiring a configuration file corresponding to game template data; generating a model file for the game template data according to the business processing rule of the game template data and a preset model template file; generating a view file for the game template data according to the configuration file and a preset view template file; the method comprises the steps that a preset view template file defines page layouts corresponding to fields and page operation response functions corresponding to the fields; and generating an editor corresponding to the game template data according to the view file and the model file so as to process the game template data according to the operation of the user on an editor page. The embodiment of the disclosure realizes the visualized display of the game template data, improves the efficiency of processing the game template data by the user, and reduces the error rate of data processing.

Description

Editor generation method and processing method for processing game template data
Technical Field
The present disclosure relates to the field of computer application technologies, and in particular, to an editor generation method and an editor processing method for processing game template data.
Background
During game development, a game typically involves a large number of game elements, each of which may be described using preconfigured game template data.
However, a large amount of game template data is usually stored in a plain text or table form, and the data display is not intuitive enough, so that a developer is very time-consuming and labor-consuming in processing the data, and is very prone to errors.
Disclosure of Invention
To solve the above technical problem or at least partially solve the above technical problem, an embodiment of the present disclosure provides an editor generation method and a processing method for processing game template data.
In a first aspect, an embodiment of the present disclosure provides an editor generation method for processing game template data, including:
acquiring a configuration file corresponding to game template data; wherein, the configuration file comprises each field included in the game template data;
generating a model file for the game template data according to the business processing rule of the game template data and a preset model template file;
generating a view file for the game template data according to the configuration file and a preset view template file; the preset view template file defines a page layout corresponding to each field and a page operation response function corresponding to each field;
and generating an editor corresponding to the game template data according to the view file and the model file so as to process the game template data according to the operation of the user on an editor page.
In a second aspect, an embodiment of the present disclosure further provides a game template data processing method, which is implemented based on an editor, where the editor is obtained by using any editor generation method for processing game template data provided in the embodiment of the present disclosure, and the processing method includes:
generating a data processing request according to the operation of a user on an editor page of the game template data;
determining a business processing rule corresponding to the data processing request by using the model file of the editor;
and processing the fields and the data carried by the data processing request according to the service processing rule.
In a third aspect, an embodiment of the present disclosure further provides an editor generating apparatus for processing game template data, including:
the configuration file acquisition module is used for acquiring a configuration file corresponding to the game template data; wherein, the configuration file comprises each field included in the game template data;
the model file generation module is used for generating a model file for the game template data according to the business processing rule of the game template data and a preset model template file;
the view file generation module is used for generating a view file for the game template data according to the configuration file and a preset view template file; the preset view template file defines a page layout corresponding to each field and a page operation response function corresponding to each field;
and the editor generating module is used for generating an editor corresponding to the game template data according to the view file and the model file so as to process the game template data according to the operation of a user on an editor page.
In a fourth aspect, an embodiment of the present disclosure further provides a game template data processing apparatus, which is implemented based on an editor, where the editor is obtained by using any editor generation method for processing game template data provided in the embodiment of the present disclosure, and the processing apparatus includes:
the request generation module is used for generating a data processing request according to the operation of a user on an editor page of the game template data;
the processing rule determining module is used for determining a business processing rule corresponding to the data processing request by utilizing the model file of the editor;
and the request processing module is used for processing the fields and the data carried by the data processing request according to the service processing rule.
In a fifth aspect, embodiments of the present disclosure also provide an electronic device, including a memory and a processor, wherein: the memory stores a computer program, and when the computer program is executed by the processor, the electronic device is enabled to implement any one of the editor generation method or the game template data processing method for processing game template data provided by the embodiment of the disclosure.
In a sixth aspect, the present disclosure also provides a computer-readable storage medium, where the storage medium stores a computer program, and when the computer program is executed by a computing device, the computing device is enabled to implement any one of the editor generation method or the game template data processing method for processing game template data provided by the present disclosure.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has at least the following advantages: in the embodiment of the disclosure, the model file and the view file are generated for the game template data, and the corresponding editor is generated for the game template data based on the model file and the view file, and the content of the game template data can be visually displayed on the editor page by the editor, so that the game template data is processed according to the operation of a user on the editor page, thereby not only realizing the visual display of the game template data, but also improving the efficiency of the user for processing the game template data, reducing the error rate of data processing, and improving the game development efficiency.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flow chart of an editor generation method for processing game template data provided by an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an editor page provided by an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for processing game template data according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an editor generation apparatus for processing game template data according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a game template data processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Fig. 1 is a flowchart of an editor generation method for processing game template data according to an embodiment of the present disclosure, where the editor generation method may be performed by an editor generation apparatus for processing game template data, and the apparatus may be implemented in software and/or hardware and may be integrated on any electronic device with computing capability.
In the embodiment of the present disclosure, based on an MVC (Model View Controller) architecture, a corresponding editor is generated for game template data. In the MVC architecture, a Model (Model) is used to take charge of the central data of the storage system; view (View) for displaying information to a user (multiple views may be defined); the Controller (Controller) is used for processing information input by a user, reading data from the view, controlling the input of the user and sending the data to the model, is a part of the application program for processing the interaction of the user, and is used for managing the interaction control with the user. The views and controls together form a user interface, and each view has an associated control component.
As shown in fig. 1, an editor generation method for processing game template data provided by an embodiment of the present disclosure may include:
s101, acquiring a configuration file corresponding to game template data; wherein, the configuration file comprises each field included in the game template data.
Wherein the game template data is used to describe attributes of the game elements. The game elements can be any objects required in the construction process of the game scene (or called game picture), such as player characters, animal characters, buildings, props and the like. The game elements can be described by using preset game template data, and each field in the game template data is used for detailing the specific attribute characteristics of the game elements. For example, for a player character, the corresponding game template data may include, but is not limited to, fields for name, character ID, equipment, game level, attack and defense capabilities, etc.
In the game development process, a user (i.e., a developer) can define specific data (i.e., data entry or data editing) of fields in game template data corresponding to game elements by using the editor provided by the embodiment of the disclosure to construct different game elements.
S102, generating a model file for the game template data according to the business processing rule of the game template data and a preset model template file.
The business processing rules are used for defining the specific implementation mode of data processing supported by the game template data. The preset model template file is a common preset template file, in which not only a generation format of the model file (model file) but also various processing logics are defined, for example, the processing logics include at least one of: data filtering, data saving, data deleting, data importing and the like, so that the finally generated editor supports various data processing on the game template data. The data filtering refers to filtering data according to conditions such as data ID, data number or name; data storage means storing data in a database; data deletion refers to deleting specified data from a database; the data import means that data corresponding to the field is stored in a database, and if repeated data exists in the database, the previously stored historical data can be deleted according to the data ID and then new data is stored.
The processing logic defined in the preset model template file may be dynamically set according to the game template data processing requirements in the game development process, and the embodiment of the present disclosure is not particularly limited.
S103, generating a view file for the game template data according to the configuration file and a preset view template file; the preset view template file defines page layouts corresponding to the fields and page operation response functions corresponding to the fields.
The preset view template file is also a common preset template file. The page layout defined in the preset view template file may include page layouts of different fields determined based on the field classification, such as a presentation position and a presentation style of each type of field in a page, and a presentation position and a presentation style of a data input box corresponding to the field. The field classifications may be determined based on attributes of different game elements, for example, the field classifications may include a base attribute class field, an action attribute class field, or a list data class field, among others. The page operation response functions corresponding to the respective fields may include response functions corresponding to data entry (or input), modification, deletion, and saving operations of the user.
In addition, the configuration file can also comprise a data format corresponding to each field, so that the user can input data conforming to the data format on the editor page. Correspondingly, the preset view template file can also comprise a generation logic of data input prompt information corresponding to the data format, so that the finally generated editor page can display the data input prompt information, and the page interaction friendliness is improved.
In general, fields included in different game template data may be different, but data processing supported by the game template data is the same, and by using a preset model template file and a preset view template file to generate a model file and a view file for the game template data, it is possible to help improve the generation efficiency of an editor corresponding to the game template data.
And S104, generating an editor corresponding to the game template data according to the view file and the model file, so that the game template data are processed according to the operation of the user on an editor page.
The editor may be implemented in the form of a web application, i.e. the editor page may be a web page. The electronic device displays the content of the game template data on an editor page, processes the game template data according to the user operation on the editor page, for example, the user operation may include data entry, query, modification, deletion, import, and the like, and then may store the processing result in any available database, for example, mongodb database (a database stored based on distributed files) and the like, or perform page display on the processing result.
On the basis of the technical scheme, further, global controls corresponding to the game template data and response functions corresponding to the global controls are defined in the preset view template file; the global control comprises at least one of: the system comprises a data new building control, a data copying control, a data deleting control, a data filter, a data saving control, a data resetting control and a data importing control. The data new creating control is used for creating a data object, namely packaging game template data into an object and defining get, set and show functions of each field; the data deleting control is used for deleting the specified data; the data resetting control is used for resetting data, namely modifying or recording the data again; the data import control is used for importing data and submitting the data to a background for saving (namely saving the data to a database). Data import supports the simultaneous import of multiple pieces of data for multiple fields.
The generated editor page can display the global controls, so that a user can conveniently process various data of the game template data. The global control is an operation control corresponding to the whole game template data, for example, a user clicks a data storage control in the global control on an editor page, and a request for storing data of each field in certain game template data displayed on a current page can be triggered; or, for example, the user clicks on the data filter, a filtering request for game template data corresponding to the data number or data name input by the user may be triggered. Specific display positions and display styles of all global controls on a page are not specifically limited in the embodiment of the disclosure, and can be flexibly set in a preset view template file.
Optionally, a control adding event corresponding to the preset field and a response function corresponding to each control to be added are further defined in the preset view template file; the control addition event includes at least one of: the data saving control adding event, the data adding control adding event, the data deleting control adding event, the data modifying control adding event and the data position moving control adding event. Wherein, the data adding means that the data input by the user is stored in a database; the data position movement includes an upward movement, a downward movement, a left movement, a right movement, or the like.
In other words, in the example of the present disclosure, for a part of the preset fields displayed on the editor page, the operation control for the part of the preset fields may be separately added and displayed on the editor page, so that the user can conveniently edit the fine granularity of each field in the game template data. The preset field may be predefined in the preset view template file by the user according to the data processing requirement, for example, the list data class field is set as the preset field.
Fig. 2 is a schematic diagram of an editor page provided in the embodiment of the present disclosure, which is used for exemplary illustration of the embodiment of the present disclosure, but should not be construed as a specific limitation to the embodiment of the present disclosure. As shown in FIG. 2, the upper portion of the game editor page shows a game template data list control, a data new control, a data copy control, a data delete control, and a data filter. In the lower display frame corresponding to the game template data list control, a plurality of game template data may be displayed according to the game template data name. In the filter, the user can search the required template data according to the number or name of the game template data, and the data search result can be displayed on the editor page. In the middle part of the game editor page, fields of the basic attribute class are displayed, a plurality of fields and input boxes corresponding to the fields are specifically displayed, and a user can input specific data corresponding to each field in the input boxes. In addition, for other independent fields, a data adding control, a data modifying control and the like can be displayed, so that fine-grained processing of each field is realized.
In addition, the game editor page shown in fig. 2 also shows three global controls, namely a data saving control, a data resetting control and a data importing control. And the game editor page supports that the character strings aiming at a plurality of fields are separated according to predefined characters to form a plurality of pieces of data, and the data are submitted to a background for storage.
In the embodiment of the disclosure, the model file and the view file are generated for the game template data, and the corresponding editor is generated for the game template data based on the model file and the view file, and the content of the game template data can be visually displayed on the editor page by the editor, so that the game template data is processed according to the operation of a user on the editor page, thereby not only realizing the visual display of the game template data, but also improving the efficiency of the user for processing the game template data, reducing the error rate of data processing, and improving the game development efficiency.
Fig. 3 is a flowchart of a game template data processing method provided in an embodiment of the present disclosure, where the game template data processing method is implemented based on a pre-generated editor obtained by using any editor generation method provided in an embodiment of the present disclosure for processing game template data. The contents not explained in detail in the following embodiments may refer to the description in the above embodiments.
The game template data processing method provided by the embodiment of the disclosure can be executed by a game template data processing device, which can be implemented by software and/or hardware and can be integrated on any electronic equipment with computing capability.
As shown in fig. 3, a game template data processing method provided by the embodiment of the present disclosure includes:
s301, generating a data processing request according to the operation of the user on the editor page of the game template data.
For example, as shown in fig. 2, a user may perform operations such as data entry, query, modification, deletion, and import on an editor page, and after detecting the page operation of the user, the electronic device generates a data processing request corresponding to the page operation of the user, where the processing request may include a field requested to be processed by the user and data corresponding to the field, where the data may be data currently input by the user. For example, the data processing request is for requesting to modify data (e.g., text data) corresponding to a "description" field in the game template data, and the data processing request may include the field "description" and the modified data corresponding to the field.
S302, determining a business processing rule corresponding to the data processing request by using the model file of the editor.
The business processing rule is used for defining a specific implementation mode of data processing supported by the game template data, for example, a specific implementation mode corresponding to operations such as data entry, query, modification, deletion and import.
And S303, processing the fields and the data carried by the data processing request according to the service processing rule.
The results of the processing of the game template data may be stored in any available database or presented on an editor page.
In the embodiment of the disclosure, the game template data is visually displayed by using the pre-generated editor, so that the user can conveniently and efficiently process the game template data, and the game development efficiency is improved.
Fig. 4 is a schematic structural diagram of an editor generation apparatus for processing game template data according to an embodiment of the present disclosure, which may be implemented in software and/or hardware and may be integrated on any electronic device with computing capability.
As shown in fig. 4, an editor generating apparatus 400 for processing game template data provided by the embodiment of the present disclosure may include a configuration file obtaining module 401, a model file generating module 402, a view file generating module 403, and an editor generating module 404, where:
a configuration file obtaining module 401, configured to obtain a configuration file corresponding to the game template data; wherein, the configuration file comprises each field included in the game template data;
a model file generation module 402, configured to generate a model file for the game template data according to the business processing rule of the game template data and a preset model template file;
a view file generating module 403, configured to generate a view file for the game template data according to the configuration file and a preset view template file; the method comprises the steps that a preset view template file defines page layouts corresponding to fields and page operation response functions corresponding to the fields;
and an editor generating module 404, configured to generate an editor corresponding to the game template data according to the view file and the model file, so that the game template data is processed according to an operation of a user on an editor page.
Wherein the game template data is used to describe attributes of the game elements.
Optionally, the processing logic defined in the preset model template file includes at least one of the following:
data filtering, data saving, data deleting and data importing.
Optionally, the preset view template file further defines global controls corresponding to the game template data and response functions corresponding to the global controls;
the global control comprises at least one of: the system comprises a data new building control, a data copying control, a data deleting control, a data filter, a data saving control, a data resetting control and a data importing control.
Optionally, a control adding event corresponding to the preset field and a response function corresponding to each control to be added are further defined in the preset view template file;
the control addition event includes at least one of: the data saving control adding event, the data adding control adding event, the data deleting control adding event, the data modifying control adding event and the data position moving control adding event.
The editor generation device for processing game template data provided by the embodiment of the disclosure can execute any editor generation method for processing game template data provided by the embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the disclosure that may not be described in detail in the embodiments of the apparatus of the disclosure.
Fig. 5 is a schematic structural diagram of a game template data processing apparatus provided in an embodiment of the present disclosure, which may be implemented by software and/or hardware and may be integrated on any electronic device with computing capability.
The game template data processing apparatus provided by the embodiment of the present disclosure is implemented based on a pre-generated editor, and the editor is obtained by using any editor generation method for processing game template data provided by the embodiment of the present disclosure, and specifically, reference may be made to the explanations in the above method embodiments.
As shown in fig. 5, the game template data processing apparatus 500 provided by the embodiment of the present disclosure may include a request generating module 501, a processing rule determining module 502, and a request processing module 503, where:
a request generating module 501, configured to generate a data processing request according to an operation of a user on an editor page of game template data;
a processing rule determining module 502, configured to determine a service processing rule corresponding to the data processing request by using the model file of the editor;
the request processing module 503 is configured to process the fields and data carried in the data processing request according to the service processing rule.
The game template data processing device provided by the embodiment of the disclosure can execute any game template data processing method provided by the embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the disclosure that may not be described in detail in the embodiments of the apparatus of the disclosure.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, which is used to exemplarily illustrate an electronic device that implements an editor generation method or a game template data processing method for processing game template data according to an embodiment of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, smart home devices, wearable electronic devices, servers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and occupation ranges of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 includes one or more processors 601 and memory 602.
The processor 601 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 600 to perform desired functions.
The memory 602 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. Volatile memory can include, for example, Random Access Memory (RAM), cache memory (or the like). The non-volatile memory may include, for example, Read Only Memory (ROM), a hard disk, flash memory, and the like. One or more computer program instructions may be stored on a computer-readable storage medium, and the processor 601 may execute the program instructions to implement the editor generation method or the game template data processing method for processing game template data provided by the embodiments of the present disclosure, and may also implement other desired functions. Various contents such as an input signal, a signal component, a noise component, etc. may also be stored in the computer-readable storage medium.
In one aspect, an editor generation method for processing game template data provided by an embodiment of the present disclosure may include: acquiring a configuration file corresponding to game template data; wherein, the configuration file comprises each field included in the game template data; generating a model file for the game template data according to the business processing rule of the game template data and a preset model template file; generating a view file for the game template data according to the configuration file and a preset view template file; the preset view template file defines a page layout corresponding to each field and a page operation response function corresponding to each field; and generating an editor corresponding to the game template data according to the view file and the model file so as to process the game template data according to the operation of the user on an editor page.
On the other hand, the game template data processing method provided by the embodiment of the disclosure may include: generating a data processing request according to the operation of a user on an editor page of the game template data; determining a business processing rule corresponding to the data processing request by using the model file of the editor; and processing the fields and the data carried by the data processing request according to the service processing rule.
It should be understood that electronic device 600 may also perform other alternative embodiments provided by the disclosed method embodiments.
In one example, the electronic device 600 may further include: an input device 603 and an output device 604, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 603 may also include, for example, a keyboard, a mouse, and the like.
The output device 604 may output various information including the determined distance information, direction information, and the like to the outside. The output devices 604 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device 600 relevant to the present disclosure are shown in fig. 6, omitting components such as buses, input/output interfaces, and the like. In addition, electronic device 600 may include any other suitable components depending on the particular application.
In addition to the above methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause a computing device to implement any of the editor generation methods or game template data processing methods for processing game template data provided by embodiments of the present disclosure.
The computer program product may write program code for performing the operations of embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on a remote electronic device, or entirely on the remote electronic device.
Furthermore, the disclosed embodiments may also provide a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause a computing device to implement any of the editor generation methods or game template data processing methods for processing game template data provided by the disclosed embodiments.
In one aspect, an editor generation method for processing game template data provided by an embodiment of the present disclosure may include: acquiring a configuration file corresponding to game template data; wherein, the configuration file comprises each field included in the game template data; generating a model file for the game template data according to the business processing rule of the game template data and a preset model template file; generating a view file for the game template data according to the configuration file and a preset view template file; the preset view template file defines a page layout corresponding to each field and a page operation response function corresponding to each field; and generating an editor corresponding to the game template data according to the view file and the model file so as to process the game template data according to the operation of the user on an editor page.
On the other hand, the game template data processing method provided by the embodiment of the disclosure may include: generating a data processing request according to the operation of a user on an editor page of the game template data; determining a business processing rule corresponding to the data processing request by using the model file of the editor; and processing the fields and the data carried by the data processing request according to the service processing rule.
It should be understood that the computer program instructions, when executed by a processor, may also cause the processor to perform other alternative embodiments provided by the disclosed method embodiments.
A computer-readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An editor generation method for processing game template data, comprising:
acquiring a configuration file corresponding to game template data; wherein, the configuration file comprises each field included in the game template data;
generating a model file for the game template data according to the business processing rule of the game template data and a preset model template file;
generating a view file for the game template data according to the configuration file and a preset view template file; the preset view template file defines a page layout corresponding to each field and a page operation response function corresponding to each field;
and generating an editor corresponding to the game template data according to the view file and the model file so as to process the game template data according to the operation of the user on an editor page.
2. The method of claim 1, wherein the game template data is used to describe attributes of game elements.
3. The method of claim 1, wherein the processing logic defined in the pre-set model template file comprises at least one of:
data filtering, data saving, data deleting and data importing.
4. The method according to claim 1, wherein the preset view template file further defines global controls corresponding to the game template data and response functions corresponding to the global controls;
the global control comprises at least one of: the system comprises a data new building control, a data copying control, a data deleting control, a data filter, a data saving control, a data resetting control and a data importing control.
5. The method according to claim 1, wherein the preset view template file further defines control adding events corresponding to preset fields and response functions corresponding to each control to be added;
the control addition event comprises at least one of: the data saving control adding event, the data adding control adding event, the data deleting control adding event, the data modifying control adding event and the data position moving control adding event.
6. A game template data processing method, implemented based on an editor obtained by the method for generating an editor for processing game template data according to any one of claims 1 to 5, the processing method comprising:
generating a data processing request according to the operation of a user on an editor page of the game template data;
determining a business processing rule corresponding to the data processing request by using the model file of the editor;
and processing the fields and the data carried by the data processing request according to the service processing rule.
7. An editor generation apparatus for processing game template data, comprising:
the configuration file acquisition module is used for acquiring a configuration file corresponding to the game template data; wherein, the configuration file comprises each field included in the game template data;
the model file generation module is used for generating a model file for the game template data according to the business processing rule of the game template data and a preset model template file;
the view file generation module is used for generating a view file for the game template data according to the configuration file and a preset view template file; the preset view template file defines a page layout corresponding to each field and a page operation response function corresponding to each field;
and the editor generating module is used for generating an editor corresponding to the game template data according to the view file and the model file so as to process the game template data according to the operation of a user on an editor page.
8. A game template data processing apparatus, characterized in that it is implemented based on an editor obtained by using the editor generation method for processing game template data of any one of claims 1 to 5, the processing apparatus comprising:
the request generation module is used for generating a data processing request according to the operation of a user on an editor page of the game template data;
the processing rule determining module is used for determining a business processing rule corresponding to the data processing request by utilizing the model file of the editor;
and the request processing module is used for processing the fields and the data carried by the data processing request according to the service processing rule.
9. An electronic device comprising a memory and a processor, wherein:
the memory has stored therein a computer program that, when executed by the processor, causes the electronic device to implement the editor generation method for processing game template data of any one of claims 1-5 or the game template data processing method of claim 6.
10. A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, which, when executed by a computing device, causes the computing device to implement the editor generation method for processing game template data of any one of claims 1 to 5, or to implement the game template data processing method of claim 6.
CN202011492313.5A 2020-12-16 2020-12-16 Editor generation method and processing method for processing game template data Pending CN112597266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011492313.5A CN112597266A (en) 2020-12-16 2020-12-16 Editor generation method and processing method for processing game template data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011492313.5A CN112597266A (en) 2020-12-16 2020-12-16 Editor generation method and processing method for processing game template data

Publications (1)

Publication Number Publication Date
CN112597266A true CN112597266A (en) 2021-04-02

Family

ID=75196901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011492313.5A Pending CN112597266A (en) 2020-12-16 2020-12-16 Editor generation method and processing method for processing game template data

Country Status (1)

Country Link
CN (1) CN112597266A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005045584A2 (en) * 2003-10-23 2005-05-19 Microsoft Corporation Media integration layer
CN105242928A (en) * 2015-10-10 2016-01-13 苏州工业园区凌志软件股份有限公司 Rapid development platform method based on module plant
EP2990086A2 (en) * 2014-08-27 2016-03-02 Square Enix Co., Ltd. Program, game system, and control method
CN106682014A (en) * 2015-11-09 2017-05-17 腾讯科技(深圳)有限公司 Game display data generation method and device
CN109948077A (en) * 2018-08-20 2019-06-28 平安普惠企业管理有限公司 User behavior data acquisition method, device, equipment and computer storage medium
CN110083790A (en) * 2019-04-30 2019-08-02 珠海随变科技有限公司 Page editing method, page output method, device, computer equipment and medium
CN110673847A (en) * 2019-09-24 2020-01-10 北京乐我无限科技有限责任公司 Configuration page generation method and device, electronic equipment and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005045584A2 (en) * 2003-10-23 2005-05-19 Microsoft Corporation Media integration layer
EP2990086A2 (en) * 2014-08-27 2016-03-02 Square Enix Co., Ltd. Program, game system, and control method
CN105242928A (en) * 2015-10-10 2016-01-13 苏州工业园区凌志软件股份有限公司 Rapid development platform method based on module plant
CN106682014A (en) * 2015-11-09 2017-05-17 腾讯科技(深圳)有限公司 Game display data generation method and device
CN109948077A (en) * 2018-08-20 2019-06-28 平安普惠企业管理有限公司 User behavior data acquisition method, device, equipment and computer storage medium
CN110083790A (en) * 2019-04-30 2019-08-02 珠海随变科技有限公司 Page editing method, page output method, device, computer equipment and medium
CN110673847A (en) * 2019-09-24 2020-01-10 北京乐我无限科技有限责任公司 Configuration page generation method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
JP7420861B2 (en) System and method for website building system server
WO2020119485A1 (en) Page display method and device, apparatus, and storage medium
US10466971B2 (en) Generation of an application from data
RU2419853C2 (en) Appearance of electronic data report with named objects
US9262850B2 (en) Descriptive framework for data visualization
US8074167B2 (en) Cross domain presence of web user interface and logic
JP2016224923A (en) Method and system for automated generation of user form interface
US9645719B2 (en) Data-driven schema for describing and executing management tasks in a graphical user interface
JP2009507303A (en) Generate electronic data snapshots
US20140047409A1 (en) Enterprise application development tool
US20100281392A1 (en) Platform Extensibility Framework
CN109145272B (en) Text rendering and layout method, device, equipment and storage medium
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
CN103257858A (en) Declarative dynamic control flow in continuation-based runtime
CN110795649A (en) Target page display method, device and system and electronic equipment
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN113407284A (en) Navigation interface generation method and device, storage medium and electronic equipment
KR20200040813A (en) Create search result-based listings in a single view
CN111666100A (en) Software framework generation method and device, electronic equipment and storage medium
JP2016066355A (en) Web application generating system, control method of web application generating system, program for web application generating system, web application generating device, control method of web application generating device, and program for web application generating device
CN110717134A (en) Product description issuing method and device, storage medium and electronic equipment
CN112597266A (en) Editor generation method and processing method for processing game template data
KR20130057417A (en) System and method for automatic continuation marks in an electronic publication
CN115081423A (en) Document editing method and device, electronic equipment and storage medium
US20140282477A1 (en) Automatic updating of data in application programs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination