public final class PathfindableConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BLOCK
Block attribute.
|
static String |
CATEGORY
Category attribute.
|
static String |
COST
Cost attribute.
|
static String |
MOVEMENT
Allowed movements node.
|
static String |
PATH
Path data node name.
|
static String |
PATHFINDABLE
Pathfindable node name.
|
Modifier and Type | Method and Description |
---|---|
static Xml |
exportPathData(PathData data)
Create a path data from its node.
|
static Xml |
exports(Map<String,PathData> pathData)
Export the pathfindable data to node.
|
static PathData |
importPathData(Xml node)
Create a path data from its node.
|
static Map<String,PathData> |
imports(Configurer configurer)
Import the pathfindable data from node.
|
public static final String PATHFINDABLE
public static final String PATH
public static final String CATEGORY
public static final String COST
public static final String BLOCK
public static final String MOVEMENT
public static Map<String,PathData> imports(Configurer configurer)
configurer
- The configurer reference.LionEngineException
- If unable to read node.public static Xml exports(Map<String,PathData> pathData)
pathData
- The pathfindable data.LionEngineException
- If unable to read node.public static PathData importPathData(Xml node)
node
- The pathfinding node.LionEngineException
- If error when reading path data.Copyright © 2017 Byron 3D Games Studio. All rights reserved.