2018-04-09 09:35:04 +02:00
|
|
|
/**
|
2019-07-25 22:22:32 +02:00
|
|
|
* R3.Clock
|
|
|
|
* @param apiComponent
|
2018-04-09 09:35:04 +02:00
|
|
|
* @constructor
|
|
|
|
*/
|
|
|
|
R3.Clock = function(
|
2019-07-25 22:22:32 +02:00
|
|
|
apiComponent
|
2018-04-09 09:35:04 +02:00
|
|
|
) {
|
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
__RUNTIME_COMPONENT__;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
__UPGRADE_TO_RUNTIME__;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
} ;
|
|
|
|
|
|
|
|
R3.Clock.prototype = Object.create(R3.Component.prototype);
|
|
|
|
R3.Clock.prototype.constructor = R3.Clock;
|
|
|
|
|
|
|
|
/**
|
2019-07-25 22:22:32 +02:00
|
|
|
* R3.Clock.prototype.createInstance
|
2018-04-09 09:35:04 +02:00
|
|
|
*/
|
|
|
|
R3.Clock.prototype.createInstance = function() {
|
|
|
|
|
2019-07-25 22:22:32 +02:00
|
|
|
this.instance = this.graphics.Clock();
|
2018-04-09 09:35:04 +02:00
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
__CREATE_INSTANCE__;
|
2018-04-09 09:35:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2019-07-25 22:22:32 +02:00
|
|
|
* R3.Clock.prototype.updateInstance
|
|
|
|
* @param property
|
2018-04-09 09:35:04 +02:00
|
|
|
*/
|
2019-07-25 22:22:32 +02:00
|
|
|
R3.Clock.prototype.updateInstance = function(property) {
|
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
__UPDATE_INSTANCE;
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
R3.Clock.prototype.getDelta = function() {
|
|
|
|
|
2019-10-06 21:11:18 +02:00
|
|
|
return this.instance.getDelta();
|
2018-04-09 09:35:04 +02:00
|
|
|
|
|
|
|
};
|