Skip to content

Commit 4386767

Browse files
committed
Added break
1 parent cd2122f commit 4386767

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

nodes/statement/break.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"title": "Break",
3+
"color": [
4+
200,
5+
200,
6+
200
7+
],
8+
"type": "METHOD",
9+
"inputs": {},
10+
"outputs": []
11+
}

src/models/statement/Break.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from src.Node import Node, NodeType
2+
3+
class Break(Node):
4+
def __init__(self):
5+
super().__init__("nodes/statement/break.json")
6+
7+
def toLuau(self) -> str:
8+
return "break"

0 commit comments

Comments
 (0)