File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
plugin/src/server/sc/plugin2021 Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,21 @@ import sc.api.plugins.IGamePlugin
5
5
import sc.api.plugins.host.IGamePluginHost
6
6
import sc.plugin2021.util.Configuration.classesToRegister
7
7
import sc.plugins.PluginDescriptor
8
+ import sc.shared.ScoreAggregation
8
9
import sc.shared.ScoreDefinition
10
+ import sc.shared.ScoreFragment
9
11
10
12
@PluginDescriptor(name = " Blokus" , uuid = " swc_2021_blokus" , author = " " )
11
13
class GamePlugin : IGamePlugin {
12
14
13
15
companion object {
14
16
val PLUGIN_AUTHOR = " "
15
17
val PLUGIN_UUID = " swc_2021_blokus"
18
+
19
+ val SCORE_DEFINITION = ScoreDefinition ().apply {
20
+ add(" Gewinner" )
21
+ add(ScoreFragment (" \u2205 belegte Felder" , ScoreAggregation .AVERAGE ))
22
+ }
16
23
}
17
24
18
25
override fun createGame (): IGameInstance {
@@ -27,8 +34,5 @@ class GamePlugin: IGamePlugin {
27
34
TODO (" Not yet implemented" )
28
35
}
29
36
30
- override fun getScoreDefinition (): ScoreDefinition {
31
- TODO (" Not yet implemented" )
32
- }
33
-
37
+ override fun getScoreDefinition (): ScoreDefinition = SCORE_DEFINITION
34
38
}
You can’t perform that action at this time.
0 commit comments