1
0
forked from 0ad/0ad
0ad/binaries/data/mods/public/simulation/components/RallyPoint.js
2010-08-05 10:20:47 +00:00

30 lines
455 B
JavaScript

function RallyPoint() {}
RallyPoint.prototype.Schema =
"<a:component/><empty/>";
RallyPoint.prototype.Init = function()
{
this.pos = undefined;
};
RallyPoint.prototype.SetPosition = function(x, z)
{
this.pos = {
"x": x,
"z": z
}
};
RallyPoint.prototype.Unset = function()
{
this.pos = undefined;
};
RallyPoint.prototype.GetPosition = function()
{
return this.pos;
};
Engine.RegisterComponentType(IID_RallyPoint, "RallyPoint", RallyPoint);