mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:13:09 +08:00
b717d9148f
* add renderer to ccgame, add camera component * apply stash * fix predefine.js * add renderable and rendersystem * fix format * fix debug * fix run errors * renderer can clear now
20 lines
386 B
JavaScript
20 lines
386 B
JavaScript
import Component from '../../Components/CCComponent';
|
|
|
|
export default class RenderableComponent extends Component {
|
|
constructor() {
|
|
super();
|
|
this._system = null;
|
|
this._scene = null;
|
|
}
|
|
|
|
// todo add implementation
|
|
get renderSystem() {
|
|
return this._system;
|
|
}
|
|
|
|
// todo add scene
|
|
get scene() {
|
|
return this._scene;
|
|
}
|
|
};
|