Doloro GDK 22 .1.0 Beta
by Tauri Interactive
|
Base graph implementation logic.
Classes | |
class | RegistryOperationRevertException |
Exception operation that could cause registry operation revert, if supported. More... | |
Public Member Functions | |
delegate void | GraphsRegistryChangeHandler (Graph oldEntry, Graph newEntry) |
Delegate for an agent that handles. More... | |
Graph () | |
Creates standalone graph without outside connections. | |
virtual Vector3 | GetNodePosition (GraphNode node) |
Returns the node's point suggested by the graph logic. More... | |
virtual void | SetNodePosition (GraphNode node, Vector3 position) |
Defines world position for the certain graph node. More... | |
virtual GraphNode | Add () |
Adds new GraphNode to the graph. More... | |
virtual T | Add< T > () |
Adds new node to the graph. More... | |
virtual T | Add< T > (string signature) |
Adds new node to the graph. More... | |
void | Add (string signature) |
Creates new GraphNode. More... | |
void | Add (string signature, out GraphNode node) |
Creates new GraphNode. More... | |
virtual void | Add (GraphNode node) |
Adds new node to the graph. More... | |
virtual bool | Remove (GraphNode node) |
Removing node from the graph. More... | |
virtual bool | Contains (string nodeSignature) |
Checks is the node included to the graph. More... | |
virtual bool | Contains (GraphNode node) |
Checks is the node included to the graph. More... | |
virtual bool | Remove (string signature) |
Removing node from the graph. More... | |
virtual bool | TryGetNode (string signature, out GraphNode node) |
Tries to get graph`s node by the signature. More... | |
Connection | GetConnection (Guid connectionId) |
Returns descriptor for the Connection by id. More... | |
virtual void | GetObjectData (SerializationInfo info, StreamingContext context) |
override string | ToString () |
Returns graph info. More... | |
void | Clear () |
Clears entire graph from nodes. | |
void | CopyTo (GraphNode[] array, int arrayIndex) |
Copies graph nodes of the graph to array. More... | |
void | CopyTo (string[] array, int arrayIndex) |
Copies GraphNode.signature entries in graph to array. More... | |
virtual IEnumerator< GraphNode > | GetEnumerator () |
Enumerates nodes withing the graph. More... | |
Protected Member Functions | |
void | OnBinaryDataLoaded () |
Must be called within ctor(SerializationInfo info, StreamingContext context) after binary data deserialization. | |
Package Functions | |
Graph (SerializationInfo info, StreamingContext context) | |
void | ReleaseConnection (Guid id) |
Releases connection from internal registry. More... | |
void | SetConnectionInfo (Connection connection) |
Adds connection info to the registry. More... | |
Properties | |
Guid | id [get] |
Id of the graph into internal runtime registry. | |
int | Count [get] |
Count of nodes into the graph. | |
int | ConnectionsCount [get] |
Count of currently established connections into the graph. | |
GraphNode | this[string signature] [get] |
Dictionary< string, GraphNode > | nodes [get] |
Graph navigation map. More... | |
bool | IsReadOnly [get] |
Always false. | |
Events | |
Action< GraphNode > | NodeAdded |
Occurs when new node added to the graph via the API. | |
Action< GraphNode > | NodeRemoved |
Occurs when new node removed from the graph via the API. | |
static GraphsRegistryChangeHandler | GraphObsoleted |
Occurs when registry overridden with a new graph with id that already has been registered. More... | |
|
virtual |
Adds new GraphNode to the graph.
|
virtual |
Adds new node to the graph.
node | Node to add. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
void Doloro.Graphs.Graph.Add | ( | string | signature | ) |
Creates new GraphNode.
signature | Node signature. |
void Doloro.Graphs.Graph.Add | ( | string | signature, |
out GraphNode | node | ||
) |
Creates new GraphNode.
signature | Node signature. |
node | Created instance. |
|
virtual |
Adds new node to the graph.
T | Type of node to add. |
T | : | GraphNode | |
T | : | new() |
|
virtual |
Adds new node to the graph.
T | Type of node to add. |
signature | Node signature. |
T | : | GraphNode |
|
virtual |
Checks is the node included to the graph.
node | Node to check. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
|
virtual |
Checks is the node included to the graph.
nodeSignature | GraphNode.signature to search. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
void Doloro.Graphs.Graph.CopyTo | ( | GraphNode[] | array, |
int | arrayIndex | ||
) |
Copies graph nodes of the graph to array.
array | Destination array. |
arrayIndex | Start index at the destination array. |
void Doloro.Graphs.Graph.CopyTo | ( | string[] | array, |
int | arrayIndex | ||
) |
Copies GraphNode.signature entries in graph to array.
array | Destination array. |
arrayIndex | Insertion index at destination array. |
Connection Doloro.Graphs.Graph.GetConnection | ( | Guid | connectionId | ) |
Returns descriptor for the Connection by id.
connectionId | Id of the connection. |
|
virtual |
Enumerates nodes withing the graph.
|
virtual |
Returns the node's point suggested by the graph logic.
node | Target node. |
Delegate for an agent that handles.
oldEntry | Entry that excluded from the registry. |
newEntry | Graph that applied to the registry instead of an old one. |
|
package |
Releases connection from internal registry.
id | Connection.id to release. |
|
virtual |
Removing node from the graph.
node | Node to release. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
|
virtual |
Removing node from the graph.
signature | Signature of the node to release. |
Reimplemented in Doloro.Graphs.Fragmented.GraphsNetwork.
|
package |
Adds connection info to the registry.
connection | Connection to add. |
|
virtual |
Defines world position for the certain graph node.
node | Node to position declare. |
position | World position related to the node. |
override string Doloro.Graphs.Graph.ToString | ( | ) |
Returns graph info.
|
virtual |
Tries to get graph`s node by the signature.
signature | GraphNode.signature as access key. |
node | Node instance if found. |
|
getpackage |
Graph navigation map.
string
- GraphNode.signature <see cref="GraphNode"/>
- node instance.
|
static |
Occurs when registry overridden with a new graph with id that already has been registered.
Could occur when you loading the graph that has been loaded up to the moment from the binary data.