-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i have no idea what just happened :|
- Loading branch information
1 parent
eadf1b3
commit 158abe5
Showing
43 changed files
with
13,608 additions
and
12,325 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
KotlinFire/src/main/kotlin/io/github/flyingpig525/base/JsonData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package io.github.flyingpig525.base | ||
|
||
interface JsonData { | ||
fun getJsonData(): String | ||
fun getJsonData(): String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
KotlinFire/src/main/kotlin/io/github/flyingpig525/base/block/Block.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
KotlinFire/src/main/kotlin/io/github/flyingpig525/base/block/BracketBlock.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package io.github.flyingpig525.base.block | ||
|
||
import io.github.flyingpig525.base.JsonData | ||
import io.github.flyingpig525.base.item.Item | ||
|
||
class BracketBlock<T>(val open: Boolean = true, val type: String) : JsonData, Block<T>("bracket", mutableListOf(), "") where T : Item, T : JsonData { | ||
override fun getJsonData(): String { | ||
return """{ | ||
class BracketBlock<T>(val open: Boolean = true, val type: String) : io.github.flyingpig525.base.JsonData, | ||
Block<T>("bracket", mutableListOf(), "") where T : Item, T : io.github.flyingpig525.base.JsonData { | ||
override fun getJsonData(): String { | ||
return """{ | ||
"id": "bracket", | ||
"direct": "${if (open) "open" else "close"}", | ||
"type": "$type" | ||
}""".trimIndent() | ||
} | ||
} | ||
|
||
} |
8 changes: 6 additions & 2 deletions
8
KotlinFire/src/main/kotlin/io/github/flyingpig525/base/block/CallFunctionBlock.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package io.github.flyingpig525.base.block | ||
|
||
import io.github.flyingpig525.base.JsonData | ||
import io.github.flyingpig525.base.item.Item | ||
|
||
class CallFunctionBlock<T>(funcName: String) : Block<T>("call_func", mutableListOf(), "", "data: \"$funcName\"") where T : Item, T : JsonData | ||
class CallFunctionBlock<T>(funcName: String) : Block<T>( | ||
"call_func", | ||
mutableListOf(), | ||
"", | ||
"data: \"$funcName\"" | ||
) where T : Item, T : io.github.flyingpig525.base.JsonData |
8 changes: 6 additions & 2 deletions
8
KotlinFire/src/main/kotlin/io/github/flyingpig525/base/block/CallProcessBlock.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
package io.github.flyingpig525.base.block | ||
|
||
import io.github.flyingpig525.base.JsonData | ||
import io.github.flyingpig525.base.item.Item | ||
|
||
class CallProcessBlock<T>(processName: String) : Block<T>("call_process", mutableListOf(), "", "data: \"$processName\"") where T : Item, T : JsonData | ||
class CallProcessBlock<T>(processName: String) : Block<T>( | ||
"call_process", | ||
mutableListOf(), | ||
"", | ||
"data: \"$processName\"" | ||
) where T : Item, T : io.github.flyingpig525.base.JsonData |
9 changes: 4 additions & 5 deletions
9
KotlinFire/src/main/kotlin/io/github/flyingpig525/base/block/ElseBlock.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
package io.github.flyingpig525.base.block | ||
|
||
import io.github.flyingpig525.base.JsonData | ||
import io.github.flyingpig525.base.item.Item | ||
|
||
class ElseBlock<T> : Block<T>("else", mutableListOf(), "") where T : Item, T : JsonData { | ||
override fun getJsonData(): String { | ||
return """ | ||
class ElseBlock<T> : Block<T>("else", mutableListOf(), "") where T : Item, T : io.github.flyingpig525.base.JsonData { | ||
override fun getJsonData(): String { | ||
return """ | ||
{ | ||
"id": "block", | ||
"block": "$codeBlock" | ||
} | ||
""".trimIndent() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.