Roblox-File-Format/DataTypes/PathWaypoint.cs
CloneTrooper1019 9cfd5b2211 Initial commit.
There's a lot of code at play here, so I haven't tested it yet.
A good chunk of the components are available though.
2019-01-25 18:39:37 -06:00

30 lines
764 B
C#

using System;
using Roblox.Enums;
namespace Roblox.DataTypes
{
public struct PathWaypoint
{
public readonly Vector3 Position;
public readonly PathWaypointAction Action;
public PathWaypoint(Vector3? position)
{
Position = position ?? Vector3.Zero;
Action = PathWaypointAction.Walk;
}
public PathWaypoint(Vector3 position, PathWaypointAction action = PathWaypointAction.Walk)
{
Position = position;
Action = action;
}
public override string ToString()
{
Type PathWaypointAction = typeof(PathWaypointAction);
return '{' + Position + "} " + Enum.GetName(PathWaypointAction, Action);
}
}
}