초기커밋

This commit is contained in:
2025-05-01 07:20:41 +09:00
commit 98bb2e3c5c
2747 changed files with 646947 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
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;
}
}
}