bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/GhostPlayer.cs
2024-02-24 22:40:44 -05:00

39 lines
594 B
C#

using System.Collections.Generic;
using System.Xml.Serialization;
[XmlRoot("GhostPlayer")]
public class GhostPlayer
{
public class Coord
{
[XmlAttribute("x")]
public float x;
[XmlAttribute("y")]
public float y;
[XmlAttribute("z")]
public float z;
}
[XmlArrayItem("Coord")]
[XmlArray("Coords")]
protected List<Coord> Coords = new List<Coord>();
public List<Coord> PositionData
{
get
{
return Coords;
}
}
public void AddPosition(float x, float y, float z)
{
Coord coord = new Coord();
coord.x = x;
coord.y = y;
coord.z = z;
Coords.Add(coord);
}
}