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 XmlNode |
exportPathData(PathData data)
Create a path data from its node.
|
static XmlNode |
exports(Map<String,PathData> pathData)
Export the pathfindable data to node.
|
static PathData |
importPathData(XmlNode 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 XmlNode exports(Map<String,PathData> pathData)
pathData
- The pathfindable data.LionEngineException
- If unable to read node.public static PathData importPathData(XmlNode node)
node
- The pathfinding node.LionEngineException
- If error when reading path data.Copyright © 2016 Byron 3D Games Studio. All rights reserved.