Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

GodotDFA

An asset by BTOTHER
The page banner background of a mountain and forest
GodotDFA hero image

Quick Information

0 ratings
GodotDFA icon image
BTOTHER
GodotDFA

GDScript DFA algorithm implementation

Supported Engine Version
4.2
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

GodotDFA

啥?

GDScript DFA algorithm implementation

DFA 算法的 GDSript 实现。

使用前请先在 Dfa.gd 中修改默认敏感词位置(DEFAULT_BLOCK_WORDS_PATH 变量)。

咋用?

@onready var yes_btn:Button = %YesBtn
@onready var dfa:DFA = $DFA as DFA


func _ready() -> void:
    yes_btn.pressed.connect(func():
        if line_edit.text == "":
            return

        if line_edit.text.length() > 7:
            show_popup("名字太长", "玩家名最长七个字")
            return

        if dfa.is_block_word(line_edit.text.dedent()):
            show_popup("违禁词", "名称包含违禁词汇,请修改")
            return

GDScript DFA algorithm implementation

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
GodotDFA icon image
BTOTHER
GodotDFA

GDScript DFA algorithm implementation

Supported Engine Version
4.2
Version String
0.0.1
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers