Skip to content

Instantly share code, notes, and snippets.

@gamebuilderstudio
Last active December 15, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gamebuilderstudio/5240249 to your computer and use it in GitHub Desktop.
Save gamebuilderstudio/5240249 to your computer and use it in GitHub Desktop.
package com.gbs.plugins.components
{
import com.pblabs.engine.entity.EntityComponent;
public final class CustomGameEngineComponent extends EntityComponent
{
public function CustomGameEngineComponent()
{
super();
}
//Called when this component is added to the parent entity
//Usually used for setup
override protected function onAdd():void
{
super.onAdd();
}
//Called whenever this component is removed from the parent Entity
override protected function onRemove():void
{
super.onRemove();
}
//Called everytime the entity list on the parent Entity changes
override protected function onReset():void
{
super.onReset();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment