修改
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 Cysharp.Threading.Tasks;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Networking;
|
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
|
namespace AlicizaX
|
||||||
{
|
{
|
||||||
public static partial class Utility
|
public static partial class Utility
|
||||||
{
|
{
|
||||||
public static class Text
|
public static class Text
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取格式化字符串。
|
/// 获取格式化字符串。
|
||||||
@ -19,8 +21,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg);
|
return ZString.Format(format, arg);
|
||||||
|
#else
|
||||||
|
return string.Format(format, arg);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -38,8 +43,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2);
|
return ZString.Format(format, arg1, arg2);
|
||||||
|
#else
|
||||||
|
return string.Format(format, arg1, arg2);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -59,8 +67,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2, arg3);
|
return ZString.Format(format, arg1, arg2, arg3);
|
||||||
|
#else
|
||||||
|
return string.Format(format, arg1, arg2, arg3);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -82,8 +93,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2, arg3, arg4);
|
return ZString.Format(format, arg1, arg2, arg3, arg4);
|
||||||
|
#else
|
||||||
|
return string.Format(format, arg1, arg2, arg3, arg4);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -107,8 +121,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5);
|
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5);
|
||||||
|
#else
|
||||||
|
return string.Format(format, arg1, arg2, arg3, arg4, arg5);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -134,8 +151,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6);
|
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6);
|
||||||
|
#else
|
||||||
|
return string.Format(format, arg1, arg2, arg3, arg4, arg5, arg6);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -163,8 +183,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
|
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>
|
/// <summary>
|
||||||
@ -194,8 +217,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
|
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>
|
/// <summary>
|
||||||
@ -227,8 +253,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
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>
|
/// <summary>
|
||||||
@ -262,8 +291,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
|
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>
|
/// <summary>
|
||||||
@ -299,8 +331,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
throw new GameFrameworkException("Format is invalid.");
|
||||||
}
|
}
|
||||||
|
#if ZSTRING_SUPPORT
|
||||||
return ZString.Format(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
|
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>
|
/// <summary>
|
||||||
@ -338,8 +373,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
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);
|
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>
|
/// <summary>
|
||||||
@ -379,8 +417,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
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);
|
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>
|
/// <summary>
|
||||||
@ -422,8 +463,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
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);
|
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>
|
/// <summary>
|
||||||
@ -467,8 +511,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
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);
|
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>
|
/// <summary>
|
||||||
@ -514,8 +561,11 @@ namespace AlicizaX
|
|||||||
{
|
{
|
||||||
throw new GameFrameworkException("Format is invalid.");
|
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);
|
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