using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ServerCore; using ServerBase; using ServerCommon; using META_ID = System.UInt32; namespace GameServer { public static class MetaTextStringFuncHelper { //========================================================================================= // 함수 추가시 유의 사항 // 1. Caller 객체는 nullable 이다 !!! // 2. 반드시 반환은 문자열 이어야 한다 !!! //========================================================================================= public static void registerFuncAll() { MetaTextStringHelper.registerFunc("CustomFunction", exampleFunction); } //========================================================================================= // FuncName: exampleFunction // Caller: // Params: // Return: //========================================================================================= public static string exampleFunction(object? caller, params object[] parameters) { var err_msg = string.Empty; var string_key = string.Empty; try { //you're logic } catch(Exception e) { err_msg = $"Exception !!!, Failed to perform in exampleFunction() !!! : exception:{e}"; Log.getLogger().error(err_msg); } return string_key; } } }