Last active
December 15, 2015 09:58
-
-
Save gamebuilderstudio/5241901 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 | |
{ | |
import com.gbs.plugins.components.CustomGameEngineComponent; | |
import com.gbs.utils.ClassRegistrar; | |
import com.gbs.utils.ClassRegistrarTypes; | |
public class CustomComponentClassList | |
{ | |
public function CustomComponentClassList(pluginUID : String = "_*_") | |
{ | |
//Define the custom game engine component | |
ClassRegistrar.instance.registerClass(CustomGameEngineComponent, ClassRegistrarTypes.COMPONENTS); | |
//If you create custom game actions or states in your plugin you can | |
//register them here by setting the class type to ClassRegistrarTypes.ACTIONS and you can give it | |
//Custom Name by passing a string. | |
ClassRegistrar.instance.registerClass(MethodInvoker, pluginUID, ClassRegistrarTypes.ACTIONS, "Call Method"); | |
//You can also define states to be included in the State Machine state type dropdown | |
ClassRegistrar.instance.registerClass(BasicState, pluginUID, ClassRegistrarTypes.STATES,"GenericState"); | |
//Every class in your plugin needs to be listed here so that it can be included in the final build | |
//and so that dependencies can be assesed. | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment