| 
									
										
										
										
											2025-07-09 01:08:35 +08:00
										 |  |  | local _M = {} | 
					
						
							|  |  |  | local GameplayTag = import("GameplayTag") | 
					
						
							|  |  |  | local BusyGamePlayLibrary = import("BusyGamePlayLibrary") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | local function GetConfig(func_name, config_id) | 
					
						
							|  |  |  |     local state, config = BusyGamePlayLibrary[func_name](config_id, nil) | 
					
						
							|  |  |  |     if state == true then | 
					
						
							|  |  |  |         return config | 
					
						
							|  |  |  |     else | 
					
						
							|  |  |  |         return nil | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function _M.GetItemConfigByID(item_id) | 
					
						
							|  |  |  |     return GetConfig("GetLevelItemConfig", item_id) | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function _M.GetItemResourceConfig(item_id) | 
					
						
							|  |  |  |     return GetConfig("GetItemResourceConfig", item_id) | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function _M.GetItemDescConfig(item_id) | 
					
						
							|  |  |  |     return GetConfig("GetLevelItemDescription", item_id) | 
					
						
							| 
									
										
										
										
											2025-08-07 00:15:18 +08:00
										 |  |  | end | 
					
						
							| 
									
										
										
										
											2025-07-09 01:08:35 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-07 00:15:18 +08:00
										 |  |  | function _M.GetHomelandItemDesc(item_id) | 
					
						
							|  |  |  |     return GetConfig("GetHomelandItemDescription", item_id) | 
					
						
							| 
									
										
										
										
											2025-07-09 01:08:35 +08:00
										 |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | function _M.GetRoleConfigByID(role_id) | 
					
						
							|  |  |  |     return GetConfig("GetRoleConfig", role_id) | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-07 00:15:18 +08:00
										 |  |  | function _M.GetDataTableConfig(table_name, row_id) | 
					
						
							|  |  |  |     return GetConfig("Get" .. table_name, row_id) | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-09 01:08:35 +08:00
										 |  |  | function _M.GetGameplayTag(name) | 
					
						
							|  |  |  |     local tag = GameplayTag(name) | 
					
						
							|  |  |  |     tag.TagName = name | 
					
						
							|  |  |  |     return tag | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | return _M |