public static void doCallBackFS(uint cbInfos, float float_1, IntPtr intptr_1) { uint callbackIndex = (cbInfos & 0xE0000000) >> 29; uint handle = cbInfos & 0x1FFFFFFF; GameObject obj = WrapperReg.getInstance().getObjectFromHandle(handle); if (0 <= callbackIndex && callbackIndex < GameObject.NBCALLBACKS) { FunctionPointerFS cb = (FunctionPointerFS)obj.getCallBack(callbackIndex); cb(float_1, intptr_1); } else { throw new CKLBException("Invalid index, it must be between 0 and " + (GameObject.NBCALLBACKS - 1) + "."); } }
public static bool doCallBackIIIP_retB(uint cbInfos, int int_1, int int_2, int int_3, IntPtr obj_1) { uint callbackIndex = (cbInfos & 0xE0000000) >> 29; uint handle = cbInfos & 0x1FFFFFFF; GameObject obj = WrapperReg.getInstance().getObjectFromHandle(handle); if (0 <= callbackIndex && callbackIndex < GameObject.NBCALLBACKS) { FunctionPointerIIIP_retB cb = (FunctionPointerIIIP_retB)obj.getCallBack(callbackIndex); return(cb(int_1, int_2, int_3, obj_1)); } else { throw new CKLBException("Invalid index, it must be between 0 and " + (GameObject.NBCALLBACKS - 1) + "."); } }