Exemplo n.º 1
0
 private IExpression GetConstantBitFix(HavokLuaFunction luaFunction, uint val, bool extraBit)
 {
     if (extraBit)
     {
         return(ConvertLuaConstant(luaFunction.Constants[(int)val], (int)val));
     }
     return(new IdentifierReference(_symbolTable.GetRegister(val)));
 }
Exemplo n.º 2
0
 // CHeck this
 private IExpression RKIR(HavokLuaFunction fun, uint val)
 {
     if (val < 250)
     {
         return(new IdentifierReference(_symbolTable.GetRegister(val)));
     }
     else
     {
         return(ConvertLuaConstant(fun.Constants[(int)(val - 250)], (int)val));
     }
 }