Types
mysql-nav-edge: structuresource
Fields
mysql-save-flag: mysql-save-flag
runtime-id: uint32
runtime-node-id-1: int32
runtime-node-id-2: int32
temp-next-edge: mysql-nav-edge
nav_edge_id: uint32
nav_graph_id: uint32
nav_node_id_1: uint32
nav_node_id_2: uint32
directionality: nav-directionality
speed_limit: float
density: float
traffic_edge_flag: int32
nav_clock_mask: nav-clock-mask
nav_clock_type: nav-clock-type
width: float
minimap_edge_flag: nav-minimap-edge-flag
Methods
exec-sql!(obj: mysql-nav-edge) => symbolsource
Executes the respective SQL operation specified by `mysql-save-flag`, return value indicates success
mysql-nav-edge-array: inline-array-classsource
mysql-nav-graph: basicsource
Fields
type: type
nav_graph_id: uint32
node-array: mysql-nav-node-array
edge-array: mysql-nav-edge-array
visnode-array: mysql-nav-visnode-array
level-info-array-length: int32
level-info-last-lookup: int32
level-info-array: mysql-nav-graph-level-info
Methods
init-from-sql!(obj: mysql-nav-graph, arg0: string, arg1: string) => symbolsource
Query the database and initialize the mysql-nav-graph and all it's related components
exec-sql!: unknown
indexof-nav-node(obj: mysql-nav-graph, node-id: int) => intsource
Iterate through the `node-array` and return the index for the first mysql-nav-node whom's `nav_node_id` matches the provided id
returns `-1` if none is found
returns `-1` if none is found
indexof-nav-edge(obj: mysql-nav-graph, edge-id: int) => intsource
Iterate through the `edge-array` and return the index for the first mysql-nav-edge whom's `nav_edge_id` matches the provided id
returns `-1` if none is found
returns `-1` if none is found
alloc-new-node!(obj: mysql-nav-graph) => intsource
Allocates a new `[[mysql-nav-node]]`, if `node-array`'s `length` exceeds `3000` return `-1`
otherwise, return the new size of the array
otherwise, return the new size of the array
alloc-new-edge!(obj: mysql-nav-graph) => intsource
Allocates a new `[[mysql-nav-edge]]`, if `edge-array`'s `length` exceeds `5000` return `-1`
otherwise, return the new size of the array
otherwise, return the new size of the array
indexof-visnode(obj: mysql-nav-graph, edge-id: int, node-id: int) => intsource
Returns the index in the `visnode-array` whom's mysql-nav-visnode has the provided `runtime-edge-id` and `runtime-node-id`
if none exist, return `-1`
if none exist, return `-1`
alloc-new-visnode!(obj: mysql-nav-graph, edge-id: int, node-id: int) => intsource
Potentially allocates a new `[[mysql-nav-visnode]]`:
- if `visnode-array`'s `length` exceeds `3000` return `-1`
- otherwise, if the node already exists, TODO
- if the node does not already exist, create it!
- if `visnode-array`'s `length` exceeds `3000` return `-1`
- otherwise, if the node already exists, TODO
- if the node does not already exist, create it!
mysql-nav-graph-method-17(obj: mysql-nav-graph) => nonesource
lookup-level-info2(obj: mysql-nav-graph, arg0: mysql-nav-node, arg1: symbol) => mysql-nav-graph-level-infosource
TODO - this was originally called `lookup-level-info` but it clashes with the function defined in `level`
mysql-nav-graph-method-19: unknown
mysql-nav-graph-method-20(obj: mysql-nav-graph) => nonesource
mysql-nav-graph-level-info: structuresource
mysql-nav-node: structuresource
Fields
mysql-save-flag: mysql-save-flag
runtime-id: uint32
temp-edge-list: inline-array
level-node-index: int32
cam-dist: float
visible: symbol
nav_node_id: uint32
nav_graph_id: uint32
position: vector
level_name: symbol
angle: float
radius: float
nav_node_flag: nav-node-flag
nav_mesh_id: uint32
Methods
exec-sql!(obj: mysql-nav-node) => symbolsource
Executes the respective SQL operation specified by `mysql-save-flag`, return value indicates success
temp-edge-size(obj: mysql-nav-node) => intsource
Returns the number of mysql-nav-edge stored in the `temp-edge-list`
mysql-nav-node-array: inline-array-classsource
mysql-nav-visnode: structuresource
Fields
mysql-save-flag: mysql-save-flag
runtime-node-id: int32
runtime-edge-id: int32
nav_visnode_id: uint32
nav_graph_id: uint32
nav_node_id: uint32
nav_edge_id: uint32
Methods
exec-sql!(obj: mysql-nav-visnode) => symbolsource
Executes the respective SQL operation specified by `mysql-save-flag`, return value indicates success