Add game source, converter pipeline, and web port
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* com.jme3.renderer.queue.RenderQueue$ShadowMode
|
||||
* com.jme3.scene.Node
|
||||
* com.jme3.scene.Spatial
|
||||
*/
|
||||
package mygame;
|
||||
|
||||
import com.jme3.renderer.queue.RenderQueue;
|
||||
import com.jme3.scene.Node;
|
||||
import com.jme3.scene.Spatial;
|
||||
|
||||
public abstract class Interactive
|
||||
extends Node {
|
||||
public Spatial model;
|
||||
public Node wholeBody;
|
||||
|
||||
public Interactive(String name) {
|
||||
super(name);
|
||||
this.setShadowMode(RenderQueue.ShadowMode.Cast);
|
||||
this.wholeBody = new Node(name);
|
||||
this.attachChild((Spatial)this.wholeBody);
|
||||
}
|
||||
|
||||
public Spatial getModel() {
|
||||
return this.model;
|
||||
}
|
||||
|
||||
public void setModel(Spatial model) {
|
||||
this.model = model;
|
||||
this.setupModel();
|
||||
this.wholeBody.attachChild(model);
|
||||
}
|
||||
|
||||
abstract void setupModel();
|
||||
}
|
||||
Reference in New Issue
Block a user