Exemple #1
0
 public override ILuaValue Arithmetic <T>(BinaryOperationType type, LuaUserData <T> self)
 {
     return(self.ArithmeticFrom(type, this));
 }
Exemple #2
0
 /// <summary>
 /// Performs a binary arithmetic operation and returns the result.
 /// </summary>
 /// <param name="type">The type of operation to perform.</param>
 /// <param name="self">The first value to use.</param>
 /// <returns>The result of the operation.</returns>
 /// <exception cref="System.InvalidOperationException">
 /// If the operation cannot be performed with the given values.
 /// </exception>
 /// <exception cref="System.InvalidArgumentException">
 /// If the argument is an invalid value.
 /// </exception>
 ILuaValue ILuaValueVisitor.Arithmetic <T>(BinaryOperationType type, LuaUserData <T> self)
 {
     return(self.ArithmeticFrom(type, this));
 }
 /// <summary>
 /// Performs a binary arithmetic operation and returns the result.
 /// </summary>
 /// <param name="type">The type of operation to perform.</param>
 /// <param name="self">The first value to use.</param>
 /// <returns>The result of the operation.</returns>
 /// <exception cref="System.InvalidOperationException">
 /// If the operation cannot be performed with the given values.
 /// </exception>
 /// <exception cref="System.InvalidArgumentException">
 /// If the argument is an invalid value.
 /// </exception>
 public override ILuaValue Arithmetic <T>(BinaryOperationType type, LuaUserData <T> self)
 {
     return(self.Arithmetic(type, values_[0]));
 }
Exemple #4
0
 public override ILuaValue Arithmetic <T>(BinaryOperationType type, LuaUserData <T> self)
 {
     throw new ArgumentException(Resources.BadBinOp);
 }
Exemple #5
0
 public ILuaValue ArithmeticFrom <T2>(BinaryOperationType type, LuaUserData <T2> self)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Performs a binary arithmetic operation and returns the result.
 /// </summary>
 /// <param name="type">The type of operation to perform.</param>
 /// <param name="self">The first value to use.</param>
 /// <returns>The result of the operation.</returns>
 /// <exception cref="System.InvalidOperationException">
 /// If the operation cannot be performed with the given values.
 /// </exception>
 /// <exception cref="System.InvalidArgumentException">
 /// If the argument is an invalid value.
 /// </exception>
 public abstract ILuaValue Arithmetic <T>(BinaryOperationType type, LuaUserData <T> self);