forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_script
reduz edited this page Feb 23, 2014
·
9 revisions
Inherits: Resource\n\n
Base class for scripts.
- bool ** can_instance ** ( ) const
- bool ** instance_has ** ( Object base_object ) const
- bool ** has_source_code ** ( ) const
- String ** get_source_code ** ( ) const
- void ** set_source_code ** ( String source )
- int ** reload ** ( )
Base class for scripts. Any script that is loaded becomes one of these resources, which can then create instances.
- bool ** can_instance ** ( ) const \ Return true if this script can be instance (ie not a library).
- bool ** instance_has ** ( Object base_object ) const \ Return true if a given object uses an instance of this script.
- bool ** has_source_code ** ( ) const \ Return true if the script contains source code.
- String ** get_source_code ** ( ) const \ Return the script source code (if available).
- void ** set_source_code ** ( String source ) \ Set the script source code.