Added client creation event

This commit is contained in:
Anuken
2020-02-13 09:11:35 -05:00
parent 932b4d541d
commit c067be2add
3 changed files with 7 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform
@Override
public void setup(){
Events.fire(new ClientCreateEvent());
Vars.loadLogger();
Vars.loadFileLogger();
Vars.platform = this;

View File

@@ -92,6 +92,10 @@ public class EventType{
}
}
public static class ClientCreateEvent{
}
/** Called when the client game is first loaded. */
public static class ClientLoadEvent{