Skip to content

Instantly share code, notes, and snippets.

@Varriount
Created August 15, 2012 04:04
Show Gist options
  • Save Varriount/3355760 to your computer and use it in GitHub Desktop.
Save Varriount/3355760 to your computer and use it in GitHub Desktop.
package com.varriount.arteme.components;
import com.artemis.Component;
/**
* A component which holds renderable objects.
* TODO Add type safety, explore for alternatives.
* @author Clay
*
*/
public abstract class RenderComponent<T> extends Component {
public T item;
protected void setItem(T item) {
this.item = item;
}
protected T getItem() {
return this.item;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment