mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Merge branch 'master' of https://github.com/photonstorm/phaser
This commit is contained in:
commit
0399ca178e
2 changed files with 20 additions and 12 deletions
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Class = require('../utils/Class');
|
var Class = require('../utils/Class');
|
||||||
var Components = require('./components');
|
var ComponentsToJSON = require('./components/ToJSON');
|
||||||
var DataManager = require('../data/DataManager');
|
var DataManager = require('../data/DataManager');
|
||||||
var EventEmitter = require('eventemitter3');
|
var EventEmitter = require('eventemitter3');
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ var GameObject = new Class({
|
||||||
*/
|
*/
|
||||||
toJSON: function ()
|
toJSON: function ()
|
||||||
{
|
{
|
||||||
return Components.ToJSON(this);
|
return ComponentsToJSON(this);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -7,8 +7,16 @@
|
||||||
var BaseCamera = require('../../cameras/2d/BaseCamera.js');
|
var BaseCamera = require('../../cameras/2d/BaseCamera.js');
|
||||||
var Class = require('../../utils/Class');
|
var Class = require('../../utils/Class');
|
||||||
var Commands = require('./Commands');
|
var Commands = require('./Commands');
|
||||||
var Components = require('../components');
|
var ComponentsAlpha = require('../components/Alpha');
|
||||||
var Ellipse = require('../../geom/ellipse/');
|
var ComponentsBlendMode = require('../components/BlendMode');
|
||||||
|
var ComponentsDepth = require('../components/Depth');
|
||||||
|
var ComponentsMask = require('../components/Mask');
|
||||||
|
var ComponentsPipeline = require('../components/Pipeline');
|
||||||
|
var ComponentsTransform = require('../components/Transform');
|
||||||
|
var ComponentsVisible = require('../components/Visible');
|
||||||
|
var ComponentsScrollFactor = require('../components/ScrollFactor');
|
||||||
|
|
||||||
|
var Ellipse = require('../../geom/ellipse/Ellipse');
|
||||||
var GameObject = require('../GameObject');
|
var GameObject = require('../GameObject');
|
||||||
var GetFastValue = require('../../utils/object/GetFastValue');
|
var GetFastValue = require('../../utils/object/GetFastValue');
|
||||||
var GetValue = require('../../utils/object/GetValue');
|
var GetValue = require('../../utils/object/GetValue');
|
||||||
|
@ -117,14 +125,14 @@ var Graphics = new Class({
|
||||||
Extends: GameObject,
|
Extends: GameObject,
|
||||||
|
|
||||||
Mixins: [
|
Mixins: [
|
||||||
Components.Alpha,
|
ComponentsAlpha,
|
||||||
Components.BlendMode,
|
ComponentsBlendMode,
|
||||||
Components.Depth,
|
ComponentsDepth,
|
||||||
Components.Mask,
|
ComponentsMask,
|
||||||
Components.Pipeline,
|
ComponentsPipeline,
|
||||||
Components.Transform,
|
ComponentsTransform,
|
||||||
Components.Visible,
|
ComponentsVisible,
|
||||||
Components.ScrollFactor,
|
ComponentsScrollFactor,
|
||||||
Render
|
Render
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue