44 lines
671 B
JavaScript
44 lines
671 B
JavaScript
/**
|
|
* R3.Clock
|
|
* @param apiComponent
|
|
* @constructor
|
|
*/
|
|
R3.Clock = function(
|
|
apiComponent
|
|
) {
|
|
|
|
__RUNTIME_COMPONENT__;
|
|
|
|
__UPGRADE_TO_RUNTIME__;
|
|
|
|
} ;
|
|
|
|
R3.Clock.prototype = Object.create(R3.Component.prototype);
|
|
R3.Clock.prototype.constructor = R3.Clock;
|
|
|
|
/**
|
|
* R3.Clock.prototype.createInstance
|
|
*/
|
|
R3.Clock.prototype.createInstance = function() {
|
|
|
|
this.instance = this.graphics.Clock();
|
|
|
|
__CREATE_INSTANCE__;
|
|
};
|
|
|
|
/**
|
|
* R3.Clock.prototype.updateInstance
|
|
* @param property
|
|
*/
|
|
R3.Clock.prototype.updateInstance = function(property) {
|
|
|
|
__UPDATE_INSTANCE;
|
|
|
|
};
|
|
|
|
R3.Clock.prototype.getDelta = function() {
|
|
|
|
return this.instance.getDelta();
|
|
|
|
};
|