mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
doc: getTriggerFunction
This commit is contained in:
parent
0351c4fe94
commit
cee2346c42
@ -70,7 +70,10 @@ object UniqueTriggerActivation {
|
||||
return function.invoke()
|
||||
}
|
||||
|
||||
/** @return The action to be performed if possible, else null */
|
||||
/** @return The action to be performed if possible, else null
|
||||
* This is so the unit actions can be displayed as "disabled" if they won't actually do anything
|
||||
* Even if the action itself is performable, there are still cases where it can fail -
|
||||
* for example unit placement - which is why the action itself needs to return Boolean to indicate success */
|
||||
fun getTriggerFunction(
|
||||
unique: Unique,
|
||||
civInfo: Civilization,
|
||||
|
Loading…
x
Reference in New Issue
Block a user