-
-
Notifications
You must be signed in to change notification settings - Fork 107
perMessage
Extends: Reference
Contains details about the way to seek through the game for the Requested things to count. This is sent to ScriptPer to initiate it.
var per_seek: String
var script_owner
Card type, but cannot type to avoid cyclic dependency
var per_definitions: Dictionary
var trigger_object
var subjects: Array
This is the subject selected by the task from which this per message originates
var prev_subjects: Array
This is the subject selected by the task from which this per message originates These are the prev_subject which were sent to the task from which this per message originates
var found_things: int
-
Getter:
count_found_things
This is the subject selected by the task from which this per message originates These are the prev_subject which were sent to the task from which this per message originates
func _init(_per_seek: String, _script_owner, _per_definitions: Dictionary, _trigger_object = null, _subjects: Array, _prev_subjects: Array) -> void
Why do we send each element isolated, instead of just sending the ScriptTask object from which we extract them directly, I hear you ask? Because this class can also be generated as part of a ScriptObject's subject methods, which does not utilize a ScriptTask object
func count_found_things() -> int
Returns the amount of things the calling script is trying to count.