Last active
December 15, 2015 09:39
-
-
Save gamebuilderstudio/5240249 to your computer and use it in GitHub Desktop.
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.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