CN108043029B - Logic control method and device - Google Patents

Logic control method and device Download PDF

Info

Publication number
CN108043029B
CN108043029B CN201711401137.8A CN201711401137A CN108043029B CN 108043029 B CN108043029 B CN 108043029B CN 201711401137 A CN201711401137 A CN 201711401137A CN 108043029 B CN108043029 B CN 108043029B
Authority
CN
China
Prior art keywords
node
time axis
data
behavior
map
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711401137.8A
Other languages
Chinese (zh)
Other versions
CN108043029A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201711401137.8A priority Critical patent/CN108043029B/en
Publication of CN108043029A publication Critical patent/CN108043029A/en
Application granted granted Critical
Publication of CN108043029B publication Critical patent/CN108043029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6009Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Programmable Controllers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a logic control method and a logic control device. The method comprises the following steps: running a first node graph instance corresponding to a first node graph in a behavior flow, wherein the behavior flow is logic for processing a series of behaviors; if the time axis node in the first node graph is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance; in the running process of the time axis example, if the node map key frame on the time axis is run, extracting second node map data corresponding to the node map key frame from the data of the behavior stream; and instantiating a second node graph corresponding to the node graph key frame by using second node graph data to obtain a second node graph instance, and operating the second node graph instance. Through the application, the technical problem that various limitations exist in the manufacturing technology in the related art is solved.

Description

Logic control method and device
Technical Field
The present application relates to the field of logic control technologies, and in particular, to a logic control method and apparatus.
Background
The traditional skill making is realized by matching a skill state machine with a table. The program writes the skill flow in advance, and controls the expression of each skill state node through the table entry. In the way of manufacturing technology, state machines are found to have various limitations, for example, difficult to expand: a single node in the state machine is extremely complex, comprises a plurality of branch logics, is controlled by switches, and is controlled according to table entries, so that a new node is not easy to realize; the state machine generally has a fixed state control flow, and a set of state machine nodes are often rewritten to realize a certain complex flow skill; there is no time management: the state machine has no time management system and can only delay jumping through an indirect Timer. Such delayed jumps are difficult to control via entries, requiring a programmer to write a delay time; no parallelism: only one node can be operated at a time, and the logic has no parallel. No duplicate: the state machines cannot run in multiple copies, and two sets of state machines can not be separated from one node in a multithreading-like mode to run simultaneously.
Aiming at the technical problems of various limitations in the manufacturing technology in the related art, no effective solution is provided at present.
Disclosure of Invention
The present application mainly aims to provide a logic control method and apparatus to solve the technical problems of various limitations in the related art in the manufacturing technology.
In order to achieve the above object, according to one aspect of the present application, there is provided a logic control method. The method comprises the following steps: running a first node graph instance corresponding to a first node graph in a behavior flow, wherein the behavior flow is logic of a series of behavior processing; if the time axis node in the first node graph is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance; in the operation process of the time axis example, if a node map key frame on the time axis is operated, extracting second node map data corresponding to the node map key frame from the data of the behavior stream; and instantiating a second node graph corresponding to the node graph key frame by using the second node graph data to obtain a second node graph example, and operating the second node graph example.
Further, if the time axis node in the first node map is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance, where the obtaining of the time axis instance includes: determining that all parent nodes of the timeline node are released; extracting data corresponding to a time axis included in the time axis node from the data of the behavior stream; and creating an operation unit, and storing the data corresponding to the time axis into the operation unit to instantiate the time axis to obtain a time axis example.
Further, before extracting data corresponding to a timeline included in the timeline node from the data of the behavior stream, the method further includes: determining whether each parent node of the timeline nodes is a blocking node or a non-blocking node; for a father node which is a blocking node in the time axis nodes, after the father node finishes running, waiting for a trigger event to trigger the father node to release, wherein the trigger event is at least one of the following events: time triggering and event triggering; for a father node which is a non-blocking node in the time axis nodes, after the father node finishes operation, the father node is released; and after the parent node of the blocking node and the parent node of the non-blocking node are released, determining to extract data corresponding to the time axis included by the time axis node from the data of the behavior stream.
Further, the method comprises: and if all nodes in the node graph existing in the behavior flow are released, deleting the node graph instance.
Further, the method comprises: and if all key frames in the time axis in the behavior stream are operated completely, deleting the time axis example.
Further, the node map includes a plurality of functional nodes, where the functional nodes are logical carriers, and running a first node map instance corresponding to a first node map in a behavior flow includes: running a function node of a first node graph in a behavior flow; and operating the logic corresponding to the functional node.
Further, the timeline includes a plurality of non-node graph key frames, and the running process of the timeline instance includes: and if the logic of the non-node image key frame on the time axis is operated, operating the logic corresponding to the non-node image key frame.
In order to achieve the above object, according to another aspect of the present application, there is provided a logic control apparatus. The device includes: the running unit is used for running a first node graph instance corresponding to a first node graph in a behavior flow, wherein the behavior flow is logic for processing a series of behaviors; a first obtaining unit, configured to, when a time axis node in the node map is activated, extract data corresponding to a time axis of the time axis node from data of the behavior stream, and instantiate the time axis node to obtain a time axis instance; an extracting unit, configured to extract, in an operation process of the time axis instance, second node map data corresponding to a node map key frame from data of the behavior stream if the node map key frame on the time axis is operated; and the second obtaining unit is configured to instantiate a second node map corresponding to the node map key frame by using the second node map data to obtain a second node map instance, and run the second node map instance.
Further, the first obtaining unit further includes: a determining module for determining that all parent nodes of the timeline node are released; the extraction module is used for extracting data corresponding to a time axis included by the time axis node from the data of the behavior stream; and the acquisition module is used for creating an operation unit and storing the data corresponding to the time axis into the operation unit so as to instantiate the time axis to obtain a time axis instance.
Further, the apparatus further comprises: a first determining unit, configured to determine whether each parent node of the timeline nodes is a blocking node or a non-blocking node before extracting data corresponding to a timeline included in the timeline nodes from data of the behavior stream; a waiting unit, configured to wait for a parent node, which is a blocking node in the timeline node, to trigger release of the parent node after the parent node finishes running, where the trigger event is at least one of the following events: time triggering and event triggering; a releasing unit, configured to release, for a parent node that is a non-blocking node in the timeline nodes, the parent node after the parent node finishes operating; and the second determining unit is used for determining to extract the data corresponding to the time axis included by the time axis node from the data of the behavior stream after the parent node of the blocking node and the parent node of the non-blocking node are released.
In order to achieve the above object, according to another aspect of the present application, there is provided a processor, wherein the processor is configured to execute a program, and the program executes to execute any one of the logic control methods.
In order to achieve the above object, according to another aspect of the present application, there is provided a storage medium characterized in that the storage medium includes a stored program, wherein the program executes any one of the logic control methods.
Through the application, the following steps are adopted: running a first node graph instance corresponding to a first node graph in a behavior flow, wherein the behavior flow is logic for processing a series of behaviors; if the time axis node in the first node graph is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance; in the running process of the time axis example, if the node map key frame on the time axis is run, extracting second node map data corresponding to the node map key frame from the data of the behavior stream; and instantiating a second node graph corresponding to the node graph key frame by using second node graph data to obtain a second node graph instance, and operating the second node graph instance, so that the technical problems of various limitations in the related art during manufacturing technology are solved. Because the behavior flow is composed of a multi-node graph and a plurality of time axes, the logic is dispersed into the nodes of each node graph and the key frames of each time axis, the function design of each node or key frame is single, the logic is not coupled, and the logic can be combined at will, thereby achieving the effects of easy expansion of logic control, time management, parallelism and multi-copy.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a logic control method provided according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a node diagram in an alternative logic control method provided in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of a time axis in an alternative logic control method provided in accordance with an embodiment of the present application;
FIG. 4 is a schematic diagram of behavior flow logic in an alternative logic control method provided in accordance with an embodiment of the present application;
FIG. 5 is a schematic diagram of a node in an alternative logic control method provided in accordance with an embodiment of the present application; and
fig. 6 is a schematic diagram of a logic control apparatus provided in accordance with an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
a node map can be understood as a set of node map data, from which many node map instances can be generated, a node map instance being a real unit of operation, similar to classes and instances of classes in a program. The node graph is formed by nodes and connecting lines among the nodes.
A timeline can also be understood as a set of timeline data from which many timeline instances can be generated, which are true units of operation, similar to classes and instances of classes in programs. Here, the key frame is data on a time axis, and the time axis itself is composed of the key frame. The time axis and the node graph have no relation per se and are two concepts which operate independently. Only, some nodes in the node map contain a time axis, and when the nodes are operated, an example of the time axis is generated, and the time axis is operated. And a part of key frames also contain the node map, and an example is generated as well to run the node map.
The behavior flow can be understood as a management layer that integrates the node diagram and the upper layer of the time axis. All the node map data and the time axis data are in the management layer of the behavior flow, and each node and the key frame only have one ID, and the corresponding time axis and the node map are instantiated in the management layer of the behavior flow through the ID.
According to an embodiment of the present application, a logic control method is provided.
Fig. 1 is a flow chart of a logic control method according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, a first node map instance corresponding to a first node map in a behavior flow is run, where the behavior flow is a logic of a series of behavior processing.
It should be noted that the behavior stream is a logic composition format of a series of behavior processes, the behavior stream in the embodiment of the present application is composed of a multi-node graph and multiple time axes, and logic is dispersed in key frames of each node graph node and each time axis.
Step S102, if the time axis node in the first node diagram is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance.
As shown in fig. 2, the node graph is composed of a plurality of nodes and connecting lines between the nodes, and the nodes and the connecting lines form a directed acyclic graph. There is corresponding logic in each node that will run when the node is active. Regarding the node graph, the following specific implementation steps are provided: node format: the nodes comprise a plurality of entrances and a plurality of exits, the nodes connected from the entrances are father nodes of the current nodes, and the nodes connected from the exits are child nodes of the current nodes. Node state: a node contains three states, wait, activate, and release, respectively. Specifically, wait for: this state indicates that the node has not been activated, i.e., when the node logic has not been running. Activating: this state indicates that the node is in an active state, i.e., when node logic is running. Releasing: this state indicates that the node has run out. The running order of the node map is a topological order. The specific implementation mode is as follows: there is a run queue, and the nodes in the queue will run in sequence in the queue order. A node is placed at the end of the queue at the moment when all its parents are released, and at initialization, all nodes without parents are placed in the queue. The order in which its child nodes are put at the end of the queue, which is triggered by the release of the same node, is not controllable. For example, those nodes that have no parent at initialization, the order of placement into the queue is not controllable.
Step S103, in the operation process of the time axis instance, if a node map key frame on the time axis is operated, extracting second node map data corresponding to the node map key frame from the data of the behavior stream.
As shown in fig. 3, the time axis is composed of a plurality of tracks (tracks) and key frames (keyframes). The timeline may operate in two steps: the tracks are combined, and the function of the tracks is mainly to enable a skill maker to classify logic, and combine data on each track to run on one track. On the merged track, the logic contained in each key frame is run in time in turn.
Step S104, instantiating a second node map corresponding to the node map key frame by using second node map data to obtain a second node map instance, and operating the second node map instance.
For example, the root node of the behavior flow tree is a graph node, and if any graph node includes child nodes, the child nodes are necessarily axis nodes, and similarly, if any axis node includes child nodes, the child nodes are necessarily graph nodes. As shown in fig. 4, a node graph includes a class of nodes containing timelines, and the class of nodes generates a new timeline for editing, and creates and runs the timeline instance when activated. As shown in fig. 5, the two nodes both include a timeline, the first node generates a plurality of timeline instances during operation, the number of timeline instances is the number of targets attacked by the node, the timeline instances use the same timeline data, and the second node generates only one timeline instance. The method comprises the steps that a type of node map key frame is contained in a time shaft, a new node map is generated by the type of key frame to be edited, and when the key frame runs, the node map instance is created and run. In the design of the behavior flow, a node containing a time axis may generate a plurality of time axis instances, and a node map key frame only generates one node map instance.
In the embodiment of the application, the function design of each node and the key frame is single, coupling logic is not required, and the nodes and the key frame can be combined at will. The node graph of the behavior flow is an arbitrarily connected directed acyclic graph, and key frames can be freely configured on a time axis. The logic operation sequence is completely carried out through external configuration, the interior of the node is single pure logic, and the jump logic between the nodes is not involved, so that no combinational logic exists, and the quantity of different types of nodes is greatly reduced. Further, since the behavioral stream is native to the native self-timeline, the logic can be run in time order. The behavior flow natively supports parallel and multiple copies, and the operation of the behavior flow is based on a node graph and a time axis. The whole behavior flow is composed of pure data, the corresponding node graph instance and the corresponding time axis instance are dynamically created only at the moment of operation, and the automatic destruction is realized after the operation is finished. Since the running instance is not saved globally, only the configuration data is saved, so that each running node graph or time axis is as if the whole behavior stream is owned under the own view angle. Therefore, any node diagram or time axis can generate a plurality of running instances through the complete behavior stream configuration data, and a multi-copy form is formed. All copies are run in parallel, each copy having a complete set of behavioral flow logic. Due to expandability, the program does not need to solidify the skill flow in advance, and only needs to make a single node function, such as playing a special effect node. The operation of the node logic is completely controlled by a skill editor, so that the complexity of the node is greatly reduced, and the maintainability of the node is improved. The method also ensures that the program only needs to concern a certain single effect which is different among different skills and completely different, and the single effect is written with the nodes without logic writing for one skill. Due to the inclusion of time management, a skill editor can constantly polish details such as skill attack time, bullet firing time, trick play time point, and the like. Due to the parallel and multiple copies, a skill editor can attack multiple targets by the same skill, play corresponding special effects on the multiple targets, perform high-dimensional logic such as the next stage of attack and the like, and even release multiple skills at the same time. When the logic control method provided by the embodiment of the application is adopted to manufacture the skill, the workload of a program is not needed, the skill can be manufactured when no art resource exists, and after the art resource is in place, the node such as the playing special effect is only needed to be put into the behavior stream. That is, the embodiment of the application provides a logic control method which is easy to expand, has time management, and can be used for parallel and multiple copies.
It should be noted that, in the embodiment of the present application, the sequence of step S102 to step S104 is not limited, and each step is triggered by a specific event, for example, the time axis node is activated, the node map key frame is activated, the node is operated completely, the key frame is operated completely, and the like.
To sum up, in the logic control method provided in the embodiment of the present application, a first node diagram instance corresponding to a first node diagram in a behavior flow is run, where the behavior flow is a series of logic for behavior processing; if the time axis node in the first node graph is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance; in the running process of the time axis example, if the node map key frame on the time axis is run, extracting second node map data corresponding to the node map key frame from the data of the behavior stream; and instantiating a second node graph corresponding to the node graph key frame by using second node graph data to obtain a second node graph instance, and operating the second node graph instance, so that the technical problems of various limitations in the related art during manufacturing technology are solved. Because the behavior flow is composed of a multi-node graph and a plurality of time axes, the logic is dispersed into the nodes of each node graph and the key frames of each time axis, the function design of each node or key frame is single, the logic is not coupled, and the logic can be combined at will, thereby achieving the effects of easy expansion of logic control, time management, parallelism and multi-copy.
Optionally, in the logic control method provided in this embodiment of the present application, if a time axis node in the first node map is activated, extracting data corresponding to a time axis of the time axis node from data of the behavior stream, and instantiating the time axis node, so as to obtain a time axis instance, includes: determining that all parent nodes of the timeline node are released; extracting data corresponding to a time axis included by the time axis node from the data of the behavior stream; and creating an operation unit, and storing data corresponding to the time axis into the operation unit to instantiate the time axis to obtain a time axis example.
Optionally, in the logic control method provided in the embodiment of the present application, before extracting data corresponding to a timeline included in the timeline node from data of the behavior stream, the method further includes: determining whether each parent node of the timeline nodes is a blocking node or a non-blocking node; for a father node which is a blocking node in a time axis node, after the father node finishes running, waiting for a trigger event to trigger the father node to release, wherein the trigger event is at least one of the following events: time triggering and event triggering; for a father node which is a non-blocking node in the time axis node, after the father node finishes operation, the father node is released; and after the parent node of the blocking node and the parent node of the non-blocking node are released, determining to extract data corresponding to the time axis included by the time axis node from the data of the behavior stream.
The blocking node in the embodiment of the present application means that the node is not linear from activation to release, that is, the node is not released immediately after activation, and the node may be released after waiting for a time or waiting for an event, such as a singing node in fig. 2, and the node is released after the singing time is over. The non-blocking node is released immediately after the node logic runs, such as the animation playing node in fig. 2, and the node does not wait for the release of the animation after the animation playing is finished, but is released immediately after the playing logic is sent to the animation system.
Optionally, in the logic control method provided in the embodiment of the present application, the method includes: and if all the nodes in the node graph existing in the behavior flow are released, deleting the node graph instance.
That is, after all nodes of a certain node map are released, the node map instance is automatically destroyed.
Optionally, in the logic control method provided in the embodiment of the present application, the method includes: and if all key frames in the time axis in the behavior stream are completely operated, deleting the time axis example.
That is, after all the key frames on a certain timeline are run, the timeline instance is automatically destroyed.
Optionally, in the logic control method provided in the embodiment of the present application, the node map includes a plurality of function nodes, where a function node is a carrier of logic, and running the first node map instance corresponding to the first node map in the behavior flow includes: running a function node of a first node graph in a behavior flow; and executing logic corresponding to the functional node.
Optionally, in the logic control method provided in the embodiment of the present application, the time axis includes a plurality of non-node diagram key frames, and the running process of the time axis instance includes: and if the logic of the non-node image key frame on the time axis is operated, operating the logic corresponding to the non-node image key frame.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides a logic control device, and it should be noted that the logic control device according to the embodiment of the present application may be used to execute the logic control method provided in the embodiment of the present application. The logic control device provided in the embodiments of the present application is described below.
Fig. 6 is a schematic diagram of a logic control apparatus according to an embodiment of the present application. As shown in fig. 6, the apparatus includes: the device comprises an operation unit 10, a first acquisition unit 20, an extraction unit 30 and a second acquisition unit 40.
Specifically, the running unit 10 is configured to run a first node map instance corresponding to a first node map in a behavior flow, where the behavior flow is a series of logic for behavior processing.
The first obtaining unit 20 is configured to, when a time axis node in the node map is activated, extract data corresponding to a time axis of the time axis node from data of the behavior stream, and instantiate the time axis node to obtain a time axis instance.
The extracting unit 30 is configured to, in an operation process of the time axis example, extract second node map data corresponding to a node map key frame from data of the behavior stream if the node map key frame on the time axis is operated.
The second obtaining unit 40 is configured to instantiate a second node map corresponding to the node map key frame by using second node map data to obtain a second node map instance, and run the second node map instance.
In the logic control apparatus provided in the embodiment of the present application, an execution unit 10 executes a first node map instance corresponding to a first node map in a behavior flow, where the behavior flow is a series of logic for behavior processing; the first obtaining unit 20 extracts data corresponding to a time axis of a time axis node from data of a behavior stream when the time axis node in the node map is activated, instantiates the time axis node, and obtains a time axis instance; the extraction unit 30 extracts second node map data corresponding to the node map key frame from the data of the behavior stream if the node map key frame on the time axis is operated in the operation process of the time axis instance; the second obtaining unit 40 instantiates a second node map corresponding to the node map key frame by using the second node map data to obtain a second node map instance, and runs the second node map instance. Solves the technical problems of various limitations in the manufacturing technology in the prior art. Because the behavior flow is composed of a multi-node graph and a plurality of time axes, the logic is dispersed into the nodes of each node graph and the key frames of each time axis, the function design of each node or key frame is single, the logic is not coupled, and the logic can be combined at will, thereby achieving the effects of easy expansion of logic control, time management, parallelism and multi-copy.
Optionally, in the logic control apparatus provided in the embodiment of the present application, the first obtaining unit 20 further includes: a determining module for determining that all parent nodes of the timeline nodes are released; the extraction module is used for extracting data corresponding to a time axis included by the time axis node from the data of the behavior stream; and the acquisition module is used for creating the operation unit and storing the data corresponding to the time axis into the operation unit so as to instantiate the time axis to obtain a time axis example.
Optionally, in the logic control apparatus provided in this embodiment of the present application, the apparatus further includes: a first determination unit configured to determine whether each parent node of the timeline nodes is a blocking node or a non-blocking node before extracting data corresponding to a timeline included in the timeline nodes from data of the behavior stream; the waiting unit is used for waiting for a trigger event to trigger the release of a father node after the father node finishes running for the father node which is a blocking node in the time axis node, wherein the trigger event is at least one of the following events: time triggering and event triggering; the release unit is used for releasing a father node which is a non-blocking node in the time axis node after the father node finishes operation; and the second determining unit is used for determining to extract the data corresponding to the time axis included in the time axis node from the data of the behavior stream after the parent node of the blocking node and the parent node of the non-blocking node are released.
Optionally, the apparatus comprises: and the first deleting unit is used for deleting the node map instance when all the nodes in the node map are released in the action flow.
Optionally, the apparatus comprises: and the second deleting unit is used for deleting the time axis example when all the key frames in the time axis exist in the behavior stream and are completely operated.
Optionally, the node map includes a plurality of function nodes, where a function node is a logical carrier, and the first running unit is further configured to run the function node of the first node map in the behavior flow; and executing logic corresponding to the functional node.
Optionally, the time axis includes a plurality of non-node map key frames, and the third running unit is further configured to run logic included in the non-node map key frames under the condition that the non-node map key frame logic on the time axis runs.
The logic control device comprises a processor and a memory, the above-mentioned operation unit 10, the first obtaining unit 20, the extraction unit 30, the second obtaining unit 40, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. One or more than one kernel can be set, and the technical problem that various limitations exist in the manufacturing technology in the related technology is solved by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the logic control method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the logic control method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: running a first node graph instance corresponding to a first node graph in a behavior flow, wherein the behavior flow is logic for processing a series of behaviors; if the time axis node in the first node graph is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance; in the running process of the time axis example, if the node map key frame on the time axis is run, extracting second node map data corresponding to the node map key frame from the data of the behavior stream; and instantiating a second node graph corresponding to the node graph key frame by using second node graph data to obtain a second node graph instance, and operating the second node graph instance.
If the time axis node in the first node graph is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance, wherein the time axis instance comprises: determining that all parent nodes of the timeline node are released; extracting data corresponding to a time axis included by the time axis node from the data of the behavior stream; and creating an operation unit, and storing data corresponding to the time axis into the operation unit to instantiate the time axis to obtain a time axis example.
Before extracting data corresponding to a time axis included in the time axis node from the data of the behavior stream, the method further includes: determining whether each parent node of the timeline nodes is a blocking node or a non-blocking node; for a father node which is a blocking node in a time axis node, after the father node finishes running, waiting for a trigger event to trigger the father node to release, wherein the trigger event is at least one of the following events: time triggering and event triggering; for a father node which is a non-blocking node in the time axis node, after the father node finishes operation, the father node is released; and after the parent node of the blocking node and the parent node of the non-blocking node are released, determining to extract data corresponding to the time axis included by the time axis node from the data of the behavior stream.
The method comprises the following steps: and if all the nodes in the node graph existing in the behavior flow are released, deleting the node graph instance.
The method comprises the following steps: and if all key frames in the time axis in the behavior stream are completely operated, deleting the time axis example.
The node graph comprises a plurality of function nodes, wherein the function nodes are carriers of logic, and the running of a first node graph instance corresponding to a first node graph in the behavior flow comprises the following steps: running a function node of a first node graph in a behavior flow; and executing logic corresponding to the functional node.
The time axis comprises a plurality of non-node graph key frames, and the running process of the time axis example comprises the following steps: and if the logic of the non-node image key frame on the time axis is operated, operating the logic corresponding to the non-node image key frame. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: running a first node graph instance corresponding to a first node graph in a behavior flow, wherein the behavior flow is logic for processing a series of behaviors; if the time axis node in the first node graph is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance; in the running process of the time axis example, if the node map key frame on the time axis is run, extracting second node map data corresponding to the node map key frame from the data of the behavior stream; and instantiating a second node graph corresponding to the node graph key frame by using second node graph data to obtain a second node graph instance, and operating the second node graph instance.
If the time axis node in the first node graph is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance, wherein the time axis instance comprises: determining that all parent nodes of the timeline node are released; extracting data corresponding to a time axis included by the time axis node from the data of the behavior stream; and creating an operation unit, and storing data corresponding to the time axis into the operation unit to instantiate the time axis to obtain a time axis example.
Before extracting data corresponding to a time axis included in the time axis node from the data of the behavior stream, the method further includes: determining whether each parent node of the timeline nodes is a blocking node or a non-blocking node; for a father node which is a blocking node in a time axis node, after the father node finishes running, waiting for a trigger event to trigger the father node to release, wherein the trigger event is at least one of the following events: time triggering and event triggering; for a father node which is a non-blocking node in the time axis node, after the father node finishes operation, the father node is released; and after the parent node of the blocking node and the parent node of the non-blocking node are released, determining to extract data corresponding to the time axis included by the time axis node from the data of the behavior stream.
The method comprises the following steps: and if all the nodes in the node graph existing in the behavior flow are released, deleting the node graph instance.
The method comprises the following steps: and if all key frames in the time axis in the behavior stream are completely operated, deleting the time axis example.
The node graph comprises a plurality of function nodes, wherein the function nodes are carriers of logic, and the running of a first node graph instance corresponding to a first node graph in the behavior flow comprises the following steps: running a function node of a first node graph in a behavior flow; and executing logic corresponding to the functional node.
The time axis comprises a plurality of non-node graph key frames, and the running process of the time axis example comprises the following steps: and if the logic of the non-node image key frame on the time axis is operated, operating the logic corresponding to the non-node image key frame.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. A logic control method runs a first node graph instance corresponding to a first node graph in a behavior flow, wherein the behavior flow is a series of logic processed by behaviors, and the method is characterized by comprising the following steps:
if the time axis node in the first node graph is activated, extracting data corresponding to the time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance;
in the operation process of the time axis example, if a node map key frame on the time axis is operated, extracting second node map data corresponding to the node map key frame from the data of the behavior stream;
and instantiating a second node graph corresponding to the node graph key frame by using the second node graph data to obtain a second node graph example, and operating the second node graph example.
2. The method according to claim 1, wherein if a time axis node in the first node map is activated, extracting data corresponding to a time axis of the time axis node from the data of the behavior stream, and instantiating the time axis node to obtain a time axis instance comprises:
determining that all parent nodes of the timeline node are released;
extracting data corresponding to a time axis included in the time axis node from the data of the behavior stream;
and creating an operation unit, and storing the data corresponding to the time axis into the operation unit to instantiate the time axis to obtain a time axis example.
3. The method according to claim 2, wherein before extracting the data corresponding to the timeline included in the timeline node from the data of the behavior stream, the method further comprises:
determining whether each parent node of the timeline nodes is a blocking node or a non-blocking node;
for a father node which is a blocking node in the time axis nodes, after the father node finishes running, waiting for a trigger event to trigger the father node to release, wherein the trigger event is at least one of the following events: time triggering and event triggering;
for a father node which is a non-blocking node in the time axis nodes, after the father node finishes operation, the father node is released;
and after the parent node of the blocking node and the parent node of the non-blocking node are released, determining to extract data corresponding to the time axis included by the time axis node from the data of the behavior stream.
4. The method according to claim 1, characterized in that it comprises:
and if all nodes in the node graph existing in the behavior flow are released, deleting the node graph instance.
5. The method according to claim 1, characterized in that it comprises:
and if all key frames in the time axis in the behavior stream are operated completely, deleting the time axis example.
6. The method according to claim 1, wherein the node map comprises a plurality of function nodes, wherein the function nodes are logical bearers, and wherein running a first node map instance corresponding to a first node map in a behavior stream comprises:
running a function node of a first node graph in a behavior flow;
and operating the logic corresponding to the functional node.
7. The method according to claim 1, wherein the timeline includes a plurality of non-node graph key frames, and during the running of the timeline instance, the method includes:
and if the logic of the non-node image key frame on the time axis is operated, operating the logic corresponding to the non-node image key frame.
8. A logic control device comprises an execution unit, configured to execute a first node map instance corresponding to a first node map in a behavior flow, where the behavior flow is a series of logic for behavior processing, and the device further comprises:
a first obtaining unit, configured to, when a time axis node in the node map is activated, extract data corresponding to a time axis of the time axis node from data of the behavior stream, and instantiate the time axis node to obtain a time axis instance;
an extracting unit, configured to extract, in an operation process of the time axis instance, second node map data corresponding to a node map key frame from data of the behavior stream if the node map key frame on the time axis is operated;
and the second obtaining unit is configured to instantiate a second node map corresponding to the node map key frame by using the second node map data to obtain a second node map instance, and run the second node map instance.
9. The apparatus of claim 8, wherein the first obtaining unit further comprises:
a determining module for determining that all parent nodes of the timeline node are released;
the extraction module is used for extracting data corresponding to a time axis included by the time axis node from the data of the behavior stream;
and the acquisition module is used for creating an operation unit and storing the data corresponding to the time axis into the operation unit so as to instantiate the time axis to obtain a time axis instance.
10. The apparatus of claim 9, further comprising:
a first determining unit, configured to determine whether each parent node of the timeline nodes is a blocking node or a non-blocking node before extracting data corresponding to a timeline included in the timeline nodes from data of the behavior stream;
a waiting unit, configured to wait for a parent node, which is a blocking node in the timeline node, to trigger release of the parent node after the parent node finishes running, where the trigger event is at least one of the following events: time triggering and event triggering;
a releasing unit, configured to release, for a parent node that is a non-blocking node in the timeline nodes, the parent node after the parent node finishes operating;
and the second determining unit is used for determining to extract the data corresponding to the time axis included by the time axis node from the data of the behavior stream after the parent node of the blocking node and the parent node of the non-blocking node are released.
11. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the logic control method according to any one of claims 1 to 7 when running.
12. A storage medium characterized by comprising a stored program, wherein the program executes the logic control method according to any one of claims 1 to 7.
CN201711401137.8A 2017-12-22 2017-12-22 Logic control method and device Active CN108043029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711401137.8A CN108043029B (en) 2017-12-22 2017-12-22 Logic control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711401137.8A CN108043029B (en) 2017-12-22 2017-12-22 Logic control method and device

Publications (2)

Publication Number Publication Date
CN108043029A CN108043029A (en) 2018-05-18
CN108043029B true CN108043029B (en) 2021-04-27

Family

ID=62131328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711401137.8A Active CN108043029B (en) 2017-12-22 2017-12-22 Logic control method and device

Country Status (1)

Country Link
CN (1) CN108043029B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086185B (en) * 2018-07-19 2022-04-22 郑州云海信息技术有限公司 Fault detection method, device and equipment of storage cluster and storage medium
CN109529345A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 Game events implementation method and device
CN112190923B (en) * 2020-10-15 2024-05-14 网易(杭州)网络有限公司 Game event processing method in game, server and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102254335A (en) * 2011-07-01 2011-11-23 厦门吉比特网络技术股份有限公司 System and method for editing game characters
CN102441276A (en) * 2010-10-12 2012-05-09 索尼计算机娱乐公司 Using a portable gaming device to record or modify a game or application in real-time running on a home gaming system
US9443337B2 (en) * 2013-09-05 2016-09-13 Pullstring, Inc. Run-time techniques for playing large-scale cloud-based animations
CN106250100A (en) * 2016-08-15 2016-12-21 腾讯科技(深圳)有限公司 Analyzing logic control method and device
CN106237615A (en) * 2016-07-22 2016-12-21 广州云火信息科技有限公司 Many unity elements skill operation mode
CN106293761A (en) * 2016-08-17 2017-01-04 网易(杭州)网络有限公司 For generating game editing machine and plug-in unit and the method and device of data process
CN106530371A (en) * 2016-10-12 2017-03-22 网易(杭州)网络有限公司 Method and device for editing and playing animation
CN106991002A (en) * 2017-02-08 2017-07-28 网易无尾熊(杭州)科技有限公司 Method and apparatus for realizing Portable Batch System

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102441276A (en) * 2010-10-12 2012-05-09 索尼计算机娱乐公司 Using a portable gaming device to record or modify a game or application in real-time running on a home gaming system
CN102254335A (en) * 2011-07-01 2011-11-23 厦门吉比特网络技术股份有限公司 System and method for editing game characters
US9443337B2 (en) * 2013-09-05 2016-09-13 Pullstring, Inc. Run-time techniques for playing large-scale cloud-based animations
CN106237615A (en) * 2016-07-22 2016-12-21 广州云火信息科技有限公司 Many unity elements skill operation mode
CN106250100A (en) * 2016-08-15 2016-12-21 腾讯科技(深圳)有限公司 Analyzing logic control method and device
CN106293761A (en) * 2016-08-17 2017-01-04 网易(杭州)网络有限公司 For generating game editing machine and plug-in unit and the method and device of data process
CN106530371A (en) * 2016-10-12 2017-03-22 网易(杭州)网络有限公司 Method and device for editing and playing animation
CN106991002A (en) * 2017-02-08 2017-07-28 网易无尾熊(杭州)科技有限公司 Method and apparatus for realizing Portable Batch System

Also Published As

Publication number Publication date
CN108043029A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
US11249879B2 (en) Time-travel debugging with hot code replacement
CN107636612B (en) Application migration device, method and storage medium
CN108043029B (en) Logic control method and device
EP3350692A1 (en) Visual content development
CN101095112B (en) Mechanism to emulate user-level multithreading on an os-sequestered sequencer
CN106155778A (en) A kind of startup method and system of application container
WO2012129219A2 (en) Replication of machine instances in a computing environment
WO2006010812A2 (en) Method for controlling a software process, method and system for redistributing or continuing operation in a multi-computer architecture
US10585785B2 (en) Preservation of modifications after overlay removal from a container
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN112084488A (en) Application authority management method, device and system
CN109857516B (en) Cluster migration method and device based on container
CN107463426A (en) The method and device that virtual machine is cloned under a kind of KVM virtualization
EP4296854A1 (en) Application management method and apparatus
CN112000353A (en) Application running method and device and storage medium
KR20180100626A (en) GPU resource reconstruction method, user device, system, and storage medium
CN107977572B (en) Application program running method and device and intelligent terminal
CN110721474B (en) Method and device for editing game skills
CN106874063B (en) Resource recovery method and device
CN111078127A (en) Data migration method, system and device
KR101260934B1 (en) Method and system for application synchronization
CN111459573A (en) Method and device for starting intelligent contract execution environment
US20230185580A1 (en) Single node deployment of container platform
CN115686891A (en) Log playback control method, device and equipment
CN115617459A (en) Method, device and equipment for resource scheduling

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