Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Graph.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
16 class Graph: Managed
17 {
19  proto external bool HasNode(GraphNodeId nodeId);
21  proto external GraphNode GetNode(GraphNodeId nodeId);
23  proto external GraphNodeId AddNode(GraphNode graphNode);
28  proto external bool RemoveNode(GraphNodeId nodeId);
34  proto external bool RemoveNodes(notnull array<GraphNodeId> nodeIds);
36  proto external bool AddEdge(GraphNodeId node1, GraphEdge edge);
38  proto external GraphEdge GetEdge(GraphNodeId node1, GraphNodeId node2);
40  proto external int GetEdges(GraphNodeId node, out notnull array<ref GraphEdge> edges);
42  proto external bool RemoveEdge(GraphNodeId node1, GraphNodeId node2);
44  proto external bool HasEdge(GraphNodeId node1, GraphNodeId node2);
46  proto external int GetAdjacentNodes(GraphNodeId node, out notnull array<GraphNodeId> adjacentNodes);
48  proto void BFS(GraphNodeId startNode, func callback);
50  proto void DFS(GraphNodeId startNode, func callback);
51 
52  // callbacks
53 
54  event bool CanAddNode(GraphNode graphNode) { return true; };
55  event void OnNodeAdded(GraphNode graphNode);
56  event void OnNodeRemoved(GraphNode graphNode);
57  event bool CanAddEdge(GraphNode node1, GraphEdge edge) { return true; };
58  event void OnEdgeAdded(GraphNode node1, GraphEdge edge);
59  event void OnEdgeRemoved(GraphNode node1, GraphEdge edge);
60 }
61 
Graph
Definition: Graph.c:16
func
func
Definition: SCR_AIThreatSystem.c:5
GraphEdge
Used to represent any kind of edge inside of a graph.
Definition: GraphEdge.c:13
GraphNode
Definition: GraphNode.c:17
callback
DownloadConfigCallback callback