Class RouteFactory
Use this class to create instances of Route on server.
Inheritance
System.Object
RouteFactory
Namespace: Eco.Simulation.RouteProbing
Assembly: Eco.Simulation.dll
Syntax
public static class RouteFactory : Object
Remarks
On client Route should only be created by deserialization.
Methods
Create(TraversalData, Vector3, IEnumerable<Vector3>, Boolean)
Creates a route, with the given traversal style, starting facing, and ground points.
Declaration
public static Route Create(TraversalData traversal, Vector3 facing, IEnumerable<Vector3> groundPoints, bool smooth = false)
Parameters
Type | Name | Description |
---|---|---|
TraversalData | traversal | |
System.Numerics.Vector3 | facing | Direction agent is facing when starting the route. |
System.Collections.Generic.IEnumerable<System.Numerics.Vector3> | groundPoints | List of block positions, and the route will be above them, so each point is incremented in Y. |
System.Boolean | smooth |
Returns
Type | Description |
---|---|
Route |
CreateBasic(TraversalData, Vector3, Vector3, Vector3)
Make a basic route between two points.
Declaration
public static Route CreateBasic(TraversalData traversal, Vector3 facing, Vector3 start, Vector3 end)
Parameters
Type | Name | Description |
---|---|---|
TraversalData | traversal | |
System.Numerics.Vector3 | facing | |
System.Numerics.Vector3 | start | |
System.Numerics.Vector3 | end |
Returns
Type | Description |
---|---|
Route |