Rogue: Savage Rats, a retro-themed dungeon crawler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
rogue-savage-rats/src/mightypork/gamecore/util/math/constraints/vect/caching/VectCache.java

37 lines
575 B

package mightypork.gamecore.util.math.constraints.vect.caching;
import mightypork.gamecore.util.annot.DefaultImpl;
import mightypork.gamecore.util.math.constraints.vect.Vect;
/**
* Vect cache implementation
*
* @author Ondřej Hruška (MightyPork)
*/
public class VectCache extends AbstractVectCache {
private final Vect source;
public VectCache(Vect source)
{
this.source = source;
enableDigestCaching(true);
}
@Override
public Vect getCacheSource()
{
return source;
}
@Override
@DefaultImpl
public void onConstraintChanged()
{
}
}