r3-legacy/src/game-lib-d3-api-spline.js

27 lines
522 B
JavaScript
Raw Normal View History

2016-11-29 12:54:25 +01:00
/**
* API Spline
* @param id String
* @param name String
2016-12-15 14:53:39 +01:00
* @param vertices GameLib.API.Vector3[]
2016-11-29 12:54:25 +01:00
* @constructor
*/
GameLib.D3.API.Spline = function(
id,
name,
vertices
) {
2016-12-15 14:53:39 +01:00
if (GameLib.Utils.UndefinedOrNull(id)) {
id = GameLib.Utils.RandomId();
2016-11-29 12:54:25 +01:00
}
this.id = id;
2016-12-15 14:53:39 +01:00
if (GameLib.Utils.UndefinedOrNull(name)) {
name = 'Spline (unknown)';
2016-11-29 12:54:25 +01:00
}
this.name = name;
2016-12-15 14:53:39 +01:00
if (GameLib.Utils.UndefinedOrNull(vertices)) {
2016-11-29 12:54:25 +01:00
vertices = [];
}
this.vertices = vertices;
};