Unlock instant, AI-driven research and patent intelligence for your innovation.

Snapshot historical record operation method and device based on terrain editor

A technology of historical records and operation methods, which is applied in the field of snapshot-type historical record operation methods and devices, can solve the problems of long processing time and high performance consumption, and achieve the effect of low system consumption and high processing efficiency

Pending Publication Date: 2020-11-27
SHENZHEN DIANMAO TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0016] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a snapshot history record operation method and device based on a terrain editor, aiming at solving the problem of recovering data in snapshots in the terrain map editor of Unity in the prior art, It is necessary to traverse all elements every time. When the amount of data is large, the performance consumption is huge and the processing time is long.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Snapshot historical record operation method and device based on terrain editor
  • Snapshot historical record operation method and device based on terrain editor

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0072] The present invention also provides a specific embodiment of a snapshot history record operation method based on a terrain editor, specifically as follows:

[0073] Original data: {1, 2, 3, 4};

[0074] Operation 1: {1, 2, 3, 4, 5};

[0075] Operation 2: {1, 2, 4, 5};

[0076] Withdraw: {1, 2, 3, 4, 5};

[0077] The specific implementation method of the withdrawal operation is: the current data and the data in the previous step are subtracted to form the set that needs to be deleted;

[0078] {1, 2, 4, 5} - {1, 2, 3, 4, 5} = empty set

[0079] The data in the previous step is subtracted from the current data to form the set that needs to be added;

[0080] {1, 2, 3, 4, 5} - {1, 2, 4, 5} = {3}

[0081] If the set to be deleted is an empty set, no operation is required;

[0082] The set to be added is {3}, then directly add {3} to {1, 2, 4, 5};

[0083] The specific implementation method of redo is:

[0084] The difference operation between the current data and th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a snapshot historical record operation method and device based on a terrain editor, and the method comprises the steps: obtaining a modification operation of a user for the terrain editor, and storing all data after the modification operation; detecting a control operation, and obtaining a difference set between the topographic data in the previous step and the current topographic data, wherein the control operation comprises a revocation operation or a redo operation; and executing a corresponding response operation according to the difference set. According to the embodiment of the invention, the difference set between the current topographic data and the previous topographic data is obtained, the revocation operation or the redo operation is executed according tothe difference set, all elements do not need to be traversed, the system consumption is low, and the processing efficiency is high.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a method and device for operating snapshot history records based on terrain editors. Background technique [0002] All editors have history undo and redo functions, and the Unity-based terrain map editor is no exception. The general history has "command" and "snapshot". [0003] The "imperative" history record implements undo and redo, and the operation command (or method) is saved in the history record, and two commands are saved at a time. For each operation of the user, write a forward operation method and a reverse operation method, and submit them to a command executor uniformly. The command executor saves such a pair of methods and immediately forwards the method. When it is necessary to undo this step, execute the corresponding reverse operation method to return to the state before the current operation; when redoing, execute the forward operation method a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06T11/20G06T17/05G06T19/20G06F8/33G06F8/34
CPCG06T11/206G06T17/05G06T19/20G06F8/33G06F8/34
Inventor 李天驰孙悦杨育彬
Owner SHENZHEN DIANMAO TECH CO LTD