[ScriptLib] add SetPlayerGroupVisionType function and replaced the placeholder params with proper params for the PlayerGroupVisionType functions

This commit is contained in:
hartie95 2024-04-04 07:35:23 +02:00
parent f6a8043679
commit 631cf4f080
2 changed files with 18 additions and 10 deletions

View File

@ -680,18 +680,25 @@ public class ScriptLib {
return context.getScriptLibHandler().ForceRefreshAuthorityByConfigId(context, var1, uid);
}
public static int AddPlayerGroupVisionType(GroupEventLuaContext context, Object uidsTable, Object var2Table){
val uids = context.getEngine().getTable(uidsTable);
val var2 = context.getEngine().getTable(var2Table);
return context.getScriptLibHandler().AddPlayerGroupVisionType(context, uids, var2);
public static int AddPlayerGroupVisionType(GroupEventLuaContext context, Object uidsTable, Object visionTypesTable){
val uids = context.getEngine().getTable(uidsTable).getAsIntArray();
val visionTypes = context.getEngine().getTable(visionTypesTable).getAsIntArray();
return context.getScriptLibHandler().AddPlayerGroupVisionType(context, uids, visionTypes);
}
public static int DelPlayerGroupVisionType(GroupEventLuaContext context, Object uidsTable, Object var2Table){
val uids = context.getEngine().getTable(uidsTable);
val var2 = context.getEngine().getTable(var2Table);
return context.getScriptLibHandler().DelPlayerGroupVisionType(context, uids, var2);
public static int DelPlayerGroupVisionType(GroupEventLuaContext context, Object uidsTable, Object visionTypesTable){
val uids = context.getEngine().getTable(uidsTable).getAsIntArray();
val visionTypes = context.getEngine().getTable(visionTypesTable).getAsIntArray();
return context.getScriptLibHandler().DelPlayerGroupVisionType(context, uids, visionTypes);
}
public static int SetPlayerGroupVisionType(GroupEventLuaContext context, Object uidsTable, Object visionTypesTable){
val uids = context.getEngine().getTable(uidsTable).getAsIntArray();
val visionTypes = context.getEngine().getTable(visionTypesTable).getAsIntArray();
return context.getScriptLibHandler().SetPlayerGroupVisionType(context, uids, visionTypes);
}
public static int MoveAvatarByPointArray(GroupEventLuaContext context, int uid, int targetId, Object var3Table, String var4){
val var3 = context.getEngine().getTable(var3Table);
return context.getScriptLibHandler().MoveAvatarByPointArray(context, uid, targetId, var3, var4);

View File

@ -242,9 +242,10 @@ public interface ScriptLibHandler<GroupEventContext extends GroupEventLuaContext
int ForceRefreshAuthorityByConfigId(GroupEventContext context, int var1, int uid);
int AddPlayerGroupVisionType(GroupEventContext context, LuaTable uidsTable, LuaTable var2);
int AddPlayerGroupVisionType(GroupEventContext context, int[] uids, int[] visionTypeList);
int DelPlayerGroupVisionType(GroupEventContext context, LuaTable uidsTable, LuaTable var2);
int DelPlayerGroupVisionType(GroupEventContext context, int[] uids, int[] visionTypeList);
int SetPlayerGroupVisionType(GroupEventContext context, int[] uids, int[] visionTypeList);
int MoveAvatarByPointArray(GroupEventContext context, int uid, int targetId, LuaTable var3, String var4);