mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
aa29c19b74
* add renderer to ccgame, add camera component * apply stash * fix predefine.js * add renderable and rendersystem * fix format
19 lines
405 B
JavaScript
19 lines
405 B
JavaScript
import Component from '../../Components/CCComponent';
|
|
|
|
export default class RenderableComponent extends Component {
|
|
constructor() {
|
|
this._system = RenderableComponent.system;
|
|
this._scene = this._system.scene;
|
|
}
|
|
|
|
// todo add implementation
|
|
get renderSystem() {
|
|
return this._system;
|
|
}
|
|
|
|
// todo add scene
|
|
get scene() {
|
|
return this._scene;
|
|
}
|
|
};
|