dev_minimal_login (#7)
### Summary Implement minimal login flow without any authentication. Implement basic game server module with JoingGamePacket implemented. ### Type of Change New feature (non-breaking change which adds functionality) ### Affected Modules - [x] common/ - [ ] protocol/ - [ ] protocol.tls/ - [x] protocol.login/ - [ ] server/ - [x] server.login/ - [ ] keys/ - [ ] patcher/ - [ ] buildSrc/ ### Additional Notes _No response_ Reviewed-on: https://forge.fiereu.de/OpenMMO/OpenMMO/pulls/7 Co-authored-by: fiereu <contact@fiereu.de> Co-committed-by: fiereu <contact@fiereu.de>
This commit is contained in:
1 parent
9fabe28642
commit
a9bb88b246
33 files changed
+906
-86
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package de.fiereu.openmmo.common.enums
|
||||
|
||||
enum class Arch {
|
||||
X86,
|
||||
ARM,
|
||||
RISCV,
|
||||
LOONGARCH;
|
||||
|
||||
companion object {
|
||||
fun from(ordinal: Int): Arch {
|
||||
return entries.firstOrNull { it.ordinal == ordinal } ?: throw IllegalArgumentException("Unknown arch: $ordinal")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package de.fiereu.openmmo.common.enums
|
||||
|
||||
enum class Bitness {
|
||||
_32,
|
||||
_64,
|
||||
_128;
|
||||
|
||||
companion object {
|
||||
fun from(ordinal: Int): Bitness {
|
||||
return entries.firstOrNull { it.ordinal == ordinal } ?: throw IllegalArgumentException("Unknown bitness: $ordinal")
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package de.fiereu.openmmo.common.enums
|
||||
|
||||
enum class Platform {
|
||||
WINDOWS,
|
||||
LINUX,
|
||||
MACOS,
|
||||
ANDROID,
|
||||
IOS,
|
||||
UNKNOWN;
|
||||
|
||||
companion object {
|
||||
fun from(value: Int): Platform {
|
||||
return when (value) {
|
||||
0x00 -> WINDOWS
|
||||
0x01 -> LINUX
|
||||
0x02 -> MACOS
|
||||
0x03 -> IOS
|
||||
0x04 -> ANDROID
|
||||
else -> UNKNOWN
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user