CN107544972B - Map edit method and apparatus - Google Patents
Map edit method and apparatus Download PDFInfo
- Publication number
- CN107544972B CN107544972B CN201610466983.7A CN201610466983A CN107544972B CN 107544972 B CN107544972 B CN 107544972B CN 201610466983 A CN201610466983 A CN 201610466983A CN 107544972 B CN107544972 B CN 107544972B
- Authority
- CN
- China
- Prior art keywords
- attribute information
- map
- edited
- unit
- card
- 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.)
- Active
Links
Abstract
The invention discloses a kind of map edit method and apparatus.Wherein, this method comprises: the first map file of load, obtains map datum, wherein the first map file is used to indicate map to be edited, and map datum includes the attribute information of the multiple editable objects and editable object in map to be edited;Receive search operation, wherein search operation includes search key, and search operation, which is used to indicate from multiple editable objects, searches for object to be edited, and the title of object to be edited is matched with search key;The attribute information of object to be edited is adjusted to the second attribute information from the first attribute information according to the edit operation detected;And the second map file is generated according to the second attribute information, wherein the second map file is used to indicate edited map to be edited.The present invention solves the technical problem that map_editor in the related technology needs the object on editing interface manual creation map layer and map layer to cause map formation efficiency lower.
Description
Technical field
The present invention relates to computer fields, in particular to a kind of map edit method and apparatus.
Background technique
Currently, map_editor in the related technology is when creating map, it usually needs editorial staff is in editing interface hand
All objects on dynamic creation map layer and map layer, to achieve the purpose that generate map.For example, Tiled map_editor
Map is disassembled as block layer, object layer and image layer, block layer is considered as map layer, and object layer is considered as on map layer
All objects, image layer is the background image of map.Tiled map_editor needs to create manually during generating map
Block layer and object layer are built, image layer can be by loading the ready-made image of the fine arts.Manual creation block layer and object layer need compared with
The long time has seriously affected map formation efficiency, and Tiled map_editor creates block layer and object layer using independent
Edit mode is built, does not support the binding between block layer and object layer, does not also support the dynamic chek of resource.For another example, Mappy
Graph editor is the universal map editing machine based on block, and map is saved as FMP file by Mappy, then in gaming directly
FMP file content is parsed, reads the information in block, and with the original appearance of the element reduction map in game.Mappy map edit
Device can only splice map layer, not can be carried out any edit operation for the unit object on map layer.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of map edit method and apparatus, at least to solve map volume in the related technology
Collecting device needs the object on editing interface manual creation map layer and map layer to lead to the lower technology of map formation efficiency
Problem.
According to an aspect of an embodiment of the present invention, a kind of map edit method is provided, comprising: the first ground picture and text of load
Part obtains map datum, wherein the first map file is used to indicate map to be edited, and map datum includes in map to be edited
Multiple editable objects and editable object attribute information;Receive search operation, wherein search operation includes that search is crucial
Word, search operation, which is used to indicate from multiple editable objects, searches for object to be edited, and the title of object to be edited and search are closed
Keyword matching;The attribute information of object to be edited is adjusted to the second category from the first attribute information according to the edit operation detected
Property information;And the second map file is generated according to the second attribute information, wherein the second map file is used to indicate edited
Map to be edited.
According to another aspect of an embodiment of the present invention, a kind of map edit device is additionally provided, comprising: loading unit is used
In loading the first map file, map datum is obtained, wherein the first map file is used to indicate map to be edited, map datum
Attribute information including multiple editable objects and editable object in map to be edited;Receiving unit, for receiving search
Operation, wherein search operation includes search key, search operation be used to indicate searched for from multiple editable objects it is to be edited
The title of object, object to be edited is matched with search key;Adjustment unit, the edit operation detected for basis will be wait compile
The attribute information for collecting object is adjusted to the second attribute information from the first attribute information;And generation unit, for belonging to according to second
Property information generate the second map file, wherein the second map file is used to indicate edited map to be edited.
In embodiments of the present invention, using the first map file is loaded, map datum is obtained, wherein the first map file
It is used to indicate map to be edited, map datum includes the attribute of the multiple editable objects and editable object in map to be edited
Information;Receive search operation, wherein search operation includes search key, and search operation is used to indicate from multiple editables pair
As middle search object to be edited, the title of object to be edited is matched with search key;It will be to according to the edit operation detected
The attribute information of edit object is adjusted to the second attribute information from the first attribute information;And the is generated according to the second attribute information
Two map files, wherein the second map file is used to indicate edited map to be edited, by load map datum, and according to
Object to be edited is determined according to the search operation received, its attribute is then adjusted according to the edit operation for treating edit object execution
Information finally generates the map file for being used to indicate edited map to be edited according to attribute information adjusted, reaches
The purpose of map is quickly edited and generated, to realize the technical effect for improving map formation efficiency, and then solves correlation
Map_editor in technology needs the object on editing interface manual creation map layer and map layer that map is caused to generate
The lower technical problem of efficiency.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the hardware environment of map edit method according to an embodiment of the present invention;
Fig. 2 is a kind of flow chart of optional map edit methods according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of the hardware configuration of map_editor according to an embodiment of the present invention;
Fig. 4 is the flow chart of map_editor reading and analytic map data according to an embodiment of the present invention;
Fig. 5 is the flow chart that map_editor according to an embodiment of the present invention searches for object to be edited;
Fig. 6 is the schematic diagram of the modification process of the attribute data of unit object according to an embodiment of the present invention;
Fig. 7 is the schematic diagram of data acquisition and the process of preservation according to an embodiment of the present invention;
The schematic diagram at map edit interface when Fig. 8 is initialization according to an embodiment of the present invention;
Fig. 9 is the schematic diagram of outpost configuration interface according to an embodiment of the present invention;
Figure 10 is the schematic diagram that outpost configuration interface according to an embodiment of the present invention packs up rear map edit interface;
Figure 11 is the schematic diagram of unit configuration interface according to an embodiment of the present invention;
Figure 12 is the schematic diagram at unit attribute data modification according to an embodiment of the present invention interface;
Figure 13 is the schematic diagram of game fighting bout configuration interface according to an embodiment of the present invention;
Figure 14 is the schematic diagram of the NPC dialogue configuration interface of game fighting bout according to an embodiment of the present invention;
Figure 15 is the schematic diagram of starting hands configuration interface in game fighting bout according to an embodiment of the present invention;
Figure 16 is a kind of schematic diagram of optional map editing device according to an embodiment of the present invention;
Figure 17 is the schematic diagram of another optional map editing device according to an embodiment of the present invention;
Figure 18 is the schematic diagram of another optional map editing device according to an embodiment of the present invention;
Figure 19 is the schematic diagram of another optional map editing device according to an embodiment of the present invention;
Figure 20 is the schematic diagram of another optional map editing device according to an embodiment of the present invention;
Figure 21 is the schematic diagram of another optional map editing device according to an embodiment of the present invention;
Figure 22 is the schematic diagram of another optional map editing device according to an embodiment of the present invention;
Figure 23 is the schematic diagram of another optional map editing device according to an embodiment of the present invention;
Figure 24 is the schematic diagram of another optional map editing device according to an embodiment of the present invention;And
Figure 25 is a kind of structural block diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the method for map edit method is provided.
Optionally, in the present embodiment, above-mentioned map edit method can be applied to as shown in Figure 1 by server 102
In the hardware environment constituted with terminal 104.As shown in Figure 1, server 102 is attached by network with terminal 104, it is above-mentioned
Network includes but is not limited to: wide area network, Metropolitan Area Network (MAN) or local area network, and terminal 104 is not limited to PC, mobile phone, tablet computer etc..This
The map edit method of inventive embodiments can be executed by server 102, can also be executed, be can also be by terminal 104
It is executed jointly by server 102 and terminal 104.Wherein, the map edit method that terminal 104 executes the embodiment of the present invention can also be with
It is to be executed by client mounted thereto.
Fig. 2 is a kind of flow chart of optional map edit methods according to an embodiment of the present invention, as shown in Fig. 2, the party
Method may comprise steps of:
Step S202 loads the first map file, obtains map datum, wherein the first map file is used to indicate wait compile
Map is collected, map datum includes the attribute information of the multiple editable objects and editable object in map to be edited;
Step S204 receives search operation, wherein search operation includes search key, search operation be used to indicate from
Object to be edited is searched in multiple editable objects, the title of object to be edited is matched with search key;
Step S206 adjusts the attribute information of object to be edited from the first attribute information according to the edit operation detected
For the second attribute information;
Step S208 generates the second map file according to the second attribute information, wherein the second map file is used to indicate volume
Map to be edited after volume.
It should be noted that can design to obtain a map_editor using above-mentioned steps, which can pacify
Mounted in server, client also may be mounted at.The map_editor is by loading map datum, and the search that foundation receives
Operation determines object to be edited, then adjusts its attribute information, last basis according to the edit operation for treating edit object execution
Attribute information adjusted generates the map file for being used to indicate edited map, has reached quick editor and has generated map
Purpose, and then the map_editor solved in the related technology needs on editing interface manual creation map layer and map layer
The object technical problem that causes map formation efficiency lower, reached the technical effect for improving map formation efficiency.
In the technical solution that step S202 is provided, the first map file can be the text for being used to indicate map to be edited
Part, wherein map to be edited can be map, manoeuvre map or operational commanding map etc..First map file can be with
It may include the map datum for being used to indicate map to be edited in the first map file, wherein ground for the file being pre-created
Diagram data may include the attribute information of the multiple editable objects and editable object in map to be edited.Specifically, may be used
Edit object may include but be not limited to map layer, the object on map layer, the event occurred on map layer, wherein map
Layer may include map background image, map background mark ID etc.;Object on map layer may include unit on map layer,
Role, card etc.;It may include game fighting bout, plot, dialogue etc. that event occurs on map layer.The attribute of editable object
Information may include but be not limited to editable object oriented, the type of editable object, the explanation of editable object etc.,
For example, editable object is card, then the attribute information of editable object may include card title, card mark ID, card
Corresponding technical ability such as illustrates at the information.For another example, editable object is map background image, then the attribute information of editable object can
To include the information such as image identification ID, image subject color, image pixel resolution ratio.It should be noted that above-mentioned lists ground
The attribute information of the part editable object and editable object that include in diagram data, the map datum in the embodiment of the present invention
It can also include other editable objects, editable object can also include other attribute informations, no longer illustrate one by one herein
It is bright.
In practical application scene, map_editor loads the first map file can be by calling function to obtain predetermined mesh
The first map file being pre-created under record, wherein predetermined directories can be any catalogue, the first map being pre-created
File can be stored under the predetermined directories.After loading the first map file, what map_editor can obtain load
First map file is parsed, and therefrom parsing obtains map datum.Optionally, carrying out parsing to the first map file can wrap
If included, that the first map file is carried out format conversion, format is wrong, can capture and make mistake, but can retain and can correctly parse
Data out.Classification integration is carried out by the data that can correctly parse to this part, it can is used to indicate
The map datum of map to be edited.
Optionally, map_editor, can be right by its after getting and being used to indicate the map datum of map to be edited
It should be shown on map edit interface, in order to be intuitive to see map to be edited indicated by map datum for editorial staff.
It should be noted that map_editor multiple is compiled by included in the load obtained map datum of the first map file
The attribute information of volume object and editable object is initialization information, and the map to be edited shown on map edit interface can be with
It does not show in initialization, namely without the multiple editable objects and its attribute information before any editor, can also manage
Solution is map_editor after obtaining map datum by the first map file of load, and only display should on map edit interface
The empty template of the corresponding map to be edited of map datum.If needed during map edit to some or certain editables
Object carries out edit operation, may search for calling the editable object and carries out edit operation to it, and then adjusts the editable
The attribute information of object.
In the technical solution that step S204 is provided, search operation can serve to indicate that be searched for from multiple editable objects
Object to be edited, the search source of search operation can be the map datum that step S202 is obtained.Search operation obtains to be edited
Object can be any one in multiple editable objects included by map datum or multiple.It should be noted that this
Inventive embodiments are not specifically limited search operation, search operation may include search key or multiple crucial phrases at
Crucial phrase, for example search key " fire " is inputted in the search column of map edit interface display, or " card fire ", search
Operation can also include search expression, for example search expression " fiery and is inputted in the search column of map edit interface display
Card ", " fiery or card ".Map_editor, can be according to the search included by search operation after receiving search operation
Keyword, crucial phrase or search expression search for object to be edited from multiple editable objects, and optionally, the present invention is implemented
Example can according to editable object title or attribute information and search key included by search operation, crucial phrase or search
The matching degree of rope expression formula selects title or attribute information and search key, keyword from multiple editable objects
Group or one or more matched editable object of search expression are as object to be edited.
In practical application scene, it is crucial that editorial staff can input search in the search column on map edit interface
Word, crucial phrase or search expression, when map_editor detects this search operation, can from map datum institute
Including multiple editable objects in search name or attribute information and search key, crucial phrase or search expression
One or more matched editable object, one or more editable object that search is obtained is as to be edited right
As, and be shown to the object to be edited is corresponding in map edit interface, for editorial staff it is carried out edit operation with
Achieve the purpose that the attribute information for adjusting the object to be edited.
It should be noted that the embodiment of the present invention is straight by the first map file of load, and from obtained map datum
Search object to be edited is connect, map_editor is realized and directly the format of data source is read, highly shortened manual creation
Time needed for object to be edited, and then can achieve the effect that improve map formation efficiency.
Step S206 provide technical solution in, map_editor according to search operation determine object to be edited it
It afterwards, can be with real-time detection with the presence or absence of the edit operation to the object to be edited, wherein treat the editor behaviour of edit object execution
Work may include but be not limited to click object to be edited, for example clicks, double-clicks;Mobile object to be edited, for example drag wait compile
It collects object and is moved to the second position from first position.It should be noted that the edit operation for treating edit object execution can be with
Including other operations, explanation will not enumerate herein.Treating edit operation performed by edit object can serve to indicate that tune
The attribute information of object to be edited is adjusted to the second attribute letter from the first attribute information by the attribute information of whole object to be edited
Breath, it should be noted that the first attribute information can serve to indicate that treat edit object executive editor operation before it is to be edited right
The attribute information of elephant, the second attribute information can serve to indicate that treat edit object executive editor operation after object to be edited
Attribute information.It should be noted that " first " and " second " herein treats edit object executive editor behaviour only for distinguishing
Before work with the attribute information of object to be edited later, treat edit object attribute information significance level or sequence not into
Row is specific to be limited.
For example, object to be edited is role, the edit operation for treating edit object execution may include single-click operation, click
Map edit interface can jump to the adjustment interface of the role attribute after role, edit in the adjustment interface of the role attribute
Edit operation performed by personnel can also include the property parameters of modification role, such as role's title, role hierarchy, attachment skill
Energy is equal.Map_editor, can be according to these editors after detecting and treating above-mentioned edit operation performed by edit object
The attribute information of operation adjustment object to be edited.
Step S208 provide technical solution in, the second map file can serve to indicate that it is edited to be editedly
Figure, it should be noted that the edit operation for treating edit map progress can be to treat edit operation performed by edit object,
It may include but be not limited to treat the institutes such as the map layer of edit map, the object on map layer, the event that occurs on map layer
The edit operation of execution.Treating can be according to performed edit operation by object to be edited after edit object executive editor operation
Attribute information be adjusted to the second attribute information from the first attribute information.It can be given birth to according to the second attribute information of object to be edited
At the second map file, it should be noted that the second attribute information of object to be edited may include one or more herein
Corresponding to object to be edited, according to edit operation the second attribute information adjusted executed to it.The embodiment of the present invention can
It is integrated with the second attribute information to one or more object to be edited, is integrated into long text, and will integrate
To long text be converted into the second map file of XML format.
Optionally, the embodiment of the present invention is generating second according to the second attribute information of one or more object to be edited
After map file, second map file can also be saved, in order to read again second map file, and existing
The attribute information for continuing to treat edit object on the basis of second attribute information is adjusted.
It should be noted that the second map file of the first map file and generation that the embodiment of the present invention is read all may be used
It in order to simplify upper-layer service parsing is to the full extent upper-layer service with simplest XML format in being transmitted with network text
Simplest application scenarios are provided.
As a kind of optional embodiment, step S202 loads the first map file, obtain map datum may include with
Lower step:
First map file is carried out serializing processing by step S2022.
In the technical solution that step S2022 is provided, the first map file of load can be XML format, to XML format
The first map file carry out serializing processing, the first map file for enabling to map_editor to read be with serialize
Simplest XML format in network text transmission afterwards, and then simplify map_editor to the full extent to the first map file
Resolving.
Step S2024 parses the first map file after serializing, obtains map datum.
Step S2024 provide technical solution in, map_editor after being serialized to the first map file,
First map file can be parsed, may include checking whether XML format is wrong, from the if without mistake
Map datum is directly acquired in one map file;If format is wrong, obtaining from the first map file being capable of correct quilt
The data of parsing are as map datum.The alternative embodiment can guarantee ground by carrying out format parsing to the first map file
The accuracy for the map datum that Graph editor is read, and then achieve the effect that improve map_editor stability.
Step S2026, diagram data is classified over the ground, obtains multiple data structures, wherein multiple data structures include the
A kind of data structure, secondary sources structure and third class data structure, wherein primary sources structure is for storing wait compile
The background map information of map is collected, secondary sources structure is used to store the unit information on map to be edited, third class data
Structure is for storing the event information occurred on map to be edited.
In the technical solution that step S2026 is provided, which can be according to the type of object to be edited by ground
Diagram data is classified, and object to be edited can be divided into background map, unit, event three classes, and correspondingly, map datum can divide
For three data structures, it is respectively as follows: the primary sources structure of the background map information for storing map to be edited, for depositing
The secondary sources structure for storing up the unit information on map to be edited, for storing the third of the event information on map to be edited
Class data structure.Map datum is divided into corresponding data knot by the type according to object to be edited by the alternative embodiment
Structure, after the attribute information for treating edit object executive editor's operation adjustment object to be edited, can convenient for using with it is to be edited
Accordingly corresponding data structure stores the attribute information adjusted of the object to be edited to object type.
It should be noted that the embodiment of the present invention can also be according to the type or other content to map number of edit operation
According to classifying, this embodiment of the present invention is not specifically limited.
As a kind of optional embodiment, the editable object for including in map datum may include background map, unit,
Event, in which:
When object to be edited is background map, in step S206 according to the edit operation detected by object to be edited
After attribute information is adjusted to the second attribute information from the first attribute information, which can also include: step
Second attribute information of background map is stored in primary sources structure by S2072.
When object to be edited is unit, in step S206 according to the edit operation detected by the attribute of object to be edited
After information is adjusted to the second attribute information from the first attribute information, which can also include: step S2074, will
Second attribute information of unit is stored in secondary sources structure;
When object to be edited is event, in step S206 according to the edit operation detected by the attribute of object to be edited
After information is adjusted to the second attribute information from the first attribute information, which can also include: step S2076, will
Second attribute information of event is stored in third class data structure.
It should be noted that object to be edited can be divided into background map, unit, event three classes, wherein background map can
To regard map layer of map to be edited, including map background image, map background mark ID etc. as;Unit can be regarded as to
All objects in edit map may include role, card etc. on map layer;Event can be regarded as on map to be edited
The event of generation may include game fighting bout, plot, dialogue etc..Data knot corresponding with these three types object to be edited
Structure is respectively as follows: the primary sources structure of the background map information for storing background map, for the of storage cell information
Two class data structures, the third class data structure for storing event information.After treating edit object executive editor operation, to
The attribute information of edit object can change, and the attribute information after the changing of these three types of objects to be edited is respectively background
Second attribute information of the second attribute information of map, the second attribute information of unit and event.The embodiment utilizes and back
Second attribute information of the corresponding primary sources structure storage background map of scape map, utilizes corresponding with unit second
Second attribute information of class data structure storage cell utilizes the of third class data structure corresponding with event storage event
Two attribute informations can reach convenient for the second attribute information of object to be edited is carried out classification storage, in order to map edit
Device using object to be edited the second attribute information generate the second map file when, can quickly and easily from object to be edited
The second attribute information of the object to be edited is searched in corresponding data structure, and then can be reached and be shortened the second map file
The generation time, further improve the effect of map formation efficiency.
As a kind of optional embodiment, step S208 generates the second map file according to the second attribute information and can wrap
It includes:
Step S2082, by the second attribute information of the background map stored in primary sources structure, secondary sources knot
Second attribute information of the event stored in the second attribute information and third class data structure of the unit stored in structure is integrated
For long text.
Step S2084 converts long text to the second map file of XML format.
It should be noted that the second attribute information of object to be edited can after treating edit object executive editor operation
Be stored in in the type of object to be edited correspondingly data structure.It has been operated when to all object executive editors to be edited
Bi Hou, map_editor can obtain the second of the object to be edited from data structure corresponding with object type to be edited
Attribute information can specifically include: the second attribute information of background map is obtained from primary sources structure;From he second-class number
The second attribute information of event is obtained according to the second attribute information for obtaining unit in structure and from third class data structure.?
After the second attribute information for obtaining above-mentioned different types of object to be edited, map_editor can be integrated it, will
It is integrated into long text, and carries out format conversion to the long text, is deserialized as the second map file of XML format,
Wherein, the second map file can serve to indicate that edited map.The alternative embodiment is from different types of data structure
The second attribute information for obtaining different types of object to be edited respectively, can reach and guarantee data integrity, and then improve life
At the second map file accuracy effect.
As a kind of optional embodiment, step S2082 can with specifically includes the following steps:
Step S20822 receives triggering command, wherein triggering command, which is used to indicate from primary sources structure, obtains back
Second attribute information of scape map obtains the second attribute information of unit and from third class data from secondary sources structure
The second attribute information of event is obtained in structure.
It should be noted that triggering command can serve to indicate that obtains the second of background map from primary sources structure
Attribute information obtains thing from the second attribute information for obtaining unit in secondary sources structure and from third class data structure
Second attribute information of part, in order to be integrated into the second ground picture and text that long text generation is used to indicate edited map
Part.Triggering command can be triggered by the trigger action that user executes in editor interface and be generated, wherein user is in editing machine circle
The trigger action executed on face may include but be not limited to click, long-pressing, gesture, sliding etc., such as user is in editing machine circle
Generation triggering command can be triggered when clicking save button on face.It is obtained it should also be noted that, triggering command can serve to indicate that
The second attribute information for taking the object to be edited stored in all data structures can be used for instruction fetching portion data structure
Second attribute information of the object to be edited of middle storage.
Step S20824, respectively to the first interface where primary sources structure, where secondary sources structure
Third interface broadcast data request event where second interface and third class data structure, wherein request of data event is used for
The unit stored in the second attribute information of background map for being stored in request primary sources structure, secondary sources structure
Second attribute information of the event stored in the second attribute information and third class data structure.
It should be noted that the embodiment of the present invention can execute volume to different types of object to be edited on different interfaces
Operation is collected, for example, the background map for treating edit map on the first interface carries out edit operation, volume is treated on second contact surface
The unit collected on map carries out edit operation, and the event occurred in edit map is treated on third interface and carries out edit operation.
The first data structure can be set on first interface for storing background map information, can be set second on second contact surface
Data structure is used for storage cell information, and third data structure can be set on third interface for storing event information.When
It treats after edit object executive editor operation adjustment its attribute information is changed into the second attribute information by the first attribute information, boundary
The data structure being arranged on face can be used for storing the second attribute information of object to be edited, i.e. first be arranged on the first interface
Data structure is used to store the second attribute information of background map, and the second data structure being arranged on second contact surface is for storing list
Second attribute information of position, the third data structure being arranged on third interface are used to store the second attribute information of event.
The data collector for receiving triggering command postedit device can be by the second attribute of required object to be edited
Information is broadcast to each interface in a manner of event, namely to each interface (including the first interface, second contact surface, third interface)
Broadcast data request event, to realize the second attribute information for requesting the background map stored in primary sources structure, second
Second attribute of the event stored in the second attribute information and third class data structure of the unit stored in class data structure
Information.
Step S20826 receives the primary sources knot that the panel proxy server response data request event at the first interface returns
Second attribute information of the background map stored in structure, second contact surface panel proxy server response data request event return the
Second attribute information of the unit stored in two class data structures and the panel proxy server response data at third interface request thing
Second attribute information of the event stored in the third class data structure that part returns.
It should be noted that panel can be set on each interface (including the first interface, second contact surface, third interface)
Proxy server, when panel proxy server receives request of data event, panel proxy server can respond the request of data event, from boundary
The second of the object to be edited that obtains the second attribute information of object to be edited in the data structure being arranged on face, and will acquire
Attribute information returns to the data collector of editing machine in a manner of event argument.
Step S20828, by the second attribute information of the background map received, the second attribute information of unit and thing
Second attribute information of part is integrated into long text.
It should be noted that the data collector of editing machine receive that panel proxy server on each interface returns to
The second attribute information (the second attribute information and event of the second attribute information, unit including background map of edit object
The second attribute letter) after, long text can be integrated into, in order to be deserialized as being used to indicate editor to text on this
Second map file of map later.
The alternative embodiment obtains the second attribute letter of the background map stored in the first data structure using aforesaid way
The second of the event stored in the second attribute information and third data structure of the unit stored in breath, the second data structure belongs to
Property letter, and be integrated into long text to realize the purpose for generating the second map file, from different types of data structure point
The second attribute information for not obtaining different types of object to be edited, can reach and guarantee data integrity, and then improves and generate
The second map file accuracy effect.
Optionally, the embodiment of the present invention, can also be to the second map file of generation after generating the second map file
It is saved, in order to read again second map file, and the base of the second attribute information in existing object to be edited
The attribute information for continuing to treat edit object on plinth is adjusted.
As a kind of optional embodiment, object to be edited can be as unit of, wherein unit may include it is following at least it
One: card, role, stage property etc., wherein in step S206 according to the edit operation detected by the attribute information of object to be edited
Before being adjusted to the second attribute information from the first attribute information, the embodiment can with the following steps are included:
Step S2052, by Conversion of measurement unit at editable object, wherein edit operation is the behaviour executed to editable object
Make, unit has the first format before being converted into editable object.
It should be noted that the object to be edited searched for by step S204 can be as unit of, which has the
One format, editing machine cannot carry out edit operation to the unit with the first format.Edit operation is carried out to unit in order to realize
The second attribute information is become from the first attribute information to adjust the attribute information of unit, editing machine needs the unit for obtaining search
It formats, is editable object by Conversion of measurement unit, editing machine can carry out edit operation to the editable object.Its
In, the edit operation that editable object executes be may include but be not limited to click, long-pressing, movement or sliding etc., for example,
When unit is card, after card is converted to editable object, card can be moved to card library or game battlefield.
Step S2054 detects the edit operation executed to editable object, wherein to editable object executive editor
When operation or after to editable object executive editor operation, unit is converted into the unit with the second format.
It should be noted that by Conversion of measurement unit be editable object after, editing machine can be with real-time detection to editable
Edit operation performed by object, for example, click, long-pressing, dragging or sliding etc. operate.Optionally, editing machine is detecting
When to editable object executive editor operation, alternatively, after detecting to editable object executive editor operation, the lattice of unit
Formula can be converted into the second format, and the unit with the second format can exist in the form of entity object in editing machine, to this
Entity object can carry out relevant configuration.For example, when unit is card, after card is converted to editable object, editor
Personnel editable object can be dragged to card library perhaps game battlefield in the process or this process terminate after this can
Edit object can accordingly be reversed and resolve to card object.
It is editable object that the alternative embodiment, which passes through the Conversion of measurement unit that will be searched for and obtain, and is being detected to editable pair
It when as executive editor's operation or detects to the format of conversion unit after editable object executive editor operation, can be realized
One layer of unified data are set up between view and configuration indicates object, and upper layer logic is abstracted as to unified interface, maximum journey
Spend low support scalability.
As a kind of optional embodiment, the map_editor of the embodiment of the present invention can be applied to carry out map
In the scene of editor.In the application scenarios, object to be edited can be card, then step S206 is grasped according to the editor detected
The attribute information of object to be edited is adjusted to the second attribute information from the first attribute information and may include: by work
Step S2061 receives the first edit operation executed to card, wherein the first edit operation is used to indicate card
Board is moved to the second position from first position.
In the technical solution that step S2061 is provided, card can be regarded as the unit on map to be edited, then according to right
Edit operation the second attribute information adjusted that unit executes can store in secondary sources structure.The alternative embodiment
The first edit operation that card executes can serve to indicate that, card is moved to the second position from first position, wherein first
Position and the second position can be any position in map edit interface, and first position is different from the second position.For example, will card
Board is moved in card library, perhaps removes card from card library or card is moved to game battlefield, wherein card
Library can be the card set that sequence of playing a card is used to indicate on map edit interface.
The attribute information of card is adjusted to the second category from the first attribute information according to the first edit operation by step S2063
Property information, wherein the second attribute information is used to indicate card and is located in card library, alternatively, card is not located in card library, or
Person, position of the card in card library, alternatively, card is located in first area, wherein it is removable that first area is arranged to card
It is dynamic.
In the technical solution that step S2063 is provided, map_editor is receiving the first editor behaviour executed to card
When making, the attribute information of card can be adjusted to the second attribute information from the first attribute information according to first edit operation.
When the first edit operation is used to indicate, and card is moved in card library, the second attribute information of card can serve to indicate that this
Card is located in card library;When the first edit operation, which is used to indicate, removes card from card library, the second attribute of card
Information can serve to indicate that card is not located in card library;When the first edit operation is used to indicate card from card library
When one position is moved to the second position in card library, wherein card is located in card library, and the second attribute information of card can be with
It is used to indicate position of the card in card library or is used to indicate the sequence of playing a card of card.First area can fight for game
, first area can be set to that card is removable namely card moves in game battlefield.When the first edit operation is used
When card is moved to game battlefield by instruction, the second attribute information of card can serve to indicate that card is located at game battlefield
It is interior, and card can move in game battlefield.
It should be noted that the edit operation executed to card is not limited only to above-mentioned first edit operation, card is executed
Edit operation can also include click card modification card property parameters, such as card title, card mark ID, card it is attached
The parameters such as part technical ability, then accordingly the second attribute information of card can serve to indicate that the modified property parameters of card.
It should also be noted that, object to be edited not only can be card under the scene edited to map,
It can also be the arbitrary unit, such as role, object etc. on map layer.The map_editor of the alternative embodiment can not only be compiled
Map layer is collected, and can be realized on map layer and map layer with the unit on edit map layer, such as card, role etc.
The unified of unit combine, the map_editor of the alternative embodiment greatly simplifies the edit operation of editorial staff, improves
The efficiency that map generates.
As a kind of optional embodiment, under the scene edited to map, object to be edited can also be
Game fighting bout, then step S206 believes the attribute information of object to be edited from the first attribute according to the edit operation detected
Breath is adjusted to the second attribute information and may include:
Step S2062 receives the second edit operation executed to game fighting bout, wherein the second edit operation is used for
It indicates increase or reduces the quantity of game fighting bout.
In the technical solution that step S2062 is provided, what game fighting bout can be regarded as occurring on map to be edited
Event then can store according to edit operation the second attribute information adjusted executed to event in third class data structure
In.The alternative embodiment can serve to indicate that increase to the second edit operation that game fighting bout executes or reduce game pair
The quantity of war bout, for example, clicking the first push button for being used to indicate addition game fighting bout on map edit interface
Region, alternatively, the second push button region for being used to indicate and deleting game fighting bout is clicked on map edit interface,
In, the first push button region is different from the second push button region.
Step S2064 adjusts the attribute information of game fighting bout from the first attribute information according to the second edit operation
For the second attribute information, wherein the second attribute information is used to indicate the quantity of game fighting bout.
In the technical solution that step S2064 is provided, map_editor is receiving the executed to game fighting bout
When two edit operations, the attribute information of game fighting bout can be adjusted from the first attribute information according to second edit operation
For the second attribute information, wherein the second attribute information of game fighting bout can serve to indicate that the quantity of game fighting bout.
For example, when the second editor behaviour is used to indicate the first push button for adding game fighting bout to click on map edit interface
When region, the second attribute information of game fighting bout can serve to indicate that the quantity for increasing game fighting bout, such as game
Battle bout quantity adds 1;When the second edit operation is to click to be used to indicate on map edit interface to delete game fighting bout
The second push button region when, the second attribute information of game fighting bout, which can serve to indicate that, reduces game fighting bout
Quantity, for example, game fighting bout quantity subtracts 1.
It should be noted that each game fighting bout can be corresponding with one when there are multiple game fighting bouts
Label can also include by clicking different game fightings to the edit operation that game fighting bout executes in the alternative embodiment
Game fighting bout handover operation performed by the corresponding label of bout is compiled with reaching quickly and easily switching game fighting bout
Purpose of the editing interface to be operated to game fighting bout executive editor.
It should also be noted that, object to be edited can be for be editedly under the scene edited to map
The event occurred on figure, such as game fighting bout, the map_editor of the alternative embodiment not only can be with edit map layer, ground
Unit in figure layer, such as card, role etc. can realize map layer, map layer with the event occurred on edit map layer
On unit and map layer on the unified of event that occurs combine so that map edit personnel can use the map edit work
A variety of different edit operations needed for tool realizes game application scene greatly improve the efficiency of map generation.
As a kind of optional embodiment, under the scene edited to map, if object to be edited is trip
Play battle bout, step S206 is according to the edit operation detected by the attribute information of object to be edited from the first attribute information tune
Whole is that the second attribute information can also include:
Step S2066 receives the third edit operation executed to game fighting bout, wherein third edit operation is used for
Indicate the NPC dialogue of configuration game fighting bout.
Step S2066 provide technical solution in, to game fighting bout execute edit operation in addition to include second
It can also include the third edit operation talked with for configuring the NPC of game fighting bout, wherein NPC outside edit operation
(Non-Player Character) dialogue can be the dialogue of non-gaming role in game fighting bout.The alternative embodiment pair
Game fighting bout execute third edit operation may include click be used to indicate on map edit interface addition NPC talk with
Third push button region, alternatively, clicking the 4th push button area for being used to indicate on map edit interface and deleting NPC dialogue
Domain, or to the operation that role involved in NPC dialogue, dialogue types, conversation content are modified.
Step S2068 adjusts the attribute information of game fighting bout from the first attribute information according to third edit operation
For the second attribute information, wherein the second attribute information is used to indicate the NPC dialogue with the game fighting bout postponed.
In the technical solution that step S2068 is provided, map_editor is receiving the executed to game fighting bout
When three edit operations, the attribute information of game fighting bout can be adjusted from the first attribute information according to the third edit operation
For the second attribute information, wherein the second attribute information of game fighting bout can serve to indicate that with the game pair postponed herein
The quantity of NPC dialogue or the NPC dialogue of war bout.For example, when three editor behaviour for role involved in NPC dialogue,
When the operation that dialogue types, conversation content are modified, the second attribute information of game fighting bout can serve to indicate that configuration
The NPC of game fighting bout afterwards talks with;When third edit operation is to click to be used to indicate NPC pairs of addition on map edit interface
When the third push button region of words, the second attribute information of game fighting bout can serve to indicate that the number for increasing NPC dialogue
Amount, for example, NPC dialogue quantity adds 1;When third edit operation is to click to be used to indicate on map edit interface to delete NPC dialogue
The 4th push button region when, the second attribute information of game fighting bout can serve to indicate that reduce NPC dialogue quantity,
For example, NPC dialogue quantity subtracts 1.
The logical NPC dialogue to game fighting bout of the alternative embodiment configures, and can effectively improve the play of game
Natural instincts and scene, so that game fighting bout is more in line with actual scene.
It should be noted that can not only be applied to using the map_editor of the map edit method of the embodiment of the present invention
In the scene edited to map, additionally it is possible to applied to the scene edited to operational commanding map, map of acting in a play
In.Below the present invention also provides a kind of preferred embodiment, the preferred embodiment is with the scene edited to map
Example.
Fig. 3 is the schematic diagram of the hardware configuration of map_editor according to an embodiment of the present invention, as shown in figure 3, the map
Editing machine uses modular frame, and the functions such as background map editor, unit editor, event edits are with modularization, plug-in type
Mode is socketed in inside map_editor, and the core of map_editor is then the data pipe for being responsible for parsing and acquisition data
Manage core.As shown in figure 3, can be realized the background map editor module of the background map editting function of map to be edited, can
It realizes the unit editor module of unit editting function on map to be edited, can be realized the event volume treated and occurred in edit map
The event edits module for collecting function passes through background map data-interface, unit data interface, event data interface and data respectively
Higher management is connected, and data management core can acquire data from each editor module by each interface.It needs to illustrate
, the data management core in map_editor therefrom reads map datum by load map file, i.e., shown in Fig. 3
Read process representated by data, wherein may include the attribute letter of multiple editable objects and editable object in map datum
Breath.It can determine that one or more is to be edited right from multiple editable objects when map_editor receives search operation
As, wherein object to be edited can be background map, unit or event.Background map is executed when map_editor detects
Edit operation when, can will be stored in background map editor according to the attribute information of edit operation background map adjusted
In module;It, can will be according to edit operation list adjusted when map_editor detects the edit operation to unit row
The attribute information of position is stored in unit editor module;It, can when map_editor detects the edit operation to event execution
Will be stored in event edits module according to the attribute information of edit operation event adjusted.When map_editor detects
Be finished to all edit operations, for example, receive click be used to indicate save edit operation it is corresponding adjusted
The touch area of the attribute information of object to be edited, data management core can be by each interfaces respectively from each editor module
The attribute information of middle acquisition object to be edited, and editor is used to indicate according to the generation of the attribute information of collected object to be edited
The map file of map afterwards, i.e., the process shown in Fig. 3 for writing data representative.
It should be noted that the map_editor of the embodiment of the present invention has very strong extension using data-interface mechanism
Property, only realize the data-interface that data management core needs, so that it may any application module is added, for example, passing through card
Data-interface increases card editor module, adds role's editor module etc. by character data interface.The map_editor can
The map file being pre-created is directly read, the map datum for being used to indicate map to be edited is therefrom obtained, can be realized raising
The effect of map formation efficiency.
By taking the application scenarios edited to map as an example, the ground of the map edit method of the embodiment of the present invention is executed
Graph editor from read map datum edited save to the end modified map process can specifically be divided into it is following several
A stage:
1.1 read and analytic map data
As shown in figure 4, reading may comprise steps of with the process of analytic map data:
Step S41, the map file being pre-created in load document system, wherein map file is XML file.
Step S42, map file sequence is turned to XML file by map_editor, and is parsed to XML file.
Step S43 checks whether file format is correct, if correctly, thening follow the steps S44;If incorrect, execute
Step S45.
Step S44 obtains map datum.
Step S45 captures mistake, and obtains the data that can be correctly parsed as map datum.
Map datum is divided into three classes data structure by step S46.
It should be noted that every configuration in XML file is integrated into map datum TDMapData.Then attribute circle
It is further thin that the map datum integrated can be divided into three branches by the proxy server TDConfigAttributeMediator in face
Data structure is turned to, background map data structure TDMapAttrData, unit data structure TDUnitData and thing are respectively as follows:
Part data structure TDConfigRoundInfo.Wherein, background map data structure TDMapAttrData storage is background
The all properties data of figure, including chapters and sections, map background ID, our initial attribute data, the contents such as enemy's initial attribute data.
What unit data knot TDUnitData was stored is the attribute data of all units on map.Event data structure
TDConfigRoundInfo storage is the attribute data of each game fighting bout, including originates card, in plot dialogue etc.
Hold.
The map_editor has the advantage that support height, and scalability is strong;It can be with the configuration side of unrestricted choice map
Formula utmostly supports scalability functional development;The customization and support of support unit and game fighting bout configure map
Higher level's data, such as unit and game fighting bout.
1.2 search objects to be edited
It should be noted that object to be edited is by taking unit as an example herein, and unit can be divided into card, hero, common single
Position three classes, for above-mentioned three class object scan for operation detailed process can with as shown in figure 5, specifically includes the following steps:
Step S51, in layout stage, map_editor receives search operation, selects search-type according to search operation.Its
In, the type of search includes card, hero and conventional unit.
Step S52, judges whether it is card, if so, thening follow the steps S53;If it is not, then executing step S54.
Step S53 searches for card table.
Step S54 judges whether it is hero, if so, thening follow the steps S55;If it is not, then executing step S56.It needs
It is noted that hero is one kind of game role.
Step S55 searches for heroic table.
Step S56 searches for conventional unit table.It should be noted that card table, heroic table and conventional unit table can be with
For tables of data included in map datum, the unit object of storage corresponding types may be respectively used for.
The object that search obtains is converted object to be edited by step S57.Wherein, the operation of edit object execution is treated
It may include step S58, object to be edited be moved to battlefield, is converted into conventional unit object;Step S59, will be wait compile
It collects object and is moved to card library, be converted into card object.
It should be noted that editorial staff can select to need in the search column in map edit interface in layout stage
Then the unit classification wanted is placed in content, such as search key, expression formula etc., map_editor meeting automatic identification is common
Unit, hero or card, and it is uniformly converted into object TDConfigCellItem object to be edited, editor can incite somebody to action
TDConfigCellItem object is dragged to battlefield or card column, is by TDConfigCellItem object reverse resolution to realize
Conventional unit object and card object.The map_editor between view and configuration by having set up one layer of unified tables of data
Show object, upper layer logic can be abstracted as to unified interface, to achieve the purpose that support scalability to the greatest extent.
The modification of 1.3 unit datas
It should be noted that for object to be edited still by taking unit as an example, unit can be divided into card, hero, common list herein
Position three classes, can be as shown in fig. 6, selection field units object for the modification process of the attribute data of above-mentioned three classes unit object
Unit attribute data editor can be carried out to it, unit data can be characterized by unit attribute data mechanism TDUnitData, can
To be divided into mark ID, grade, blood volume and the data portion with battlefield binding, can also support our unit's object modification directly
At other unit object.The proxy server TDConfigAttributeMediator of properties interface detects the attribute of unit object
When data change, the TDUnitData of storage can be changed first, then field units is notified to change.The map edit
Device can accomplish summary responses to the change of unit, while view layer and data Layer are kept completely separate, and data Layer is enabled to guarantee
Integrality and consistency.
The acquisition of 1.4 data and preservation
Map_editor acquires data can be as shown in fig. 7, when map_editor detects with the detailed process saved
When there is the edit operation for clicking save button in map edit interface, the data collector of map_editor
The various pieces request of data of needs can be broadcast to each boundary by TDConfigAttributeDataParser in a manner of event
The event transceiver in face, the proxy server TDConfigAttributeMediator for being responsive to the properties interface of the event can will be deposited
The attribute data of storage returned data collector TDConfigAttributeDataParser in a manner of event argument, wherein can
To include background map data structure, unit data structure, event data structure.Data collector
Data Integration is long text by the key of TDConfigAttributeDataParser foundation field, is then deserialized as XML
The map file of format, and be saved in file system.The map_editor, which is able to solve, generates format map parsing difficulty
Problem, for the map_editor using simplest network text format XML, parsing is simple, occupies little space.Moreover, should
There is map_editor height scalability if desired to add other using the data management mode of plug-in type for map_editor
The support of business, it is only necessary to realize data-interface.
For example, the detailed process edited using the map_editor battle chess game map in the embodiment of the present invention
It may refer to be described below:
As shown in figure 8, in the map edit interface, editorial staff can at map edit interface when map_editor initializes
Selected in the text box after the outpost ID for needing to read in filling load Load button first.Assuming that editorial staff is in text box
The outpost ID of input is 10061, and then editorial staff can click load Load button, then the XML data at corresponding outpost can quilt
Map edit interface is shown to after serializing, as shown in figure 9, editorial staff can be by 10061 pairs in interface shown in Fig. 9
The various configuration datas at the outpost answered are inserted in corresponding text box, the triangular arrowheads 001 in interface are then clicked, by the outpost
Configuration interface is packed up, and the map edit interface after packing up is as shown in Figure 10.
Assuming that the unit treated in edit map carries out edit operation, editorial staff can be in interface as shown in figure 11
Search column 002 in input the unit object required to look up, it should be noted that the map edit tool can support Chinese,
English or the keyword of number are searched.As shown in figure 11, for example editorial staff wants search card object, the keyword of search
For " fire ", the card object searched for is 003.Editorial staff can also be in interface shown in Figure 11 by the unit pair of selection
As namely 003 drag and drop to battlefield of card object on, the card object can also be clicked, jump to editor circle as shown in figure 12
Modify the attribute data of the card object in face, including battle array side belonging to modification card object, belong to " we ", card ID is 270,
Grade is 1, blood volume 30, can additionally modify attachment technical ability and accessories B uff of card object etc., can also be in the volume
Delete button is clicked in editing interface to delete the card object of selection.After to the card object configuration on battlefield,
Editorial staff can click in interface as shown in Figure 10 our card library column 004 of lower section, when card is in selected state,
It will appear label in card, for example red circle label can occur in card upper left side.It should also be noted that, editorial staff is also
The card of selection can be checked out to card library column, such as our card library column 004, the card of selection is added to me to realize
In square card library.Correspondingly, editorial staff can also delete the card of any position in the column of card library, such as
Double-clicking the card in the column of card library can be thus achieved the function of deleting card.Editorial staff can be by clicking as shown in Figure 10
It is used to indicate the delete button 005 for all deleting the card in card library, realizes all cards deleted in card library.Such as 10
Shown in lock symbol 007 can serve to indicate that playing a card for the card library sequentially can be according to the sequence of configuration when be in selected state
It successively plays a card, otherwise indicates to select immediately.It should be noted that the setting in enemy's hands library column (region 006 in such as Figure 10)
Identical in above-mentioned configuration process, details are not described herein again.
Editorial staff can also click configuration circle that game fighting symbol 008 as shown in Figure 10 enters game fighting bout
Face, as shown in figure 13.In the configuration interface, default can initialize a starting game fighting bout, and data are sky.Human editor
Member can add game fighting bout by clicking "+" symbol 009 shown in Figure 13, click "×" symbol 010 and delete game
Bout is fought, the NPC conversation content that "+" symbol 011 adds game fighting bout is clicked, it as shown in figure 14, can be in Figure 14
Configure type, role and the content of NPC dialogue.It should be noted that since game fighting rounds are not necessarily required continuously to increase
Add, therefore allows to input the bout ID for this game fighting bout edited in the text box at 009 rear of region.It is editing
Game fighting bout, bout ID can highlight, such as shown in red, be not in the game fighting bout edited
Bout ID is then shown as white.Optionally, it may be implemented to switch edited game fighting by the bout ID on single-click interface
Bout, as shown in figure 15, the game fighting bout that bout ID is " 0 " then may be implemented by click " 0 " or " 1 " is with bout ID
Switching between the game fighting bout of " 1 ".In the game fighting bout shown in figure 15 when pre-editing, card library column is clicked
In card can indicate to select the starting hands of the bout, the starting hands chosen have correspondingly radio check mark, such as side
Frame overstriking or surrounding have the prompt of green special efficacy, then click and once can then cancel selection.
After all edit operations, it can click with reinflated outpost configuration interface as shown in Figure 9 and save Save
Button, will be in the corresponding XML file of the corresponding attribute data write-in file system of this edit operation.
It should be noted that in function achieved by the above-mentioned map_editor only listed in the embodiment of the present invention
Partial function, other function is no longer illustrated one by one herein.
It is had the advantage that using the map_editor that map edit method of the embodiment of the present invention designs
1, the scalability of height, the angle either designed, the sophisticated functions currently supported or later period are for each industry
Be engaged in line customizing functions for, which has all accomplished maximum support, this be also this map_editor most
Big advantage innovative point.
2, it generates file and is easy parsing, space is small, and transmission quantity is small, in practical applications can be very easily in server end
It is verified.
3, clearly four layer architecture, by view, data, operation is completely discrete, and the respective independent work of modules only passes through
Data swap, strong business support degree.
4, map_editor application scenarios are flexible, can be independently of Unity, can also be small in size (small when plug-in unit of playing games
In 1M).
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, it additionally provides a kind of for implementing the map edit device of above-mentioned map edit method.
Figure 16 is a kind of schematic diagram of optional map editing device according to an embodiment of the present invention, and as shown in figure 16, which can be with
Include:
Loading unit 22 obtains map datum for loading the first map file, wherein the first map file is for referring to
Show that map to be edited, map datum include the attribute information of the multiple editable objects and editable object in map to be edited;
Receiving unit 24, for receiving search operation, wherein search operation includes search key, and search operation is used to indicate from more
Object to be edited is searched in a editable object, the title of object to be edited is matched with search key;Adjustment unit 26, is used for
The attribute information of object to be edited is adjusted to the second attribute information from the first attribute information according to the edit operation detected;With
And generation unit 28, for generating the second map file according to the second attribute information, wherein the second map file is used to indicate volume
Map to be edited after volume.
It should be noted that the loading unit 22 in the embodiment can be used for executing the step in the embodiment of the present application 1
S202, the receiving unit 24 in the embodiment can be used for executing the step S204 in the embodiment of the present application 1, in the embodiment
Adjustment unit 26 can be used for executing the step S206 in the embodiment of the present application 1, and the generation unit 28 in the embodiment can be used
Step S208 in execution the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, Figure 17 is another optional map editing device according to an embodiment of the present invention
Schematic diagram, as shown in figure 17, loading unit 22 may include: the first conversion module 222, for by the first map file carry out
Serializing processing;Parsing module 224 obtains map datum for parsing to the first map file after serializing;And
Categorization module 226 is classified for diagram data over the ground, obtains multiple data structures, wherein multiple data structures include first
Class data structure, secondary sources structure and third class data structure, wherein primary sources structure is to be edited for storing
The background map information of map, secondary sources structure are used to store the unit information on map to be edited, third class data knot
Structure is for storing the event information occurred on map to be edited.
It should be noted that the first conversion module 222 in the embodiment can be used for executing in the embodiment of the present application 1
Step S2022, the parsing module 224 in the embodiment can be used for executing the step S2024 in the embodiment of the present application 1, the reality
Applying the categorization module 226 in example can be used for executing step S2026 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, Figure 18 is another optional map editing device according to an embodiment of the present invention
Schematic diagram, as shown in figure 18, editable object includes background map, unit, event, wherein the alternative embodiment can be with
It include: the first storage unit 272, for when object to be edited is background map, will be to according to the edit operation that detects
After the attribute information of edit object is adjusted to the second attribute information from the first attribute information, the second attribute of background map is believed
Breath is stored in primary sources structure;Second storage unit 274 is used for when object to be edited is unit, according to detection
To edit operation the attribute information of object to be edited is adjusted to the second attribute information from the first attribute information after, by unit
The second attribute information be stored in secondary sources structure;Third storage unit 276, for being event when object to be edited
When, the attribute information of object to be edited is being adjusted to from the first attribute information by the second attribute letter according to the edit operation detected
After breath, the second attribute information of event is stored in third class data structure.
It should be noted that the first storage unit 272 in the embodiment can be used for executing in the embodiment of the present application 1
Step S2072, the second storage unit 274 in the embodiment can be used for executing the step S2074 in the embodiment of the present application 1,
Third storage unit 276 in the embodiment can be used for executing the step S2076 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, Figure 19 is another optional map editing device according to an embodiment of the present invention
Schematic diagram, as shown in figure 19, generation unit 28 may include: to integrate module 282, for will store in primary sources structure
The second attribute information of background map, the unit stored in secondary sources structure the second attribute information and third class number
Long text is integrated into according to the second attribute information of the event stored in structure;Second conversion module 284, for converting long text
For the second map file of XML format.
It should be noted that the module 282 of integrating in the embodiment can be used for executing step in the embodiment of the present application 1
S2082, the second conversion module 284 in the embodiment can be used for executing the step S2084 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, Figure 20 is another optional map editing device according to an embodiment of the present invention
Schematic diagram, as shown in figure 20, integrating module 282 may include: the first receiving submodule 2822, for receiving triggering command,
Wherein, triggering command is used to indicate obtains the second attribute information of background map, from he second-class number from primary sources structure
The second attribute information of event is obtained according to the second attribute information for obtaining unit in structure and from third class data structure;Extensively
Submodule 2824 is broadcast, for respectively to the first interface where primary sources structure, second where secondary sources structure
Third interface broadcast data request event where interface and third class data structure, wherein request of data event is for asking
Ask the second attribute information of the background map stored in primary sources structure, the unit stored in secondary sources structure
Second attribute information of the event stored in two attribute informations and third class data structure;Second receiving submodule 2826 is used
The background stored in the primary sources structure that the panel proxy server response data request event for receiving the first interface returns
It is deposited in the secondary sources structure that second attribute information of figure, the panel proxy server response data request event of second contact surface return
The third class number that second attribute information of the unit of storage and the panel proxy server response data request event at third interface return
According to the second attribute information of the event stored in structure;Submodule 2828 is integrated, for by the second of the background map received
Second attribute information of attribute information, the second attribute information of unit and event is integrated into long text.
It should be noted that the first receiving submodule 2822 in the embodiment can be used for executing the embodiment of the present application 1
In step S20822, the broadcast submodule 2824 in the embodiment can be used for executing the step in the embodiment of the present application 1
S20824, the second receiving submodule 2826 in the embodiment, can be used for executing the step in the embodiment of the present application 1
S20826, the submodule 2828 of integrating in the embodiment can be used for executing step S20828 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, object to be edited is unit, and unit may include at least one of: card,
Role, stage property etc..Figure 21 is the schematic diagram of another optional map editing device according to an embodiment of the present invention, such as Figure 21 institute
Show, which can also include: converting unit 252, for according to the edit operation that detects by the object to be edited
Attribute information be adjusted to the second attribute information from the first attribute information before, by the Conversion of measurement unit at editable object,
In, the edit operation is the operation executed to the editable object, and the unit is being converted into the editable object
There is the first format before;Detection unit 254, for detecting the edit operation executed to the editable object, wherein
When executing the edit operation to the editable object or to the editable object execute the edit operation it
Afterwards, the unit is converted into the unit with the second format.
It should be noted that the converting unit 252 in the embodiment can be used for executing the step in the embodiment of the present application 1
S2052, the detection unit 254 in the embodiment can be used for executing the step S2054 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, Figure 22 is another optional map editing device according to an embodiment of the present invention
Schematic diagram, as shown in figure 22, object to be edited be card, adjustment unit 26 may include: the first receiving module 261, be used for
Receive the first edit operation executed to card, wherein the first edit operation, which is used to indicate, is moved to card from first position
The second position;The first adjustment module 263, for according to the first edit operation by the attribute information of card from the first attribute information tune
Whole is the second attribute information, wherein the second attribute information is used to indicate card and is located in card library, alternatively, card is not located at card
In board library, alternatively, position of the card in card library, alternatively, card is located in first area, wherein first area is set
It is removable for card.
It should be noted that the first receiving module 261 in the embodiment can be used for executing in the embodiment of the present application 1
Step S2061, the first adjustment module 263 in the embodiment can be used for executing the step S2063 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, Figure 23 is another optional map editing device according to an embodiment of the present invention
Schematic diagram, as shown in figure 23, object to be edited be game fighting bout, adjustment unit 26 may include: the second receiving module
262, for receive to game fighting bout execute the second edit operation, wherein the second edit operation be used to indicate increase or
The quantity of person's reduction game fighting bout;Second adjustment module 264, for according to the second edit operation by game fighting bout
Attribute information is adjusted to the second attribute information from the first attribute information, wherein the second attribute information is used to indicate game fighting and returns
The quantity of conjunction.
It should be noted that the second receiving module 262 in the embodiment can be used for executing in the embodiment of the present application 1
Step S2062, the second adjustment module 264 in the embodiment can be used for executing the step S2064 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization.
As a kind of optional embodiment, Figure 24 is another optional map editing device according to an embodiment of the present invention
Schematic diagram, as shown in figure 24, object to be edited can be game fighting bout, adjustment unit 26 can also include: that third connects
Module 266 is received, for receiving the third edit operation executed to game fighting bout, wherein third edit operation is used to indicate
Configure the NPC dialogue of game fighting bout;Third adjusts module 268, for according to third edit operation by game fighting bout
Attribute information be adjusted to the second attribute information from the first attribute information, wherein second attribute information is used to indicate with postponing
The NPC of game fighting bout talks with.
It should be noted that the third receiving module 266 in the embodiment can be used for executing in the embodiment of the present application 1
Step S2066, the third adjustment module 268 in the embodiment can be used for executing the step S2068 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical as example and application scenarios that corresponding step is realized, but not
It is limited to 1 disclosure of that of above-described embodiment.It should be noted that above-mentioned module as a part of device may operate in as
In hardware environment shown in FIG. 1, hardware realization can also be passed through by software realization, wherein hardware environment includes network
Environment.
By above-mentioned module, the map_editor that can solve in the related technology is needed in editing interface manual creation
The technical problem that object in figure layer and map layer causes map formation efficiency lower, and then reach and improve map formation efficiency
Technical effect.
Embodiment 3
According to embodiments of the present invention, it additionally provides a kind of for implementing the server or terminal of above-mentioned map edit method.
Figure 25 is a kind of structural block diagram of terminal according to an embodiment of the present invention, and as shown in figure 25, which may include:
One or more (one is only shown in figure) processors 201, memory 203 and transmitting device 205 are (in such as above-described embodiment
Sending device), as shown in figure 25, which can also include input-output equipment 207.
Wherein, memory 203 can be used for storing software program and module, such as the map edit side in the embodiment of the present invention
Method and the corresponding program instruction/module of device, processor 201 by the software program that is stored in memory 203 of operation and
Module realizes above-mentioned map edit method thereby executing various function application and data processing.Memory 203 can wrap
Include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage device, flash memory or
Other non-volatile solid state memories of person.In some instances, memory 203 can further comprise remote relative to processor 201
The memory of journey setting, these remote memories can pass through network connection to terminal.The example of above-mentioned network includes but unlimited
In internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 205 is used to that data to be received or sent via network, can be also used for processor with
Data transmission between memory.Above-mentioned network specific example may include cable network and wireless network.In an example,
Transmitting device 205 includes a network adapter (Network Interface Controller, NIC), can pass through cable
It is connected with other network equipments with router so as to be communicated with internet or local area network.In an example, transmission dress
205 are set as radio frequency (Radio Frequency, RF) module, is used to wirelessly be communicated with internet.
Wherein, specifically, memory 203 is for storing application program.
The application program that processor 201 can call memory 203 to store by transmitting device 205, to execute following steps
Rapid: the first map file of load obtains map datum, wherein the first map file is used to indicate map to be edited, map datum
Attribute information including multiple editable objects and editable object in map to be edited;Receive search operation, wherein search
Operation includes search key, and search operation, which is used to indicate, searches for object to be edited from multiple editable objects, to be edited right
The title of elephant is matched with search key;According to the edit operation detected by the attribute information of object to be edited from the first attribute
Information is adjusted to the second attribute information;And the second map file is generated according to the second attribute information, wherein the second map file
It is used to indicate edited map to be edited.
Processor 201 is also used to execute following step: the first map file is carried out serializing processing;After serializing
First map file is parsed, and map datum is obtained;And diagram data is classified over the ground, obtains multiple data structures,
In, multiple data structures include primary sources structure, secondary sources structure and third class data structure, wherein first
Class data structure is used to store the background map information of map to be edited, and secondary sources structure is for storing map to be edited
Unit information, third class data structure is for storing the event information occurred on map to be edited.
Processor 201 is also used to execute following step: editable object includes background map, unit, event, in which: when
When object to be edited is background map, according to the edit operation that detects by the attribute information of object to be edited from the first attribute
Information is adjusted to after the second attribute information, and the second attribute information of background map is stored in primary sources structure;When
When object to be edited is unit, according to the edit operation that detects by the attribute information of object to be edited from the first attribute information
It is adjusted to after the second attribute information, the second attribute information of unit is stored in secondary sources structure;When to be edited right
When as event, the attribute information of object to be edited is being adjusted to the from the first attribute information according to the edit operation detected
After two attribute informations, the second attribute information of event is stored in third class data structure.
Processor 201 is also used to execute following step: the second of the background map stored in primary sources structure is belonged to
The event stored in the second attribute information and third class data structure of the unit stored in property information, secondary sources structure
The second attribute information be integrated into long text;Convert long text to the second map file of XML format.
Processor 201 is also used to execute following step: receiving triggering command, wherein triggering command is used to indicate from first
In class data structure obtain background map the second attribute information, from secondary sources structure obtain unit the second attribute letter
Breath and the second attribute information that event is obtained from third class data structure;Respectively to first where primary sources structure
Third interface broadcast data request where second contact surface and third class data structure where interface, secondary sources structure
Event, wherein the second attribute information of the background map that request of data event is used to request to store in primary sources structure, the
The second of the event stored in the second attribute information and third class data structure of the unit stored in two class data structures belongs to
Property information;Receive the back stored in the primary sources structure of the panel proxy server response data request event return at the first interface
The secondary sources structure that second attribute information of scape map, the panel proxy server response data request event of second contact surface return
The third that second attribute information of the unit of middle storage and the panel proxy server response data request event at third interface return
Second attribute information of the event stored in class data structure;By the second attribute information of the background map received, unit
Second attribute information and the second attribute information of event are integrated into long text.
Processor 201 is also used to execute following step: according to the edit operation that detects by the attribute of object to be edited
Before information is adjusted to the second attribute information from the first attribute information, by Conversion of measurement unit at editable object, wherein edit operation
For the operation executed to editable object, unit has the first format before being converted into editable object;Detection is to can compile
Collect the edit operation that object executes, wherein execute when operating to editable object executive editor or to editable object
After edit operation, unit is converted into the unit with the second format.
Processor 201 is also used to execute following step: object to be edited is card, receives the first editor executed to card
Operation, wherein the first edit operation, which is used to indicate, is moved to the second position from first position for card;According to the first edit operation
The attribute information of card is adjusted to the second attribute information from the first attribute information, wherein the second attribute information is used to indicate card
Memorial tablet is in card library, alternatively, card is not located in card library, alternatively, position of the card in card library, alternatively, card position
In in first area, wherein it is removable that first area is arranged to card.
Processor 201 is also used to execute following step: object to be edited is game fighting bout, receives and returns to game fighting
Close the second edit operation executed, wherein the second edit operation is used to indicate increase or reduces the quantity of game fighting bout;
The attribute information of game fighting bout is adjusted to the second attribute information from the first attribute information according to the second edit operation,
In, the second attribute information is used to indicate the quantity of game fighting bout.
Processor 201 is also used to execute following step: object to be edited is game fighting bout, receives and returns to game fighting
Close the third edit operation executed, wherein third edit operation is used to indicate the NPC dialogue of configuration game fighting bout;According to
The attribute information of game fighting bout is adjusted to the second attribute information from the first attribute information by third edit operation, wherein the
Two attribute informations are used to indicate the NPC dialogue with the game fighting bout postponed.
Using the embodiment of the present invention, a kind of scheme of map edit is provided.By loading map datum, and according to reception
To search operation determine object to be edited, then according to treat edit object execution edit operation adjust its attribute information,
The map file for being used to indicate edited map is finally generated according to attribute information adjusted, has reached quick editor and life
At the purpose of map, so solve map_editor in the related technology need in editing interface manual creation map layer and
The technical problem that object on map layer causes map formation efficiency lower has reached the technology effect for improving map formation efficiency
Fruit.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
It will appreciated by the skilled person that structure shown in Figure 25 is only to illustrate, terminal can be smart phone
(such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device (Mobile Internet
Devices, MID), the terminal devices such as PAD.Figure 25 it does not cause to limit to the structure of above-mentioned electronic device.For example, terminal is also
May include than shown in Figure 25 more perhaps less component (such as network interface, display device) or have and Figure 25 institute
Show different configurations.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing the relevant hardware of terminal device by program, which can store in a computer readable storage medium
In, storage medium may include: flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random
Access Memory, RAM), disk or CD etc..
Embodiment 4
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can
With the program code for executing map edit method.
Optionally, in the present embodiment, above-mentioned storage medium can be located at multiple in network shown in above-described embodiment
On at least one network equipment in the network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
S1 loads the first map file, obtains map datum, wherein and the first map file is used to indicate map to be edited,
Map datum includes the attribute information of the multiple editable objects and editable object in map to be edited;
S2 receives search operation, wherein search operation includes search key, search operation be used to indicate from it is multiple can
Object to be edited is searched in edit object, the title of object to be edited is matched with search key;
The attribute information of object to be edited is adjusted to second from the first attribute information according to the edit operation detected by S3
Attribute information;
S4 generates the second map file according to the second attribute information, wherein the second map file is used to indicate edited
Map to be edited.
Optionally, storage medium is also configured to store the program code for executing following steps: the picture and text by the first
Part carries out serializing processing;The first map file after serializing is parsed, map datum is obtained;And diagram data over the ground
Classify, obtain multiple data structures, wherein multiple data structures include primary sources structure, secondary sources structure
And third class data structure, wherein primary sources structure is used to store the background map information of map to be edited, the second class
Data structure is used to store the unit information on map to be edited, and third class data structure occurs on map to be edited for storing
Event information.
Optionally, storage medium is also configured to store the program code for executing following steps: editable object packet
Include background map, unit, event, in which: when object to be edited is background map, will be to according to the edit operation that detects
After the attribute information of edit object is adjusted to the second attribute information from the first attribute information, the second attribute of background map is believed
Breath is stored in primary sources structure;When object to be edited is unit, will be to be edited according to the edit operation that detects
After the attribute information of object is adjusted to the second attribute information from the first attribute information, the second attribute information of unit is stored in
In secondary sources structure;When object to be edited is event, according to the edit operation that detects by the category of object to be edited
After property information is adjusted to the second attribute information from the first attribute information, the second attribute information of event is stored in third class number
According in structure.
Optionally, storage medium is also configured to store the program code for executing following steps: by primary sources
Second attribute information of the unit stored in the second attribute information of the background map stored in structure, secondary sources structure with
And the second attribute information of the event stored in third class data structure is integrated into long text;XML format is converted by long text
The second map file.
Optionally, storage medium is also configured to store the program code for executing following steps: triggering command is received,
Wherein, triggering command is used to indicate obtains the second attribute information of background map, from he second-class number from primary sources structure
The second attribute information of event is obtained according to the second attribute information for obtaining unit in structure and from third class data structure;Point
Not to the first interface where primary sources structure, the second contact surface where secondary sources structure and third class data knot
Third interface broadcast data request event where structure, wherein request of data event is for requesting to deposit in primary sources structure
The second attribute information and third class of the unit stored in second attribute information of the background map of storage, secondary sources structure
Second attribute information of the event stored in data structure;The panel proxy server response data request event for receiving the first interface returns
The panel proxy server response data of the second attribute information of background map, second contact surface that are stored in the primary sources structure returned
Second attribute information of the unit stored in the secondary sources structure that request event returns and the panel agency at third interface
Second attribute information of the event stored in the third class data structure that device response data request event returns;The back that will be received
Second attribute information of the second attribute information of scape map, the second attribute information of unit and event is integrated into long text.
Optionally, storage medium is also configured to store the program code for executing following steps: detecting in basis
Edit operation the attribute information of object to be edited is adjusted to the second attribute information from the first attribute information before, by unit turn
Change editable object into, wherein edit operation is the operation executed to editable object, and unit is being converted into editable object
There is the first format before;Detect the edit operation executed to editable object, wherein grasp to editable object executive editor
When making or after to editable object executive editor operation, unit is converted into the unit with the second format.
Optionally, storage medium is also configured to store the program code for executing following steps: object to be edited is
Card receives the first edit operation executed to card, wherein the first edit operation, which is used to indicate, moves card from first position
It moves to the second position;The attribute information of card is adjusted to the second attribute letter from the first attribute information according to the first edit operation
Breath, wherein the second attribute information is used to indicate card and is located in card library, alternatively, card is not located in card library, alternatively, card
Position of the board in card library, alternatively, card is located in first area, wherein it is removable that first area is arranged to card.
Optionally, storage medium is also configured to store the program code for executing following steps: object to be edited is
Game fighting bout receives the second edit operation executed to game fighting bout, wherein the second edit operation is used to indicate increasing
Add or reduce the quantity of game fighting bout;The attribute information of game fighting bout is belonged to from first according to the second edit operation
Property information is adjusted to the second attribute information, wherein the second attribute information is used to indicate the quantity of game fighting bout.
Optionally, storage medium is also configured to store the program code for executing following steps: object to be edited is
Game fighting bout receives the third edit operation executed to game fighting bout, wherein third edit operation, which is used to indicate, matches
Set the NPC dialogue of game fighting bout;The attribute information of game fighting bout is believed from the first attribute according to third edit operation
Breath is adjusted to the second attribute information, wherein the second attribute information is used to indicate the NPC dialogue with the game fighting bout postponed.
Optionally, the specific example in the present embodiment can be shown with reference to described in above-described embodiment 1 and embodiment 2
Example, details are not described herein for the present embodiment.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or
The various media that can store program code such as CD.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (16)
1. a kind of map edit method characterized by comprising
The first map file is loaded, map datum is obtained, wherein first map file is used to indicate map to be edited, institute
State the attribute information that map datum includes the multiple editable objects and the editable object in the map to be edited;
Receive search operation, wherein described search operation includes search key, and described search operation is used to indicate from described more
Object to be edited, the title and described search Keywords matching of the object to be edited are searched in a editable object;
The attribute information of the object to be edited is adjusted to the second category from the first attribute information according to the edit operation detected
Property information;And
The second map file is generated according to second attribute information, wherein after second map file is used to indicate editor
The map to be edited;
Wherein, the first map file is loaded, obtaining map datum includes: that first map file is carried out serializing processing;
First map file after serializing is parsed, the map datum is obtained;And the map datum is carried out
Classification, obtains multiple data structures, wherein the multiple data structure includes primary sources structure, secondary sources structure
And third class data structure, wherein the primary sources structure is used to store the background map letter of the map to be edited
Breath, the secondary sources structure are used to store the unit information on the map to be edited, and the third class data structure is used
In the event information occurred on the storage map to be edited.
2. the method according to claim 1, wherein the object to be edited includes background map, unit, thing
Part, in which:
When the object to be edited is the background map, according to the edit operation that detects by the object to be edited
After attribute information is adjusted to the second attribute information from the first attribute information, the method also includes: by the background map
Second attribute information is stored in the primary sources structure;
When the object to be edited is the unit, according to the edit operation that detects by the attribute of the object to be edited
After information is adjusted to the second attribute information from the first attribute information, the method also includes: by the second attribute of the unit
Information is stored in the secondary sources structure;
When the object to be edited is the event, according to the edit operation that detects by the attribute of the object to be edited
After information is adjusted to the second attribute information from the first attribute information, the method also includes: by the second attribute of the event
Information is stored in the third class data structure.
3. according to the method described in claim 2, it is characterized in that, generating the second map file according to second attribute information
Include:
By the second attribute information of the background map stored in the primary sources structure, the secondary sources structure
The second of the event stored in second attribute information of the unit of middle storage and the third class data structure belongs to
Property information is integrated into long text;
Convert the long text to second map file of XML format.
4. according to the method described in claim 3, it is characterized in that, the background that will be stored in the primary sources structure
Second attribute information of the unit stored in the second attribute information of map, the secondary sources structure and described
Second attribute information of the event stored in three classes data structure is integrated into long text and includes:
Receive triggering command, wherein the triggering command, which is used to indicate, obtains the background from the primary sources structure
Second attribute information of map, the second attribute information that the unit is obtained from the secondary sources structure and from described
The second attribute information of the event is obtained in third class data structure;
Respectively to the first interface where the primary sources structure, the second contact surface where the secondary sources structure with
And the third interface broadcast data request event where the third class data structure, wherein the request of data event is used for
Request the second attribute information of the background map stored in the primary sources structure, in the secondary sources structure
Second attribute of the event stored in the second attribute information of the unit of storage and the third class data structure
Information;
The panel proxy server for receiving first interface responds the primary sources structure that the request of data event returns
Second attribute information of the background map of middle storage, the panel proxy server of the second contact surface respond the request of data thing
Second attribute information of the unit stored in the secondary sources structure that part returns and the face at the third interface
Plate proxy server responds the second category of the event stored in the third class data structure that the request of data event returns
Property information;
By the second attribute information of the background map received, the second attribute information of the unit and the event
Second attribute information is integrated into long text.
5. the method according to claim 1, wherein the object to be edited be unit, the unit include with
It is at least one lower: card, role, stage property, wherein to be believed the attribute of the object to be edited according to the edit operation detected
Before breath is adjusted to the second attribute information from the first attribute information, the method also includes:
By the Conversion of measurement unit at editable object, wherein the edit operation is the operation executed to the editable object,
The unit has the first format before being converted into the editable object;
Detect the edit operation executed to the editable object, wherein the volume is being executed to the editable object
It collects when operating or after executing the edit operation to the editable object, the unit is converted into the second lattice
The unit of formula.
6. the method according to claim 1, wherein the object to be edited is card, according to the volume detected
The attribute information of the object to be edited is adjusted to the second attribute information from the first attribute information and includes: by volume operation
Receive the first edit operation executed to the card, wherein first edit operation is used to indicate the card
The second position is moved to from first position;
The attribute information of the card is adjusted to described second from first attribute information according to first edit operation
Attribute information, wherein second attribute information is used to indicate the card and is located in card library, alternatively, the card not position
In the card library, alternatively, position of the card in the card library, alternatively, the card is located in first area,
Wherein, it is removable to be arranged to the card for the first area.
7. the method according to claim 1, wherein the object to be edited is game fighting bout, according to inspection
The attribute information of the object to be edited is adjusted to the second attribute information from the first attribute information by the edit operation measured
Receive the second edit operation executed to the game fighting bout, wherein second edit operation is used to indicate increasing
Add or reduce the quantity of the game fighting bout;
The attribute information of the game fighting bout is adjusted to from first attribute information according to second edit operation
Second attribute information, wherein second attribute information is used to indicate the quantity of the game fighting bout.
8. the method according to the description of claim 7 is characterized in that according to the edit operation detected by the object to be edited
Attribute information be adjusted to the second attribute information from the first attribute information further include:
Receive the third edit operation executed to the game fighting bout, wherein the third edit operation, which is used to indicate, matches
Set the NPC dialogue of the game fighting bout;
The attribute information of the game fighting bout is adjusted to from first attribute information according to the third edit operation
Second attribute information, wherein second attribute information is used to indicate NPC pairs with the game fighting bout postponed
Words.
9. a kind of map edit device characterized by comprising
Loading unit obtains map datum, wherein first map file is used to indicate for loading the first map file
Map to be edited, the map datum include multiple editable objects and the editable object in the map to be edited
Attribute information;
Receiving unit, for receiving search operation, wherein described search operation includes search key, and described search operation is used
Object to be edited is searched for from the multiple editable object in instruction, the title and described search of the object to be edited are crucial
Word matching;
Adjustment unit, for according to the edit operation that detects by the attribute information of the object to be edited from the first attribute information
It is adjusted to the second attribute information;And
Generation unit, for generating the second map file according to second attribute information, wherein second map file is used
In the edited map to be edited of instruction;
Wherein, the loading unit includes: the first conversion module, for first map file to be carried out serializing processing;
Parsing module obtains the map datum for parsing to first map file after serializing;And classification mould
Block obtains multiple data structures for classifying to the map datum, wherein the multiple data structure includes first
Class data structure, secondary sources structure and third class data structure, wherein the primary sources structure is for storing institute
The background map information of map to be edited is stated, the secondary sources structure is used to store the unit letter on the map to be edited
Breath, the third class data structure is for storing the event information occurred on the map to be edited.
10. device according to claim 9, which is characterized in that the object to be edited includes background map, unit, thing
Part, wherein described device further include:
First storage unit is used for when the object to be edited is the background map, according to the edit operation detected
After the attribute information of the object to be edited is adjusted to the second attribute information from the first attribute information, by the background map
The second attribute information be stored in the primary sources structure;
Second storage unit, for when the object to be edited is the unit, according to the edit operation that detects by institute
It states after the attribute information of object to be edited is adjusted to the second attribute information from the first attribute information, the second of the unit is belonged to
Property information is stored in the secondary sources structure;
Third storage unit, for when the object to be edited is the event, according to the edit operation that detects by institute
It states after the attribute information of object to be edited is adjusted to the second attribute information from the first attribute information, the second of the event is belonged to
Property information is stored in the third class data structure.
11. device according to claim 10, which is characterized in that the generation unit includes:
Module is integrated, it is the second attribute information of the background map for will be stored in the primary sources structure, described
The institute stored in second attribute information of the unit stored in secondary sources structure and the third class data structure
The second attribute information for stating event is integrated into long text;
Second conversion module, for converting the long text to second map file of XML format.
12. device according to claim 11, which is characterized in that the module of integrating includes:
First receiving submodule, for receiving triggering command, wherein the triggering command is used to indicate from the primary sources
The second attribute information of the background map is obtained in structure, obtains the second of the unit from the secondary sources structure
Attribute information and the second attribute information that the event is obtained from the third class data structure;
Submodule is broadcasted, for respectively to the first interface where the primary sources structure, the secondary sources structure
Third interface broadcast data request event where the second contact surface at place and the third class data structure, wherein described
It is second attribute information of the background map that request of data event is used to request to store in the primary sources structure, described
The institute stored in second attribute information of the unit stored in secondary sources structure and the third class data structure
State the second attribute information of event;
Second receiving submodule, the panel proxy server for receiving first interface respond what the request of data event returned
The panel proxy server of second attribute information of the background map stored in the primary sources structure, the second contact surface
Respond the second attribute information of the unit stored in the secondary sources structure that the request of data event returns with
And the panel proxy server at the third interface is responded and is stored in the third class data structure that the request of data event returns
The event the second attribute information;
Submodule is integrated, for believing the second attribute of the second attribute information of the background map received, the unit
Breath and the second attribute information of the event are integrated into long text.
13. device according to claim 9, which is characterized in that the object to be edited be unit, the unit include with
It is at least one lower: card, role, stage property, wherein described device further include:
Converting unit, for believing the attribute information of the object to be edited from the first attribute according to the edit operation detected
Breath is adjusted to before the second attribute information, by the Conversion of measurement unit at editable object, wherein the edit operation is to described
The operation that editable object executes, the unit have the first format before being converted into the editable object;
Detection unit, for detecting the edit operation executed to the editable object, wherein to the editable pair
When as executing the edit operation or after executing the edit operation to the editable object, the unit is converted
For the unit with the second format.
14. device according to claim 9, which is characterized in that the object to be edited is card, the adjustment unit packet
It includes:
First receiving module, for receiving the first edit operation executed to the card, wherein first edit operation is used
The card is moved to the second position from first position in instruction;
The first adjustment module, for being believed the attribute information of the card from first attribute according to first edit operation
Breath is adjusted to second attribute information, wherein and second attribute information is used to indicate the card and is located in card library, or
Person, the card are not located in the card library, alternatively, position of the card in the card library, alternatively, the card
In first area, wherein it is removable that the first area is arranged to the card.
15. device according to claim 9, which is characterized in that the object to be edited is game fighting bout, the tune
Whole unit includes:
Second receiving module, for receiving the second edit operation executed to the game fighting bout, wherein described second compiles
Operation is collected to be used to indicate increase or reduce the quantity of the game fighting bout;
Second adjustment module, for according to second edit operation by the attribute information of the game fighting bout from described
One attribute information is adjusted to second attribute information, wherein second attribute information is used to indicate the game fighting and returns
The quantity of conjunction.
16. device according to claim 15, which is characterized in that the adjustment unit further include:
Third receiving module, for receiving the third edit operation executed to the game fighting bout, wherein the third is compiled
It collects operation and is used to indicate the NPC dialogue for configuring the game fighting bout;
Third adjusts module, for according to the third edit operation by the attribute information of the game fighting bout from described the
One attribute information is adjusted to second attribute information, wherein second attribute information is used to indicate with the trip postponed
The NPC dialogue of play battle bout.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610466983.7A CN107544972B (en) | 2016-06-23 | 2016-06-23 | Map edit method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610466983.7A CN107544972B (en) | 2016-06-23 | 2016-06-23 | Map edit method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107544972A CN107544972A (en) | 2018-01-05 |
CN107544972B true CN107544972B (en) | 2019-09-13 |
Family
ID=60960280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610466983.7A Active CN107544972B (en) | 2016-06-23 | 2016-06-23 | Map edit method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107544972B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110309239B (en) * | 2018-03-13 | 2022-04-12 | 北京京东尚科信息技术有限公司 | Visual map editing method and device |
CN108786112B (en) * | 2018-04-26 | 2024-03-12 | 腾讯科技(上海)有限公司 | Application scene configuration method, device and storage medium |
US20210297839A1 (en) * | 2018-08-10 | 2021-09-23 | Sony Semiconductor Solutions Corporation | Information processing device, terminal device, information processing method, and information processing program |
CN109821242B (en) * | 2019-01-16 | 2022-04-01 | 福建省天奕网络科技有限公司 | Map visual editing method and system |
CN110075520B (en) * | 2019-04-24 | 2020-05-01 | 苏州亿歌网络科技有限公司 | Method, system and device for quickly searching resources in game map |
CN110992813B (en) * | 2019-12-25 | 2021-07-09 | 江苏徐工工程机械研究院有限公司 | Map creation method and system for unmanned surface mine system |
CN111340914A (en) * | 2020-02-24 | 2020-06-26 | 北京小马智行科技有限公司 | Map generation method and device, storage medium and vehicle |
CN116304164B (en) * | 2023-05-17 | 2023-11-10 | 成都数联云算科技有限公司 | Map editing method, system, equipment and medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1584835A (en) * | 2003-08-22 | 2005-02-23 | 英业达股份有限公司 | Programm content editing system |
EP2438544A2 (en) * | 2009-06-01 | 2012-04-11 | Google, Inc. | Searching methods and devices |
US20160005256A1 (en) * | 2014-07-04 | 2016-01-07 | Trendy Entertainment | Influence system and methods |
CN104898953B (en) * | 2015-06-16 | 2016-10-26 | 深圳市腾讯计算机系统有限公司 | Control method based on touch screen and device |
CN105260100B (en) * | 2015-09-29 | 2017-05-17 | 腾讯科技(深圳)有限公司 | Information processing method and terminal |
CN105511873B (en) * | 2015-12-02 | 2020-05-12 | 网易(杭州)网络有限公司 | User interface control display method and device |
-
2016
- 2016-06-23 CN CN201610466983.7A patent/CN107544972B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107544972A (en) | 2018-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107544972B (en) | Map edit method and apparatus | |
CN109985382A (en) | Script execution, device, equipment and the storage medium of plot node | |
US20040009813A1 (en) | Dynamic interaction and feedback system | |
CN105531699B (en) | For organizing the automated system of presentation slides | |
CN110876850A (en) | Method and device for editing hand game | |
CN104123383B (en) | A kind of method and device used in media application | |
CN110263187A (en) | Draw this recognition methods, device, storage medium and computer equipment | |
CN107071554B (en) | Method for recognizing semantics and device | |
CN109478193A (en) | The immersion live streaming that cooperates acts 360 degree of videos and virtual reality | |
CN107040452A (en) | A kind of information processing method, device and computer-readable recording medium | |
CN111541914A (en) | Video processing method and storage medium | |
CN109876440A (en) | Object methods of exhibiting and device, storage medium and electronic device | |
CN108139895A (en) | Font font preview | |
CN109886775A (en) | House advantage and disadvantage appraisal procedure, device, equipment and computer readable storage medium | |
CN109918641A (en) | Article theme ingredient breakdown method, apparatus, equipment and storage medium | |
CN113069769A (en) | Cloud game interface display method and device, electronic equipment and storage medium | |
US20170329803A1 (en) | Method and device for image loading | |
CN105528334B (en) | A kind of method and terminal of document function processing | |
CN108133209A (en) | Target area searching method and its device in a kind of text identification | |
CN107609065B (en) | A kind of game classification method, apparatus and electronic equipment | |
KR102202372B1 (en) | System for creating interactive media in which user interaction can be recognized by reusing video content, and method of operating the system | |
Lee et al. | Exploiting mobile contexts for Petri-net to generate a story in cartoons | |
CN117319441A (en) | Remote interaction method and system of meta universe | |
CN109313662A (en) | To the destructing and presentation to webpage in the machine application experience | |
CN114491152B (en) | Method for generating abstract video, storage medium and electronic device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |