Example #1
0
	int Instance::lua_IsA(lua_State* L){
		Instance* inst = checkInstance(L, 1);
		if(inst){
			const char* checkName = luaL_checkstring(L, 2);
			if(checkName != NULL){
				bool isIt = inst->IsA(checkName);
				lua_pushboolean(L, isIt);
				return 1;
			}
			lua_pushboolean(L, false);
			return 1;
		}
		return luaL_error(L, COLONERR, "IsA");
	}