修改
This commit is contained in:
parent
185bd0d03d
commit
de3d91e400
@ -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
|
||||
|
@ -1,10 +1,12 @@
|
||||
using Cysharp.Text;
|
||||
#if ZSTRING_SUPPORT
|
||||
using Cysharp.Text;
|
||||
#endif
|
||||
|
||||
namespace AlicizaX
|
||||
{
|
||||
public static partial class Utility
|
||||
{
|
||||
public static class Text
|
||||
public static class Text
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取格式化字符串。
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user