本文整理汇总了C#中Track.SetTrack方法的典型用法代码示例。如果您正苦于以下问题:C# Track.SetTrack方法的具体用法?C# Track.SetTrack怎么用?C# Track.SetTrack使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Track
的用法示例。
在下文中一共展示了Track.SetTrack方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TrackTests
public TrackTests()
{
track = new Track("Test.gdb", "Test", "Belgium", 100, 95);
var points = new List<TrackPoint>
{
new TrackPoint(0, TrackPointType.SECTOR1, 1, 1, 1, new float[0], new float[0]),
new TrackPoint(10, TrackPointType.SECTOR1, 0.5f, 1, 1, new float[0], new float[0]),
new TrackPoint(20, TrackPointType.SECTOR1, 0, 1, 1, new float[0], new float[0]),
new TrackPoint(70, TrackPointType.SECTOR3, -0.5f, 0.5f, 1, new float[0], new float[0]),
new TrackPoint(80, TrackPointType.SECTOR3, 0, 0.5f, 1, new float[0], new float[0]),
new TrackPoint(90, TrackPointType.SECTOR3, 0.5f, 0.5f, 1, new float[0], new float[0]),
new TrackPoint(30, TrackPointType.SECTOR2, -0.5f, 1, 1, new float[0], new float[0]),
new TrackPoint(60, TrackPointType.SECTOR3, -1f, 0, 1, new float[0], new float[0]),
new TrackPoint(40, TrackPointType.SECTOR2, -1f, 1, 1, new float[0], new float[0]),
new TrackPoint(50, TrackPointType.SECTOR2, -1f, 0.5f, 1, new float[0], new float[0]),
new TrackPoint(202, TrackPointType.PITS, 1f, 0.5f, 1, new float[0], new float[0]),
new TrackPoint(-51, TrackPointType.PITS, 2f, -1f, 1, new float[0], new float[0]),
new TrackPoint(0, TrackPointType.GRID, 100f, 100f, 1, new float[0], new float[0])
};
track.SetTrack(points);
}