示例#1
0
 /// <summary>
 /// Creates a string when enumerating on an invalid value.
 /// </summary>
 /// <param name="type">The type of the value.</param>
 /// <returns>An error string.</returns>
 public static string CannotEnumerate(LuaValueType type)
 {
     return string.Format(Resources.CannotEnumerate, type.ToString().ToLower());
 }
示例#2
0
 /// <summary>
 /// Creates a string when performing arithmetic on an invalid value.
 /// </summary>
 /// <param name="type">The type of the value.</param>
 /// <returns>An error string.</returns>
 public static string CannotArithmetic(LuaValueType type)
 {
     return string.Format(Resources.CannotArithmetic, type.ToString().ToLower());
 }
示例#3
0
 /// <summary>
 /// Creates a string when indexing on an invalid value.
 /// </summary>
 /// <param name="type">The type of the value.</param>
 /// <returns>An error string.</returns>
 public static string CannotIndex(LuaValueType type)
 {
     return string.Format(Resources.CannotIndex, type.ToString().ToLower());
 }
示例#4
0
 /// <summary>
 /// Creates a string when enumerating on an invalid value.
 /// </summary>
 /// <param name="type">The type of the value.</param>
 /// <returns>An error string.</returns>
 public static string CannotEnumerate(LuaValueType type)
 {
     return(string.Format(Resources.CannotEnumerate, type.ToString().ToLower()));
 }
示例#5
0
 /// <summary>
 /// Creates a string when performing arithmetic on an invalid value.
 /// </summary>
 /// <param name="type">The type of the value.</param>
 /// <returns>An error string.</returns>
 public static string CannotArithmetic(LuaValueType type)
 {
     return(string.Format(Resources.CannotArithmetic, type.ToString().ToLower()));
 }
示例#6
0
 /// <summary>
 /// Creates a string when indexing on an invalid value.
 /// </summary>
 /// <param name="type">The type of the value.</param>
 /// <returns>An error string.</returns>
 public static string CannotIndex(LuaValueType type)
 {
     return(string.Format(Resources.CannotIndex, type.ToString().ToLower()));
 }