mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-18 15:02:09 +00:00
粒子发射器序列化。
This commit is contained in:
parent
d2996ff480
commit
0488222dba
@ -0,0 +1,30 @@
|
||||
import BaseSerializer from '../BaseSerializer';
|
||||
import MeshSerializer from '../core/MeshSerializer';
|
||||
|
||||
/**
|
||||
* ParticleEmitterSerializer
|
||||
* @author tengge / https://github.com/tengge1
|
||||
*/
|
||||
function ParticleEmitterSerializer() {
|
||||
BaseSerializer.call(this);
|
||||
}
|
||||
|
||||
ParticleEmitterSerializer.prototype = Object.create(BaseSerializer.prototype);
|
||||
ParticleEmitterSerializer.prototype.constructor = ParticleEmitterSerializer;
|
||||
|
||||
ParticleEmitterSerializer.prototype.toJSON = function (obj) {
|
||||
var json = MeshSerializer.prototype.toJSON.call(this, obj);
|
||||
|
||||
debugger
|
||||
|
||||
return json;
|
||||
};
|
||||
|
||||
ParticleEmitterSerializer.prototype.fromJSON = function (json, parent, camera) {
|
||||
|
||||
debugger
|
||||
|
||||
return obj.mesh;
|
||||
};
|
||||
|
||||
export default ParticleEmitterSerializer;
|
||||
Loading…
x
Reference in New Issue
Block a user