부대 이동 관련 초기 코드

This commit is contained in:
2024-09-17 00:48:54 +09:00
parent 86f1805160
commit 04a7a34fcc
7 changed files with 235 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace sammo;
class StaticEventHandler {
// This is a static class, so we don't want to instantiate it
public function __construct() {
throw new \Exception('This is a static class');
}
public static function handleEvent(General $general, string $eventType, array ...$params): void {
$handlersList = GameConst::$staticEventHandlers[ $eventType ] ?? null;
if( $handlersList === null ) {
return;
}
}
}