Skip to content

Commit

Permalink
Merge pull request #48 from HotariTobu:feat/HotariTobu-plus-one-conve…
Browse files Browse the repository at this point in the history
…rter

Add PlusOneConverter
  • Loading branch information
HotariTobu authored Jan 29, 2025
2 parents 16ac8f4 + 0452c69 commit df19407
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions addons/gd_data_binding/scripts/converters/plus_one_converter.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class_name PlusOneConverter
extends BindingConverter


func source_to_target(source_value: Variant) -> Variant:
return source_value + 1


func target_to_source(target_value: Variant) -> Variant:
return target_value - 1

0 comments on commit df19407

Please sign in to comment.