public override void StartClientSide(ICoreClientAPI api) { capi = api; api.Event.LevelFinalize += () => { capi.Shader.ReloadShaders(); capi.InjectClientThread("File Export", 1000, new MassFileExportSystem(capi.World as ClientMain)); capi.InjectClientThread("VSHUD Tasks", 30, new VSHUDTaskSystem(capi.World as ClientMain)); }; }
public static void EnableAsyncTasks(this ICoreClientAPI api) { api.Event.LevelFinalize += () => { if (!api.IsClientSystemLoaded <ClientSystemAsyncActions>()) { api.InjectClientThread("AsyncActions", new ClientSystemAsyncActions(api.AsClientMain())); } }; }
public override void StartClientSide(ICoreClientAPI api) { capi = api; configLoader = capi.ModLoader.GetModSystem <ConfigLoader>(); config = ConfigLoader.Config; capi.RegisterCommand("lightutil", "Light Util", "[lightlevel|type|radius|alpha|red]", new ClientChatCommandDelegate(CmdLightUtil)); capi.Event.LevelFinalize += () => { capi.InjectClientThread("LightUtil", 40, new LightUtilSystem(api.World as ClientMain, config)); }; }