Example #1
0
    public static LuaTestObj operator -(LuaTestObj a, int b)
    {
        LuaTestObj ret = new LuaTestObj();

        ret.testVar = a.testVar - b;
        return(ret);
    }
Example #2
0
    public static LuaTestObj operator -(LuaTestObj a)
    {
        LuaTestObj ret = new LuaTestObj();

        ret.testVar = a.testVar * (-1);
        return(ret);
    }
Example #3
0
    public static LuaTestObj operator +(int a, LuaTestObj b)
    {
        LuaTestObj ret = new LuaTestObj();

        ret.testVar = a + b.testVar;
        return(ret);
    }
Example #4
0
    public static LuaTestObj operator %(LuaTestObj a, LuaTestObj b)
    {
        LuaTestObj ret = new LuaTestObj();

        ret.testVar = a.testVar % b.testVar;
        return(ret);
    }