This commit is contained in:
陈思海 2025-09-08 11:25:41 +08:00
parent 185bd0d03d
commit de3d91e400
2 changed files with 69 additions and 22 deletions

View File

@ -1,6 +1,4 @@
#if ZSTRING_SUPPORT
using System.Collections.Generic;
using System.Collections.Generic;
using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.Networking;
@ -104,4 +102,3 @@ namespace AlicizaX
}
}
}
#endif

View File

@ -1,4 +1,6 @@
using Cysharp.Text;
#if ZSTRING_SUPPORT
using Cysharp.Text;
#endif
namespace AlicizaX
{
@ -19,8 +21,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg);
#else
return string.Format(format, arg);
#endif
}
/// <summary>
@ -38,8 +43,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2);
#else
return string.Format(format, arg1, arg2);
#endif
}
/// <summary>
@ -59,8 +67,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3);
#else
return string.Format(format, arg1, arg2, arg3);
#endif
}
/// <summary>
@ -82,8 +93,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4);
#else
return string.Format(format, arg1, arg2, arg3, arg4);
#endif
}
/// <summary>
@ -107,8 +121,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5);
#endif
}
/// <summary>
@ -134,8 +151,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6);
#endif
}
/// <summary>
@ -163,8 +183,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
#endif
}
/// <summary>
@ -194,8 +217,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
#endif
}
/// <summary>
@ -227,8 +253,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
#endif
}
/// <summary>
@ -262,8 +291,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
#endif
}
/// <summary>
@ -299,8 +331,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
#endif
}
/// <summary>
@ -338,8 +373,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12);
#endif
}
/// <summary>
@ -379,8 +417,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13);
#endif
}
/// <summary>
@ -422,8 +463,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14);
#endif
}
/// <summary>
@ -467,8 +511,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15);
#endif
}
/// <summary>
@ -514,8 +561,11 @@ namespace AlicizaX
{
throw new GameFrameworkException("Format is invalid.");
}
#if ZSTRING_SUPPORT
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16);
#else
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16);
#endif
}
}
}