Back to project page mobius.
The source code is released under:
MIT License
If you think the Android project mobius listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sgtcodfish.mobiusListing.components; // www . j a va 2s . c o m import com.artemis.Component; import com.artemis.Entity; import com.artemis.World; /** * @author Ashley Davis (SgtCoDFish) */ public class ChildLinked implements Component { public Entity parentEntity = null; public ChildLinked() { } @Override public void reset() { parentEntity = null; } public static void makeChild(World world, Entity parent, Entity child) { ChildLinked childLink = world.createComponent(ChildLinked.class); childLink.parentEntity = parent; child.addComponent(childLink); } }