Example #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());
 }
Example #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());
 }
Example #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());
 }
Example #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()));
 }
Example #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()));
 }
Example #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()));
 }