Creating a struct which can work with operators (+ - etc)

I’m using the following code to create a struct similar to a Vector2 but which uses ints:

class Vint extends System.ValueType {
	var x : int;
	var y : int;
	function Vint( a : int, b : int) { x=a;y=b; }
}

Is there a way to give it the ability to work with + and - operators in the same way as Vector2?

var a : Vint = new Vint( 3, 6 );
var b : Vint = new Vint( 2, 1 );
var c : Vint = a + b;

So that the above would result in c becoming Vint(5,7)?

Operator overloading doesn’t have syntax defined in UnityScript.

Switch languages!