CN107544972A - Map edit method and apparatus - Google Patents

Map edit method and apparatus Download PDF

Info

Publication number
CN107544972A
CN107544972A CN201610466983.7A CN201610466983A CN107544972A CN 107544972 A CN107544972 A CN 107544972A CN 201610466983 A CN201610466983 A CN 201610466983A CN 107544972 A CN107544972 A CN 107544972A
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.)
Granted
Application number
CN201610466983.7A
Other languages
Chinese (zh)
Other versions
CN107544972B (en
Inventor
李俊
王百宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610466983.7A priority Critical patent/CN107544972B/en
Publication of CN107544972A publication Critical patent/CN107544972A/en
Application granted granted Critical
Publication of CN107544972B publication Critical patent/CN107544972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of map edit method and apparatus.Wherein, this method includes:The first map file is loaded, obtains map datum, wherein, the first map file is used to indicate map to be edited, and map datum includes the attribute information of multiple the editable objects and editable object in map to be edited;Search operation is received, wherein, search operation includes search key, and search operation is used to indicate to search for object to be edited from multiple editable objects, and the title of object to be edited matches with search key;The attribute information of object to be edited is adjusted to by 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 the map to be edited after editor.The map_editor that the present invention is solved in correlation technique needs the object on editing interface manual creation map layer and map layer to cause the relatively low technical problem of map formation efficiency.

Description

Map edit method and apparatus
Technical field
The present invention relates to computer realm, in particular to a kind of map edit method and apparatus.
Background technology
At present, the map_editor in correlation technique is when creating map, it usually needs editorial staff is in editing interface hand The dynamic all objects created on map layer and map layer, to reach the purpose of generation map.Such as Tiled map_editors Map is disassembled and is considered as being considered as on map layer for map layer, object layer for block layer, object layer and image layer, block layer All objects, image layer is the background image of map.Tiled map_editors need to create manually during map is generated 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, map formation efficiency is had a strong impact on, and Tiled map_editors are created for 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 files by Mappy, then direct in gaming FMP file contents are parsed, read the information in block, and with the original appearance of the element reduction map in game.Mappy map edits Device can only splice map layer, and any edit operation can not be carried out for the unit object on map layer.
For it is above-mentioned the problem of, not yet propose effective solution at present.
The content of the invention
The embodiments of the invention provide a kind of map edit method and apparatus, at least to solve the volume of the map in correlation technique Collecting device needs the object on editing interface manual creation map layer and map layer to cause the relatively low technology of map formation efficiency Problem.
One side according to embodiments of the present invention, there is provided a kind of map edit method, including:Load the first ground picture and text Part, map datum is obtained, wherein, the first map file is used to indicate map to be edited, and map datum is included in map to be edited Multiple editable objects and editable object attribute information;Search operation is received, wherein, it is crucial that search operation includes search Word, search operation are used for instruction and object to be edited are searched for from multiple editable objects, and title and the search of object to be edited are closed Keyword matches;The attribute information of object to be edited is adjusted to by 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 for after indicating editor Map to be edited.
Another aspect according to embodiments of the present invention, a kind of map edit device is additionally provided, including:Loading unit, use 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 Include the attribute information of multiple editable objects and editable object in map to be edited;Receiving unit, searched for for receiving Operation, wherein, search operation includes search key, and search operation is searched for be edited for instruction from multiple editable objects Object, the title of object to be edited match with search key;Adjustment unit, for that will wait to compile according to the edit operation detected The attribute information for collecting object is adjusted to the second attribute information from the first attribute information;And generation unit, for according to the second category Property information generate the second map file, wherein, the second map file be used for indicate editor after 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 For indicating map to be edited, map datum includes the attribute of multiple the editable objects and editable object in map to be edited Information;Search operation is received, 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 matches with search key;It will be treated 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 according to the second attribute information generation the Two map files, wherein, the second map file is used to indicate the map to be edited after editor, by loading 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, the map file for indicating the map to be edited after editing finally is generated according to the attribute information after adjustment, reached Quickly edit and generate the purpose of map, it is achieved thereby that improving the technique effect of map formation efficiency, and then solve correlation Map_editor in technology needs the object on editing interface manual creation map layer and map layer to cause map to generate Less efficient technical problem.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the hardware environment of map edit method according to embodiments of the present invention;
Fig. 2 is a kind of flow chart of optional map edit methods according to embodiments of the present invention;
Fig. 3 is the schematic diagram of the hardware configuration of map_editor according to embodiments of the present invention;
Fig. 4 is that map_editor according to embodiments of the present invention reads flow chart with analytic map data;
Fig. 5 is the flow chart that map_editor according to embodiments 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 embodiments of the present invention;
Fig. 7 is the schematic diagram of data acquisition according to embodiments of the present invention with preserving process;
The schematic diagram at map edit interface when Fig. 8 is initialization according to embodiments of the present invention;
Fig. 9 is the schematic diagram of outpost of the tax office configuration interface according to embodiments of the present invention;
Figure 10 is the schematic diagram that outpost of the tax office configuration interface according to embodiments of the present invention packs up rear map edit interface;
Figure 11 is the schematic diagram of unit configuration interface according to embodiments of the present invention;
Figure 12 is the schematic diagram at unit attribute data modification interface according to embodiments of the present invention;
Figure 13 is the schematic diagram of game fighting bout configuration interface according to embodiments of the present invention;
Figure 14 is the schematic diagram of the NPC dialogue configuration interfaces of game fighting bout according to embodiments of the present invention;
Figure 15 is the schematic diagram of starting hands configuration interface in game fighting bout according to embodiments of the present invention;
Figure 16 is a kind of schematic diagram of optional map editing device according to embodiments of the present invention;
Figure 17 is the schematic diagram of the optional map editing device of another kind according to embodiments of the present invention;
Figure 18 is the schematic diagram of the optional map editing device of another kind according to embodiments of the present invention;
Figure 19 is the schematic diagram of the optional map editing device of another kind according to embodiments of the present invention;
Figure 20 is the schematic diagram of the optional map editing device of another kind according to embodiments of the present invention;
Figure 21 is the schematic diagram of the optional map editing device of another kind according to embodiments of the present invention;
Figure 22 is the schematic diagram of the optional map editing device of another kind according to embodiments of the present invention;
Figure 23 is the schematic diagram of the optional map editing device of another kind according to embodiments of the present invention;
Figure 24 is the schematic diagram of the optional map editing device of another kind according to embodiments of the present invention;And
Figure 25 is a kind of structured flowchart of terminal according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of the method for map edit method.
Alternatively, in the present embodiment, above-mentioned map edit method can apply to as shown in Figure 1 by server 102 In the hardware environment formed with terminal 104.As shown in figure 1, server 102 is attached by network and terminal 104, it is above-mentioned Network includes but is not limited to:Wide area network, Metropolitan Area Network (MAN) or LAN, terminal 104 are not limited to PC, mobile phone, tablet personal computer etc..This The map edit method of inventive embodiments can be performed by server 102, can also be performed, can also be by terminal 104 Performed jointly by server 102 and terminal 104.Wherein, the map edit method of the execution of terminal 104 embodiment of the present invention can also It is to be performed by client mounted thereto.
Fig. 2 is a kind of flow chart of optional map edit methods according to embodiments of the present invention, as shown in Fig. 2 the party Method may comprise steps of:
Step S202, the first map file is loaded, obtains map datum, wherein, the first map file is used to indicate to wait to compile Map is collected, map datum includes the attribute information of multiple the editable objects and editable object in map to be edited;
Step S204, receive search operation, wherein, search operation includes search key, search operation be used for instruction from Object to be edited is searched in multiple editable objects, the title of object to be edited matches with search key;
Step S206, the attribute information of object to be edited is adjusted from the first attribute information according to the edit operation detected For the second attribute information;
Step S208, the second map file is generated according to the second attribute information, wherein, the second map file is used to indicate to compile Map to be edited after volume.
It should be noted that can design to obtain a map_editor using above-mentioned steps, the map_editor can pacify Mounted in server, client can also be arranged on.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 after adjustment generates the map file for indicating the map after editing, and has reached quick editor and has generated map Purpose, and then solve the needs of the map_editor in correlation technique on editing interface manual creation map layer and map layer Object cause the relatively low technical problem of map formation efficiency, reached improve map formation efficiency technique effect.
In the technical scheme that step S202 is provided, the first map file can be the text for indicating 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 can include being used for the map datum for indicating map to be edited for the file being pre-created, in the first map file, wherein, ground Diagram data can include the attribute information of multiple the editable objects and editable object in map to be edited.Specifically, may be used Edit object can include but is not limited to map layer, the object on map layer, the event occurred on map layer, wherein, map Layer can include map background image, map background mark ID etc.;Object on map layer can include unit on map layer, Role, card etc.;Event occurs on map layer can include game fighting bout, the story of a play or opera, dialogue etc..The attribute of editable object Information can include but is not limited to explanation of editable object oriented, the type of editable object, editable object etc., For example editable object is card, then the attribute information of editable object can include card title, card mark ID, card The information such as corresponding technical ability explanation.For another example, editable object is map background image, then the attribute information of editable object can With including information such as image identification ID, image subject color, image pixel resolution ratio.It should be noted that above-mentioned lists ground The part editable object and the attribute information of editable object that diagram data includes, the map datum in the embodiment of the present invention Other editable objects can also be included, 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 obtain predetermined mesh by call function 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 the first map file is loaded, what map_editor can obtain to loading First map file is parsed, and therefrom parsing obtains map datum.Alternatively, carrying out parsing to the first map file can wrap If included, that the first map file carried out into format conversion, form is wrong, can catch and make mistake, but can retain and can correctly parse Data out.Classification integration is carried out by the data that can be correctly parsed to this part, you can to obtain being used for indicating The map datum of map to be edited.
Alternatively, map_editor, can be right by its after the map datum for indicating map to be edited is got It should be shown on map edit interface, in order to be intuitive to see the 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 map datum obtained by loading 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 Do not show in initialization, namely without multiple the editable objects and its attribute information before any editor, can also manage It is map_editor by loading after the first map file obtains map datum to solve, and only display should on map edit interface The empty template of map to be edited corresponding to map datum.If needed during map edit to some or some 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 scheme that step S204 is provided, search operation can serve to indicate that to 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 map datum included by multiple editable objects in any one or it is multiple.It should be noted that this Inventive embodiments are not specifically limited to search operation, search operation can include search key or multiple crucial phrases into 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 cards ".Map_editor, can be according to the search included by search operation after search operation is received Keyword, crucial phrase or search expression search for object to be edited from multiple editable objects, and alternatively, the present invention is implemented Example can according to editable object title or attribute information and the search key included by search operation, crucial phrase or search The matching degree of rope expression formula, title or attribute information and search key, keyword are selected from multiple editable objects Group or one or more editable object of search expression matching 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 either attribute information and search key, crucial phrase or search expression One or more editable object of matching, one or more obtained editable object will be searched for as to be edited right As, and will be shown to corresponding to the object to be edited in map edit interface, for editorial staff it is carried out edit operation with Reach the purpose for the attribute information for adjusting the object to be edited.
It should be noted that the embodiment of the present invention is straight by loading the first map file, and from obtained map datum Search object to be edited is connect, map_editor is realized and directly the form of data source is read, highly shortened manual creation Time needed for object to be edited, and then the effect for improving map formation efficiency can be reached.
Step S206 provide technical scheme in, map_editor according to search operation determine object to be edited it Afterwards, the edit operation for having to the object to be edited can be detected whether in real time, wherein, the editor for treating edit object execution grasps Make that including but not limited to object to be edited can be clicked on, for example click, double-click;Mobile object to be edited, for example drag and wait to compile Collect object and be moved to the second place from first position.It should be noted that the edit operation for treating edit object execution can be with Including other operations, explanation is will not enumerate herein.Treat the edit operation performed by edit object and can serve to indicate that tune The attribute information of whole object to be edited, the attribute information of object to be edited is adjusted to the second attribute letter from the first attribute information Breath, it is necessary to explanation, 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, which can serve to indicate that, treats object to be edited after edit object executive editor operates Attribute information.It should be noted that " first " and " second " herein treats edit object executive editor behaviour only for distinguishing With the attribute information of object to be edited afterwards before work, the significance level or order for treating edit object attribute information are not entered Row is specific to be limited.
For example object to be edited is role, single-click operation can be included by treating the edit operation of edit object execution, be clicked Map edit interface can jump to the adjustment interface of the role attribute after role, be edited 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, annex skill Can etc..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 scheme in, the second map file can serve to indicate that editor after to be editedly For figure, it is necessary to explanation, the edit operation for treating edit map progress can be to treat the edit operation performed by edit object, The institutes such as the map layer of edit map, the object on map layer, the event that occurs on map layer can including but not limited to be treated 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 Into the second map file, it is necessary to which explanation, the second attribute information of object to be edited can include one or more herein The second attribute information after the edit operation adjustment that corresponding to object to be edited, foundation performs to it.The embodiment of the present invention can Integrated with the second attribute information to one or more object to be edited, be integrated into long text, and will integrate To long text be converted into the second map file of XML format.
Alternatively, 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 preserved, in order to again read off 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 first map file and the second map file of generation that the embodiment of the present invention is read all may be used It is upper-layer service in order to simplify upper-layer service parsing to the full extent 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 can include with Lower step:
Step S2022, the first map file is subjected to serializing processing.
In the technical scheme that step S2022 is provided, the first map file of loading 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, the first map file after serializing is parsed, obtains map datum.
Step S2024 provide technical scheme in, map_editor after being serialized to the first map file, First map file can be parsed, can include checking whether XML format is wrong, from the if without mistake Map datum is directly obtained in one map file;If form is wrong, being obtained from the first map file being capable of correct quilt The data of parsing are as map datum.The alternative embodiment can ensure ground by carrying out format analysis to the first map file The accuracy for the map datum that Graph editor is read, and then improve the effect of map_editor stability.
Step S2026, classifies to map datum, obtains multiple data structures, wherein, multiple data structures include the A kind of data structure, secondary sources structure and the 3rd class data structure, wherein, primary sources structure is used to store to wait to compile The background map information of map is collected, secondary sources structure is used to store the unit information on map to be edited, the 3rd class data Structure is used to store the event information occurred on map to be edited.
In the technical scheme that step S2026 is provided, the alternative embodiment 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, the class of event three, and correspondingly, map datum can divide For three data structures, it is respectively:For the primary sources structure for the background map information for storing map to be edited, for depositing The secondary sources structure of the unit information on map to be edited is stored up, for storing the 3rd of the event information on map to be edited Class data structure.Map datum is divided into corresponding data knot by the alternative embodiment by the type according to object to be edited Structure, after the attribute information of edit object executive editor's operation adjustment object to be edited is treated, can be easy to utilize with it is to be edited The corresponding attribute information after the adjustment of the corresponding data structure storage object to be edited of object type.
It should be noted that the embodiment of the present invention can also be according to the type or other guide of edit operation to map number According to being classified, this embodiment of the present invention is not specifically limited.
As a kind of optional embodiment, editable object that map datum includes can include background map, unit, Event, wherein:
When object to be edited is background map, in step S206 according to the edit operation detected by object to be edited After the first attribute information is adjusted to the second attribute information, the alternative embodiment can also include attribute information:Step S2072, the second attribute information of background map is stored in primary sources structure.
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 the first attribute information is adjusted to the second attribute information, the alternative embodiment can also include information: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 the first attribute information is adjusted to the second attribute information, the alternative embodiment can also include information:Step S2076, will Second attribute information of event is stored in the 3rd class data structure.
It should be noted that object to be edited can be divided into background map, unit, the class of event three, wherein, background map can To regard the map layer of map to be edited, including map background image, map background mark ID etc. as;Unit can be regarded as treating All objects in edit map, can be including the role on map layer, card etc.;Event can be regarded as on map to be edited The event of generation, game fighting bout, the story of a play or opera, dialogue etc. can be included.The data knot corresponding with this three classes object to be edited Structure is respectively:Primary sources structure for the background map information that stores background map, for storage cell information Two class data structures, the 3rd class data structure for storing event information.After edit object executive editor operation is treated, treat The attribute information of edit object can change, and the attribute information after the changing of this three classes object 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 the back of the body 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 unit, utilize the of the threeth class data structure storage event corresponding with event Two attribute informations, it can reach and be easy to the second attribute information of object to be edited carrying 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 reach and shorten the second map file The generation time, further improve map formation efficiency effect.
As a kind of optional embodiment, step S208 generates the second map file according to the second attribute information and can wrapped Include:
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 of the unit stored in structure and the 3rd class data structure is integrated For long text.
Step S2084, long text is converted into the second map file of XML format.
It should be noted that after edit object executive editor operation is treated, the second attribute information of object to be edited can Be stored in in the type of object to be edited accordingly data structure.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 the data structure corresponding with object type to be edited Attribute information, it 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 that unit is obtained in structure and from the 3rd class data structure. After the second attribute information for obtaining above-mentioned different types of object to be edited, map_editor can be integrated to 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 the map after editor.The alternative embodiment is from different types of data structure The second attribute information of different types of object to be edited is obtained respectively, can reach and guarantee data integrity, and then improves life Into the second map file the degree of accuracy effect.
As a kind of optional embodiment, step S2082 can specifically include following steps:
Step S20822, triggering command is received, wherein, triggering command is used to indicate to obtain the back of the body from primary sources structure Second attribute information of scape map, obtain from secondary sources structure the second attribute information of unit and from the 3rd class data 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, from secondary sources structure obtain unit the second attribute information and obtain thing from the 3rd class data structure Second attribute information of part, in order to be integrated into the second ground picture and text that long text generates the map after being edited for instruction Part.Triggering command can trigger generation by the trigger action that user performs in editor interface, wherein, user is in editing machine circle The trigger action performed on face can including but not limited to click, long-press, gesture, slip etc., such as user is in editing machine circle Generation triggering command can be triggered when save button is clicked on face.Obtained it should also be noted that, triggering command can serve to indicate that The second attribute information of the object to be edited stored in all data structures is taken, can be used for indicating fetching portion data structure Second attribute information of the object to be edited of middle storage.
Step S20824, respectively to where the first interface where primary sources structure, secondary sources structure The 3rd interface broadcast data request event where second interface and the 3rd 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 the 3rd class data structure.
It should be noted that the embodiment of the present invention can perform volume on different interfaces to different types of object to be edited 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 the 3rd interface and carries out edit operation. The first data structure can be provided with first interface to be used to store background map information, and second can be provided with second contact surface Data structure is used for storage cell information, and the 3rd data structure can be provided with the 3rd interface and is used to store event information.When Treat 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 set on face can be used for the second attribute information for storing object to be edited, i.e., first set on the first interface Data structure is used for the second attribute information for storing background map, and the second data structure set on second contact surface is used to store list Second attribute information of position, the 3rd data structure set on the 3rd interface are used for the second attribute information for storing event.
Can be by the second attribute of required object to be edited in the data acquisition unit for receiving triggering command postedit device Information is broadcast to each interface in a manner of event, namely to each interface (including the first interface, second contact surface, the 3rd interface) Broadcast data request event, to realize the second attribute information of the background map for asking to be stored in primary sources structure, second Second attribute of the event stored in the second attribute information of the unit stored in class data structure and the 3rd class data structure Information.
Step S20826, receive 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, the panel proxy server response data request event of second contact surface return the Second attribute information of the unit stored in two class data structures and the panel proxy server response data request thing at the 3rd interface Second attribute information of the event stored in the 3rd class data structure that part returns.
It should be noted that panel can be provided with each interface (including the first interface, second contact surface, the 3rd interface) Proxy server, when panel proxy server receives request of data event, panel proxy server can respond the request of data event, from boundary Obtain the second attribute information of object to be edited in the data structure set on face, and by the second of the object to be edited got Attribute information returns to the data acquisition unit 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 panel proxy server return of the data acquisition unit of editing machine on each interface is received is treated The second attribute information (including the second attribute information of background map, the second attribute information of unit and the event of edit object The second attribute letter) after, long text can be integrated into, in order to text on this be deserialized as be used for indicate editor Second map file of map afterwards.
The alternative embodiment obtains the second attribute letter of the background map stored in the first data structure using aforesaid way Second category of the event stored in the second attribute information of the unit stored in breath, the second data structure and the 3rd data structure Property letter, and long text is integrated into realize the purpose of the second map file of generation, from different types of data structure point The second attribute information of different types of object to be edited is not obtained, can reach and guarantee data integrity, and then improves generation The second map file the degree of accuracy effect.
Alternatively, the embodiment of the present invention, can also be to the second map file of generation after the second map file is generated Preserved, in order to again read off 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 in units of, wherein, unit can 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 also comprise the following steps:
Step S2052, by Conversion of measurement unit into editable object, wherein, edit operation is the behaviour performed to editable object Make, unit has the first form before editable object is converted into.
It should be noted that the object to be edited for searching for obtain by step S204 can be in units of, the unit has the One form, editing machine can not carry out edit operation to the unit with the first form.Edit operation is carried out to unit in order to realize The second attribute information is changed into from the first attribute information to adjust the attribute information of unit, editing machine needs that obtained unit will be searched for Enter row format conversion, be editable object by Conversion of measurement unit, editing machine can carry out edit operation to the editable object.Its In, the edit operation performed to editable object can include but is not limited to click, long-press, movement or slip etc., for example, When unit is card, after card is converted into editable object, card can be moved to card storehouse or game battlefield.
Step S2054, the edit operation performed to editable object is detected, wherein, to editable object executive editor During operation or after being operated to editable object executive editor, unit is converted into the unit with the second form.
It should be noted that after by Conversion of measurement unit for editable object, editing machine can detect to editable in real time Edit operation performed by object, for example, click, long-press, dragging or slip etc. operate.Alternatively, editing machine is detecting When being operated to editable object executive editor, or, after detecting to editable object executive editor operation, the lattice of unit Formula can be converted into the second form, and the unit with the second form can exist in editing machine in the form of entity object, to this Entity object can carry out relevant configuration.For example, when unit is card, after card is converted into editable object, editor Personnel editable object can be dragged to card storehouse or game battlefield, in the process or this process terminate after this can Edit object can accordingly be reversed and resolve to card object.
The alternative embodiment is being detected to editable pair by being editable object by obtained Conversion of measurement unit is searched for When being operated as executive editor or detect to editable object executive editor operate after conversion unit form, can realize One layer of unified data are set up between view and configuration and represent object, upper layer logic is abstracted as to unified interface, maximum journey Spend low support autgmentability.
As a kind of optional embodiment, the map_editor of the embodiment of the present invention can apply to carry out map In the scene of editor.In the application scenarios, object to be edited can be card, then step S206 grasps according to the editor detected The attribute information of object to be edited is adjusted to the second attribute information by work from the first attribute information to be included:
Step S2061, the first edit operation performed to card is received, wherein, the first edit operation is used to indicate to block Board is moved to the second place from first position.
In the technical scheme that step S2061 is provided, card can be regarded as the unit on map to be edited, then according to right The second attribute information after the edit operation adjustment that unit performs can be stored in secondary sources structure.The alternative embodiment The first edit operation performed to card can serve to indicate that is moved to the second place by card from first position, wherein, first Position and the second place can be the optional positions in map edit interface, and first position is different from the second place.Such as by card Board is moved in card storehouse, either removes or card is moved into game battlefield card from card storehouse, wherein, card Storehouse can be the card set for order of being played a card on map edit interface for instruction.
Step S2063, the attribute information of card is adjusted to by the second category from the first attribute information according to the first edit operation Property information, wherein, the second attribute information be used for instruction card memorial tablet in card storehouse, or, card be located at card storehouse in, or Person, position of the card in card storehouse, or, card is located in first area, wherein, it is removable that first area is arranged to card It is dynamic.
In the technical scheme that step S2063 is provided, map_editor is receiving the first editor behaviour to card execution 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 that the second attribute information of card can serve to indicate that this when card is moved in card storehouse Card is located in card storehouse;When the first edit operation is used to indicate to remove card from card storehouse, the second attribute of card Information can serve to indicate that card is not located in card storehouse;When the first edit operation is used to indicating by card from the in card storehouse When one position is moved to the second place in card storehouse, wherein, card is located in card storehouse, and the second attribute information of card can be with For indicating position of the card in card storehouse or the order of playing a card for indicating card.First area can be game war , first area can be configured to card and may move, namely card may move in battlefield of playing.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 positioned at game battlefield It is interior, and card can move in game battlefield.
It should be noted that the edit operation performed to card is not limited only to above-mentioned first edit operation, card is performed 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 amended property parameters of card.
It should also be noted that, in the case where entering the scene of edlin to map, object to be edited can be not only card, Can also be the arbitrary unit on map layer, such as role, object etc..The map_editor of the alternative embodiment can not only be compiled Map layer is collected, and can be realized with the unit on edit map layer, such as card, role etc. on map layer and map layer Unit unified combination, the map_editor of the alternative embodiment greatly simplifies the edit operation of editorial staff, improves The efficiency of map generation.
As a kind of optional embodiment, in the case where entering the scene of edlin to map, object to be edited can also be Game fighting bout, then step S206 the attribute information of object to be edited is believed from the first attribute according to the edit operation detected Breath, which is adjusted to the second attribute information, to be included:
Step S2062, the second edit operation performed to game fighting bout is received, wherein, the second edit operation is used for Indicate increase or reduce the quantity of game fighting bout.
In the technical scheme that step S2062 is provided, game fighting bout can be regarded as what is occurred on map to be edited Event, then the 3rd class data structure can be stored according to the second attribute information after the edit operation adjustment performed to event In.The alternative embodiment can serve to indicate that increase to the second edit operation that game fighting bout performs or reduce game pair The quantity of war bout, such as, the first push button for indicating addition game fighting bout is clicked on map edit interface Region, or, the second push button region for indicating deletion game fighting bout is clicked on map edit interface, its In, the first push button region is different from the second push button region.
Step S2064, the attribute information of game fighting bout is adjusted from the first attribute information according to the second edit operation For the second attribute information, wherein, the second attribute information is used for the quantity for indicating game fighting bout.
In the technical scheme that step S2064 is provided, map_editor receive game fighting bout is performed the During 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. Such as when the second editor behaviour is that the first push button for indicating addition game fighting bout is clicked on map edit interface During region, the second attribute information of game fighting bout can serve to indicate that the quantity of increase game fighting bout, for example play Battle bout quantity adds 1;When the second edit operation is to be clicked on map edit interface for indicating 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, such as, game fighting bout quantity subtracts 1.
It should be noted that when multiple game fighting bouts be present, each game fighting bout can be corresponding with one Label, the edit operation performed to game fighting bout in the alternative embodiment can also include by clicking on different game fightings Game fighting bout handover operation performed by label corresponding to bout, quickly and easily switch game fighting bout volume to reach Purpose of the editing interface to be operated to game fighting bout executive editor.
It should also be noted that, in the case where entering the scene of edlin to map, object to be edited can be to be editedly 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., map layer, map layer can be realized with the event occurred on edit map layer On unit and map layer on the unified combination of event that occurs so that map edit personnel can utilize the map edit work Tool realizes a variety of different edit operations needed for game application scene, drastically increases the efficiency of map generation.
As a kind of optional embodiment, in the case where entering the scene of edlin to map, if object to be edited is trip Play battle bout, step S206 adjust the attribute information of object to be edited from the first attribute information according to the edit operation detected Whole is that the second attribute information can also include:
Step S2066, the 3rd edit operation performed to game fighting bout is received, wherein, the 3rd edit operation is used for Indicate the NPC dialogues of configuration game fighting bout.
In the technical scheme that step S2066 is provided, the edit operation performed to game fighting bout is except including second Outside edit operation, the 3rd edit operation of the NPC dialogues for configuring game fighting bout can also be included, wherein, NPC (Non-Player Character) dialogue can be the dialogue of non-gaming role in game fighting bout.The alternative embodiment pair The 3rd edit operation that game fighting bout performs can include clicking to be used to indicate addition NPC dialogues on map edit interface 3rd push button region, or, click and be used to indicate the 4th push button area for deleting NPC dialogues on map edit interface Domain, or the operation that involved role in talking with to NPC, dialogue types, conversation content modify.
Step S2068, the attribute information of game fighting bout is adjusted from the first attribute information according to the 3rd edit operation For the second attribute information, wherein, the second attribute information is used to indicate the NPC dialogues with the game fighting bout postponed.
In the technical scheme that step S2068 is provided, map_editor receive game fighting bout is performed the During three edit operations, the attribute information of game fighting bout can be adjusted from the first attribute information according to the 3rd 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 dialogues or the NPC dialogues of war bout.Such as involved role in as three editor behaviour being to talk with to NPC, During 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 dialogues of game fighting bout afterwards;When the 3rd edit operation is used to indicate NPC pairs of addition to click on map edit interface During the 3rd push button region of words, the second attribute information of game fighting bout can serve to indicate that the number of increase NPC dialogues Amount, such as, NPC dialogues quantity adds 1;When the 3rd edit operation is used to indicate to delete NPC dialogues to click on map edit interface The 4th push button region when, the second attribute information of game fighting bout can serve to indicate that the quantity for reducing NPC dialogues, For example NPC dialogues quantity subtracts 1.
The logical NPC dialogues to game fighting bout of the alternative embodiment configure, and can effectively improve the play of game Natural instincts and scene, and then cause game fighting bout to more conform to actual scene.
It should be noted that it can not only be applied to using the map_editor of the map edit method of the embodiment of the present invention Map is entered in the scene of edlin, additionally it is possible to applied to the scene for entering edlin to operational commanding map, map of acting in a play In.Below present invention also offers a kind of preferred embodiment, the preferred embodiment using map is entered the scene of edlin as Example.
Fig. 3 is the schematic diagram of the hardware configuration of map_editor according to embodiments of the present invention, as shown in figure 3, the map Editing machine uses the function such as modular frame, background map editor, unit editor, event edits with modularization, plug-in type Mode is socketed in inside map_editor, and the core of map_editor is then a data pipe for being responsible for parsing and gathered data Manage core.As shown in figure 3, the background map editor module of the background map editting function of map to be edited can be realized, can Realize the unit editor module of unit editting function on map to be edited, can realize that treating the event occurred in edit map compiles 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, data management core can by each interface from each editor module gathered data.Need to illustrate , the data management core in map_editor therefrom reads map datum, i.e., shown in Fig. 3 by loading map file The process representated by data is read, wherein, multiple editable objects can be included in map datum and the attribute of editable object is believed 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 performed when map_editor detects Edit operation when, the attribute information of background map after being adjusted according to the edit operation be stored in background map editor In module;, can be by the list after being adjusted according to the edit operation when map_editor detects the edit operation to unit row The attribute information of position is stored in unit editor module;, can when map_editor detects the edit operation performed to event So that the attribute information of the event after being adjusted according to the edit operation is stored in event edits module.When map_editor detects It has been finished to all edit operations, for example has received click and be used for after indicating to adjust corresponding to preservation edit operation 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 collection object to be edited, and generated according to the attribute information of the object to be edited collected for indicating editor The map file of map afterwards, i.e., the process for writing data representative shown in Fig. 3.
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, it is possible to any application module is added, such as, pass through card Data-interface increase card editor module, pass through character data interface addition role's editor module etc..The map_editor can The map file being pre-created is directly read, therefrom obtains the map datum for indicating map to be edited, raising can be realized The effect of map formation efficiency.
Exemplified by entering the application scenarios of edlin to map, the ground of the map edit method of the embodiment of the present invention is performed Graph editor from read map datum edited preserve to the end amended map flow can specifically be divided into it is following several The individual stage:
1.1 read and analytic map data
It is may comprise steps of as shown in figure 4, reading with the flow 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 XML file is parsed.
Step S43, check whether file format is correct, if correctly, performing step S44;If incorrect, perform Step S45.
Step S44, obtain map datum.
Step S45, mistake is caught, and obtain the data that can be correctly parsed as map datum.
Step S46, map datum is divided into three classes data structure.
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, is respectively:Background map data structure TDMapAttrData, unit data structure TDUnitData and thing 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 content such as initial attribute data, enemy's initial attribute data. What unit data knot TDUnitData was deposited is the attribute data of all units on map.Event data structure TDConfigRoundInfo storages are the attribute data of each game fighting bout, including originate card, in story of a play or opera dialogue etc. Hold.
The map_editor has advantages below:Support is high, and scalability is strong;Can be with the configuration side of unrestricted choice map Formula, at utmost support autgmentability functional development;The customization and support of support unit and game fighting bout configure map Upper DBMS, 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 Three classes of position, the idiographic flow that operation is scanned for for above-mentioned three class object can be with as shown in figure 5, specifically include following steps:
Step S51, in layout stage, map_editor receives search operation, according to search operation selection search-type.Its In, the type of search includes card, hero and conventional unit.
Step S52, determines whether card, if it is, performing step S53;If it is not, then perform step S54.
Step S53, search for card table.
Step S54, determines whether hero, if it is, performing step S55;If it is not, then perform step S56.Need It is noted that hero is one kind of game role.
Step S55, search for heroic table.
Step S56, search 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.
Step S57, the object that search obtains is converted into object to be edited.Wherein, the operation of edit object execution is treated Step S58 can be included, object to be edited is moved to battlefield, is converted into conventional unit object;Step S59, it will wait to compile Collect object and be moved to card storehouse, be converted into card object.
It should be noted that in layout stage, editorial staff can select to need in the search column in map edit interface The unit classification wanted, content, such as search key, expression formula etc. are then inserted, map_editor meeting automatic identification is common Unit, hero or card, and object TDConfigCellItem objects to be edited are uniformly converted into, editor can incite somebody to action TDConfigCellItem objects are dragged to battlefield or card column, using realize by TDConfigCellItem objects reverse resolution as 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 reach the purpose for farthest supporting autgmentability.
1.3 unit datas are changed
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 Three classes of position, can be with 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 division with battlefield binding, can also support our unit's object modification directly Into 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 notify field units to change.The map edit Change of the device to unit can accomplish summary responses, while view layer and data Layer are kept completely separate, and enable to data Layer to ensure Integrality and uniformity.
1.4 data acquisitions are with preserving
Map_editor can be with as shown in fig. 7, when map_editor detects with the idiographic flow preserved to data acquisition When the edit operation for clicking on save button be present in map edit interface, the data acquisition unit 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, being responsive to the proxy server TDConfigAttributeMediator of the properties interface of the event will can deposit The attribute data of storage returned data collector TDConfigAttributeDataParser in a manner of event argument, wherein, can With including background map data structure, unit data structure, event data structure.Data acquisition unit Data Integration is long text by the key of TDConfigAttributeDataParser foundation fields, is then deserialized as XML The map file of form, and be saved in file system.The map_editor can solve the problem that generation format map parsing difficulty Problem, for the map_editor using simplest network text form XML, parsing is simple, occupies little space.Moreover, should Map_editor has height autgmentability, using the data management mode of plug-in type, if desired adds other for map_editor The support of business, it is only necessary to realize data-interface.
For example, enter the detailed process of edlin using the map_editor battle chess game map in the embodiment of the present invention It may refer to following description:
As shown in figure 8, in the map edit interface, editorial staff can at map edit interface when map_editor initializes To select the outpost of the tax office ID for needing to read in insert in the text box after loading Load buttons first.Assuming that editorial staff is in text box The outpost of the tax office ID of input is 10061, and then editorial staff can click on loading Load buttons, then the XML data at the corresponding outpost of the tax office can quilt Map edit interface is shown to after serializing, as shown in figure 9, in the interface shown in Fig. 9, editorial staff can be by 10061 pairs The various configuration datas at the outpost of the tax office answered are inserted in corresponding text box, the triangular arrowheads 001 in interface are then clicked on, by the outpost of the tax office 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 that requires to look up, it is necessary to explanation, the map edit instrument can support Chinese, The keyword lookup of English or numeral.As shown in figure 11, for example editorial staff wants search card object, the keyword of search For " fire ", the card object for searching for obtain is 003.Editorial staff can also be in the interface shown in Figure 11 by the unit pair of selection As, namely on the drag and drop of card object 003 to battlefield, the card object can also be clicked, jump to editor circle as shown in figure 12 Change 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 change annex technical ability and accessories B uff of card object etc., can also be in the volume Deletion button is clicked in editing interface to be deleted the card object of selection.After card object configuration on to battlefield, Editorial staff can click in interface as shown in Figure 10 our card storehouse column 004 of lower section, when card is in selected state, Occur that red circle mark can occur in mark, such as card upper left side in card.It should also be noted that, editorial staff is also The card of selection can be checked out to card storehouse column, such as our card storehouse column 004, the card of selection is added to me to realize In square card storehouse.Correspondingly, editorial staff can also be deleted the card of the optional position in the column of card storehouse, such as The function of deleting card can be realized by double-clicking the card in the column of card storehouse.Editorial staff can be by clicking on as shown in Figure 10 For the deletion button 005 for indicating all to delete the card in card storehouse, all cards deleted in card storehouse are realized.Such as 10 Shown lock symbol 007 can serve to indicate that playing a card for the card storehouse sequentially can be according to the order of configuration when being in selected state Play a card successively, otherwise represent to select immediately.It should be noted that the setting in enemy's hands storehouse column (region 006 in such as Figure 10) Identical in above-mentioned configuration process, here is omitted.
Editorial staff can also click on 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, acquiescence can initialize a starting game fighting bout, and data are sky.Human editor Member can add game fighting bout by clicking on the "+" symbol 009 shown in Figure 13, click on "×" symbol 010 and delete game Bout is fought, clicks on the NPC conversation contents that "+" symbol 011 adds game fighting bout, as shown in figure 14, in fig. 14 can be with Configure type, role and the content of NPC dialogues.It should be noted that because game fighting rounds are not necessarily required continuously to increase Add, therefore allow the bout ID for inputting this game fighting bout edited in the text box at the rear of region 009.Edit Game fighting bout, bout ID can highlight, such as shown in red, the game fighting bout for being not in editing Bout ID is then shown as white.Alternatively, it can be realized by the bout ID on single-click interface and switch edited game fighting Bout, as shown in figure 15, it can then realize that the game fighting bout that bout ID is " 0 " is with bout ID by clicking on " 0 " or " 1 " Switching between the game fighting bout of " 1 ".In the game fighting bout when pre-editing shown in Figure 15, card storehouse column is clicked In card can represent 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 prompting of green special efficacy, then click on and once can then cancel selection.
After all edit operations terminate, it can click on reinflated outpost of the tax office configuration interface as shown in Figure 9 and preserve Save Button, by XML file corresponding to attribute data write-in file system corresponding to this edit operation.
It should be noted that above-mentioned is to list in the function achieved by the map_editor in the embodiment of the present invention Partial function, no longer illustrated one by one herein for other functions.
The map_editor for designing to obtain using map edit method of the embodiment of the present invention has advantages below:
1st, the autgmentability of height, the angle either designed, the sophisticated functions currently supported, or later stage are for each bar industry Be engaged in line customizing functions for, the map_editor has all accomplished maximum support, this be also this map_editor most Big advantage innovative point.
2nd, generation file easily parses, and space is small, and transmission quantity is small, in actual applications can be very easily in server end Verified.
3rd, clearly four layer architecture, view, data, operation is completely discrete, the respective independent work of modules, only pass through Data swap, strong business support degree.
4th, map_editor application scenarios are flexible, can be independently of Unity, can also be (small when plug-in unit of playing games, small volume In 1M).
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are 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 add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of map edit device for being used to implement above-mentioned map edit method is additionally provided. Figure 16 is a kind of schematic diagram of optional map editing device according to embodiments of the present invention, and as shown in figure 16, the device can be with Including:
Loading unit 22, for loading the first map file, map datum is obtained, wherein, the first map file is used to refer to Show map to be edited, map datum includes the attribute information of multiple the 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 individual editable object, the title of object to be edited matches with search key;Adjustment unit 26, is used for The attribute information of object to be edited is adjusted to by 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 to compile Map to be edited after volume.
It should be noted that the loading unit 22 in the embodiment can be used for performing the step in the embodiment of the present application 1 S202, the receiving unit 24 in the embodiment can be used for performing the step S204 in the embodiment of the present application 1, in the embodiment Adjustment unit 26 can be used for performing the step S206 in the embodiment of the present application 1, and the generation unit 28 in the embodiment can be used In performing the step S208 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that corresponding step is realized, but not It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
As a kind of optional embodiment, Figure 17 is the optional map editing device of another kind according to embodiments of the present invention Schematic diagram, as shown in figure 17, loading unit 22 can include:First conversion module 222, for the first map file to be carried out Serializing is handled;Parsing module 224, for being parsed to the first map file after serializing, obtain map datum;And Sort module 226, for classifying to map datum, multiple data structures are obtained, wherein, multiple data structures include first Class data structure, secondary sources structure and the 3rd 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, the 3rd class data knot Structure is used to store 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 performing in the embodiment of the present application 1 Step S2022, the parsing module 224 in the embodiment can be used for performing the step S2024 in the embodiment of the present application 1, the reality The sort module 226 in example is applied to can be used for performing the step S2026 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that corresponding step is realized, but not It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
As a kind of optional embodiment, Figure 18 is the optional map editing device of another kind according to embodiments 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 Including:First memory cell 272, for that when object to be edited is background map, will be treated according to the edit operation detected The attribute information of edit object believes the second attribute of background map after the first attribute information is adjusted to the second attribute information Breath is stored in primary sources structure;Second memory cell 274, for when object to be edited is unit, according to detection To edit operation by the attribute information of object to be edited after the first attribute information is adjusted to the second attribute information, by unit The second attribute information be stored in secondary sources structure;3rd memory cell 276, for being event when object to be edited When, the attribute information of object to be edited is being adjusted to by the second attribute letter from the first attribute information according to the edit operation detected After breath, the second attribute information of event is stored in the 3rd class data structure.
It should be noted that the first memory cell 272 in the embodiment can be used for performing in the embodiment of the present application 1 Step S2072, the second memory cell 274 in the embodiment can be used for performing the step S2074 in the embodiment of the present application 1, The 3rd memory cell 276 in the embodiment can be used for performing the step S2076 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that corresponding step is realized, but not It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
As a kind of optional embodiment, Figure 19 is the optional map editing device of another kind according to embodiments of the present invention Schematic diagram, as shown in figure 19, generation unit 28 can include:Module 282 is integrated, for will be stored in primary sources structure The second attribute information of background map, the second attribute information and the 3rd class number of the unit stored in secondary sources structure Long text is integrated into according to the second attribute information of the event stored in structure;Second conversion module 284, for long text to be converted For the second map file of XML format.
It should be noted that the integration module 282 in the embodiment can be used for performing the step in the embodiment of the present application 1 S2082, the second conversion module 284 in the embodiment can be used for performing the step S2084 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that corresponding step is realized, but not It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
As a kind of optional embodiment, Figure 20 is the optional map editing device of another kind according to embodiments of the present invention Schematic diagram, as shown in figure 20, integrate module 282 can include:First receiving submodule 2822, for receiving triggering command, Wherein, triggering command is used to indicate obtaining the second attribute information of background map from primary sources structure, from he second-class number The second attribute information of event is obtained according to the second attribute information that unit is obtained in structure and from the 3rd class data structure;Extensively Submodule 2824 is broadcast, for respectively to second where the first interface where primary sources structure, secondary sources structure The 3rd interface broadcast data request event where interface and the 3rd class data structure, wherein, request of data event is used for please Ask the of the unit stored in the second attribute information of the background map stored in primary sources structure, secondary sources structure Second attribute information of the event stored in two attribute informations and the 3rd class data structure;Second receiving submodule 2826, use The background stored in the primary sources structure that the panel proxy server response data request event for receiving the first interface returns 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 3rd class number that second attribute information of the unit of storage and the panel proxy server response data request event at the 3rd 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 performing the embodiment of the present application 1 In step S20822, the broadcast submodule 2824 in the embodiment can be used for performing the step in the embodiment of the present application 1 S20824, the second receiving submodule 2826 in the embodiment, it can be used for performing the step in the embodiment of the present application 1 S20826, the integration submodule 2828 in the embodiment can be used for performing the step S20828 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that corresponding step is realized, but not It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
As a kind of optional embodiment, object to be edited is unit, and unit can include at least one of:Card, Role, stage property etc..Figure 21 is the schematic diagram of the optional map editing device of another kind according to embodiments of the present invention, such as Figure 21 institutes Show, the embodiment 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 into editable object, its In, the edit operation is the operation performed to the editable object, and the unit is being converted into the editable object There is the first form before;Detection unit 254, for detecting the edit operation performed to the editable object, wherein, When performing the edit operation to the editable object or the editable object is performed the edit operation it Afterwards, the unit is converted into the unit with the second form.
It should be noted that the converting unit 252 in the embodiment can be used for performing the step in the embodiment of the present application 1 S2052, the detection unit 254 in the embodiment can be used for performing the step S2054 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that corresponding step is realized, but not It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
As a kind of optional embodiment, Figure 22 is the optional map editing device of another kind according to embodiments of the present invention Schematic diagram, as shown in figure 22, object to be edited is card, and adjustment unit 26 can include:First receiving module 261, is used for The first edit operation performed to card is received, wherein, the first edit operation is used to indicate card being moved to from first position The second place;First adjusting module 263, for being adjusted the attribute information of card from the first attribute information according to the first edit operation Whole is the second attribute information, wherein, the second attribute information is used for instruction card memorial tablet in card storehouse, or, card is not positioned at card In board storehouse, or, position of the card in card storehouse, or, card is located in first area, wherein, first area is set It may move for card.
It should be noted that the first receiving module 261 in the embodiment can be used for performing in the embodiment of the present application 1 Step S2061, the first adjusting module 263 in the embodiment can be used for performing the step S2063 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that corresponding step is realized, but not It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
As a kind of optional embodiment, Figure 23 is the optional map editing device of another kind according to embodiments of the present invention Schematic diagram, as shown in figure 23, object to be edited is game fighting bout, and adjustment unit 26 can include:Second receiving module 262, for receive to game fighting bout perform the second edit operation, wherein, the second edit operation be used for indicate increase or Person reduces the quantity of game fighting bout;Second adjusting 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 that game fighting returns The quantity of conjunction.
It should be noted that the second receiving module 262 in the embodiment can be used for performing in the embodiment of the present application 1 Step S2062, the second adjusting module 264 in the embodiment can be used for performing the step S2064 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that corresponding step is realized, but not It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software.
As a kind of optional embodiment, Figure 24 is the optional map editing device of another kind according to embodiments of the present invention Schematic diagram, as shown in figure 24, object to be edited can be game fighting bout, and adjustment unit 26 can also include:3rd connects Module 266 is received, for receiving the 3rd edit operation performed to game fighting bout, wherein, the 3rd edit operation is used to indicate Configure the NPC dialogues of game fighting bout;3rd adjusting module 268, for according to the 3rd 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 indicating with postponing The NPC dialogues of game fighting bout.
It should be noted that the 3rd receiving module 266 in the embodiment can be used for performing in the embodiment of the present application 1 Step S2066, the 3rd adjusting module 268 in the embodiment can be used for performing the step S2068 in the embodiment of the present application 1.
Herein it should be noted that above-mentioned module is identical with example and application scenarios that corresponding step is realized, but not It is limited to the disclosure of that of above-described embodiment 1.It should be noted that above-mentioned module as a part for device may operate in as It in hardware environment shown in Fig. 1, can be realized, can also be realized by hardware by software, wherein, hardware environment includes network Environment.
By above-mentioned module, the map_editor that can be solved in correlation technique needs in editing interface manual creation Object in figure layer and map layer causes the relatively low technical problem of map formation efficiency, and then improves map formation efficiency Technique effect.
Embodiment 3
According to embodiments of the present invention, a kind of server or terminal for being used to implement above-mentioned map edit method is additionally provided.
Figure 25 is a kind of structured flowchart of terminal according to embodiments of the present invention, and as shown in figure 25, the terminal can include: One or more (one is only shown in figure) processor 201, memory 203 and transmitting devices 205 are (in such as above-mentioned embodiment Dispensing device), as shown in figure 25, the terminal can also include input-output equipment 207.
Wherein, memory 203 can be used for storage software program and module, such as the map edit side in the embodiment of the present invention Programmed instruction/module corresponding to method and device, processor 201 by operation be stored in software program in memory 203 and Module, so as to perform various function application and data processing, that is, realize above-mentioned map edit method.Memory 203 can wrap Include high speed random access memory, nonvolatile memory can also be included, 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 that journey is set, these remote memories can pass through network connection to terminal.The example of above-mentioned network includes but unlimited In internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 205 is used to data are received or sent via network, can be also used for processor with Data transfer between memory.Above-mentioned network instantiation may include cable network and wireless network.In an example, Transmitting device 205 includes a network adapter (Network Interface Controller, NIC), and it can pass through netting twine It is connected with other network equipments with router so as to be communicated with internet or LAN.In an example, transmission dress It is radio frequency (Radio Frequency, RF) module to put 205, and it is used to wirelessly be communicated with internet.
Wherein, specifically, memory 203 is used to store application program.
Processor 201 can call the application program that memory 203 stores by transmitting device 205, to perform following steps Suddenly:The first map file is loaded, obtains map datum, wherein, the first map file is used to indicate map to be edited, map datum Include the attribute information of multiple editable objects and editable object in map to be edited;Search operation is received, wherein, search Operation includes search key, and search operation is used to indicate to search for object to be edited from multiple editable objects, to be edited right The title of elephant matches 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 For indicating the map to be edited after editing.
Processor 201 is additionally operable to perform following step:First map file is subjected to serializing processing;After serializing First map file is parsed, and obtains map datum;And map datum is classified, multiple data structures are obtained, its In, multiple data structures include primary sources structure, secondary sources structure and the 3rd class data structure, wherein, first Class data structure is used for the background map information for storing map to be edited, and secondary sources structure is used to store map to be edited Unit information, the 3rd class data structure is used to store the event information that occurs on map to be edited.
Processor 201 is additionally operable to perform following step:Editable object includes background map, unit, event, wherein: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 As for event when, the attribute information of object to be edited is being adjusted to the from the first attribute information according to the edit operation that detects After two attribute informations, the second attribute information of event is stored in the 3rd class data structure.
Processor 201 is additionally operable to perform following step:By the second category of the background map stored in primary sources structure The event stored in second attribute information of the unit stored in property information, secondary sources structure and the 3rd class data structure The second attribute information be integrated into long text;Long text is converted into the second map file of XML format.
Processor 201 is additionally operable to perform following step:Triggering command is received, wherein, triggering command is used to indicate from first The second attribute information of background map is obtained in class data structure, the second attribute of acquisition unit is believed from secondary sources structure Breath and the second attribute information that event is obtained from the 3rd class data structure;Respectively to first where primary sources structure The 3rd interface broadcast data request where second contact surface and the 3rd class data structure where interface, secondary sources structure Event, wherein, request of data event is used for the second attribute information of the background map for asking to store in primary sources structure, the Second category of the event stored in the second attribute information of the unit stored in two class data structures and the 3rd class data structure Property information;Receive the back of the body 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 Second attribute information of the unit of middle storage and the 3rd of the panel proxy server response data request event return at the 3rd interface the 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 additionally operable to perform 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 into editable object, wherein, edit operation For the operation performed to editable object, unit has the first form before editable object is converted into;Detection pair can compile The edit operation that object performs is collected, wherein, performed when being operated to editable object executive editor or to editable object After edit operation, unit is converted into the unit with the second form.
Processor 201 is additionally operable to perform following step:Object to be edited is card, receives the first editor performed to card Operation, wherein, the first edit operation is used to indicate card being moved to the second place from first position;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 for instruction card Memorial tablet in card storehouse, or, card not be located at card storehouse in, or, position of the card in card storehouse, or, card position In in first area, wherein, first area is arranged to card and may move.
Processor 201 is additionally operable to perform following step:Object to be edited is game fighting bout, receives and game fighting is returned The second edit operation performed is closed, 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 by the second attribute information from the first attribute information according to the second edit operation, its In, the second attribute information is used for the quantity for indicating game fighting bout.
Processor 201 is additionally operable to perform following step:Object to be edited is game fighting bout, receives and game fighting is returned The 3rd edit operation performed is closed, wherein, the 3rd edit operation is used for the NPC dialogues for indicating configuration game fighting bout;According to The attribute information of game fighting bout is adjusted to the second attribute information by the 3rd edit operation from the first attribute information, wherein, the Two attribute informations are used to indicate the NPC dialogues with the game fighting bout postponed.
Using the embodiment of the present invention, there is provided a kind of scheme of map edit.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 indicating the map after editing finally is generated according to the attribute information after adjustment, has reached quick editor and life Into the purpose of map, so solve the map_editor in correlation technique need in editing interface manual creation map layer and Object on map layer causes the relatively low technical problem of map formation efficiency, has reached the technology effect for improving map formation efficiency Fruit.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment will not be repeated here.
It will appreciated by the skilled person that the structure shown in Figure 25 is only to illustrate, terminal can be smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, palm PC and mobile internet device (Mobile Internet Devices, MID), the terminal device such as PAD.Figure 25 it does not cause to limit to the structure of above-mentioned electronic installation.For example, terminal is also It may include more either less components (such as network interface, display device etc.) than shown in Figure 25 or have and Figure 25 institutes Show different configurations.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To be completed by program come command terminal device-dependent hardware, the program can be stored in a computer-readable recording medium In, storage medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can For performing the program code of map edit method.
Alternatively, in the present embodiment, above-mentioned storage medium can be located at multiple in the network shown in above-described embodiment On at least one network equipment in the network equipment.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
S1, the first map file is loaded, obtains map datum, wherein, the first map file is used to indicate map to be edited, Map datum includes the attribute information of multiple the editable objects and editable object in map to be edited;
S2, receive search operation, wherein, search operation includes search key, search operation be used for instruction from it is multiple can Object to be edited is searched in edit object, the title of object to be edited matches with search key;
S3, the attribute information of object to be edited is adjusted to second from the first attribute information according to the edit operation detected Attribute information;
S4, the second map file is generated according to the second attribute information, wherein, the second map file is used for after indicating editor Map to be edited.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:By the first ground picture and text Part carries out serializing processing;The first map file after serializing is parsed, obtains map datum;And to map datum Classified, obtain multiple data structures, wherein, multiple data structures include primary sources structure, secondary sources structure And the 3rd class data structure, wherein, primary sources structure is used for the background map information for storing map to be edited, the second class Data structure is used to store the unit information on map to be edited, and the 3rd class data structure is used to store to occur on map to be edited Event information.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Editable object bag Background map, unit, event are included, wherein:When object to be edited is background map, will be treated according to the edit operation detected The attribute information of edit object believes the second attribute of background map after the first attribute information is adjusted to the second attribute information Breath is stored in primary sources structure;, will be to be edited in the edit operation that basis detects when object to be edited is unit Second attribute information of unit is stored in by the attribute information of object after the first attribute information is adjusted to the second attribute information 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 Second attribute information of event is stored in the 3rd class number by property information after the first attribute information is adjusted to the second attribute information According in structure.
Alternatively, storage medium is also configured to the program code that storage is used to perform 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 3rd second attribute information of the event stored in class data structure be integrated into long text;Long text is converted into XML format The second map file.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Receive triggering command, Wherein, triggering command is used to indicate obtaining the second attribute information of background map from primary sources structure, from he second-class number The second attribute information of event is obtained according to the second attribute information that unit is obtained in structure and from the 3rd class data structure;Point Not to the first interface where primary sources structure, the second contact surface where secondary sources structure and the 3rd class data knot The 3rd interface broadcast data request event where structure, wherein, request of data event is used to ask to deposit in primary sources structure The second attribute information and the 3rd 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 Second attribute information of the background map stored in the primary sources structure returned, the panel proxy server response data of second contact surface Second attribute information of the unit stored in the secondary sources structure that request event returns and the panel agency at the 3rd interface Second attribute information of the event stored in the 3rd class data structure that device response data request event returns;The back of the body 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.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Detected 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 performed to editable object, and unit is being converted into editable object There is the first form before;The edit operation performed to editable object is detected, wherein, grasped to editable object executive editor When making or after being operated to editable object executive editor, unit is converted into the unit with the second form.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Object to be edited is Card, the first edit operation performed to card is received, wherein, the first edit operation is used to indicate to move card from first position Move to the second place;The attribute information of card is adjusted to by the second attribute letter from the first attribute information according to the first edit operation Breath, wherein, the second attribute information is used for instruction card memorial tablet in card storehouse, or, card is not located in card storehouse, or, card Position of the board in card storehouse, or, card is located in first area, wherein, first area is arranged to card and may move.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Object to be edited is Game fighting bout, the second edit operation performed to game fighting bout is received, wherein, the second edit operation is used to indicate to increase 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 be adjusted to the second attribute information, wherein, the second attribute information is used to indicate the quantity of game fighting bout.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Object to be edited is Game fighting bout, the 3rd edit operation performed to game fighting bout is received, wherein, the 3rd edit operation is matched somebody with somebody for instruction Put the NPC dialogues of game fighting bout;The attribute information of game fighting bout is believed from the first attribute according to the 3rd edit operation Breath is adjusted to the second attribute information, wherein, the second attribute information is used to indicate the NPC dialogues with the game fighting bout postponed.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2 Example, the present embodiment will not be repeated here.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and is used as independent product Sale or in use, the storage medium that above computer can be read can be stored in.Based on such understanding, skill of the invention The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are causing one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, can be by others side Formula is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, and only one Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (18)

  1. A kind of 1. map edit method, it is characterised in that including:
    The first map file is loaded, obtains map datum, wherein, first map file is used to indicate map to be edited, institute Stating map datum includes the attribute information of multiple editable objects and the editable object in the map to be edited;
    Search operation is received, wherein, the search operation includes search key, and the search operation is used to indicate from described more Object to be edited is searched in individual editable object, the title of the object to be edited matches with the search key;
    The attribute information of the object to be edited is adjusted to by the second category from the first attribute information according to the edit operation detected Property information;And
    Second map file is generated according to second attribute information, wherein, second map file is used for after indicating editor The map to be edited.
  2. 2. according to the method for claim 1, it is characterised in that the first map file of loading, obtaining map datum includes:
    First map file is subjected to serializing processing;
    First map file after serializing is parsed, obtains the map datum;And
    The map datum is classified, obtains multiple data structures, wherein, the multiple data structure includes he first-class numbert According to structure, secondary sources structure and the 3rd class data structure, wherein, the primary sources structure is used to store described treat The background map information of edit map, the secondary sources structure are used to store the unit information on the map to be edited, The 3rd class data structure is used to store the event information occurred on the map to be edited.
  3. 3. according to the method for claim 2, it is characterised in that the object to be edited includes background map, unit, thing Part, wherein:
    When the object to be edited is the background map, according to the edit operation that detects by the object to be edited After the first attribute information is adjusted to the second attribute information, methods described also includes attribute information: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 the first attribute information is adjusted to the second attribute information, methods described also includes information: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 the first attribute information is adjusted to the second attribute information, methods described also includes information:By the second attribute of the event Information is stored in the 3rd class data structure.
  4. 4. according to the method for claim 3, it is characterised in that the second map file is generated according to second attribute information Including:
    By the second attribute information of the background map stored in the primary sources structure, the secondary sources structure Second category of the event stored in the second attribute information of the unit of middle storage and the 3rd class data structure Property information integration is long text;
    The long text is converted into second map file of XML format.
  5. 5. according to the method for claim 4, it is characterised 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 class data structures, which is integrated into long text, to be included:
    Triggering command is received, wherein, the triggering command is used to indicate to obtain the background from the primary sources structure Second attribute information of map, the second attribute information for obtaining from the secondary sources structure unit and from described The second attribute information of the event is obtained in 3rd 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 3rd interface broadcast data request event where the 3rd class data structure, wherein, the request of data event is used for In second attribute information of the background map for asking to store in the primary sources structure, the secondary sources structure Second attribute of the event stored in the second attribute information of the unit of storage and the 3rd 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 The second attribute information of the unit stored in the secondary sources structure that part returns and the face at the 3rd interface Plate proxy server responds the second category of the event stored in the 3rd 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.
  6. 6. according to the method for claim 1, it is characterised in that the object to be edited be unit, the unit including with It is at least one lower:Card, role, stage property, wherein, the attribute of the object to be edited is being believed according to the edit operation detected Before breath is adjusted to the second attribute information from the first attribute information, methods described also includes:
    By the Conversion of measurement unit into editable object, wherein, the edit operation is the operation performed to the editable object, The unit has the first form before the editable object is converted into;
    The edit operation performed to the editable object is detected, wherein, the volume is being performed to the editable object Collect when operating or after the edit operation is performed to the editable object, the unit is converted into the second lattice The unit of formula.
  7. 7. according to the method for claim 1, it is characterised in that 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 included by volume operation:
    The first edit operation performed to the card is received, wherein, first edit operation is used to indicate the card The second place 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 that the card is located in card storehouse, or, the card not position In the card storehouse, or, position of the card in the card storehouse, or, the card is located in first area, Wherein, the first area is arranged to the card and may move.
  8. 8. according to the method for claim 1, it is characterised in that 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 by the edit operation measured from the first attribute information to be included:
    The second edit operation performed to the game fighting bout is received, wherein, second edit operation is used to indicate to increase 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 for the quantity for indicating the game fighting bout.
  9. 9. according to the method for claim 8, it is characterised 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 and also include:
    The 3rd edit operation performed to the game fighting bout is received, wherein, the 3rd edit operation is matched somebody with somebody for instruction Put the NPC dialogues of the game fighting bout;
    The attribute information of the game fighting bout is adjusted to from first attribute information according to the 3rd edit operation Second attribute information, wherein, second attribute information is used to indicate NPC pairs with the game fighting bout postponed Words.
  10. A kind of 10. map edit device, it is characterised in that including:
    Loading unit, for loading the first map file, map datum is obtained, wherein, first map file is used to indicate 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, the search operation includes search key, and the search operation is used Object to be edited is searched for from the multiple editable object in instruction, the title of the object to be edited and the search are crucial Word matches;
    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 The map to be edited after instruction is edited.
  11. 11. device according to claim 10, it is characterised in that the loading unit includes:
    First conversion module, for first map file to be carried out into serializing processing;
    Parsing module, for being parsed to first map file after serializing, obtain the map datum;And
    Sort module, for classifying to the map datum, multiple data structures are obtained, wherein, the multiple data knot Structure includes primary sources structure, secondary sources structure and the 3rd class data structure, wherein, the primary sources structure For storing the background map information of the map to be edited, the secondary sources structure is used to store the map to be edited On unit information, the 3rd class data structure is used to store the event information that occurs on the map to be edited.
  12. 12. device according to claim 11, it is characterised in that the object to be edited includes background map, unit, thing Part, wherein, described device also includes:
    First memory cell, for when the object to be edited is the background map, according to the edit operation detected By the attribute information of the object to be edited after the first attribute information is adjusted to the second attribute information, by the background map The second attribute information be stored in the primary sources structure;
    Second memory cell, for when the object to be edited is the unit, according to the edit operation detected by institute The attribute information of object to be edited is stated after the first attribute information is adjusted to the second attribute information, by the second category of the unit Property information is stored in the secondary sources structure;
    3rd memory cell, for when the object to be edited is the event, according to the edit operation detected by institute The attribute information of object to be edited is stated after the first attribute information is adjusted to the second attribute information, by the second category of the event Property information is stored in the 3rd class data structure.
  13. 13. device according to claim 12, it is characterised in that the generation unit includes:
    Module is integrated, it is the second attribute information for the background map that 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 3rd class data structure The second attribute information for stating event is integrated into long text;
    Second conversion module, for the long text to be converted into second map file of XML format.
  14. 14. device according to claim 13, it is characterised in that the integration module 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 3rd class data structure;
    Submodule is broadcasted, for respectively to the first interface where the primary sources structure, the secondary sources structure The 3rd interface broadcast data request event where the second contact surface at place and the 3rd class data structure, wherein, it is described Request of data event is used for the second attribute information, described for the background map for asking to store in the primary sources structure The institute stored in second attribute information of the unit stored in secondary sources structure and the 3rd 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 Second attribute information of the background map stored in the primary sources structure, the panel proxy server of 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 3rd interface is responded and stored in the 3rd class data structure that the request of data event returns The event the second attribute information;
    Submodule is integrated, for the second attribute of the second attribute information of the background map received, the unit to be believed Breath and the second attribute information of the event are integrated into long text.
  15. 15. device according to claim 10, it is characterised in that the object to be edited is unit, and the unit includes At least one of:Card, role, stage property, wherein, described device also includes:
    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 into editable object, wherein, the edit operation is to described The operation that editable object performs, the unit have the first form before the editable object is converted into;
    Detection unit, for detecting the edit operation performed to the editable object, wherein, to the editable pair During as performing the edit operation or after the edit operation is performed to the editable object, the unit is changed For the unit with the second form.
  16. 16. device according to claim 10, it is characterised in that the object to be edited is card, the adjustment unit Including:
    First receiving module, for receiving the first edit operation performed to the card, wherein, first edit operation is used The card is moved to the second place from first position in instruction;
    First adjusting 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, second attribute information is used to indicate that the card is located in card storehouse, or Person, the card are not located in the card storehouse, or, position of the card in the card storehouse, or, the card In first area, wherein, the first area is arranged to the card and may move.
  17. 17. device according to claim 10, it is characterised in that the object to be edited is game fighting bout, described Adjustment unit includes:
    Second receiving module, for receiving the second edit operation performed 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 adjusting 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 that the game fighting returns The quantity of conjunction.
  18. 18. device according to claim 17, it is characterised in that the adjustment unit also includes:
    3rd receiving module, for receiving the 3rd edit operation performed to the game fighting bout, wherein, the described 3rd compiles Operation is collected to be used to indicate that the NPC for configuring the game fighting bout talks with;
    3rd adjusting module, for according to the 3rd 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 trip with postponing The NPC dialogues of play battle bout.
CN201610466983.7A 2016-06-23 2016-06-23 Map edit method and apparatus Active CN107544972B (en)

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 true CN107544972A (en) 2018-01-05
CN107544972B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108786112A (en) * 2018-04-26 2018-11-13 腾讯科技(上海)有限公司 A kind of application scenarios configuration method, device and storage medium
CN109821242A (en) * 2019-01-16 2019-05-31 福建省天奕网络科技有限公司 Map visualization edit methods and its system
CN110075520A (en) * 2019-04-24 2019-08-02 苏州亿歌网络科技有限公司 The method, system and device of quick search resource in map
CN110309239A (en) * 2018-03-13 2019-10-08 北京京东尚科信息技术有限公司 A kind of visualized map edit methods and device
CN110992813A (en) * 2019-12-25 2020-04-10 江苏徐工工程机械研究院有限公司 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
CN112543954A (en) * 2018-08-10 2021-03-23 索尼半导体解决方案公司 Information processing device, terminal device, information processing method, and information processing program
CN116304164A (en) * 2023-05-17 2023-06-23 成都数联云算科技有限公司 Map editing method, system, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584835A (en) * 2003-08-22 2005-02-23 英业达股份有限公司 Programm content editing system
CN102460440A (en) * 2009-06-01 2012-05-16 谷歌公司 Searching methods and devices
CN104898953A (en) * 2015-06-16 2015-09-09 深圳市腾讯计算机系统有限公司 Touch screen based control method and device
US20160001184A1 (en) * 2014-07-04 2016-01-07 Trendy Entertainment Multi-platform overlay and library system and methods
CN105260100A (en) * 2015-09-29 2016-01-20 腾讯科技(深圳)有限公司 Information processing method, terminal and computer storage medium
CN105511873A (en) * 2015-12-02 2016-04-20 网易(杭州)网络有限公司 User interface control display method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584835A (en) * 2003-08-22 2005-02-23 英业达股份有限公司 Programm content editing system
CN102460440A (en) * 2009-06-01 2012-05-16 谷歌公司 Searching methods and devices
US20160001184A1 (en) * 2014-07-04 2016-01-07 Trendy Entertainment Multi-platform overlay and library system and methods
CN104898953A (en) * 2015-06-16 2015-09-09 深圳市腾讯计算机系统有限公司 Touch screen based control method and device
CN105260100A (en) * 2015-09-29 2016-01-20 腾讯科技(深圳)有限公司 Information processing method, terminal and computer storage medium
CN105511873A (en) * 2015-12-02 2016-04-20 网易(杭州)网络有限公司 User interface control display method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309239A (en) * 2018-03-13 2019-10-08 北京京东尚科信息技术有限公司 A kind of visualized map edit methods and device
CN108786112A (en) * 2018-04-26 2018-11-13 腾讯科技(上海)有限公司 A kind of application scenarios configuration method, device and storage medium
CN108786112B (en) * 2018-04-26 2024-03-12 腾讯科技(上海)有限公司 Application scene configuration method, device and storage medium
CN112543954A (en) * 2018-08-10 2021-03-23 索尼半导体解决方案公司 Information processing device, terminal device, information processing method, and information processing program
CN109821242A (en) * 2019-01-16 2019-05-31 福建省天奕网络科技有限公司 Map visualization edit methods and its system
CN109821242B (en) * 2019-01-16 2022-04-01 福建省天奕网络科技有限公司 Map visual editing method and system
CN110075520A (en) * 2019-04-24 2019-08-02 苏州亿歌网络科技有限公司 The method, system and device of quick search resource in map
CN110075520B (en) * 2019-04-24 2020-05-01 苏州亿歌网络科技有限公司 Method, system and device for quickly searching resources in game map
CN110992813A (en) * 2019-12-25 2020-04-10 江苏徐工工程机械研究院有限公司 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
CN116304164A (en) * 2023-05-17 2023-06-23 成都数联云算科技有限公司 Map editing method, system, equipment and medium
CN116304164B (en) * 2023-05-17 2023-11-10 成都数联云算科技有限公司 Map editing method, system, equipment and medium

Also Published As

Publication number Publication date
CN107544972B (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN107544972A (en) Map edit method and apparatus
Cook Practical machine learning with H2O: powerful, scalable techniques for deep learning and AI
CN107992458A (en) The generation method and device of form rule
CN107308646A (en) It is determined that method, device and the storage medium of matching object
CN107071554B (en) Method for recognizing semantics and device
CN107341548A (en) A kind of data processing method, device and electronic equipment
CN113617034B (en) Array capacity recommendation method, device, equipment and computer readable storage medium
CN110263187A (en) Draw this recognition methods, device, storage medium and computer equipment
CN107648853A (en) Display target object method, device and storage medium in interface
CN109582882A (en) Search result shows method, apparatus and electronic equipment
CN109918641A (en) Article theme ingredient breakdown method, apparatus, equipment and storage medium
CN110297897A (en) Question and answer processing method and Related product
CN107145538A (en) List data querying method, device and system
CN109960487A (en) A kind of method and apparatus of extracting object
CN110517656A (en) Lyrics rhythm generation method, equipment, storage medium and device
CN110286910A (en) File transplantation method, device, equipment and storage medium
CN101364233A (en) Management system and management method for searching network resource
CN107609065A (en) One kind game classification method, apparatus and electronic equipment
CN108491232A (en) The method and system of control are loaded in voice dialogue platform
Lee Programming Sudoku
CN109999497A (en) The control method and device of virtual objects, storage medium and electronic device
CN106020748A (en) Display control method, dislay control apparatus, and display apparatus
CN109766494A (en) Problem answers are to extending method, device, equipment and computer readable storage medium
CN109343913A (en) A kind of game behavior tree control method
CN108992923A (en) Resource allocation method and device, 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