This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExampleTest { | |
public static class PetOwner extends Component { | |
public PetOwner() {} | |
@LinkPolicy(LinkPolicy.Policy.CHECK_SOURCE_AND_TARGETS) | |
@EntityId public IntBag pets =new IntBag(); | |
} | |
Entity junkdog; | |
Entity yak; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.mostlyoriginal.plugin; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import static org.junit.Assert.*; | |
/** | |
* @author Daan van Yperen | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.artemis; | |
import java.util.HashMap; | |
/** | |
* @author Daan van Yperen | |
*/ | |
public class DebugWorld extends World { | |
final DebugLogStrategy logStrategy; | |
final HashMap<Integer, DebugComponent> debugComponents; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Tint extends Component implements Tweenable<Tint> { | |
@Override | |
public Tint tween(Tint a, Tint b, float value) { | |
final Interpolation linear = Interpolation.linear; | |
final Color colorA = a.color; | |
final Color colorB = b.color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Manages reference components to assets. | |
* | |
* - Adds asset reference component to entities with metadata component. | |
* - Reloads asset reference if removed. | |
* - Removes asset reference when metadata component is removed. | |
* | |
* @author Daan van Yperen | |
* | |
* @param <A> Identifying metadata component type. |