11package fr .yuki .yrpf .luaapi ;
22
3- import fr .yuki .yrpf .luaapi .genericmenu .AddGenericMenuItemEF ;
4- import fr .yuki .yrpf .luaapi .genericmenu .CreateGenericMenuEF ;
5- import fr .yuki .yrpf .luaapi .genericmenu .ShowGenericMenuEF ;
3+ import fr .yuki .yrpf .luaapi .genericmenu .*;
64import fr .yuki .yrpf .luaapi .house .SetHouseObjectBehaviorEF ;
5+ import fr .yuki .yrpf .luaapi .inventory .*;
76import fr .yuki .yrpf .luaapi .items .CreateItemTemplateEF ;
87import fr .yuki .yrpf .luaapi .items .GetItemQuantityEF ;
98import fr .yuki .yrpf .luaapi .items .RemoveItemEF ;
1211import fr .yuki .yrpf .luaapi .map .RemoveMapMarkerEF ;
1312import fr .yuki .yrpf .luaapi .player .AddBankMoneyEF ;
1413import fr .yuki .yrpf .luaapi .vehicle .*;
14+ import fr .yuki .yrpf .luaapi .worldui .CreateWorldUIEF ;
15+ import fr .yuki .yrpf .luaapi .worldui .DestroyWUIEF ;
16+ import fr .yuki .yrpf .luaapi .worldui .SetProgressWUIEF ;
1517import net .onfirenetwork .onsetjava .Onset ;
1618
1719public class LuaAPIManager {
@@ -23,6 +25,9 @@ public static void init() {
2325 Onset .getServer ().addFunctionExport ("AddRestrictedZone" , new AddRestrictedZoneEF ());
2426 Onset .getServer ().addFunctionExport ("AddI18nKey" , new AddI18nKeyEF ());
2527 Onset .getServer ().addFunctionExport ("GetI18nForPlayer" , new GetI18NKeyForPlayerEF ());
28+ Onset .getServer ().addFunctionExport ("AddImageResource" , new AddImageResourceEF ());
29+ Onset .getServer ().addFunctionExport ("CreateParticle" , new AddParticleEF ());
30+ Onset .getServer ().addFunctionExport ("DestroyParticle" , new DestroyParticleEF ());
2631
2732 // Job API
2833 Onset .getServer ().addFunctionExport ("CreateJob" , new CreateJobEF ());
@@ -32,7 +37,10 @@ public static void init() {
3237 Onset .getServer ().addFunctionExport ("SetHarvestAnimation" , new SetHarvestAnimationEF ());
3338 Onset .getServer ().addFunctionExport ("IsJobWhitelisted" , new IsJobWhitelistedEF ());
3439 Onset .getServer ().addFunctionExport ("SpawnWearableObject" , new SpawnWearableObjectEF ());
40+ Onset .getServer ().addFunctionExport ("SetWearableObjectLocation" , new SetWearableObjectLocationEF ());
3541 Onset .getServer ().addFunctionExport ("AddJobExp" , new AddJobExpEF ());
42+ Onset .getServer ().addFunctionExport ("GetWearedObject" , new GetWearedObjectEF ());
43+ Onset .getServer ().addFunctionExport ("GetPlayerJobLevel" , new GetJobLevelEF ());
3644
3745 // Item API
3846 Onset .getServer ().addFunctionExport ("CreateItemTemplate" , new CreateItemTemplateEF ());
@@ -44,6 +52,8 @@ public static void init() {
4452 Onset .getServer ().addFunctionExport ("CreateMenu" , new CreateGenericMenuEF ());
4553 Onset .getServer ().addFunctionExport ("AddMenuItem" , new AddGenericMenuItemEF ());
4654 Onset .getServer ().addFunctionExport ("ShowMenu" , new ShowGenericMenuEF ());
55+ Onset .getServer ().addFunctionExport ("CloseMenu" , new CloseGenericMenuEF ());
56+ Onset .getServer ().addFunctionExport ("SetMenuImage" , new SetMenuImageEF ());
4757
4858 // Map API
4959 Onset .getServer ().addFunctionExport ("AddMapMarker" , new AddMapMarkerEF ());
@@ -62,5 +72,18 @@ public static void init() {
6272
6373 // Player
6474 Onset .getServer ().addFunctionExport ("AddBankMoney" , new AddBankMoneyEF ());
75+
76+ // Inv
77+ Onset .getServer ().addFunctionExport ("CreateChest" , new CreateChestEF ());
78+ Onset .getServer ().addFunctionExport ("OpenChest" , new OpenChestEF ());
79+ Onset .getServer ().addFunctionExport ("GetChestItems" , new GetChestItemsEF ());
80+ Onset .getServer ().addFunctionExport ("AddChestItem" , new AddChestItemEF ());
81+ Onset .getServer ().addFunctionExport ("RemoveChestItem" , new RemoveChestItemEF ());
82+ Onset .getServer ().addFunctionExport ("GetPlayerMainInventoryId" , new GetPlayerMainInventoryIdEF ());
83+
84+ // WorldUI
85+ Onset .getServer ().addFunctionExport ("CreateWUI" , new CreateWorldUIEF ());
86+ Onset .getServer ().addFunctionExport ("DestroyWUI" , new DestroyWUIEF ());
87+ Onset .getServer ().addFunctionExport ("SetProgressWUI" , new SetProgressWUIEF ());
6588 }
6689}
0 commit comments