blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
986 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
145 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
122 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
f3b74c5ea454ee4af779e2c4cd0490a805518dbd
e174dd6067f48e5884cae9fe136f6ff60ba19522
/amazon_robot/amazon_robot_gazebo/src/amazon_robot_drive.cpp
53e49fdbc4955210eb14fa01d53f47e2fcbc2cf5
[]
no_license
SakshayMahna/CustomRobots
383b22f9efea61beb4824eb2068cb0180bbec2ec
bcd2aad6fb2a9a6f358269f22c45354e6b1f64d1
refs/heads/master
2022-11-25T13:33:36.817344
2020-07-29T10:55:56
2020-07-29T10:55:56
283,469,288
0
1
null
2020-07-29T10:31:04
2020-07-29T10:31:03
null
UTF-8
C++
false
false
4,996
cpp
/******************************************************************************* * Copyright 2016 ROBOTIS CO., LTD. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *******************************************************************************/ /* Authors: Taehun Lim (Darby) */ #include <amazon_robot_gazebo/amazon_robot_drive.h> AmazonRobotDrive::AmazonRobotDrive() : nh_priv_("~") { //Init gazebo ros turtlebot3 node ROS_INFO("Amazon Robot Drive Node Init"); ROS_ASSERT(init()); } AmazonRobotDrive::~AmazonRobotDrive() { updatecommandVelocity(0.0, 0.0); ros::shutdown(); } /******************************************************************************* * Init function *******************************************************************************/ bool AmazonRobotDrive::init() { // initialize ROS parameter std::string cmd_vel_topic_name = nh_.param<std::string>("cmd_vel_topic_name", ""); // initialize variables escape_range_ = 30.0 * DEG2RAD; check_forward_dist_ = 0.7; check_side_dist_ = 0.6; tb3_pose_ = 0.0; prev_tb3_pose_ = 0.0; // initialize publishers cmd_vel_pub_ = nh_.advertise<geometry_msgs::Twist>(cmd_vel_topic_name, 10); // initialize subscribers laser_scan_sub_ = nh_.subscribe("scan", 10, &AmazonRobotDrive::laserScanMsgCallBack, this); odom_sub_ = nh_.subscribe("odom", 10, &AmazonRobotDrive::odomMsgCallBack, this); return true; } void AmazonRobotDrive::odomMsgCallBack(const nav_msgs::Odometry::ConstPtr &msg) { double siny = 2.0 * (msg->pose.pose.orientation.w * msg->pose.pose.orientation.z + msg->pose.pose.orientation.x * msg->pose.pose.orientation.y); double cosy = 1.0 - 2.0 * (msg->pose.pose.orientation.y * msg->pose.pose.orientation.y + msg->pose.pose.orientation.z * msg->pose.pose.orientation.z); tb3_pose_ = atan2(siny, cosy); } void AmazonRobotDrive::laserScanMsgCallBack(const sensor_msgs::LaserScan::ConstPtr &msg) { uint16_t scan_angle[3] = {0, 30, 330}; for (int num = 0; num < 3; num++) { if (std::isinf(msg->ranges.at(scan_angle[num]))) { scan_data_[num] = msg->range_max; } else { scan_data_[num] = msg->ranges.at(scan_angle[num]); } } } void AmazonRobotDrive::updatecommandVelocity(double linear, double angular) { geometry_msgs::Twist cmd_vel; cmd_vel.linear.x = linear; cmd_vel.angular.z = angular; cmd_vel_pub_.publish(cmd_vel); } /******************************************************************************* * Control Loop function *******************************************************************************/ bool AmazonRobotDrive::controlLoop() { static uint8_t amazon_robot_state = 0; switch(amazon_robot_state) { case GET_TB3_DIRECTION: if (scan_data_[CENTER] > check_forward_dist_) { if (scan_data_[LEFT] < check_side_dist_) { prev_tb3_pose_ = tb3_pose_; amazon_robot_state = TB3_RIGHT_TURN; } else if (scan_data_[RIGHT] < check_side_dist_) { prev_tb3_pose_ = tb3_pose_; amazon_robot_state = TB3_LEFT_TURN; } else { amazon_robot_state = TB3_DRIVE_FORWARD; } } if (scan_data_[CENTER] < check_forward_dist_) { prev_tb3_pose_ = tb3_pose_; amazon_robot_state = TB3_RIGHT_TURN; } break; case TB3_DRIVE_FORWARD: updatecommandVelocity(LINEAR_VELOCITY, 0.0); amazon_robot_state = GET_TB3_DIRECTION; break; case TB3_RIGHT_TURN: if (fabs(prev_tb3_pose_ - tb3_pose_) >= escape_range_) amazon_robot_state = GET_TB3_DIRECTION; else updatecommandVelocity(0.0, -1 * ANGULAR_VELOCITY); break; case TB3_LEFT_TURN: if (fabs(prev_tb3_pose_ - tb3_pose_) >= escape_range_) amazon_robot_state = GET_TB3_DIRECTION; else updatecommandVelocity(0.0, ANGULAR_VELOCITY); break; default: amazon_robot_state = GET_TB3_DIRECTION; break; } return true; } /******************************************************************************* * Main function *******************************************************************************/ int main(int argc, char* argv[]) { ros::init(argc, argv, "amazonRobotDrive"); AmazonRobotDrive amazonRobotDrive; ros::Rate loop_rate(125); while (ros::ok()) { amazonRobotDrive.controlLoop(); ros::spinOnce(); loop_rate.sleep(); } return 0; }
[ "shreyas6gokhale@gmail.com" ]
shreyas6gokhale@gmail.com
80d339d3eb112ef634dbdf3f76b05b0dd67f2545
3b74241704f1317aef4e54ce66494a4787b0b8c0
/AtCoder/ABC312/A.cpp
af5bbf61911bbffd182bc070afa79a6e6a7feff6
[ "CC0-1.0" ]
permissive
arlechann/atcoder
990a5c3367de23dd79359906fd5119496aad6eee
a62fa2324005201d518b800a5372e855903952de
refs/heads/master
2023-09-01T12:49:34.034329
2023-08-26T17:20:36
2023-08-26T17:20:36
211,708,577
0
0
CC0-1.0
2022-06-06T21:49:11
2019-09-29T18:37:00
Rust
UTF-8
C++
false
false
4,648
cpp
#include <algorithm> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <limits> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <string> #include <tuple> #include <type_traits> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> #define REP(i, n) for(int i = 0, i##_MACRO = (n); i < i##_MACRO; i++) #define RREP(i, n) for(int i = (n)-1; i >= 0; i--) #define RANGE(i, a, b) for(int i = (a), i##_MACRO = (b); i < i##_MACRO; i++) #define RRANGE(i, a, b) for(int i = (b)-1, i##_MACRO = (a); i >= i##_MACRO; i--) #define EACH(e, a) for(auto&& e : a) #define ALL(a) std::begin(a), std::end(a) #define RALL(a) std::rbegin(a), std::rend(a) #define FILL(a, n) memset((a), n, sizeof(a)) #define FILLZ(a) FILL(a, 0) #define CAST(x, t) (static_cast<t>(x)) #define PRECISION(x) std::fixed << std::setprecision(x) using namespace std; using ll = long long; using VI = vector<int>; using VI2D = vector<vector<int>>; using VLL = vector<long long>; using VLL2D = vector<vector<long long>>; constexpr int INF = 2e9; constexpr long long INFLL = 2e18; constexpr double EPS = 1e-10; constexpr double PI = acos(-1.0); template <typename T, std::size_t N> struct make_vector_type { using type = typename std::vector<typename make_vector_type<T, (N - 1)>::type>; }; template <typename T> struct make_vector_type<T, 0> { using type = typename std::vector<T>; }; template <typename T, size_t N> auto make_vector_impl(const std::vector<std::size_t>& ls, T init_value) { if constexpr(N == 0) { return std::vector<T>(ls[N], init_value); } else { return typename make_vector_type<T, N>::type( ls[N], make_vector_impl<T, (N - 1)>(ls, init_value)); } } template <typename T, std::size_t N> auto make_vector(const std::size_t (&ls)[N], T init_value) { std::vector<std::size_t> dimensions(N); for(int i = 0; i < N; i++) { dimensions[N - i - 1] = ls[i]; } return make_vector_impl<T, N - 1>(dimensions, init_value); } template <typename T> std::vector<T> make_vector(std::size_t size, T init_value) { return std::vector<T>(size, init_value); } template <typename T> constexpr int sign(T x) { return x < 0 ? -1 : x > 0 ? 1 : 0; } template <> constexpr int sign(double x) { return x < -EPS ? -1 : x > EPS ? 1 : 0; } template <typename T> constexpr bool chmax(T& m, T x) { if(m >= x) { return false; } m = x; return true; } template <typename T> constexpr bool chmin(T& m, T x) { if(m <= x) { return false; } m = x; return true; } template <typename T> constexpr T square(T x) { return x * x; } template <typename T> constexpr T pow(T a, int n) { T ret = 1; while(n != 0) { if(n % 2) { ret *= a; } a *= a; n /= 2; } return ret; } template <typename T> constexpr T div_ceil(T a, T b) { assert(b != 0); if(a < 0 && b < 0) { a = -a; b = -b; } if(a >= 0 && b > 0) { return (a + b - 1) / b; } return a / b; } template <typename T> constexpr T div_floor(T a, T b) { assert(b != 0); if(a < 0 && b < 0) { a = -a; b = -b; } if(a >= 0 && b > 0) { return a / b; } assert(false); } template <typename T> constexpr bool is_power_of_two(T n) { if constexpr(n == std::numeric_limits<T>::min()) { return true; } return (n & (n - 1)) == 0; } constexpr std::size_t next_power_of_two(std::size_t n) { if((n & (n - 1)) == 0) { return n; } std::size_t ret = 1; while(n != 0) { ret <<= 1; n >>= 1; } return ret; } template <typename T> constexpr T next_multiple_of(T a, T b) { return div_ceil(a, b) * b; } template <typename T> constexpr bool is_mul_overflow(T a, T b) { if(a >= 0 && b >= 0) { return a > std::numeric_limits<T>::max() / b; } if(a <= 0 && b < 0) { return a < div_ceil(std::numeric_limits<T>::max(), b); } if(a < 0) { return a > std::numeric_limits<T>::min() / b; } if(b < 0) { return a < div_ceil(std::numeric_limits<T>::max(), b); } } template <typename T> constexpr T diff(T a, T b) { return max(a, b) - min(a, b); } /** * _ _ _ ____ * (_)_ __ | |_ _ __ ___ __ _(_)_ __ / /\ \ _ * | | '_ \| __| | '_ ` _ \ / _` | | '_ \| | | (_) * | | | | | |_ | | | | | | (_| | | | | | | | |_ * |_|_| |_|\__| |_| |_| |_|\__,_|_|_| |_| | | ( ) * \_\/_/|/ */ int main() { string s; cin >> s; if(s == "ACE" || s == "BDF" || s == "CEG" || s == "DFA" || s == "EGB" || s == "FAC" || s == "GBD") { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }
[ "dragnov3728@gmail.com" ]
dragnov3728@gmail.com
337a0cc1d8fe51573ac4451afe88fd40bcc478cf
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/ash/touch/touch_hud_debug.h
40558f22b3c078139198c4262293a91258ae7e0e
[ "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
C++
false
false
2,314
h
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_TOUCH_TOUCH_HUD_DEBUG_H_ #define ASH_TOUCH_TOUCH_HUD_DEBUG_H_ #include <stdint.h> #include <map> #include <memory> #include "ash/ash_export.h" #include "ash/touch/touch_observer_hud.h" #include "base/macros.h" #include "base/values.h" namespace views { class Label; class View; } namespace ash { class TouchHudCanvas; class TouchLog; // A heads-up display to show touch traces on the screen and log touch events. // As a derivative of TouchObserverHUD, objects of this class manage their own // lifetime. class ASH_EXPORT TouchHudDebug : public TouchObserverHUD { public: enum Mode { FULLSCREEN, REDUCED_SCALE, INVISIBLE, }; explicit TouchHudDebug(aura::Window* initial_root); // Returns the log of touch events for all displays as a dictionary mapping id // of each display to its touch log. static std::unique_ptr<base::DictionaryValue> GetAllAsDictionary(); // Changes the display mode (e.g. scale, visibility). Calling this repeatedly // cycles between a fixed number of display modes. void ChangeToNextMode(); // Returns log of touch events as a list value. Each item in the list is a // trace of one touch point. std::unique_ptr<base::ListValue> GetLogAsList() const; Mode mode() const { return mode_; } // Overriden from TouchObserverHUD. void Clear() override; private: ~TouchHudDebug() override; void SetMode(Mode mode); void UpdateTouchPointLabel(int index); // Overriden from TouchObserverHUD. void OnTouchEvent(ui::TouchEvent* event) override; void OnDisplayMetricsChanged(const display::Display& display, uint32_t metrics) override; void SetHudForRootWindowController(RootWindowController* controller) override; void UnsetHudForRootWindowController( RootWindowController* controller) override; static const int kMaxTouchPoints = 32; Mode mode_; std::unique_ptr<TouchLog> touch_log_; TouchHudCanvas* canvas_; views::View* label_container_; views::Label* touch_labels_[kMaxTouchPoints]; DISALLOW_COPY_AND_ASSIGN(TouchHudDebug); }; } // namespace ash #endif // ASH_TOUCH_TOUCH_HUD_DEBUG_H_
[ "enrico.weigelt@gr13.net" ]
enrico.weigelt@gr13.net
c862ff646547f0fddb8b8a3aba7dd70fa1f740e5
aedec0779dca9bf78daeeb7b30b0fe02dee139dc
/Modules/Registration/include/mirtk/PointSetDistance.h
eb1dbb9e18258b3878e5b84d21bd12bf642f21e7
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
BioMedIA/MIRTK
ca92f52b60f7db98c16940cd427a898a461f856c
973ce2fe3f9508dec68892dbf97cca39067aa3d6
refs/heads/master
2022-08-08T01:05:11.841458
2022-07-28T00:03:25
2022-07-28T10:18:00
48,962,880
171
78
Apache-2.0
2022-07-28T10:18:01
2016-01-03T22:25:55
C++
UTF-8
C++
false
false
7,744
h
/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2013-2015 Imperial College London * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef MIRTK_PointSetDistance_H #define MIRTK_PointSetDistance_H #include "mirtk/DataFidelity.h" #include "mirtk/Array.h" #include "mirtk/Vector3D.h" #include "mirtk/PointSetDistanceMeasure.h" #include "mirtk/RegisteredPointSet.h" namespace mirtk { /** * Base class for point set distance measures */ class PointSetDistance : public DataFidelity { mirtkAbstractMacro(PointSetDistance); // --------------------------------------------------------------------------- // Types public: /// Type of gradient w.r.t a single transformed data point typedef Vector3D<double> GradientType; // --------------------------------------------------------------------------- // Attributes protected: /// First point set mirtkPublicAggregateMacro(RegisteredPointSet, Target); /// Second point set mirtkPublicAggregateMacro(RegisteredPointSet, Source); /// Memory for (non-parametric) gradient w.r.t points of target mirtkComponentMacro(GradientType, GradientWrtTarget); /// Memory for (non-parametric) gradient w.r.t points of source mirtkComponentMacro(GradientType, GradientWrtSource); /// Whether Update has not been called since initialization mirtkAttributeMacro(bool, InitialUpdate); /// Allocate memory for (non-parametric) gradient w.r.t points of target void AllocateGradientWrtTarget(int); /// Allocate memory for (non-parametric) gradient w.r.t points of source void AllocateGradientWrtSource(int); // --------------------------------------------------------------------------- // Construction/Destruction protected: /// Constructor PointSetDistance(const char * = "", double = 1.0); /// Copy constructor PointSetDistance(const PointSetDistance &, int = -1, int = -1); /// Assignment operator PointSetDistance &operator =(const PointSetDistance &); /// Copy attributes from other point set distance measure void CopyAttributes(const PointSetDistance &, int = -1, int = -1); public: /// Instantiate specified similarity measure static PointSetDistance *New(PointSetDistanceMeasure, const char * = "", double = 1.0); /// Destructor virtual ~PointSetDistance(); // --------------------------------------------------------------------------- // Initialization protected: /// Initialize distance measure once input and parameters have been set void Initialize(int, int); /// Reinitialize distance measure after change of input topology /// /// This function is called in particular when an input surface has been /// reparameterized, e.g., by a local remeshing filter. void Reinitialize(int, int); public: /// Initialize distance measure once input and parameters have been set virtual void Initialize(); /// Reinitialize distance measure after change of input topology /// /// This function is called in particular when an input surface has been /// reparameterized, e.g., by a local remeshing filter. virtual void Reinitialize(); // --------------------------------------------------------------------------- // Evaluation /// Update moving input points and internal state of distance measure virtual void Update(bool = true); protected: /// Compute non-parametric gradient w.r.t points of given data set /// /// \param[in] target Transformed point set. /// \param[out] gradient Non-parametric gradient of point set distance measure. virtual void NonParametricGradient(const RegisteredPointSet *target, GradientType *gradient) = 0; /// Convert non-parametric gradient of point set distance measure into /// gradient w.r.t transformation parameters /// /// This function calls Transformation::ParametricGradient of the /// transformation to apply the chain rule in order to obtain the gradient /// of the distance measure w.r.t the transformation parameters. /// It adds the weighted gradient to the final registration energy gradient. /// /// \param[in] target Transformed point set. /// \param[in] np_gradient Point-wise non-parametric gradient. /// \param[in,out] gradient Gradient to which the computed parametric gradient /// is added, after multiplication by the given \p weight. /// \param[in] weight Weight of point set distance measure. virtual void ParametricGradient(const RegisteredPointSet *target, const GradientType *np_gradient, double *gradient, double weight); /// Evaluate gradient of point set distance measure /// /// This function calls the virtual NonParametricGradient function to be /// implemented by subclasses for each transformed input point set to obtain /// the gradient of the point set distance measure. It then converts this gradient /// into a gradient w.r.t the transformation parameters using the ParametricGradient. /// /// If both target and source point sets are transformed by different transformations, /// the resulting gradient vector contains first the derivative values w.r.t /// the parameters of the target transformation followed by those computed /// w.r.t the parameters of the source transformation. If both point sets are /// transformed by the same transformation, the sum of the derivative values /// is added to the resulting gradient vector. This is in particular the case /// for a velocity based transformation model which is applied to deform both /// point sets "mid-way". Otherwise, only one input point set is transformed /// (usually the target) and the derivative values of only the respective /// transformation parameters added to the gradient vector. /// /// \sa NonParametricGradient, ParametricGradient /// /// \param[in,out] gradient Gradient to which the computed gradient of the /// point set distance measure is added after /// multiplying by the given similarity \p weight. /// \param[in] step Step length for finite differences (unused). /// \param[in] weight Weight of point set distance measure. virtual void EvaluateGradient(double *gradient, double step, double weight); // --------------------------------------------------------------------------- // Debugging public: /// Write input of data fidelity term virtual void WriteDataSets(const char *, const char *, bool = true) const; /// Write gradient of data fidelity term w.r.t each transformed input virtual void WriteGradient(const char *, const char *) const; protected: /// Write gradient of data fidelity term w.r.t each transformed input virtual void WriteGradient(const char *, const RegisteredPointSet *, const GradientType *, const Array<int> * = NULL) const; }; } // namespace mirtk #endif // MIRTK_PointSetDistance_H
[ "andreas.schuh.84@gmail.com" ]
andreas.schuh.84@gmail.com
01e29b3599885beb2aa3eff998426e160fdef6cc
576a0f1512bd83a93da56b141ab0bc4093428ce1
/PruebasInerencia/PruebasInerencia/main.cpp
23c909bde1fcc3cadf2d7101709252cbcba15563
[]
no_license
henrykalex/analisisModSistSoft
4379b56de3fc2d0d8324c76c0463b975de38d05f
27c09b4c2e506d4dc78a68ecad348652cedce64a
refs/heads/master
2021-01-13T04:49:13.537352
2017-05-03T14:26:25
2017-05-03T14:26:25
78,641,666
0
0
null
2017-01-18T15:45:28
2017-01-11T13:29:18
null
UTF-8
C++
false
false
633
cpp
// // main.cpp // PruebasInerencia // // Created by Henry on 13/02/17. // Copyright © 2017 Henryk. All rights reserved. // #include <iostream> #include <vector> #include "Papa.h" #include "Hijo.h" int main(int argc, const char * argv[]) { // insert code here... std::cout << "Hello, World!\n"; Papa nP1(5); std::cout <<nP1.muestraNum()<<"\n"; Hijo nH1(6.6f); std::cout <<nH1.muestraNum()<<"\n"; std::cout <<nH1.muestraTam()<<"\n"; std::vector<Papa*> vec; Papa::facM(); vec.push_back(&nH1); std::cout << vec[0]->muestraNum()<<"\n"; return 0; }
[ "Enrique@MacBook-Pro-de-Enrique-3.local" ]
Enrique@MacBook-Pro-de-Enrique-3.local
582de7fc41e34d0fdec8d8ea56abf0ac561f0749
9488dc8080b4c2534aa421744c66bb8f755ff41d
/C++/Projects/Game/Game/DialogState.cpp
e45c1185c780a64509f1ebbfcad188d3166fca38
[]
no_license
Kn1MS/SoftForAll
2e201f18e7de5a34d6fbf2ba163703831e367ff8
221dc13e66690db6a92eab721c5db9a1c7c91743
refs/heads/master
2021-01-20T10:04:37.943122
2017-05-04T16:06:29
2017-05-04T16:06:29
null
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
9,347
cpp
#include "../Include/DialogState.hpp" #include "../Include/Button.hpp" #include "../Include/Utility.hpp" #include "../Include/ResourceHolder.hpp" #include <SFML/Graphics/RectangleShape.hpp> #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/View.hpp> DialogState::DialogState(StateStack& stack, Context context) : State(stack, context) , textNumber(0) , mTexture(context.textures->get(Textures::DialogBox)) , mSprite() , mText() , mTalking() , mGUIContainer() , mDialogText() , mDialogTalking() { sf::Vector2f windowSize(context.window->getView().getSize()); sf::Vector2f windowCenter(context.window->getView().getCenter()); mTalking.setFont(context.fonts->get(Fonts::Main)); mTalking.setCharacterSize(24); mText.setFont(context.fonts->get(Fonts::Main)); mText.setCharacterSize(18); mText.setFillColor(sf::Color::Black); mSprite.setTexture(mTexture); mSprite.setScale(windowSize.x / mSprite.getLocalBounds().width, 1.5f); switch(context.playerInfo->mDialogNumber) { case 0: addText(L"Зная, что силы Зла начнут наступление с Теневых Земель, находящихся за Чёрным Хребтом на дальнем востоке королевства, герой Стратклайда отправляется на Восточную долину, принявшую на себя основной удар во время Великой Войны десять лет назад.", L"Повествование"); addText(L"За десять лет, конечно, местные леса восстановиться не успели, но вместо гиблого пустыря, напоминающего скорее мёртвую пустыню, сейчас это место представляло собой покрытые зеленью холмы и луга. И именно сюда сейчас прибыли первые порождения Тьмы.", L"Повествование"); break; case 1: addText("Hello, World! My name is Strange, I'm Archer from Strathclyde.", "Arantir"); addText(L"Это русский язык. Странно, что он нормально отображается...", L"Арантир"); addText("It's English. It's normal that there are not any errors.", "Arantir"); break; case 2: addText(L"Проклятье...", L"Сэр Освальд"); addText(L"В чём проблема?", L"Арантир"); addText(L"Святой Дух, мои глаза не обманывают меня?!", L"Сэр Освальд"); addText(L"Нет, сэр рыцарь. Так что такое?", L"Арантир"); addText(L"Герой Стратклайда! Я уж начал думать, что всё пропало...", L"Сэр Освальд"); addText(L"...", L"Арантир"); addText(L"Прошу прощения, меня зовут сэр Освальд, я рыцарь ордена Священного Света. Вместе с моим давним товарищем - сэром Генрихом, мы отозвались на призыв короля действовать против сил Зла на востоке и вдвоём двинулись в эти места. Когда мы наткнулись на эту пещеру, Генрих решил заглянуть внутрь,мне сказал ждать снаружи.", L"Сэр Освальд"); addText(L"Не успело пройти и нескольких секунд, как я услышал его удаляющийся крик и в этот момент прямо передо мной опустилась эта дверь... Я опасаюсь худшего. Я не хочу грузить вас чужими заботами, господин, да к тому же это моя вина, что я отпустил Генриха туда одного... но всё же я был бы вамблагодарен, если бы вы смогли как-нибудь помочь....", L"Сэр Освальд"); addText(L"М-м... Возможно я смог бы что-нибудь сделать... А может и нет.", L"Арантир"); break; case 3: addText(L"На механизме вы видите причудиво закручивающееся углубление. Сюда бы подошло что - нибудь в форме шестиугольной звезды", L"Повествование"); break; case 4: addText(L"На теле командира дворфов вы нашли странной формы камень в виде шестиугольной звезды", L"Повествование"); break; case 5: addText(L"Вы вкладываете камень в разъём и он, крутясь и опускаясь, достигает дна механизма. Со стороны раздаётся звук отходящей каменной двери", L"Повествование"); break; case 6: addText(L"Прочь, тёмные твари! Я буду биться до конца!", L"Сэр Генрих"); addText(L"Сэр Генрих?", L"Арантир"); addText(L"Откуда вы знаете моё имя, отродья Преисподней!?", L"Сэр Генрих"); addText(L"Сэр Освальд мне его сказал.", L"Арантир"); addText(L"Освальд?", L"Сэр Генрих"); // В: Тут он типа пару шагов делает, так? // О: Ничего не знаю про шаги... addText(L"Святые лики, да вы же Герой Стратклайда!", L"Сэр Генрих"); addText(L"Да-да, это я...", L"Арантир"); addText(L"Слава Святым, я спасён. Немного прошёл во тьму, оступился и упал на самое дно пещеры. Там стал отступать от приближающихся дворфов и гоблинов, а потом... А потом одного прирезал и вдруг тьма. Думал, что всё, дни мои сочтены.", L"Сэр Генрих"); addText(L"Сэр Освальд ждёт вас наверху.", L"Арантир"); addText(L"Благодарю вас, господин. Сейчас передохну немного и пойду наверх.", L"Сэр Генрих"); addText(L"Ага...", L"Арантир"); break; case 255: addText(L"Это русский язык. Странно, что он нормально отображается...", L"Арантир"); break; default: addText("Invalid dialog type.", "Error"); break; } setText(textNumber); auto nextButton = std::make_shared<GUI::Button>(*context.fonts, *context.textures); nextButton->setPosition(windowCenter.x + windowSize.x / 2.f - 220.f, windowCenter.y + windowSize.y / 2.f - 107.f); nextButton->setText(L"Дальше"); nextButton->setCallback([this] () { if (textNumber == mDialogText.size() - 1) { requestStackPop(); } else { textNumber++; setText(textNumber); } }); mGUIContainer.pack(nextButton); auto skipButton = std::make_shared<GUI::Button>(*context.fonts, *context.textures); skipButton->setPosition(windowCenter.x + windowSize.x / 2.f - 220.f, windowCenter.y + windowSize.y / 2.f - 57.f); skipButton->setText(L"Пропустить"); skipButton->setCallback([this]() { requestStackPop(); }); mGUIContainer.pack(skipButton); } void DialogState::addText(sf::String text, sf::String talking) { mDialogText.push_back(text); mDialogTalking.push_back(talking); } void DialogState::setText(size_t number) { sf::String& text = mDialogText[number]; for (size_t i = 0; i < text.getSize(); i++) { if (i % static_cast<int>(mSprite.getGlobalBounds().width / (mText.getCharacterSize() - 5.f)) == 0 && i > 0) text.insert(i, "\n"); } mText.setString(text); mTalking.setString(mDialogTalking[number]); } void DialogState::draw() { sf::RenderWindow& window = *getContext().window; window.setView(window.getDefaultView()); sf::Vector2f center = window.getView().getCenter(); sf::Vector2f size = window.getView().getSize(); mSprite.setScale(size.x / mSprite.getLocalBounds().width, 1.5f); mText.setPosition(center.x - size.x / 2.f + 20.f, center.y + size.y / 2.f - mSprite.getGlobalBounds().height + 10.f); mTalking.setPosition(center.x - size.x / 2.f + 20.f, center.y + size.y / 2.f - mSprite.getGlobalBounds().height - 30.f); mSprite.setPosition(center.x - size.x / 2.f, center.y + size.y / 2.f - mSprite.getGlobalBounds().height); sf::RectangleShape backgroundShape; backgroundShape.setFillColor(sf::Color(0, 0, 0, 150)); backgroundShape.setSize(window.getView().getSize()); window.draw(backgroundShape); window.draw(mSprite); window.draw(mText); window.draw(mTalking); window.draw(mGUIContainer); } bool DialogState::update(sf::Time) { return false; } bool DialogState::handleEvent(const sf::Event& event) { /* if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) requestStackPush(States::Pause); return true; */ mGUIContainer.handleEvent(event); return false; }
[ "vasar007@yandex.ru" ]
vasar007@yandex.ru
d3b76f62ea2253d6384ddea9d15e3d389e86428e
d72ba429177702891d94d121964cccb1ebfaa4f0
/src/highScore.h
5a1bd7765b24c941582a2e040aac5bc3982e4b24
[ "MIT" ]
permissive
tatokis/minesweeper
a32cfb026bd5dc567f1b70fa1a2965f279a39062
65cd025364ea72fe7e333a7524d803e6139cfed2
refs/heads/master
2020-09-11T02:16:14.111093
2019-10-25T23:11:29
2019-10-25T23:11:29
221,907,802
1
0
MIT
2019-11-15T11:11:36
2019-11-15T11:11:36
null
UTF-8
C++
false
false
3,178
h
//-------------------------------------------------------------------------------------------------- // // The MIT License (MIT) // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software // and associated documentation files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies or // substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING // BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // //-------------------------------------------------------------------------------------------------- // // Copyright (c) 2017 Nic Holthaus // //-------------------------------------------------------------------------------------------------- // // ATTRIBUTION: // // //-------------------------------------------------------------------------------------------------- // /// @file highScore.h /// @brief Class to contain a minesweeper high score // //-------------------------------------------------------------------------------------------------- #pragma once //------------------------- // INCLUDES //------------------------- #include <QString> #include <QDataStream> #include <QDateTime> //------------------------- // FORWARD DECLARATIONS //------------------------- class HighScoreModel; //-------------------------------------------------------------------------------------------------- // CLASS HIGHSCORE //-------------------------------------------------------------------------------------------------- class HighScore : public QObject { Q_OBJECT public: enum Difficulty { beginner, intermediate, expert, custom, }; Q_ENUM(Difficulty); public: HighScore() = default; HighScore(QString name, Difficulty difficulty, quint32 score, QDateTime date); HighScore(const HighScore& other); HighScore& operator=(const HighScore& other); QString name() const; Difficulty difficulty() const; quint32 score() const; QDateTime date() const; void setName(QString name); void setDifficultty(Difficulty difficulty); void setScore(quint32 score); void setDate(QDateTime date); bool operator<(const HighScore& rhs) const; bool operator==(const HighScore& rhs) const; friend HighScoreModel; private: QString m_name; Difficulty m_difficulty; quint32 m_score; QDateTime m_date; }; Q_DECLARE_METATYPE(HighScore); QDataStream &operator<<(QDataStream &out, const HighScore&); QDataStream &operator>>(QDataStream &in, HighScore&);
[ "nholthaus@gmail.com" ]
nholthaus@gmail.com
3d39dc65f74920f435056bcba6c81542602af6d1
6cbf5efd14bc7d997f1a5b7794ee526c2b057517
/old_code/TuneParameters.h
b83f255157b628406b825a1bd772228c9e7b1540
[]
no_license
qizhangqi/misdp
ff2cf317ac5cce57553e6c1daed9ffedc14ec463
e6e100760a029c97e1001cbd67d310d406f46541
refs/heads/master
2020-04-11T10:46:27.254428
2015-03-17T23:48:53
2015-03-17T23:48:53
31,864,792
0
1
null
null
null
null
UTF-8
C++
false
false
2,751
h
// // TuneParameters.h // BNSL // // Created by Qi on 4/26/14. // Copyright (c) 2014 Qi Zhang. All rights reserved. // #ifndef __SR__TuneParameters__ #define __SR__TuneParameters__ #include <iostream> #include <string> class TuneParameters{ public: TuneParameters(); void infoPrinter(); /* model parameters */ int kSparse; // k in k-sparsity, if 0, then BIC double lambdaPenalty; // || Y-X beta ||^2 + \lambda * cardinality double sigma2Noise; // || Y-X beta ||^2 + log(m)/2 * sigma2 * cardinality std::string infilename; std::string outfilename; std::string constraintType; /* tune parameters*/ double DOUBLE_EPSILON; double DOUBLE_EPSILON_USER_CUT_LOWER_THRESHOLD; double DOUBLE_EPSILON_ADD_USER_CUT_THRESHOLD; double DOUBLE_EPSILON_ON_CUT; double DOUBLE_EPSILON_ADD_LAZY_CUT_THRESHOLD; int how_many_usercut_in_one_incumbent; bool flag_ifcount_num_of_all_cuts; int num_lazy_cut_on_f; int num_lazy_cut_on_g; int num_user_cut_on_f; int num_lazy_cut_on_fandg; int num_user_cut_on_g; int num_user_cut_on_fandg; int num_user_cut; int num_lazy_cut; int num_sbm_lower_cut_on_g; int num_sbm_upper_cut_on_f; int num_gradient_upper_cut_on_f; int num_gradient_upper_cut_on_LMinusU_psd; int num_gradient_upper_cut_on_LMinusU_nsd; int num_gradient_upper_cut_on_LMinusU_partial; int num_gradient_cut_on_LMinusU_adaptive_psd; int num_gradient_cut_on_LMinusU_adaptive_nsd; int num_gradient_exp; // int num_cut_on_p; // int num_lazycut_on_p; // int num_cut_on_cycle; // int num_heuristic_provided; //temp in a round, bool any_cut_added ; int num_cut_added_this_round ; double cumulative_violated_amount; double rootGap; double rootBestValue; double incumbentBestValue; bool rootFlag; // type of cut bool cutTypeFlag_Lazy_upper1; bool cutTypeFlag_Lazy_upper2; bool cutTypeFlag_Lazy_lowerfacet; bool cutTypeFlag_Lazy_uppergradient; bool cutTypeFlag_Lazy_NSD; bool cutTypeFlag_Lazy_PSD; bool cutTypeFlag_Lazy_uppergradient_eig1; bool cutTypeFlag_User_lowerfacet; bool cutTypeFlag_User_uppergradient; bool cutTypeFlag_User_uppergradient_eig1; bool cutTypeFlag_User_NSD; bool cutTypeFlag_User_PSD; bool cutTypeFlag_User_adaptive_PSD; bool cutTypeFlag_User_adaptive_NSD; bool initialConstraintFlag_totalGrad_PSD; bool initialConstraintFlag_upper; bool initialConstraintFlag_lower; long limitNumber_Nodes; // temp double testNumber1; }; #endif /* defined(__SR__TuneParameters__) */
[ "zqtczqtc@gmail.com" ]
zqtczqtc@gmail.com
1ab42828c1658c82a2a21ce75cf959e1fdaaf6eb
9d4c6ee41d527560c845f01cc882359303f546d1
/src/nvcore/RadixSort.cpp
52f7e3231d646c3554472e4470cb921b26affb78
[ "MIT" ]
permissive
JellyPixelGames/thekla_atlas
9c926271de0f9037c158fa8fad75576a2f983a63
b46d64eeea9840ecd701087afb1b5fb9768201b1
refs/heads/master
2021-08-30T02:43:22.719763
2017-12-15T19:35:03
2017-12-15T19:35:03
null
0
0
null
null
null
null
ISO-8859-10
C++
false
false
6,941
cpp
// This code is in the public domain -- Ignacio Castaņo <castano@gmail.com> #include "RadixSort.h" #include "Utils.h" #include <string.h> // memset using namespace nv; static inline void FloatFlip(uint32 & f) { //uint32 mask = -int32(f >> 31) | 0x80000000; // Michael Herf. int32 mask = (int32(f) >> 31) | 0x80000000; // Warren Hunt, Manchor Ko. f ^= mask; } static inline void IFloatFlip(uint32 & f) { uint32 mask = ((f >> 31) - 1) | 0x80000000; // Michael Herf. //uint32 mask = (int32(f ^ 0x80000000) >> 31) | 0x80000000; // Warren Hunt, Manchor Ko. @@ Correct, but fails in release on gcc-4.2.1 f ^= mask; } template<typename T> void createHistograms(const T * buffer, uint count, uint * histogram) { const uint bucketCount = sizeof(T); // (8 * sizeof(T)) / log2(radix) // Init bucket pointers. uint * h[bucketCount]; for (uint i = 0; i < bucketCount; i++) { #if NV_BIG_ENDIAN h[sizeof(T)-1-i] = histogram + 256 * i; #else h[i] = histogram + 256 * i; #endif } // Clear histograms. memset(histogram, 0, 256 * bucketCount * sizeof(uint)); // @@ Add support for signed integers. // Build histograms. const uint8 * p = (const uint8 *)buffer; // @@ Does this break aliasing rules? const uint8 * pe = p + count * sizeof(T); while (p != pe) { h[0][*p++]++, h[1][*p++]++, h[2][*p++]++, h[3][*p++]++; if (bucketCount == 8) h[4][*p++]++, h[5][*p++]++, h[6][*p++]++, h[7][*p++]++; } } /* template <> void createHistograms<float>(const float * buffer, uint count, uint * histogram) { // Init bucket pointers. uint32 * h[4]; for (uint i = 0; i < 4; i++) { #if NV_BIG_ENDIAN h[3-i] = histogram + 256 * i; #else h[i] = histogram + 256 * i; #endif } // Clear histograms. memset(histogram, 0, 256 * 4 * sizeof(uint32)); // Build histograms. for (uint i = 0; i < count; i++) { uint32 fi = FloatFlip(buffer[i]); h[0][fi & 0xFF]++; h[1][(fi >> 8) & 0xFF]++; h[2][(fi >> 16) & 0xFF]++; h[3][fi >> 24]++; } } */ RadixSort::RadixSort() : m_size(0), m_ranks(NULL), m_ranks2(NULL), m_validRanks(false) { } RadixSort::RadixSort(uint reserve_count) : m_size(0), m_ranks(NULL), m_ranks2(NULL), m_validRanks(false) { checkResize(reserve_count); } RadixSort::~RadixSort() { // Release everything free(m_ranks2); free(m_ranks); } void RadixSort::resize(uint count) { m_ranks2 = realloc<uint>(m_ranks2, count); m_ranks = realloc<uint>(m_ranks, count); } inline void RadixSort::checkResize(uint count) { if (count != m_size) { if (count > m_size) resize(count); m_size = count; m_validRanks = false; } } template <typename T> inline void RadixSort::insertionSort(const T * input, uint count) { if (!m_validRanks) { /*for (uint i = 0; i < count; i++) { m_ranks[i] = i; }*/ m_ranks[0] = 0; for (uint i = 1; i != count; ++i) { int rank = m_ranks[i] = i; uint j = i; while (j != 0 && input[rank] < input[m_ranks[j-1]]) { m_ranks[j] = m_ranks[j-1]; --j; } if (i != j) { m_ranks[j] = rank; } } m_validRanks = true; } else { for (uint i = 1; i != count; ++i) { int rank = m_ranks[i]; uint j = i; while (j != 0 && input[rank] < input[m_ranks[j-1]]) { m_ranks[j] = m_ranks[j-1]; --j; } if (i != j) { m_ranks[j] = rank; } } } } template <typename T> inline void RadixSort::radixSort(const T * input, uint count) { const uint P = sizeof(T); // pass count // Allocate histograms & offsets on the stack uint histogram[256 * P]; uint * link[256]; createHistograms(input, count, histogram); // Radix sort, j is the pass number (0=LSB, P=MSB) for (uint j = 0; j < P; j++) { // Pointer to this bucket. const uint * h = &histogram[j * 256]; const uint8 * inputBytes = (const uint8*)input; // @@ Is this aliasing legal? #if NV_BIG_ENDIAN inputBytes += P - 1 - j; #else inputBytes += j; #endif if (h[inputBytes[0]] == count) { // Skip this pass, all values are the same. continue; } // Create offsets link[0] = m_ranks2; for (uint i = 1; i < 256; i++) link[i] = link[i-1] + h[i-1]; // Perform Radix Sort if (!m_validRanks) { for (uint i = 0; i < count; i++) { *link[inputBytes[i*P]]++ = i; } m_validRanks = true; } else { for (uint i = 0; i < count; i++) { const uint idx = m_ranks[i]; *link[inputBytes[idx*P]]++ = idx; } } // Swap pointers for next pass. Valid indices - the most recent ones - are in m_ranks after the swap. swap(m_ranks, m_ranks2); } // All values were equal, generate linear ranks. if (!m_validRanks) { for (uint i = 0; i < count; i++) { m_ranks[i] = i; } m_validRanks = true; } } RadixSort & RadixSort::sort(const uint32 * input, uint count) { if (input == NULL || count == 0) return *this; // Resize lists if needed checkResize(count); if (count < 32) { insertionSort(input, count); } else { radixSort<uint32>(input, count); } return *this; } RadixSort & RadixSort::sort(const uint64 * input, uint count) { if (input == NULL || count == 0) return *this; // Resize lists if needed checkResize(count); if (count < 64) { insertionSort(input, count); } else { radixSort(input, count); } return *this; } RadixSort& RadixSort::sort(const float * input, uint count) { if (input == NULL || count == 0) return *this; // Resize lists if needed checkResize(count); if (count < 32) { insertionSort(input, count); } else { // @@ Avoid touching the input multiple times. for (uint i = 0; i < count; i++) { FloatFlip((uint32 &)input[i]); } radixSort<uint32>((const uint32 *)input, count); for (uint i = 0; i < count; i++) { IFloatFlip((uint32 &)input[i]); } } return *this; }
[ "castano@gmail.com" ]
castano@gmail.com
39d990be602b9fbebf15fee85468c63e8db45149
fc0cddcc4db163290eb4cb1e0ab116ae3fbb2970
/Maths/Math2D.cpp
b6012975b0929fd0c9d58923c4b9730eb303da16
[]
no_license
Sujay-Shah/DryEngine
2269d39583f8bb4ea591cd41b43dc3641daf65fe
a680a99e8b611563c9b85dc9de5df3391198f790
refs/heads/master
2021-09-03T15:39:17.745385
2018-01-10T06:41:27
2018-01-10T06:41:27
116,511,763
0
0
null
null
null
null
UTF-8
C++
false
false
2,873
cpp
/* Start Header ------------------------------------------------------- Copyright (C) 2017 DigiPen Institute of Technology. Reproduction or disclosure of this file or its contents without the prior written consent of DigiPen Institute of Technology is prohibited. File Name: Math2D.c Purpose: 2D collision library implementation Language: C/C++ using Visual Studio 2015 Platform: Visual Studio 2015, Hardware Requirements: 1.6 GHz or faster processor 1 GB of RAM (1.5 GB if running on a virtual machine) 4 GB of available hard disk space 5400 RPM hard disk drive DirectX 9-capable video card (1024 x 768 or higher resolution) Operating Systems: Windows 10 Windows 8.1 Windows 8 Windows 7 SP 1 Windows Server 2012 R2 Windows Server 2012 Windows Server 2008 R2 SP1 Project: CS529_sujay.shah_1 Author: Name: Sujay Shah ; Login: sujay.shah ; Student ID : 60001517 Creation date: September 13, 2017. - End Header --------------------------------------------------------*/ #include "Math2D.h" #include "stdio.h" /* This function checks if the point P is colliding with the circle whose center is "Center" and radius is "Radius" */ int StaticPointToStaticCircle(Vector2D *pP, Vector2D *pCenter, float Radius) { if (Radius*Radius < (pP->x - pCenter->x)*(pP->x - pCenter->x) + (pP->y - pCenter->y)*(pP->y - pCenter->y)) { return 0; } else return 1; } /* This function checks if the point Pos is colliding with the rectangle whose center is Rect, width is "Width" and height is Height */ int StaticPointToStaticRect(Vector2D *pPos, Vector2D *pRect, float Width, float Height) { if ((pPos->x) < (pRect->x - Width / 2) || ((pPos->x) > (pRect->x + Width / 2)) || ((pPos->y) < (pRect->y - Height / 2)) || ((pPos->y) > (pRect->y + Width / 2))) return 0; else return 1; } /* This function checks for collision between 2 circles. Circle0: Center is Center0, radius is "Radius0" Circle1: Center is Center1, radius is "Radius1" */ int StaticCircleToStaticCircle(Vector2D *pCenter0, float Radius0, Vector2D *pCenter1, float Radius1) { if ((Radius0*Radius0 + Radius1*Radius1+2*Radius0*Radius1) < (pCenter0->x - pCenter1->x)*(pCenter0->x - pCenter1->x) + (pCenter0->y - pCenter1->y)*(pCenter0->y - pCenter1->y)) return 0; else return 1; } /* This functions checks if 2 rectangles are colliding Rectangle0: Center is pRect0, width is "Width0" and height is "Height0" Rectangle1: Center is pRect1, width is "Width1" and height is "Height1" */ int StaticRectToStaticRect(Vector2D *pRect0, float Width0, float Height0, Vector2D *pRect1, float Width1, float Height1) { if ((pRect0->x + Width0 / 2) < (pRect1->x - Width1 / 2) || (pRect0->x - Width0 / 2) > (pRect1->x + Width1 / 2) || (pRect0->y + Height0 / 2) < (pRect1->y - Height1 / 2)||(pRect0->y - Height0 / 2) > (pRect1->y + Height1 / 2)) return 0; else return 1; }
[ "snshah93@gmail.com" ]
snshah93@gmail.com
21f32ea16ceded35ebfe03d5f73b00b342bb1801
a9116a2fa6e525f2f6b3a3c79377dcc656593bd0
/Client Source/src/AppPrintConfig/msgs.h
b113dcabe4f1a99c0f3020f658cc26e313843d06
[]
no_license
ldsamburn/nt-tony
f916267e4fdfadd40d71dd6f16b63a25f437cee6
89ff243401957678f71a90e33ee8f0596d3ec7e8
refs/heads/master
2021-01-12T03:01:19.444901
2017-01-05T21:16:32
2017-01-05T21:16:32
78,148,560
0
0
null
null
null
null
UTF-8
C++
false
false
1,733
h
/* Copyright(c)2002 Northrop Grumman Corporation All Rights Reserved This material may be reproduced by or for the U.S. Government pursuant to the copyright license under the clause at Defense Federal Acquisition Regulation Supplement (DFARS) 252.227-7013 (NOV 1995). */ // Make sure have stdafx.h #ifndef __AFXWIN_H__ #error include "stdafx.h" before including this file #endif #ifndef _INCLUDE_MSGS_H_ #define _INCLUDE_MSGS_H_ #include "privapis.h" #include "ntcssmsg.h" #include "msgdefs.h" #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 ///////////////////////////////////////////////////////////////////////////// // CmsgGETOTYPEINI // ______________ class CmsgGETOTYPEINI : public CNtcssMEM_MSG_ALLOC_Msg { public: CmsgGETOTYPEINI(); ~CmsgGETOTYPEINI(); BOOL DoItNow() { return(CNtcssMEM_MSG_ALLOC_Msg::DoItNow()); }; BOOL Load(CString strHostname); BOOL UnLoad(char *ini_file_name_path); protected: Sgetotypeini_svrmsgrec *svr_msg_ptr; #ifdef _NTCSS_MSG_DEBUG_ virtual void ShowMsg(CString *show_buf);#include "stdafx.h" #endif }; ///////////////////////////////////////////////////////////////////////////// // CmsgPUTOTYPEINI // ______________ class CmsgPUTOTYPEINI : public CNtcssMEM_MSG_ALLOC_Msg { public: CmsgPUTOTYPEINI(); ~CmsgPUTOTYPEINI(); BOOL DoItNow() { return(CNtcssMEM_MSG_ALLOC_Msg::DoItNow()); }; BOOL Load(const char *file_name,CString strHostname); BOOL UnLoad(char *log_file_name_path); protected: Sputotypeini_svrmsgrec *svr_msg_ptr; #ifdef _NTCSS_MSG_DEBUG_ virtual void ShowMsg(CString *show_buf); #endif }; #endif
[ "ldsamburn@hotmail.com" ]
ldsamburn@hotmail.com
3ff29643f68715d765313ec0a2f35201a735c9be
9a24b2ab66bcec43deb25add8b8a1ba238317067
/3for/3for.cpp
a748a43e01ff86c9f2d6282a1871dddc287f0dcc
[]
no_license
cardioflow/lr3.
4a3398fee7116b9159fa0bbed8a67fcf19e2c061
0dd4074bd1fe3fccf9a5c1d5ce339350db82a8b7
refs/heads/main
2023-04-01T09:18:19.335338
2021-03-14T22:51:02
2021-03-14T22:51:02
347,774,813
0
0
null
null
null
null
UTF-8
C++
false
false
472
cpp
#include <math.h> #include <iostream> using namespace std; double func(int i) { return (pow(-1, i)) * ((i + 1) / (pow(i, 3) + 1)); } void print(int n, int k) { int count = 1; for (int i=0; i<n; ++i) { if (count != k) { count++; func(i); cout << "n=" << i << "func=" << func(i) << "\n"; } else { count = 1; continue; } } } void main() { int n, k = 0; cout << "vvedite n="; cin >> n; cout << "vvedite k="; cin >> k; print(n, k); }
[ "lukinov.artem@gmail.com" ]
lukinov.artem@gmail.com
84946daed1e3b0ecc64fa3aeb235f44db201745c
5b7509657d4565d379264374bbd39f34971145a7
/VVVF/VVVF/VVVF.ino
c9705beb650ea51d36c601c22d2cbb0b425c74ce
[]
no_license
rsc398/Arduino
baa95b27d6db560c52988af04523f12ad5fbf374
7aa1b0a5f163427d69b34d5729e74b8cac915c95
refs/heads/master
2023-01-22T02:03:39.620752
2020-11-30T13:58:33
2020-11-30T13:58:33
258,521,150
0
0
null
null
null
null
UTF-8
C++
false
false
1,197
ino
int uOut = 9; int vOut = 3; int wOut = 11; int freqIn = 0; int amplitudeIn = 1; //variable setup float freq ; float amplitude = 0.; float uModulate; float vModulate; float wModulate; int ang; int sinw[180]; int angu; int angv; int angw; void setup() { pinMode(uOut, OUTPUT); pinMode(vOut, OUTPUT); pinMode(wOut, OUTPUT); Serial.begin(9600); for (ang = 0; ang < 180; ang = ang + 1) { sinw[ang] = 126 * (sin(ang * 3.14 / 90) + 1); Serial.print(sinw[ang]); Serial.print(","); } angu = 0; angv = 60; angw = 120; } void loop() { freq = analogRead(freqIn) / 10.23; amplitude = freq * 0.0099 + 0.1; uModulate = sinw[angu]; vModulate = sinw[angv]; wModulate = sinw[angw]; if (freq < 1.0) { amplitude = 0; } if (amplitude >= 1.) { amplitude = 1.; } analogWrite (uOut, int ( uModulate * amplitude)); analogWrite (vOut, int ( vModulate * amplitude)); analogWrite (wOut, int ( wModulate * amplitude)); angu = angu + 1; angv = angv + 1; angw = angw + 1; if (angu >= 180) { angu = 0; } if (angv >= 180) { angv = 0; } if (angw >= 180) { angw = 0; } delayMicroseconds(int(9000 / freq)); }
[ "radio@rsc398.net" ]
radio@rsc398.net
6d488eb8ea0e16ed0ed73b3243eb37f876061625
f769e4df3e80746adadf5ef3c843dda5212809cf
/chuck-norris-joke-part2/HoundCpp/HoundJSON/AreaCodeInfoNuggetJSON.h
ecc9737331ba6479331ef4edfc3d7e009528e871
[]
no_license
jiintonic/weekend-task
0758296644780e172a07b2308ed91d7e5a51b77d
07ec0ba5a0f809d424d134d33e0635376d290c69
refs/heads/master
2020-03-30T09:07:29.518881
2018-10-03T15:13:58
2018-10-03T15:13:58
151,061,148
1
0
null
null
null
null
UTF-8
C++
false
false
10,776
h
/* file "AreaCodeInfoNuggetJSON.h" */ /* Generated automatically by Classy JSON. */ #ifndef AREACODEINFONUGGETJSON_H #define AREACODEINFONUGGETJSON_H #pragma interface #include "InformationNuggetJSON.h" #include "JSONRep.h" #include "JSONHoldingGenerator.h" #include "JSONObjectGenerator.h" #include "JSONStringGenerator.h" #include "JSONHandler.h" #include "JSONCheckingHandler.h" #include "ReferenceCounted.h" #include "RCHandle.h" #include "JSONParse.h" #include <stdlib.h> #include <stdio.h> #include <assert.h> class AreaCodeInfoNuggetJSON : public InformationNuggetJSON { private: AreaCodeInfoNuggetJSON(const AreaCodeInfoNuggetJSON &); AreaCodeInfoNuggetJSON & operator=(const AreaCodeInfoNuggetJSON &other); public: AreaCodeInfoNuggetJSON(void); virtual ~AreaCodeInfoNuggetJSON(void); const char * getNuggetKind(void) const; virtual const char *getAreaCodeInfoNuggetKind(void) const = 0; virtual size_t extraAreaCodeInfoNuggetComponentCount(void) const = 0; virtual const char *extraAreaCodeInfoNuggetComponentKey(size_t component_num) const = 0; virtual JSONValue *extraAreaCodeInfoNuggetComponentValue(size_t component_num) = 0; virtual const JSONValue *extraAreaCodeInfoNuggetComponentValue(size_t component_num) const = 0; virtual JSONValue *extraAreaCodeInfoNuggetLookup(const char *field_name) = 0; virtual const JSONValue *extraAreaCodeInfoNuggetLookup(const char *field_name) const = 0; size_t extraInformationNuggetComponentCount(void) const { size_t result = 1; result += extraAreaCodeInfoNuggetComponentCount(); return result; } const char *extraInformationNuggetComponentKey(size_t component_num) const { if (component_num == 0) return "AreaCodeInfoNuggetKind"; return extraAreaCodeInfoNuggetComponentKey((component_num - 1)); } JSONValue *extraInformationNuggetComponentValue(size_t component_num) { if (component_num == 0) return new JSONStringValue(getAreaCodeInfoNuggetKind()); return extraAreaCodeInfoNuggetComponentValue((component_num - 1)); } const JSONValue *extraInformationNuggetComponentValue(size_t component_num) const { if (component_num == 0) return new JSONStringValue(getAreaCodeInfoNuggetKind()); return extraAreaCodeInfoNuggetComponentValue((component_num - 1)); } JSONValue *extraInformationNuggetLookup(const char *field_name) { if (strcmp(field_name, "AreaCodeInfoNuggetKind") == 0) return new JSONStringValue(getAreaCodeInfoNuggetKind()); return extraAreaCodeInfoNuggetLookup(field_name); } const JSONValue *extraInformationNuggetLookup(const char *field_name) const { if (strcmp(field_name, "AreaCodeInfoNuggetKind") == 0) return new JSONStringValue(getAreaCodeInfoNuggetKind()); return extraAreaCodeInfoNuggetLookup(field_name); } virtual void extraAreaCodeInfoNuggetAppendPair(const char *key, JSONValue *new_component) = 0; virtual void extraAreaCodeInfoNuggetSetField(const char *key, JSONValue *new_component) = 0; void extraInformationNuggetAppendPair(const char *key, JSONValue *new_component) { if (strcmp(key, "AreaCodeInfoNuggetKind") == 0) return; extraAreaCodeInfoNuggetAppendPair(key, new_component); } void extraInformationNuggetSetField(const char *key, JSONValue *new_component) { if (strcmp(key, "AreaCodeInfoNuggetKind") == 0) return; extraAreaCodeInfoNuggetSetField(key, new_component); } virtual void write_as_json(JSONHandler *handler) const { handler->start_object(); write_fields_as_json(handler); handler->finish_object(); } virtual void write_fields_as_json(JSONHandler *handler) const { InformationNuggetJSON::write_fields_as_json(handler); handler->pair("AreaCodeInfoNuggetKind", getAreaCodeInfoNuggetKind()); } virtual const char *missing_field_error(void) const { return NULL; } static AreaCodeInfoNuggetJSON *from_json(JSONValue *json_value, bool ignore_extras = false); static AreaCodeInfoNuggetJSON *from_text(const char *text, bool ignore_extras = false) { AreaCodeInfoNuggetJSON *result; { JSONHoldingGenerator<Generator, RCHandle<AreaCodeInfoNuggetJSON>, AreaCodeInfoNuggetJSON *, bool> generator("Type AreaCodeInfoNugget", ignore_extras); parse_json_value(text, "Text for AreaCodeInfoNuggetJSON", &generator); assert(generator.have_value); result = generator.value.referenced(); result->add_reference(); }; result->remove_reference_no_delete(); return result; } static AreaCodeInfoNuggetJSON *from_file(FILE *fp, const char *file_name, bool ignore_extras = false) { AreaCodeInfoNuggetJSON *result; { JSONHoldingGenerator<Generator, RCHandle<AreaCodeInfoNuggetJSON>, AreaCodeInfoNuggetJSON *, bool> generator("Type AreaCodeInfoNugget", ignore_extras); parse_json_value(fp, file_name, &generator); assert(generator.have_value); result = generator.value.referenced(); result->add_reference(); }; result->remove_reference_no_delete(); return result; } class Generator : public InformationNuggetJSON::Generator { private: class UnknownFieldGenerator : public JSONValueHandler { public: bool ignore; std::vector<std::string> field_names; std::vector<RCHandle<JSONValue> > field_values; string_index *index; UnknownFieldGenerator(bool init_ignore) : ignore(init_ignore) { index = create_string_index(); } ~UnknownFieldGenerator(void) { destroy_string_index(index); } protected: void new_value(JSONValue *item) { if (ignore) return; assert(field_names.size() == (field_values.size() + 1)); enter_into_string_index(index, field_names[field_values.size()].c_str(), item); field_values.push_back(item); } public: void reset() { field_names.clear(); field_values.clear(); destroy_string_index(index); index = create_string_index(); } }; UnknownFieldGenerator unknownFieldGenerator; JSONHoldingGenerator<JSONStringGenerator, std::string, const char *> keyGenerator; protected: void start(void) { } JSONHandler *start_field(const char *field_name) { JSONHandler *result = start_known_field(field_name); if (result != NULL) return result; assert(unknownFieldGenerator.field_names.size() == unknownFieldGenerator.field_values.size()); if (unknownFieldGenerator.ignore) { assert(unknownFieldGenerator.field_names.size() == 0); } else { unknownFieldGenerator.field_names.push_back(field_name); } return &unknownFieldGenerator; } void finish_field(const char *field_name, JSONHandler *field_handler) { } void finish(void) { if (!(keyGenerator.have_value)) throw("The `AreaCodeInfoNuggetKind' field is missing."); if (!(strcmp(getInformationNuggetJSONKey().c_str(), "AreaCodeInfoNugget") == 0)) throw("The key field has a value other than `AreaCodeInfoNugget'."); AreaCodeInfoNuggetJSON *result = createForKey(keyGenerator.value.c_str(), unknownFieldGenerator.index); assert(result != NULL); RCHandle<AreaCodeInfoNuggetJSON> result_holder = result; finish(result); size_t extra_count = unknownFieldGenerator.field_names.size(); assert(extra_count == unknownFieldGenerator.field_values.size()); for (size_t extra_num = 0; extra_num < extra_count; ++extra_num) { result->extraAreaCodeInfoNuggetAppendPair(unknownFieldGenerator.field_names[extra_num].c_str(), unknownFieldGenerator.field_values[extra_num].referenced()); } unknownFieldGenerator.field_names.clear(); unknownFieldGenerator.field_values.clear(); destroy_string_index(unknownFieldGenerator.index); unknownFieldGenerator.index = create_string_index(); const char *missing_field_error = result->missing_field_error(); if (missing_field_error != NULL) error(missing_field_error); handle_result(result); } std::string getAreaCodeInfoNuggetJSONKey(void) { if (!(keyGenerator.have_value)) throw("The `AreaCodeInfoNuggetKind' field is missing."); return keyGenerator.value; } void handle_result(InformationNuggetJSON *new_result) { handle_result((AreaCodeInfoNuggetJSON *)new_result); } void finish(AreaCodeInfoNuggetJSON *result) { InformationNuggetJSON::Generator::finish(result); } virtual void handle_result(AreaCodeInfoNuggetJSON *new_result) = 0; virtual JSONHandler *start_known_field(const char *field_name) { if (strcmp(field_name, "AreaCodeInfoNuggetKind") == 0) { keyGenerator.reset(); return &keyGenerator; } return InformationNuggetJSON::Generator::start_known_field(field_name); } public: Generator(bool ignore_extras = false) : InformationNuggetJSON::Generator(ignore_extras), unknownFieldGenerator(ignore_extras), keyGenerator("key field \"AreaCodeInfoNuggetKind\" of the AreaCodeInfoNugget class") { set_what("the AreaCodeInfoNugget class"); } ~Generator(void) { } void reset(void) { InformationNuggetJSON::Generator::reset(); unknownFieldGenerator.reset(); } }; static AreaCodeInfoNuggetJSON *createForKey(const char *key, string_index *other_field_index); }; #endif /* AREACODEINFONUGGETJSON_H */
[ "ching-chuan.yang@daimler.com" ]
ching-chuan.yang@daimler.com
0ae620f89e5d748964c742cd3fb216ccfc7b29f6
5b020149eca7319a91af79fa2a764b3bc419826b
/AMSimulationIO/interface/Helper.h
3b3e18a3c4db89a3b1e71d69e1bc07fde50e6538
[]
no_license
robertorossin/SLHCL1TrackTriggerSimulations
927fc998a736cbb1d4d0c5db8686ec42fb5f88ba
d3db71e1467cd6eb7556a0dcb8afd85ca383892f
refs/heads/master
2021-01-18T04:13:39.354566
2016-06-10T13:36:41
2016-06-10T13:36:41
30,067,571
0
3
null
2020-10-21T17:44:55
2015-01-30T10:35:25
C++
UTF-8
C++
false
false
624
h
#ifndef AMSimulationIO_Helper_h_ #define AMSimulationIO_Helper_h_ #include <algorithm> //#include <functional> #include <cassert> #include <stdexcept> #include <iostream> #include <iterator> #include <map> #include <memory> #include <string> #include <vector> #include "TROOT.h" // for gROOT #include "TString.h" #include "TTree.h" namespace slhcl1tt { TString Color(const TString& c); TString EndColor(); void NoColor(); void Timing(bool start=false); void ShowTiming(); TString Error(); TString Warning(); TString Info(); TString Debug(); void ResetDeleteBranches(TTree* tree); } // namespace slhcl1tt #endif
[ "jia.fu.low@cern.ch" ]
jia.fu.low@cern.ch
766548682af2fbd41f8efff4dd02efbff94977f3
c1c70168fe5ed0c9c81e08915a647961200d1766
/Kattis/AC/filip.cpp
05ec9a2fc563cf1110533e7dc830460131476f5f
[]
no_license
cies96035/CPP_programs
046fa81e1d7d6e5594daee671772dbfdbdfb2870
9877fb44c0cd6927c7bfe591bd595886b1531501
refs/heads/master
2023-08-30T15:53:57.064865
2023-08-27T10:01:12
2023-08-27T10:01:12
250,568,619
0
0
null
null
null
null
UTF-8
C++
false
false
302
cpp
#include<iostream> using namespace std; string A, B; int a, b; int main() { cin.tie(0); ios_base::sync_with_stdio(0); cin >> A >> B; for(int i = 2; i >= 0; i--){ a = a * 10 + A[i] - '0'; b = b * 10 + B[i] - '0'; } cout << max(a, b) << '\n'; return 0; }
[ "39860649+cies96035@users.noreply.github.com" ]
39860649+cies96035@users.noreply.github.com
6024898e04c2e30f7d433d28948400b0e3d9c6de
f211405a3a7e9828909e46c11bbe2b9953e340db
/include/TrtLite.h
a7512bda307db1b6813291ef62f611933fe8b512
[ "Apache-2.0" ]
permissive
MamaShip/trt-samples-for-hackathon-cn
62c4bf20c89aaa2935294a4f7271cfd1eae2ed29
bab675210907799dd35ec79e33b106444fe72614
refs/heads/master
2023-05-02T20:15:43.583569
2021-05-24T02:52:36
2021-05-24T02:52:36
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,815
h
/* * Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <vector> #include <map> #include <memory> #include <iostream> #include <iomanip> #include <algorithm> #include <string> #include "Utils.h" using namespace nvinfer1; using namespace std; extern simplelogger::Logger *logger; class TrtLogger : public nvinfer1::ILogger { public: void log(Severity severity, const char* msg) override { static simplelogger::LogLevel map[] = { simplelogger::FATAL, simplelogger::ERROR, simplelogger::WARNING, simplelogger::INFO, simplelogger::TRACE }; simplelogger::LogTransaction(logger, map[(int)severity], __FILE__, __LINE__, __FUNCTION__).GetStream() << msg; } }; typedef ICudaEngine *(*BuildEngineProcType)(IBuilder *builder, void *pData); typedef void (*ConfigBuilderProcType)(IBuilderConfig *config, vector<IOptimizationProfile *> vProfile, void *pData); struct IOInfo { string name; bool bInput; nvinfer1::Dims dim; nvinfer1::DataType dataType; string GetDimString() { return ::to_string(dim); } string GetDataTypeString() { static string aTypeName[] = {"float", "half", "int8", "int32", "bool"}; return aTypeName[(int)dataType]; } int GetNumBytes() { static int aSize[] = {4, 2, 1, 4, 1}; size_t nSize = aSize[(int)dataType]; for (int i = 0; i < dim.nbDims; i++) { if (dim.d[i] < 0) { nSize = -1; break; } nSize *= dim.d[i]; } return nSize; } string to_string() { ostringstream oss; oss << setw(6) << (bInput ? "input" : "output") << " | " << setw(5) << GetDataTypeString() << " | " << GetDimString() << " | " << "size=" << GetNumBytes() << " | " << name; return oss.str(); } }; class TrtLite { public: virtual ~TrtLite() { if (context) { context->destroy(); } } TrtLite *Clone() { if (!engine->hasImplicitBatchDimension() && *pnProfile == engine->getNbOptimizationProfiles()) { LOG(ERROR) << "Insufficient profiles for creating more contexts"; return nullptr; } TrtLite *p = new TrtLite(*this); p->iProfile = (*pnProfile)++; p->context = nullptr; return p; } ICudaEngine *GetEngine() { return engine.get(); } void Execute(int nBatch, vector<void *> &vdpBuf, cudaStream_t stm = 0, cudaEvent_t* evtInputConsumed = nullptr) { if (!engine->hasImplicitBatchDimension() && nBatch > 1) { LOG(WARNING) << "Engine was built with explicit batch but is executed with batch size != 1. Results may be incorrect."; return; } if (engine->getNbBindings() != vdpBuf.size()) { LOG(ERROR) << "Number of bindings conflicts with input and output"; return; } if (!context) { context = engine->createExecutionContext(); if (!context) { LOG(ERROR) << "createExecutionContext() failed"; return; } } ck(context->enqueue(nBatch, vdpBuf.data(), stm, evtInputConsumed)); } void Execute(map<int, Dims> i2shape, vector<void *> &vdpBuf, cudaStream_t stm = 0, cudaEvent_t* evtInputConsumed = nullptr) { if (engine->hasImplicitBatchDimension()) { LOG(ERROR) << "Engine was built with static-shaped input"; return; } const int nBuf = engine->getNbBindings() / engine->getNbOptimizationProfiles(); if (nBuf != vdpBuf.size()) { LOG(ERROR) << "Number of bindings conflicts with input and output"; return; } if (!context) { context = engine->createExecutionContext(); context->setOptimizationProfileAsync(iProfile, stm); if (!context) { LOG(ERROR) << "createExecutionContext() failed"; return; } } // i2shape may have different size with nBuf, because some shapes don't need it or have been set for (auto &it : i2shape) { context->setBindingDimensions(it.first + nBuf * iProfile, it.second); } vector<void *> vdpBufEnqueue(engine->getNbBindings()); std::copy(vdpBuf.begin(), vdpBuf.end(), vdpBufEnqueue.begin() + nBuf * iProfile); ck(context->enqueueV2(vdpBufEnqueue.data(), stm, evtInputConsumed)); } void Refit(vector<tuple<const char *, WeightsRole, Weights>> vtWeight) { IRefitter *refitter = createInferRefitter(*engine, trtLogger); if (!refitter) { LOG(ERROR) << "createInferRefitter() failed"; return; } for (auto tWeight : vtWeight) { if (!refitter->setWeights(get<0>(tWeight), get<1>(tWeight), get<2>(tWeight))) { LOG(ERROR) << "refitter->setWeights() failed for " << get<0>(tWeight); } } if (!refitter->refitCudaEngine()) { LOG(ERROR) << "refitter->refitCudaEngine() failed"; } refitter->destroy(); } void Save(const char *szPath) { FILE *fp = fopen(szPath, "wb"); if (!fp) { LOG(ERROR) << "Failed to open " << szPath; return; } IHostMemory *m = engine->serialize(); fwrite(m->data(), 1, m->size(), fp); fclose(fp); m->destroy(); } vector<IOInfo> ConfigIO(int nBatchSize) { vector<IOInfo> vInfo; if (!engine->hasImplicitBatchDimension()) { LOG(ERROR) << "Engine must be built with implicit batch size (and static shape)"; return vInfo; } for (int i = 0; i < engine->getNbBindings(); i++) { vInfo.push_back({string(engine->getBindingName(i)), engine->bindingIsInput(i), MakeDim(nBatchSize, engine->getBindingDimensions(i)), engine->getBindingDataType(i)}); } return vInfo; } vector<IOInfo> ConfigIO(map<int, Dims> i2shape) { vector<IOInfo> vInfo; if (!engine) { LOG(ERROR) << "No engine"; return vInfo; } if (engine->hasImplicitBatchDimension()) { LOG(ERROR) << "Engine must be built with explicit batch size (to enable dynamic shape)"; return vInfo; } if (!context) { context = engine->createExecutionContext(); context->setOptimizationProfileAsync(iProfile, 0); if (!context) { LOG(ERROR) << "createExecutionContext() failed"; return vInfo; } } const int nBuf = engine->getNbBindings() / engine->getNbOptimizationProfiles(); for (auto &it : i2shape) { context->setBindingDimensions(it.first + nBuf * iProfile, it.second); } if (!context->allInputDimensionsSpecified()) { LOG(ERROR) << "Not all binding shape are specified"; return vInfo; } for (int i = nBuf * iProfile; i < nBuf * iProfile + nBuf; i++) { vInfo.push_back({string(engine->getBindingName(i)), engine->bindingIsInput(i), context->getBindingDimensions(i), engine->getBindingDataType(i)}); } return vInfo; } void PrintInfo() { cout << "nbBindings: " << engine->getNbBindings() << endl; // Only IO information at the engine level is included: -1 for dynamic shape dims for (size_t i = 0; i < engine->getNbBindings(); i++) { cout << "#" << i << ": " << IOInfo{string(engine->getBindingName(i)), engine->bindingIsInput(i), engine->getBindingDimensions(i), engine->getBindingDataType(i)}.to_string() << endl; } cout << "Refittable: " << (engine->isRefittable() ? "Yes" : "No") << endl; if (engine->isRefittable()) { cout << "Refittable weights: " << endl; IRefitter *refitter = createInferRefitter(*engine, trtLogger); if (!refitter) { LOG(ERROR) << "createInferRefitter() failed"; return; } const int n = refitter->getAll(0, nullptr, nullptr); std::vector<const char*> vName(n); std::vector<WeightsRole> vRole(n); refitter->getAll(n, vName.data(), vRole.data()); const char *aszRole[] = {"kernel", "bias", "shift", "scale", "constant"}; for (int i = 0; i < vName.size(); i++) { cout << vName[i] << ", " << aszRole[(int)vRole[i]] << endl; } refitter->destroy(); } } private: TrtLite(TrtLogger trtLogger, ICudaEngine *engine) : trtLogger(trtLogger), engine(shared_ptr<ICudaEngine>(engine, [](auto p){p->destroy();})), pnProfile(make_shared<int>()){ *pnProfile = 1; } TrtLite(TrtLite const &trt) = default; static size_t GetBytesOfBinding(int iBinding, ICudaEngine *engine, IExecutionContext *context = nullptr) { size_t aValueSize[] = {4, 2, 1, 4, 1}; size_t nSize = aValueSize[(int)engine->getBindingDataType(iBinding)]; const Dims &dims = context ? context->getBindingDimensions(iBinding) : engine->getBindingDimensions(iBinding); for (int i = 0; i < dims.nbDims; i++) { nSize *= dims.d[i]; } return nSize; } static nvinfer1::Dims MakeDim(int nBatchSize, nvinfer1::Dims dim) { nvinfer1::Dims ret(dim); for (int i = ret.nbDims; i > 0; i--) { ret.d[i] = ret.d[i - 1]; } ret.d[0] = nBatchSize; ret.nbDims++; return ret; } shared_ptr<int> pnProfile; shared_ptr<ICudaEngine> engine; IExecutionContext *context = nullptr; int iProfile = 0; /*It seems Builder's logger will be passed to Engine, but there's no API to extract it out. Refitter is created from Engine, however, its logger should be passed explicitly but must be the same as Engine's. So it's a good idea to keep one logger for all and its life cyble should be at least as longer as Engine's. Besides, multi-threading on TRT 7.2 may yields mixed log message.*/ TrtLogger trtLogger; friend class TrtLiteCreator; }; class TrtLiteCreator { public: static TrtLite* Create(BuildEngineProcType BuildEngineProc, void *pData) { IBuilder *builder = createInferBuilder(trtLogger); ICudaEngine *engine = BuildEngineProc(builder, pData); builder->destroy(); if (!engine) { LOG(ERROR) << "No engine created"; return nullptr; } return new TrtLite(trtLogger, engine); } static TrtLite* Create(const char *szEnginePath) { BufferedFileReader reader(szEnginePath); uint8_t *pBuf = nullptr; uint32_t nSize = 0; reader.GetBuffer(&pBuf, &nSize); if (!nSize) { return nullptr; } IRuntime *runtime = createInferRuntime(trtLogger); ICudaEngine *engine = runtime->deserializeCudaEngine(pBuf, nSize); runtime->destroy(); if (!engine) { LOG(ERROR) << "No engine created"; return nullptr; } return new TrtLite(trtLogger, engine); } static TrtLite* CreateFromOnnx(const char *szOnnxPath, ConfigBuilderProcType ConfigBuilderProc = nullptr, int nProfile = 0, void *pData = nullptr) { BufferedFileReader reader(szOnnxPath); uint8_t *pBuf = nullptr; uint32_t nSize = 0; reader.GetBuffer(&pBuf, &nSize); if (!nSize) { return nullptr; } IBuilder *builder = createInferBuilder(trtLogger); INetworkDefinition *network = builder->createNetworkV2(1U << static_cast<uint32_t>(NetworkDefinitionCreationFlag::kEXPLICIT_BATCH)); nvonnxparser::IParser *parser = nvonnxparser::createParser(*network, trtLogger); if (!parser->parse(pBuf, nSize)) { return nullptr; } for (int i = 0; i < network->getNbInputs(); i++) { ITensor *tensor = network->getInput(i); cout << "#" << i << ": " << IOInfo{string(tensor->getName()), true, tensor->getDimensions(), tensor->getType()}.to_string() << endl; } IBuilderConfig *config = builder->createBuilderConfig(); if (!ConfigBuilderProc) { config->setMaxWorkspaceSize(1 << 30); } else { vector<IOptimizationProfile *> vProfile; for (int i = 0; i < nProfile; i++) { IOptimizationProfile *profile = builder->createOptimizationProfile(); vProfile.push_back(profile); } ConfigBuilderProc(config, vProfile, pData); } ICudaEngine* engine = builder->buildEngineWithConfig(*network, *config); config->destroy(); network->destroy(); builder->destroy(); if (!engine) { LOG(ERROR) << "No engine created"; return nullptr; } return new TrtLite(trtLogger, engine); } inline static TrtLogger trtLogger; };
[ "gji@nvidia.com" ]
gji@nvidia.com
f674e09503b71d85c6b5f0e58a02030ca5817cc2
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/17/01/3.cpp
6c54b2baefe129cc6b7f161127e177b3129993d3
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
C++
false
false
2,886
cpp
//start of jonathanirvings' template v3.0.3 (BETA) #include <bits/stdc++.h> using namespace std; typedef long long LL; typedef pair<int,int> pii; typedef pair<LL,LL> pll; typedef pair<string,string> pss; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<pii> vii; typedef vector<LL> vl; typedef vector<vl> vvl; double EPS = 1e-9; int INF = 1000000005; long long INFF = 1000000000000000005LL; double PI = acos(-1); int dirx[8] = {-1,0,0,1,-1,-1,1,1}; int diry[8] = {0,1,-1,0,-1,1,-1,1}; #ifdef TESTING #define DEBUG fprintf(stderr,"====TESTING====\n") #define VALUE(x) cerr << "The value of " << #x << " is " << x << endl #define debug(...) fprintf(stderr, __VA_ARGS__) #else #define DEBUG #define VALUE(x) #define debug(...) #endif #define FOR(a,b,c) for (int (a)=(b);(a)<(c);++(a)) #define FORN(a,b,c) for (int (a)=(b);(a)<=(c);++(a)) #define FORD(a,b,c) for (int (a)=(b);(a)>=(c);--(a)) #define FORSQ(a,b,c) for (int (a)=(b);(a)*(a)<=(c);++(a)) #define FORC(a,b,c) for (char (a)=(b);(a)<=(c);++(a)) #define FOREACH(a,b) for (auto &(a) : (b)) #define REP(i,n) FOR(i,0,n) #define REPN(i,n) FORN(i,1,n) #define MAX(a,b) a = max(a,b) #define MIN(a,b) a = min(a,b) #define SQR(x) ((LL)(x) * (x)) #define RESET(a,b) memset(a,b,sizeof(a)) #define fi first #define se second #define mp make_pair #define pb push_back #define ALL(v) v.begin(),v.end() #define ALLA(arr,sz) arr,arr+sz #define SIZE(v) (int)v.size() #define SORT(v) sort(ALL(v)) #define REVERSE(v) reverse(ALL(v)) #define SORTA(arr,sz) sort(ALLA(arr,sz)) #define REVERSEA(arr,sz) reverse(ALLA(arr,sz)) #define PERMUTE next_permutation #define TC(t) while(t--) inline string IntToString(LL a){ char x[100]; sprintf(x,"%lld",a); string s = x; return s; } inline LL StringToInt(string a){ char x[100]; LL res; strcpy(x,a.c_str()); sscanf(x,"%lld",&res); return res; } inline string GetString(void){ char x[1000005]; scanf("%s",x); string s = x; return s; } inline string uppercase(string s){ int n = SIZE(s); REP(i,n) if (s[i] >= 'a' && s[i] <= 'z') s[i] = s[i] - 'a' + 'A'; return s; } inline string lowercase(string s){ int n = SIZE(s); REP(i,n) if (s[i] >= 'A' && s[i] <= 'Z') s[i] = s[i] - 'A' + 'a'; return s; } inline void OPEN (string s) { #ifndef TESTING freopen ((s + ".in").c_str (), "r", stdin); freopen ((s + ".out").c_str (), "w", stdout); #endif } //end of jonathanirvings' template v3.0.3 (BETA) int T; string s; int k; int main() { scanf("%d",&T); REPN(cases,T) { printf("Case #%d: ",cases); s = GetString(); scanf("%d",&k); int risan = 0; REP(i,SIZE(s)) { if (s[i] == '-') { if (i + k > SIZE(s)) goto hell; ++risan; FOR(j,i,i+k) s[j] = '+' + '-' - s[j]; } } printf("%d\n",risan); continue; hell:; puts("IMPOSSIBLE"); } return 0; }
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
21b6d65e3b25a55eabc4b44c90e7090a07e319dc
9f045529676cef128abf8509851013a60013a350
/src/support/cleanse.cpp
ca81b092b5eb8da12e5d205ce0621ae067994b2a
[ "MIT" ]
permissive
PESIUM/Pesi
0a9cc5923a21e3f84e9fb2c6947261c79b5e319d
31862214018a10a1d3a0686833faf3ba438e12dc
refs/heads/master
2022-06-17T19:21:09.189629
2020-05-11T09:27:43
2020-05-11T09:27:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,576
cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2017 The Bitcoin Core developers // Copyright (c) 2020 The Pesium Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <support/cleanse.h> #include <cstring> #if defined(_MSC_VER) #include <Windows.h> // For SecureZeroMemory. #endif /* Compilers have a bad habit of removing "superfluous" memset calls that * are trying to zero memory. For example, when memset()ing a buffer and * then free()ing it, the compiler might decide that the memset is * unobservable and thus can be removed. * * Previously we used OpenSSL which tried to stop this by a) implementing * memset in assembly on x86 and b) putting the function in its own file * for other platforms. * * This change removes those tricks in favour of using asm directives to * scare the compiler away. As best as our compiler folks can tell, this is * sufficient and will continue to be so. * * Adam Langley <agl@google.com> * Commit: ad1907fe73334d6c696c8539646c21b11178f20f * BoringSSL (LICENSE: ISC) */ void memory_cleanse(void *ptr, size_t len) { std::memset(ptr, 0, len); /* As best as we can tell, this is sufficient to break any optimisations that might try to eliminate "superfluous" memsets. If there's an easy way to detect memset_s, it would be better to use that. */ #if defined(_MSC_VER) SecureZeroMemory(ptr, len); #else __asm__ __volatile__("" : : "r"(ptr) : "memory"); #endif }
[ "info@genex.money" ]
info@genex.money
db6cc39076c0a53f0e068d0b25d721ab5c86c8cd
625138106043ec10b85092b392f5f122cbe25415
/chapter03/RacingCar/src/RacingCarOuterFunc.cpp
59c3c1a0ccafcf76ca125a7114f092500e989648
[]
no_license
JoonHoSon/cpp_study_book
2befa039159de6beca61ec52258be5b5bc2e1ecb
02c733f63d536967d5c15e68d75db47fa0618947
refs/heads/master
2020-04-23T22:05:42.773081
2019-02-20T14:57:56
2019-02-20T14:57:56
171,490,194
0
0
null
null
null
null
UTF-8
C++
false
false
1,272
cpp
#include <iostream> using namespace std; namespace CAR_CONST { enum { ID_LEN = 20, MAX_SPD = 200, FUEL_STEP = 2, ACC_STEP = 10, BRK_STEP = 10 }; } struct Car { char gamerID[CAR_CONST::ID_LEN]; int fuelGauge; int curSpeed; void ShowCarState(); void Accel(); void Break(); }; inline void Car::ShowCarState() { cout << "소유자ID : " << gamerID << endl; cout << "연료량 : " << fuelGauge << "%" << endl; cout << "현재속도 : " << curSpeed << "Km/h" << endl << endl; } inline void Car::Accel() { if (fuelGauge <= 0) return; else fuelGauge -= CAR_CONST::FUEL_STEP; if ((curSpeed + CAR_CONST::ACC_STEP) >= CAR_CONST::MAX_SPD) { curSpeed += CAR_CONST::MAX_SPD; return; } curSpeed += CAR_CONST::ACC_STEP; } inline void Car::Break() { if (curSpeed < CAR_CONST::BRK_STEP) { curSpeed = 0; return; } curSpeed -= CAR_CONST::BRK_STEP; } int main(void) { Car run99 = {"run99", 100, 0}; run99.Accel(); run99.Accel(); run99.ShowCarState(); run99.Break(); run99.ShowCarState(); Car spd77 = {"spd77", 100, 0}; spd77.Accel(); spd77.Break(); spd77.ShowCarState(); }
[ "joonho.son@me.com" ]
joonho.son@me.com
91c04e7dc4c69922c098d18d64f78483479e91f1
088c934f6f674641a77cad8e72f0054cf413af9b
/arduinoC/proyecto/proyecto.ino
fc97364c10136631898a2ea91fd19360f488b218
[]
no_license
Marcoo09/IOTRemoteReminder
1704a7359748a664563dece7a93e603aa30ab2f0
c141a5fb76de5f9514b2a6c59d472d87791e7965
refs/heads/master
2022-12-11T08:30:23.396359
2020-01-02T09:12:08
2020-01-02T09:12:08
194,135,014
2
1
null
2022-12-10T01:29:58
2019-06-27T17:14:06
C++
UTF-8
C++
false
false
3,658
ino
#include <LiquidCrystal_I2C.h> // Libreria LCD_I2C LiquidCrystal_I2C lcd(0x27,16,2) ; // si no te sale con esta direccion puedes usar (0x3f,16,2) || (0x27,16,2) ||(0x20,16,2) const int TrigPin = 6; //define los pines a utilizar const int EchoPin = 5; float cm; char title[100]; //Initialized variable to store recieved data char ant[100] = ""; //Contstants to use with passive buzzer const int c = 261; const int d = 294; const int e = 329; const int f = 349; const int g = 391; const int gS = 415; const int a = 440; const int aS = 455; const int b = 466; const int cH = 523; const int cSH = 554; const int dH = 587; const int dSH = 622; const int eH = 659; const int fH = 698; const int fSH = 740; const int gH = 784; const int gSH = 830; const int aH = 880; const int buzzerPin = 8; const int ledPin1 = 12; const int ledPin2 = 13; int counter = 0; bool sound = false; void setup() { Serial.begin(9600); lcd.init(); lcd.backlight(); lcd.clear(); pinMode(11,OUTPUT); pinMode(9,INPUT); pinMode(TrigPin, OUTPUT); //define cual es entrada y cual salida pinMode(EchoPin, INPUT); pinMode(buzzerPin, OUTPUT); } void loop() { Serial.readBytes(title,100); //Read the serial data and store in var digitalWrite(11,HIGH); digitalWrite(TrigPin, LOW); delayMicroseconds(2); digitalWrite(TrigPin, HIGH); //Genera un pulso ultrasónico... delayMicroseconds(10); //...que dura 10 micro segundos digitalWrite(TrigPin, LOW); float c = 340.0; // velocidad del sonido en m/s float t = pulseIn(EchoPin, HIGH); //microsegundos float distance = c * t / 2 / 1000000; //distancia Serial.print("Distancia\t=\t"); Serial.print(distance,2); //2 decimales Serial.print("m"); Serial.println(); lcd.clear(); if(strcmp(title,ant) != 0){ sound = false; } /*if(distance <= 0.25 && distance > 0.10 && !sound){ starWarsSound(); sound = true; }else if(distance <= 0.50 && distance > 0 && sound && strlen(title) > 0){ lcd.print("Recuerda:"); lcd.setCursor (0,1); lcd.print(title); lcd.display(); //lcd.autoscroll(); sound = false; delay(2000); }*/ if(distance <= 0.50 && distance >= 0 && strlen(title) > 0){ lcd.print("Recuerda:"); lcd.setCursor (0,1); lcd.print(title); lcd.display(); if(!sound){ starWarsSound(); strcpy(ant,title); sound = true; } } /*if(strlen(title) > 0){ lcd.print("Recuerda:"); lcd.setCursor (0,1); lcd.print(title); lcd.display(); for (int positionCounter = 0; positionCounter < 13; positionCounter++) { // scroll one position left: lcd.scrollDisplayLeft(); // wait a bit: delay(250); }*//* lcd.setCursor(0,0); lcd.print("Recuerda:"); lcd.setCursor (0,1); lcd.print(title); sound = false; delay(2000); }*/ delay(5000); } void beep(int note, int duration) { tone(buzzerPin, note, duration); delay(duration); noTone(buzzerPin); delay(50); counter++; } void starWarsSound(){ firstSection(); delay(500); } void firstSection() { beep(a, 500); beep(a, 500); beep(a, 500); beep(f, 350); beep(cH, 150); beep(a, 500); beep(f, 350); beep(cH, 150); beep(a, 650); delay(500); beep(eH, 500); beep(eH, 500); beep(eH, 500); beep(fH, 350); beep(cH, 150); beep(gS, 500); beep(f, 350); beep(cH, 150); beep(a, 650); delay(500); } void secondSection() { beep(aH, 500); beep(a, 300); beep(a, 150); beep(aH, 500); beep(gSH, 325); beep(gH, 175); beep(fSH, 125); beep(fH, 125); beep(fSH, 250); delay(325); beep(aS, 250); beep(dSH, 500); beep(dH, 325); beep(cSH, 175); beep(cH, 125); beep(b, 125); beep(cH, 250); delay(350); }
[ "marcofiorito1@hotmail.com" ]
marcofiorito1@hotmail.com
9d94b0f608d9c3e822e42d97f8d72fe8abbe5bd0
f23e6027b98ce89ccdf946bbc0aaa8d90ac54ce5
/src/erhe/geometry/erhe_geometry/geometry_iterators.cpp
25b37a6f7e6bf5fbfc84b3ae6862a78488962977
[ "MIT", "Zlib", "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
tksuoran/erhe
8476cba96d73d4636aad2a40daaa707fd00b112f
d8a3393113aac273fe2446894f287d9a7889e0a7
refs/heads/main
2023-09-04T11:06:39.665543
2023-09-02T16:15:32
2023-09-02T16:15:32
363,416,834
412
45
NOASSERTION
2023-07-15T11:06:09
2021-05-01T13:29:16
C++
UTF-8
C++
false
false
14,986
cpp
#include "erhe_geometry/geometry.hpp" namespace erhe::geometry { void Geometry::for_each_corner( std::function<void(Corner_context&)> callback ) { for ( Corner_id corner_id = 0, end = get_corner_count(); corner_id < end; ++corner_id ) { Corner& corner = corners[corner_id]; Corner_context context{ .corner_id = corner_id, .corner = corner }; callback(context); if (context.break_) { return; } } } void Geometry::for_each_corner_const( std::function<void(Corner_context_const&)> callback ) const { for ( Corner_id corner_id = 0, end = get_corner_count(); corner_id < end; ++corner_id ) { const Corner& corner = corners[corner_id]; Corner_context_const context{ .corner_id = corner_id, .corner = corner }; callback(context); if (context.break_) { return; } } } void Geometry::for_each_point( std::function<void(Point_context&)> callback ) { for ( Point_id point_id = 0, end = get_point_count(); point_id < end; ++point_id ) { Point& point = points[point_id]; Point_context context{ .point_id = point_id, .point = point }; callback(context); if (context.break_) { return; } } } void Geometry::for_each_point_const( std::function<void(Point_context_const&)> callback ) const { for ( Point_id point_id = 0, end = get_point_count(); point_id < end; ++point_id ) { const Point& point = points[point_id]; Point_context_const context{ .point_id = point_id, .point = point }; callback(context); if (context.break_) { return; } } } void Geometry::for_each_polygon( std::function<void(Polygon_context&)> callback ) { for ( Polygon_id polygon_id = 0, end = get_polygon_count(); polygon_id < end; ++polygon_id ) { Polygon& polygon = polygons[polygon_id]; Polygon_context context{ .polygon_id = polygon_id, .polygon = polygon }; callback(context); if (context.break_) { return; } } } void Geometry::for_each_polygon_const( std::function<void(Polygon_context_const&)> callback ) const { for ( Polygon_id polygon_id = 0, end = get_polygon_count(); polygon_id < end; ++polygon_id ) { const Polygon& polygon = polygons[polygon_id]; Polygon_context_const context{ .polygon_id = polygon_id, .polygon = polygon }; callback(context); if (context.break_) { return; } } } void Geometry::for_each_edge( std::function<void(Edge_context&)> callback ) { for ( Edge_id edge_id = 0, end = get_edge_count(); edge_id < end; ++edge_id ) { Edge& edge = edges[edge_id]; Edge_context context{ .edge_id = edge_id, .edge = edge }; callback(context); if (context.break_) { return; } } } void Geometry::for_each_edge_const( std::function<void(Edge_context_const&)> callback ) const { for ( Edge_id edge_id = 0, end = get_edge_count(); edge_id < end; ++edge_id ) { const Edge& edge = edges[edge_id]; Edge_context_const context{ .edge_id = edge_id, .edge = edge }; callback(context); if (context.break_) { return; } } } void Point::for_each_corner( Geometry& geometry, std::function<void(Point_corner_context&)> callback ) { for ( Point_corner_id point_corner_id = first_point_corner_id, end = first_point_corner_id + corner_count; point_corner_id < end; ++point_corner_id ) { Corner_id& corner_id = geometry.point_corners[point_corner_id]; Point_corner_context context{ .geometry = geometry, .point_corner_id = point_corner_id, .corner_id = corner_id, .corner = geometry.corners[corner_id] }; callback(context); if (context.break_) { return; } } } void Point::for_each_corner_const( const Geometry& geometry, std::function<void(Point_corner_context_const&)> callback ) const { for ( Point_corner_id point_corner_id = first_point_corner_id, end = first_point_corner_id + corner_count; point_corner_id < end; ++point_corner_id ) { const Corner_id& corner_id = geometry.point_corners[point_corner_id]; Point_corner_context_const context{ .geometry = geometry, .point_corner_id = point_corner_id, .corner_id = corner_id, .corner = geometry.corners[corner_id] }; callback(context); if (context.break_) { return; } } } void Point::for_each_corner_neighborhood( Geometry& geometry, std::function<void(Point_corner_neighborhood_context&)> callback ) { for (uint32_t i = 0; i < corner_count; ++i) { const Point_corner_id prev_point_corner_id = first_point_corner_id + (corner_count + i - 1) % corner_count; const Point_corner_id point_corner_id = first_point_corner_id + i; const Point_corner_id next_point_corner_id = first_point_corner_id + (i + 1) % corner_count; const Corner_id prev_corner_id = geometry.point_corners[prev_point_corner_id]; const Corner_id corner_id = geometry.point_corners[point_corner_id]; const Corner_id next_corner_id = geometry.point_corners[next_point_corner_id]; Point_corner_neighborhood_context context{ .geometry = geometry, .prev_point_corner_id = prev_point_corner_id, .point_corner_id = point_corner_id, .next_point_corner_id = next_point_corner_id, .prev_corner_id = geometry.point_corners[prev_point_corner_id], .corner_id = geometry.point_corners[point_corner_id], .next_corner_id = geometry.point_corners[next_point_corner_id], .prev_corner = geometry.corners[prev_corner_id], .corner = geometry.corners[corner_id], .next_corner = geometry.corners[next_corner_id] }; callback(context); if (context.break_) { return; } } } void Point::for_each_corner_neighborhood_const( const Geometry& geometry, std::function<void(Point_corner_neighborhood_context_const&)> callback ) const { for (uint32_t i = 0; i < corner_count; ++i) { const Point_corner_id prev_point_corner_id = first_point_corner_id + (corner_count + i - 1) % corner_count; const Point_corner_id point_corner_id = first_point_corner_id + i; const Point_corner_id next_point_corner_id = first_point_corner_id + (i + 1) % corner_count; const Corner_id prev_corner_id = geometry.point_corners[prev_point_corner_id]; const Corner_id corner_id = geometry.point_corners[point_corner_id]; const Corner_id next_corner_id = geometry.point_corners[next_point_corner_id]; Point_corner_neighborhood_context_const context{ .geometry = geometry, .prev_point_corner_id = prev_point_corner_id, .point_corner_id = point_corner_id, .next_point_corner_id = next_point_corner_id, .prev_corner_id = prev_corner_id, .corner_id = corner_id, .next_corner_id = next_corner_id, .prev_corner = geometry.corners[prev_corner_id], .corner = geometry.corners[corner_id], .next_corner = geometry.corners[next_corner_id] }; callback(context); if (context.break_) { return; } } } void Polygon::for_each_corner( Geometry& geometry, std::function<void(Polygon_corner_context&)> callback ) { for ( Polygon_corner_id polygon_corner_id = first_polygon_corner_id, end = first_polygon_corner_id + corner_count; polygon_corner_id < end; ++polygon_corner_id ) { const Corner_id corner_id = geometry.polygon_corners[polygon_corner_id]; Polygon_corner_context context{ .geometry = geometry, .polygon_corner_id = polygon_corner_id, .corner_id = corner_id, .corner = geometry.corners[corner_id] }; callback(context); if (context.break_) { return; } } } void Polygon::for_each_corner_const( const Geometry& geometry, std::function<void(Polygon_corner_context_const&)> callback ) const { for ( Polygon_corner_id polygon_corner_id = first_polygon_corner_id, end = first_polygon_corner_id + corner_count; polygon_corner_id < end; ++polygon_corner_id ) { const Corner_id corner_id = geometry.polygon_corners[polygon_corner_id]; Polygon_corner_context_const context{ .geometry = geometry, .polygon_corner_id = polygon_corner_id, .corner_id = corner_id, .corner = geometry.corners[corner_id] }; callback(context); if (context.break_) { return; } } } void Polygon::for_each_corner_neighborhood( Geometry& geometry, std::function<void(Polygon_corner_neighborhood_context&)> callback ) { for (uint32_t i = 0; i < corner_count; ++i) { const Polygon_corner_id prev_polygon_corner_id = first_polygon_corner_id + (corner_count + i - 1) % corner_count; const Polygon_corner_id polygon_corner_id = first_polygon_corner_id + i; const Polygon_corner_id next_polygon_corner_id = first_polygon_corner_id + (i + 1) % corner_count; const Corner_id prev_corner_id = geometry.polygon_corners[prev_polygon_corner_id]; const Corner_id corner_id = geometry.polygon_corners[polygon_corner_id]; const Corner_id next_corner_id = geometry.polygon_corners[next_polygon_corner_id]; Polygon_corner_neighborhood_context context{ .geometry = geometry, .prev_polygon_corner_id = prev_polygon_corner_id, .polygon_corner_id = polygon_corner_id, .next_polygon_corner_id = next_polygon_corner_id, .prev_corner_id = prev_corner_id, .corner_id = corner_id, .next_corner_id = next_corner_id, .prev_corner = geometry.corners[prev_corner_id], .corner = geometry.corners[corner_id], .next_corner = geometry.corners[next_corner_id] }; callback(context); if (context.break_) { return; } } } void Polygon::for_each_corner_neighborhood_const( const Geometry& geometry, std::function<void(Polygon_corner_neighborhood_context_const&)> callback ) const { for (uint32_t i = 0; i < corner_count; ++i) { const Polygon_corner_id prev_polygon_corner_id = first_polygon_corner_id + (corner_count + i - 1) % corner_count; const Polygon_corner_id polygon_corner_id = first_polygon_corner_id + i; const Polygon_corner_id next_polygon_corner_id = first_polygon_corner_id + (i + 1) % corner_count; const Corner_id prev_corner_id = geometry.polygon_corners[prev_polygon_corner_id]; const Corner_id corner_id = geometry.polygon_corners[polygon_corner_id]; const Corner_id next_corner_id = geometry.polygon_corners[next_polygon_corner_id]; Polygon_corner_neighborhood_context_const context{ .geometry = geometry, .prev_polygon_corner_id = prev_polygon_corner_id, .polygon_corner_id = polygon_corner_id, .next_polygon_corner_id = next_polygon_corner_id, .prev_corner_id = prev_corner_id, .corner_id = corner_id, .next_corner_id = next_corner_id, .prev_corner = geometry.corners[prev_corner_id], .corner = geometry.corners[corner_id], .next_corner = geometry.corners[next_corner_id] }; callback(context); if (context.break_) { return; } } } void Edge::for_each_polygon( Geometry& geometry, std::function<void(Edge_polygon_context&)> callback) { for ( Edge_polygon_id edge_polygon_id = first_edge_polygon_id, end = first_edge_polygon_id + polygon_count; edge_polygon_id < end; ++edge_polygon_id ) { const Polygon_id polygon_id = geometry.edge_polygons[edge_polygon_id]; Edge_polygon_context context{ .geometry = geometry, .edge_polygon_id = edge_polygon_id, .polygon_id = polygon_id, .polygon = geometry.polygons[polygon_id] }; callback(context); if (context.break_) { return; } } } void Edge::for_each_polygon_const( const Geometry& geometry, std::function<void(Edge_polygon_context_const&)> callback ) const { for ( Edge_polygon_id edge_polygon_id = first_edge_polygon_id, end = first_edge_polygon_id + polygon_count; edge_polygon_id < end; ++edge_polygon_id ) { const Polygon_id polygon_id = geometry.edge_polygons.at(edge_polygon_id); Edge_polygon_context_const context{ .geometry = geometry, .edge_polygon_id = edge_polygon_id, .polygon_id = polygon_id, .polygon = geometry.polygons.at(polygon_id) }; callback(context); if (context.break_) { return; } } } }
[ "tksuoran@gmail.com" ]
tksuoran@gmail.com
84aab1901c407ec2ecfb16f4c15fc1f7cfa43da3
ba10da4be74ba4e472bbe4b51d411627fc07bdbf
/build/iOS/Preview/include/Fuse.Gestures.Internal.Swiper.h
d319378fe7bbe34796ee4dfc354dd24b1b4d9584
[]
no_license
ericaglimsholt/gadden
80f7c7b9c3c5c46c2520743dc388adbad549c679
daef25c11410326f067c896c242436ff1cbd5df0
refs/heads/master
2021-07-03T10:07:58.451759
2017-09-05T18:11:47
2017-09-05T18:11:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,111
h
// This file was generated based on '/Users/ericaglimsholt/Library/Application Support/Fusetools/Packages/Fuse.Gestures/1.0.5/internal/$.uno'. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Fuse.Input.IGesture.h> #include <Uno.Float2.h> #include <Uno.Object.h> namespace g{namespace Fuse{namespace Elements{struct Element;}}} namespace g{namespace Fuse{namespace Gestures{namespace Internal{struct Swiper;}}}} namespace g{namespace Fuse{namespace Gestures{namespace Internal{struct SwipeRegion;}}}} namespace g{namespace Fuse{namespace Input{struct Gesture;}}} namespace g{namespace Fuse{namespace Input{struct PointerEventArgs;}}} namespace g{namespace Fuse{namespace Input{struct PointerMovedArgs;}}} namespace g{namespace Fuse{namespace Input{struct PointerPressedArgs;}}} namespace g{namespace Fuse{namespace Input{struct PointerReleasedArgs;}}} namespace g{namespace Fuse{namespace Motion{namespace Simulation{struct PointerVelocity;}}}} namespace g{namespace Fuse{struct PropertyHandle;}} namespace g{namespace Uno{namespace Collections{struct List;}}} namespace g{ namespace Fuse{ namespace Gestures{ namespace Internal{ // internal sealed class Swiper :943 // { struct Swiper_type : uType { ::g::Fuse::Input::IGesture interface0; }; Swiper_type* Swiper_typeof(); void Swiper__ctor__fn(Swiper* __this, ::g::Fuse::Elements::Element* elm); void Swiper__AddRegion_fn(Swiper* __this, ::g::Fuse::Gestures::Internal::SwipeRegion* region); void Swiper__AttachSwiper_fn(::g::Fuse::Elements::Element* elm, Swiper** __retval); void Swiper__CheckNeedUpdated_fn(Swiper* __this, bool* off); void Swiper__Detach_fn(Swiper* __this); void Swiper__FromWindow_fn(Swiper* __this, ::g::Uno::Float2* p, ::g::Uno::Float2* __retval); void Swiper__FuseInputIGestureOnCapture_fn(Swiper* __this, ::g::Fuse::Input::PointerEventArgs* args, int* how); void Swiper__FuseInputIGestureOnLostCapture_fn(Swiper* __this, bool* forced); void Swiper__FuseInputIGestureOnPointerMoved_fn(Swiper* __this, ::g::Fuse::Input::PointerMovedArgs* args, int* __retval); void Swiper__FuseInputIGestureOnPointerPressed_fn(Swiper* __this, ::g::Fuse::Input::PointerPressedArgs* args, int* __retval); void Swiper__FuseInputIGestureOnPointerReleased_fn(Swiper* __this, ::g::Fuse::Input::PointerReleasedArgs* args, int* __retval); void Swiper__FuseInputIGestureget_Priority_fn(Swiper* __this, int* __retval); void Swiper__FuseInputIGestureget_PriorityAdjustment_fn(Swiper* __this, int* __retval); void Swiper__FuseInputIGestureget_Significance_fn(Swiper* __this, float* __retval); void Swiper__MoveUser_fn(Swiper* __this, ::g::Uno::Float2* coord, double* elapsed, bool* release); void Swiper__New1_fn(::g::Fuse::Elements::Element* elm, Swiper** __retval); void Swiper__OnRooted_fn(Swiper* __this, ::g::Fuse::Elements::Element* n); void Swiper__OnUnrooted_fn(Swiper* __this); void Swiper__OnUpdated_fn(Swiper* __this); void Swiper__RemoveRegion_fn(Swiper* __this, ::g::Fuse::Gestures::Internal::SwipeRegion* region); void Swiper__RestartMove_fn(Swiper* __this, ::g::Uno::Float2* currentCoord); void Swiper__SelectRegion_fn(Swiper* __this, ::g::Uno::Float2* diff, ::g::Fuse::Gestures::Internal::SwipeRegion** __retval); void Swiper__SetActivation_fn(Swiper* __this, ::g::Fuse::Gestures::Internal::SwipeRegion* region, bool* on, bool* bypass); struct Swiper : uObject { bool _allowNewRegion; int _attachCount; int _down; uStrong< ::g::Fuse::Elements::Element*> _element; uStrong< ::g::Fuse::Gestures::Internal::SwipeRegion*> _excludeRegion; uStrong< ::g::Fuse::Input::Gesture*> _gesture; bool _hasUpdated; uStrong< ::g::Fuse::Gestures::Internal::SwipeRegion*> _pointerRegion; uStrong< ::g::Uno::Collections::List*> _pointerRegions; double _prevTime; uStrong< ::g::Uno::Collections::List*> _regions; float _significance; ::g::Uno::Float2 _startCoord; double _startProgress; static uSStrong< ::g::Fuse::PropertyHandle*> _swiperProperty_; static uSStrong< ::g::Fuse::PropertyHandle*>& _swiperProperty() { return Swiper_typeof()->Init(), _swiperProperty_; } uStrong< ::g::Fuse::Motion::Simulation::PointerVelocity*> _velocity; float _velocityThreshold; void ctor_(::g::Fuse::Elements::Element* elm); void AddRegion(::g::Fuse::Gestures::Internal::SwipeRegion* region); void CheckNeedUpdated(bool off); void Detach(); ::g::Uno::Float2 FromWindow(::g::Uno::Float2 p); void MoveUser(::g::Uno::Float2 coord, double elapsed, bool release); void OnRooted(::g::Fuse::Elements::Element* n); void OnUnrooted(); void OnUpdated(); void RemoveRegion(::g::Fuse::Gestures::Internal::SwipeRegion* region); void RestartMove(::g::Uno::Float2 currentCoord); ::g::Fuse::Gestures::Internal::SwipeRegion* SelectRegion(::g::Uno::Float2 diff); void SetActivation(::g::Fuse::Gestures::Internal::SwipeRegion* region, bool on, bool bypass); static Swiper* AttachSwiper(::g::Fuse::Elements::Element* elm); static Swiper* New1(::g::Fuse::Elements::Element* elm); }; // } }}}} // ::g::Fuse::Gestures::Internal
[ "ericaglimsholt@hotmail.com" ]
ericaglimsholt@hotmail.com
8c75ace4098efe0a594427239b9ec170a0bcc869
c15373ce87ff810564456e8cbefce653692a8030
/src/qt/test/wallettests.h
28d4dcc0a7eaf8a6167434e1b711172f86087518
[ "MIT" ]
permissive
fbcoinone/footballcoin
e7f1ed7b2838f62c98531e8d1f04658cfb5421fe
00b47d5f969527a2e23bc885abbe54d5f9e4b0dc
refs/heads/master
2020-03-20T12:41:03.307288
2018-06-15T03:44:51
2018-06-15T03:44:51
137,437,792
0
0
null
null
null
null
UTF-8
C++
false
false
265
h
#ifndef FOOTBALLCOIN_QT_TEST_WALLETTESTS_H #define FOOTBALLCOIN_QT_TEST_WALLETTESTS_H #include <QObject> #include <QTest> class WalletTests : public QObject { Q_OBJECT private Q_SLOTS: void walletTests(); }; #endif // FOOTBALLCOIN_QT_TEST_WALLETTESTS_H
[ "root@DESKTOP-E9SE4MD.localdomain" ]
root@DESKTOP-E9SE4MD.localdomain
60c64d3f98bbd3b9e5d9659f3dba1d106353dd2c
081dbbd3192f2e0e0b16bc8345b60483c6be09c9
/include/cuda/simple_cuda_profiler.h
c9244d1198ae24775da63d50a55a575497dc4398
[]
no_license
tehrengruber/reactive-transport-cuda
10b21dc44ffac5c07d3c0f3c9041bf093d564364
46aec1bf24aa69fc9dacfefc344b00e95b094896
refs/heads/master
2020-04-28T19:25:17.327055
2019-03-13T23:11:50
2019-03-13T23:11:50
175,510,523
0
0
null
null
null
null
UTF-8
C++
false
false
3,433
h
#ifndef REACTIVETRANSPORTGPU_SIMPLE_CUDA_PROFILER_H #define REACTIVETRANSPORTGPU_SIMPLE_CUDA_PROFILER_H #include <map> #include <vector> #include <iostream> #include <iomanip> #include <cuda_runtime.h> struct SimpleCudaProfiler { // maps name of each profiled sections to an index std::map<std::string, size_t> section_name_map; size_t next_section_id = 0; cudaEvent_t* start_events = nullptr; cudaEvent_t* stop_events = nullptr; std::vector<double> durations; std::vector<size_t> calls; std::vector<bool> valid; SimpleCudaProfiler() {} ~SimpleCudaProfiler() { for (size_t i=0; i<next_section_id; ++i) { cudaEventDestroy(start_events[i]); cudaEventDestroy(stop_events[i]); } delete[] start_events; delete[] stop_events; } SimpleCudaProfiler(const SimpleCudaProfiler&) = delete; SimpleCudaProfiler& operator=(const SimpleCudaProfiler&) = delete; void add(std::string s) { size_t id = next_section_id++; section_name_map[s] = id; } void initialize() { if (start_events!=nullptr) delete[] start_events; if (stop_events!=nullptr) delete[] stop_events; start_events = new cudaEvent_t[next_section_id]; stop_events = new cudaEvent_t[next_section_id]; for (size_t i=0; i<next_section_id; ++i) { gpuErrchk(cudaEventCreate(&start_events[i])); gpuErrchk(cudaEventCreate(&stop_events[i])); durations.push_back(0); calls.push_back(0); valid.push_back(false); } } void start(std::string section_name) { size_t i = section_name_map[section_name]; gpuErrchk(cudaEventRecord(start_events[i])); } void stop(std::string section_name) { size_t i = section_name_map[section_name]; gpuErrchk(cudaEventRecord(stop_events[i])); valid[i] = true; } void update() { for (size_t i=0; i<next_section_id; ++i) { if (valid[i]) { gpuErrchk(cudaEventSynchronize(stop_events[i])); float milliseconds = 0; gpuErrchk(cudaEventElapsedTime(&milliseconds, start_events[i], stop_events[i])); durations[i] += milliseconds/1000; ++calls[i]; } valid[i] = false; } } void print() { // compute total runtime double total_duration = 0; for (double duration : durations) { total_duration += duration; } // determine length of the name of the longest section size_t max_len = 0; for (auto& kv : section_name_map) max_len = std::max(kv.first.size(), max_len); // print std::cout << std::setw(max_len+1) << "section" << std::setw(10) << "[s]" << std::setw(10) << "[%]" << std::setw(10) << "calls" << std::endl; for (auto& kv : section_name_map) { std::cout << std::setw(max_len+1) << kv.first << std::setw(10) << std::round(100*durations[kv.second])/100 << std::setw(10) << std::round(10000*durations[kv.second]/total_duration)/100 << std::setw(10) << calls[kv.second] << std::endl; } } }; #endif //REACTIVETRANSPORTGPU_SIMPLE_CUDA_PROFILER_H
[ "till@ehrengruber.ch" ]
till@ehrengruber.ch
ee9f7fd6a6fc22cd5d6def57bbac9c63397da07d
9165c15c716a7dbae840fcdb2c63aa98b5cc279c
/URQANative/jni/header/client/linux/minidump_writer/minidump_writer.h
b41413966f8f982212d523300b0533587759cf96
[ "MIT" ]
permissive
UrQA/UrQA-Client-Android
2c500a827c59bcdd52d4eec19154956c69bf8dd2
63dff4c375e02afbf2f527013e570b80f422c8f7
refs/heads/master
2021-01-14T14:32:14.731712
2015-12-13T15:17:08
2015-12-13T15:17:08
14,201,533
5
8
MIT
2020-08-30T05:53:20
2013-11-07T11:04:08
C++
UTF-8
C++
false
false
5,223
h
// Copyright (c) 2009, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef CLIENT_LINUX_MINIDUMP_WRITER_MINIDUMP_WRITER_H_ #define CLIENT_LINUX_MINIDUMP_WRITER_MINIDUMP_WRITER_H_ #include <stdint.h> #include <sys/types.h> #include <unistd.h> #include <list> #include <utility> #include "client/linux/minidump_writer/linux_dumper.h" #include "google_breakpad/common/minidump_format.h" #include "minidump_memory_writer.h" namespace google_breakpad { class ExceptionHandler; struct MappingEntry { MappingInfo first; uint8_t second[sizeof(MDGUID)]; }; // A list of <MappingInfo, GUID> typedef std::list<MappingEntry> MappingList; // These entries store a list of memory regions that the client wants included // in the minidump. struct AppMemory { void* ptr; size_t length; bool operator==(const struct AppMemory& other) const { return ptr == other.ptr; } bool operator==(const void* other) const { return ptr == other; } }; typedef std::list<AppMemory> AppMemoryList; // Writes a minidump to the filesystem. These functions do not malloc nor use // libc functions which may. Thus, it can be used in contexts where the state // of the heap may be corrupt. // minidump_path: the path to the file to write to. This is opened O_EXCL and // fails open fails. // crashing_process: the pid of the crashing process. This must be trusted. // blob: a blob of data from the crashing process. See exception_handler.h // blob_size: the length of |blob|, in bytes // // Returns true iff successful. bool WriteMinidump(const char* minidump_path, pid_t crashing_process, const void* blob, size_t blob_size); // Same as above but takes an open file descriptor instead of a path. bool WriteMinidump(int minidump_fd, pid_t crashing_process, const void* blob, size_t blob_size); // Alternate form of WriteMinidump() that works with processes that // are not expected to have crashed. If |process_blamed_thread| is // meaningful, it will be the one from which a crash signature is // extracted. It is not expected that this function will be called // from a compromised context, but it is safe to do so. bool WriteMinidump(const char* minidump_path, pid_t process, pid_t process_blamed_thread); // These overloads also allow passing a list of known mappings and // a list of additional memory regions to be included in the minidump. bool WriteMinidump(const char* minidump_path, pid_t crashing_process, const void* blob, size_t blob_size, const MappingList& mappings, const AppMemoryList& appdata); bool WriteMinidump(int minidump_fd, pid_t crashing_process, const void* blob, size_t blob_size, const MappingList& mappings, const AppMemoryList& appdata); // These overloads also allow passing a file size limit for the minidump. bool WriteMinidump(const char* minidump_path, off_t minidump_size_limit, pid_t crashing_process, const void* blob, size_t blob_size, const MappingList& mappings, const AppMemoryList& appdata); bool WriteMinidump(int minidump_fd, off_t minidump_size_limit, pid_t crashing_process, const void* blob, size_t blob_size, const MappingList& mappings, const AppMemoryList& appdata); bool WriteMinidump(const char* filename, const MappingList& mappings, const AppMemoryList& appdata, LinuxDumper* dumper); } // namespace google_breakpad #endif // CLIENT_LINUX_MINIDUMP_WRITER_MINIDUMP_WRITER_H_
[ "wolfses@hotmail.com" ]
wolfses@hotmail.com
9eb8884308e4a965a086c9ea08000144ec1bdb40
631847fafbcfa07bf33eee078d9b59b464ce4b50
/optimization/pta_maa_optimization/loose_analyses/analysis_loose_pta150_maa350/Build/SampleAnalyzer/User/Analyzer/user.cpp
34173a191750a9c170d2f4fd712305b74d88a45e
[ "MIT" ]
permissive
sheride/axion_pheno
7b46aeb7cc562800d78edd9048504fdbc0f5fa42
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
refs/heads/master
2021-07-01T08:47:59.981416
2021-02-03T23:03:50
2021-02-03T23:03:50
219,261,636
0
0
null
null
null
null
UTF-8
C++
false
false
8,742
cpp
#include "SampleAnalyzer/User/Analyzer/user.h" using namespace MA5; bool user::Initialize(const MA5::Configuration& cfg, const std::map<std::string,std::string>& parameters) { // Initializing PhysicsService for MC PHYSICS->mcConfig().Reset(); // definition of the multiparticle "hadronic" PHYSICS->mcConfig().AddHadronicId(-5); PHYSICS->mcConfig().AddHadronicId(-4); PHYSICS->mcConfig().AddHadronicId(-3); PHYSICS->mcConfig().AddHadronicId(-2); PHYSICS->mcConfig().AddHadronicId(-1); PHYSICS->mcConfig().AddHadronicId(1); PHYSICS->mcConfig().AddHadronicId(2); PHYSICS->mcConfig().AddHadronicId(3); PHYSICS->mcConfig().AddHadronicId(4); PHYSICS->mcConfig().AddHadronicId(5); PHYSICS->mcConfig().AddHadronicId(21); // definition of the multiparticle "invisible" PHYSICS->mcConfig().AddInvisibleId(-16); PHYSICS->mcConfig().AddInvisibleId(-14); PHYSICS->mcConfig().AddInvisibleId(-12); PHYSICS->mcConfig().AddInvisibleId(12); PHYSICS->mcConfig().AddInvisibleId(14); PHYSICS->mcConfig().AddInvisibleId(16); PHYSICS->mcConfig().AddInvisibleId(1000022); // ===== Signal region ===== // Manager()->AddRegionSelection("myregion"); // ===== Selections ===== // Manager()->AddCut("1_( sdETA ( jets[1] jets[2] ) > 2.6 or sdETA ( jets[1] jets[2] ) < -2.6 ) and M ( jets[1] jets[2] ) > 1250.0"); Manager()->AddCut("2_PT ( a[1] ) > 150.0 and M ( a[1] a[2] ) > 350.0"); // ===== Histograms ===== // // No problem during initialization return true; } bool user::Execute(SampleFormat& sample, const EventFormat& event) { MAfloat32 __event_weight__ = 1.0; if (weighted_events_ && event.mc()!=0) __event_weight__ = event.mc()->weight(); if (sample.mc()!=0) sample.mc()->addWeightedEvents(__event_weight__); Manager()->InitializeForNewEvent(__event_weight__); // Clearing particle containers { _P_jets_I1I_PTorderingfinalstate_REG_.clear(); _P_jets_I2I_PTorderingfinalstate_REG_.clear(); _P_a_I1I_PTorderingfinalstate_REG_.clear(); _P_a_I2I_PTorderingfinalstate_REG_.clear(); _P_jetsPTorderingfinalstate_REG_.clear(); _P_aPTorderingfinalstate_REG_.clear(); } // Filling particle containers { for (MAuint32 i=0;i<event.mc()->particles().size();i++) { if (isP__jetsPTorderingfinalstate((&(event.mc()->particles()[i])))) _P_jetsPTorderingfinalstate_REG_.push_back(&(event.mc()->particles()[i])); if (isP__aPTorderingfinalstate((&(event.mc()->particles()[i])))) _P_aPTorderingfinalstate_REG_.push_back(&(event.mc()->particles()[i])); } } // Sorting particles // Sorting particle collection according to PTordering // for getting 1th particle _P_jets_I1I_PTorderingfinalstate_REG_=SORTER->rankFilter(_P_jetsPTorderingfinalstate_REG_,1,PTordering); // Sorting particle collection according to PTordering // for getting 2th particle _P_jets_I2I_PTorderingfinalstate_REG_=SORTER->rankFilter(_P_jetsPTorderingfinalstate_REG_,2,PTordering); // Sorting particle collection according to PTordering // for getting 1th particle _P_a_I1I_PTorderingfinalstate_REG_=SORTER->rankFilter(_P_aPTorderingfinalstate_REG_,1,PTordering); // Sorting particle collection according to PTordering // for getting 2th particle _P_a_I2I_PTorderingfinalstate_REG_=SORTER->rankFilter(_P_aPTorderingfinalstate_REG_,2,PTordering); // Event selection number 1 // * Cut: select ( sdETA ( jets[1] jets[2] ) > 2.6 or sdETA ( jets[1] jets[2] ) < -2.6 ) and M ( jets[1] jets[2] ) > 1250.0, regions = [] { std::vector<MAbool> filter(3,false); { { MAuint32 ind[2]; std::vector<std::set<const MCParticleFormat*> > combis; for (ind[0]=0;ind[0]<_P_jets_I1I_PTorderingfinalstate_REG_.size();ind[0]++) { for (ind[1]=0;ind[1]<_P_jets_I2I_PTorderingfinalstate_REG_.size();ind[1]++) { if (_P_jets_I2I_PTorderingfinalstate_REG_[ind[1]]==_P_jets_I1I_PTorderingfinalstate_REG_[ind[0]]) continue; // Checking if consistent combination std::set<const MCParticleFormat*> mycombi; for (MAuint32 i=0;i<2;i++) { mycombi.insert(_P_jets_I1I_PTorderingfinalstate_REG_[ind[i]]); mycombi.insert(_P_jets_I2I_PTorderingfinalstate_REG_[ind[i]]); } MAbool matched=false; for (MAuint32 i=0;i<combis.size();i++) if (combis[i]==mycombi) {matched=true; break;} if (matched) continue; else combis.push_back(mycombi); if ((_P_jets_I1I_PTorderingfinalstate_REG_[ind[0]]->eta()-_P_jets_I2I_PTorderingfinalstate_REG_[ind[1]]->eta())>2.6) {filter[0]=true; break;} } } } } { { MAuint32 ind[2]; std::vector<std::set<const MCParticleFormat*> > combis; for (ind[0]=0;ind[0]<_P_jets_I1I_PTorderingfinalstate_REG_.size();ind[0]++) { for (ind[1]=0;ind[1]<_P_jets_I2I_PTorderingfinalstate_REG_.size();ind[1]++) { if (_P_jets_I2I_PTorderingfinalstate_REG_[ind[1]]==_P_jets_I1I_PTorderingfinalstate_REG_[ind[0]]) continue; // Checking if consistent combination std::set<const MCParticleFormat*> mycombi; for (MAuint32 i=0;i<2;i++) { mycombi.insert(_P_jets_I1I_PTorderingfinalstate_REG_[ind[i]]); mycombi.insert(_P_jets_I2I_PTorderingfinalstate_REG_[ind[i]]); } MAbool matched=false; for (MAuint32 i=0;i<combis.size();i++) if (combis[i]==mycombi) {matched=true; break;} if (matched) continue; else combis.push_back(mycombi); if ((_P_jets_I1I_PTorderingfinalstate_REG_[ind[0]]->eta()-_P_jets_I2I_PTorderingfinalstate_REG_[ind[1]]->eta())<-2.6) {filter[1]=true; break;} } } } } { { MAuint32 ind[2]; std::vector<std::set<const MCParticleFormat*> > combis; for (ind[0]=0;ind[0]<_P_jets_I1I_PTorderingfinalstate_REG_.size();ind[0]++) { for (ind[1]=0;ind[1]<_P_jets_I2I_PTorderingfinalstate_REG_.size();ind[1]++) { if (_P_jets_I2I_PTorderingfinalstate_REG_[ind[1]]==_P_jets_I1I_PTorderingfinalstate_REG_[ind[0]]) continue; // Checking if consistent combination std::set<const MCParticleFormat*> mycombi; for (MAuint32 i=0;i<2;i++) { mycombi.insert(_P_jets_I1I_PTorderingfinalstate_REG_[ind[i]]); mycombi.insert(_P_jets_I2I_PTorderingfinalstate_REG_[ind[i]]); } MAbool matched=false; for (MAuint32 i=0;i<combis.size();i++) if (combis[i]==mycombi) {matched=true; break;} if (matched) continue; else combis.push_back(mycombi); ParticleBaseFormat q; q+=_P_jets_I1I_PTorderingfinalstate_REG_[ind[0]]->momentum(); q+=_P_jets_I2I_PTorderingfinalstate_REG_[ind[1]]->momentum(); if (q.m()>1250.0) {filter[2]=true; break;} } } } } MAbool filter_global = ((filter[0] || filter[1]) && filter[2]); if(!Manager()->ApplyCut(filter_global, "1_( sdETA ( jets[1] jets[2] ) > 2.6 or sdETA ( jets[1] jets[2] ) < -2.6 ) and M ( jets[1] jets[2] ) > 1250.0")) return true; } // Event selection number 2 // * Cut: select PT ( a[1] ) > 150.0 and M ( a[1] a[2] ) > 350.0, regions = [] { std::vector<MAbool> filter(2,false); { { MAuint32 ind[1]; for (ind[0]=0;ind[0]<_P_a_I1I_PTorderingfinalstate_REG_.size();ind[0]++) { if (_P_a_I1I_PTorderingfinalstate_REG_[ind[0]]->pt()>150.0) {filter[0]=true; break;} } } } { { MAuint32 ind[2]; std::vector<std::set<const MCParticleFormat*> > combis; for (ind[0]=0;ind[0]<_P_a_I1I_PTorderingfinalstate_REG_.size();ind[0]++) { for (ind[1]=0;ind[1]<_P_a_I2I_PTorderingfinalstate_REG_.size();ind[1]++) { if (_P_a_I2I_PTorderingfinalstate_REG_[ind[1]]==_P_a_I1I_PTorderingfinalstate_REG_[ind[0]]) continue; // Checking if consistent combination std::set<const MCParticleFormat*> mycombi; for (MAuint32 i=0;i<2;i++) { mycombi.insert(_P_a_I1I_PTorderingfinalstate_REG_[ind[i]]); mycombi.insert(_P_a_I2I_PTorderingfinalstate_REG_[ind[i]]); } MAbool matched=false; for (MAuint32 i=0;i<combis.size();i++) if (combis[i]==mycombi) {matched=true; break;} if (matched) continue; else combis.push_back(mycombi); ParticleBaseFormat q; q+=_P_a_I1I_PTorderingfinalstate_REG_[ind[0]]->momentum(); q+=_P_a_I2I_PTorderingfinalstate_REG_[ind[1]]->momentum(); if (q.m()>350.0) {filter[1]=true; break;} } } } } MAbool filter_global = (filter[0] && filter[1]); if(!Manager()->ApplyCut(filter_global, "2_PT ( a[1] ) > 150.0 and M ( a[1] a[2] ) > 350.0")) return true; } return true; } void user::Finalize(const SampleFormat& summary, const std::vector<SampleFormat>& files) { }
[ "elijah.sheridan@vanderbilt.edu" ]
elijah.sheridan@vanderbilt.edu
e1665ffc784dc4b7b9c3e22e0775b5c3893c6d81
b434f9db6c407c14365ade34f1a22092ea507c34
/strpp/strpp.cpp
2d5423f7f866dc326fdb4516edd479d0312337e0
[]
no_license
ral99/ral99lib
2c28f3e638d0d52e3ed6b97d6b6f7ccb92b656e2
9e151c412c76c5c5fa30420a4207d420dafb0989
refs/heads/master
2021-01-19T00:47:20.325099
2016-06-28T22:46:14
2016-06-28T22:46:14
27,852,513
0
0
null
null
null
null
UTF-8
C++
false
false
1,037
cpp
#include <stdlib.h> #include <string> #include <vector> #include "adt/list/list/list.h" #include "adt/list/list_item/list_item.h" #include "str/str.h" #include "strpp/strpp.h" std::string str::join(const std::vector<std::string>& strs, const std::string& separator) { ADTList c_strs = list_new(); for (std::vector<std::string>::const_iterator it = strs.begin(); it != strs.end(); it++) list_append(c_strs, (char *) it->c_str()); char *c_joined = str_join(c_strs, (char *) separator.c_str()); std::string joined(c_joined); list_release(c_strs); free(c_joined); return joined; } std::vector<std::string> str::split(const std::string& str, const std::string& separator) { std::vector<std::string> splitted; ADTList c_splitted = str_split((char *) str.c_str(), (char *) separator.c_str()); for (ADTListItem it = list_head(c_splitted); it; it = list_next(it)) splitted.push_back(std::string((char *) list_value(it))); list_full_release(c_splitted, free); return splitted; }
[ "rodrigoalima99@gmail.com" ]
rodrigoalima99@gmail.com
75c03942de5461e48492a2ca557f705000a96f21
00adebf1f66c6e52c53ca2b95304f44bfd95339f
/MauricioGonzalez_Ejercicio26.cpp
44819bd5ded5b49188140d94894e2d4faa87a09a
[ "MIT" ]
permissive
lmgonzalezc/MauricioGonzalez_Ejercicio26
47b4a946e8e0e1d3adf74fa63b340baaf9a7ce7c
0a7bfa5ee5902d170c6797dfebcf373050f5bc64
refs/heads/master
2020-05-17T01:31:31.273375
2019-04-25T12:47:31
2019-04-25T12:47:31
183,429,251
0
0
null
null
null
null
UTF-8
C++
false
false
1,684
cpp
#include <iostream> #include <fstream> using namespace std; void solve_equation_euler(float t_init, float t_end, float delta_t, float omega, string filename); void solve_equation_rk4(float t_init, float t_end, float delta_t, float omega, string filename); void solve_equation_leapfrog(float t_init, float t_end, float delta_t, float omega, string filename); float dzdt(float t, float y, float z, float omega); float dydt(float t, float y, float z, float omega); int main(){ float omega=1.0; solve_equation_euler(0.0, 10000.0, omega/2, omega, "euler.dat"); solve_equation_rk4(0.0, 10000.0, omega/2, omega, "rk4.dat"); solve_equation_leapfrog(0.0, 10000.0, omega/2, omega, "leapfrog.dat"); return 0; } void solve_equation_euler(float t_init, float t_end, float delta_t, float omega, string filename){ float t=t_init; float y=1.0; ofstream outfile; outfile.open(filename); while(t<t_end){ outfile << t << " " << y << endl; y = y - delta_t * omega * y; t = t + delta_t; } outfile.close(); } void solve_equation_rk4(float t_init, float t_end, float delta_t, float omega, string filename){ ofstream outfile; outfile.open(filename); outfile.close(); } void solve_equation_leapfrog(float t_init, float t_end, float delta_t, float omega, string filename){ float t = t_init; float y=1.0; float v=0.0; ofstream outfile; outfile.open(filename); while(t<t_end){ outfile << t << " " << y << endl; v = v + -omega * omega * y * (delta_t/2); y = y + v * delta_t; v = v + -omega * omega * y * (delta_t/2); } outfile.close(); }
[ "noreply@github.com" ]
lmgonzalezc.noreply@github.com
d299a0151da76e7a8a552d66f202238d1a2fbe41
ddf9516cbedf2229037051682b9d57e7bd2aceed
/common/src/imgui/cximgui.cpp
3da9375d4fe5bbe9421e7ab51f9c85b8244962d0
[]
no_license
niuliu222/SimpleEngine
bbfde261e7277fed2329c453ba91e0f6d5946ba6
2f1d93d67240b5108d74b14ac2ea1cb4eb7a15ba
refs/heads/master
2020-07-30T21:27:46.797415
2019-09-23T09:46:46
2019-09-23T09:46:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
144,438
cpp
#include "cximgui.h" #include <imgui.h> #include <string.h> //ImGuiContext* CreateContext(ImFontAtlas* shared_font_atlas); //UnSupported CreateContext //void DestroyContext(ImGuiContext* ctx); //UnSupported DestroyContext //ImGuiContext* GetCurrentContext(); int cximgui_GetCurrentContext(lua_State* L) { ImGuiContext* __ret__ = ImGui::GetCurrentContext(); return 0; }; //void SetCurrentContext(ImGuiContext* ctx); //UnSupported SetCurrentContext //bool DebugCheckVersionAndDataLayout(const char* version_str,size_t sz_io,size_t sz_style,size_t sz_vec2,size_t sz_vec4,size_t sz_drawvert); int cximgui_DebugCheckVersionAndDataLayout_6_siiiii(lua_State* L) { int __argi__ = 1; const char* version_str = lua_tostring(L, __argi__++); size_t sz_io = (size_t)lua_tointeger(L, __argi__++); size_t sz_style = (size_t)lua_tointeger(L, __argi__++); size_t sz_vec2 = (size_t)lua_tointeger(L, __argi__++); size_t sz_vec4 = (size_t)lua_tointeger(L, __argi__++); size_t sz_drawvert = (size_t)lua_tointeger(L, __argi__++); bool __ret__ = ImGui::DebugCheckVersionAndDataLayout(version_str, sz_io, sz_style, sz_vec2, sz_vec4, sz_drawvert); lua_pushboolean(L, __ret__); return 1; }; //ImGuiIO& GetIO(); int cximgui_GetIO(lua_State* L) { ImGuiIO& __ret__ = ImGui::GetIO(); return 0; }; //ImGuiStyle& GetStyle(); int cximgui_GetStyle(lua_State* L) { ImGuiStyle& __ret__ = ImGui::GetStyle(); return 0; }; //void NewFrame(); int cximgui_NewFrame(lua_State* L) { ImGui::NewFrame(); return 0; }; //void EndFrame(); int cximgui_EndFrame(lua_State* L) { ImGui::EndFrame(); return 0; }; //void Render(); int cximgui_Render(lua_State* L) { ImGui::Render(); return 0; }; //ImDrawData* GetDrawData(); int cximgui_GetDrawData(lua_State* L) { ImDrawData* __ret__ = ImGui::GetDrawData(); return 0; }; //void ShowDemoWindow(bool* p_open); int cximgui_ShowDemoWindow_1_bp(lua_State* L) { int __argi__ = 1; bool p_open = lua_toboolean(L, __argi__++); ImGui::ShowDemoWindow(&p_open); lua_pushboolean(L, p_open); return 1; }; //void ShowMetricsWindow(bool* p_open); int cximgui_ShowMetricsWindow_1_bp(lua_State* L) { int __argi__ = 1; bool p_open = lua_toboolean(L, __argi__++); ImGui::ShowMetricsWindow(&p_open); lua_pushboolean(L, p_open); return 1; }; //void ShowStyleEditor(ImGuiStyle* ref); //UnSupported ShowStyleEditor //bool ShowStyleSelector(const char* label); int cximgui_ShowStyleSelector_1_s(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool __ret__ = ImGui::ShowStyleSelector(label); lua_pushboolean(L, __ret__); return 1; }; //void ShowFontSelector(const char* label); int cximgui_ShowFontSelector_1_s(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); ImGui::ShowFontSelector(label); return 0; }; //void ShowUserGuide(); int cximgui_ShowUserGuide(lua_State* L) { ImGui::ShowUserGuide(); return 0; }; //const char* GetVersion(); int cximgui_GetVersion(lua_State* L) { const char* __ret__ = ImGui::GetVersion(); lua_pushstring(L, __ret__); return 1; }; //void StyleColorsDark(ImGuiStyle* dst); //UnSupported StyleColorsDark //void StyleColorsClassic(ImGuiStyle* dst); //UnSupported StyleColorsClassic //void StyleColorsLight(ImGuiStyle* dst); //UnSupported StyleColorsLight //bool Begin(const char* name,bool* p_open,ImGuiWindowFlags flags); int cximgui_Begin_3_sbpi(lua_State* L) { int __argi__ = 1; const char* name = lua_tostring(L, __argi__++); bool p_open = lua_toboolean(L, __argi__++); ImGuiWindowFlags flags = (ImGuiWindowFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::Begin(name, &p_open, flags); lua_pushboolean(L, __ret__); lua_pushboolean(L, p_open); return 2; }; //void End(); int cximgui_End(lua_State* L) { ImGui::End(); return 0; }; //bool BeginChild(const char* str_id,const ImVec2& size,bool border,ImGuiWindowFlags flags); int cximgui_BeginChild_4_sv2bi(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); ImVec2 size_def = ImVec2(0, 0); ImVec2 size; size.x = (float)luaL_optnumber(L, __argi__, size_def.x); size.y = (float)luaL_optnumber(L, __argi__ + 1, size_def.y); if (size.x != size_def.x || size.y != size_def.y) __argi__ += 2; bool border = lua_toboolean(L, __argi__++); ImGuiWindowFlags flags = (ImGuiWindowFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::BeginChild(str_id, size, border, flags); lua_pushboolean(L, __ret__); return 1; }; //bool BeginChild(ImGuiID id,const ImVec2& size,bool border,ImGuiWindowFlags flags); int cximgui_BeginChild_4_iv2bi(lua_State* L) { int __argi__ = 1; ImGuiID id = (ImGuiID)lua_tointeger(L, __argi__++); ImVec2 size_def = ImVec2(0, 0); ImVec2 size; size.x = (float)luaL_optnumber(L, __argi__, size_def.x); size.y = (float)luaL_optnumber(L, __argi__ + 1, size_def.y); if (size.x != size_def.x || size.y != size_def.y) __argi__ += 2; bool border = lua_toboolean(L, __argi__++); ImGuiWindowFlags flags = (ImGuiWindowFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::BeginChild(id, size, border, flags); lua_pushboolean(L, __ret__); return 1; }; //void EndChild(); int cximgui_EndChild(lua_State* L) { ImGui::EndChild(); return 0; }; //bool IsWindowAppearing(); int cximgui_IsWindowAppearing(lua_State* L) { bool __ret__ = ImGui::IsWindowAppearing(); lua_pushboolean(L, __ret__); return 1; }; //bool IsWindowCollapsed(); int cximgui_IsWindowCollapsed(lua_State* L) { bool __ret__ = ImGui::IsWindowCollapsed(); lua_pushboolean(L, __ret__); return 1; }; //bool IsWindowFocused(ImGuiFocusedFlags flags); int cximgui_IsWindowFocused_1_i(lua_State* L) { int __argi__ = 1; ImGuiFocusedFlags flags = (ImGuiFocusedFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::IsWindowFocused(flags); lua_pushboolean(L, __ret__); return 1; }; //bool IsWindowHovered(ImGuiHoveredFlags flags); int cximgui_IsWindowHovered_1_i(lua_State* L) { int __argi__ = 1; ImGuiHoveredFlags flags = (ImGuiHoveredFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::IsWindowHovered(flags); lua_pushboolean(L, __ret__); return 1; }; //ImDrawList* GetWindowDrawList(); int cximgui_GetWindowDrawList(lua_State* L) { ImDrawList* __ret__ = ImGui::GetWindowDrawList(); return 0; }; //float GetWindowDpiScale(); int cximgui_GetWindowDpiScale(lua_State* L) { float __ret__ = ImGui::GetWindowDpiScale(); lua_pushnumber(L, __ret__); return 1; }; //ImGuiViewport* GetWindowViewport(); int cximgui_GetWindowViewport(lua_State* L) { ImGuiViewport* __ret__ = ImGui::GetWindowViewport(); return 0; }; //ImVec2 GetWindowPos(); int cximgui_GetWindowPos(lua_State* L) { ImVec2 __ret__ = ImGui::GetWindowPos(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //ImVec2 GetWindowSize(); int cximgui_GetWindowSize(lua_State* L) { ImVec2 __ret__ = ImGui::GetWindowSize(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //float GetWindowWidth(); int cximgui_GetWindowWidth(lua_State* L) { float __ret__ = ImGui::GetWindowWidth(); lua_pushnumber(L, __ret__); return 1; }; //float GetWindowHeight(); int cximgui_GetWindowHeight(lua_State* L) { float __ret__ = ImGui::GetWindowHeight(); lua_pushnumber(L, __ret__); return 1; }; //ImVec2 GetContentRegionMax(); int cximgui_GetContentRegionMax(lua_State* L) { ImVec2 __ret__ = ImGui::GetContentRegionMax(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //ImVec2 GetContentRegionAvail(); int cximgui_GetContentRegionAvail(lua_State* L) { ImVec2 __ret__ = ImGui::GetContentRegionAvail(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //float GetContentRegionAvailWidth(); int cximgui_GetContentRegionAvailWidth(lua_State* L) { float __ret__ = ImGui::GetContentRegionAvailWidth(); lua_pushnumber(L, __ret__); return 1; }; //ImVec2 GetWindowContentRegionMin(); int cximgui_GetWindowContentRegionMin(lua_State* L) { ImVec2 __ret__ = ImGui::GetWindowContentRegionMin(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //ImVec2 GetWindowContentRegionMax(); int cximgui_GetWindowContentRegionMax(lua_State* L) { ImVec2 __ret__ = ImGui::GetWindowContentRegionMax(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //float GetWindowContentRegionWidth(); int cximgui_GetWindowContentRegionWidth(lua_State* L) { float __ret__ = ImGui::GetWindowContentRegionWidth(); lua_pushnumber(L, __ret__); return 1; }; //void SetNextWindowPos(const ImVec2& pos,ImGuiCond cond,const ImVec2& pivot); int cximgui_SetNextWindowPos_3_v2iv2(lua_State* L) { int __argi__ = 1; ImVec2 pos; pos.x = (float)lua_tonumber(L, __argi__++); pos.y = (float)lua_tonumber(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImVec2 pivot_def = ImVec2(0, 0); ImVec2 pivot; pivot.x = (float)luaL_optnumber(L, __argi__, pivot_def.x); pivot.y = (float)luaL_optnumber(L, __argi__ + 1, pivot_def.y); if (pivot.x != pivot_def.x || pivot.y != pivot_def.y) __argi__ += 2; ImGui::SetNextWindowPos(pos, cond, pivot); return 0; }; //void SetNextWindowSize(const ImVec2& size,ImGuiCond cond); int cximgui_SetNextWindowSize_2_v2i(lua_State* L) { int __argi__ = 1; ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetNextWindowSize(size, cond); return 0; }; //void SetNextWindowSizeConstraints(const ImVec2& size_min,const ImVec2& size_max,ImGuiSizeCallback custom_callback,void* custom_callback_data); //UnSupported SetNextWindowSizeConstraints //void SetNextWindowContentSize(const ImVec2& size); int cximgui_SetNextWindowContentSize_1_v2(lua_State* L) { int __argi__ = 1; ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); ImGui::SetNextWindowContentSize(size); return 0; }; //void SetNextWindowCollapsed(bool collapsed,ImGuiCond cond); int cximgui_SetNextWindowCollapsed_2_bi(lua_State* L) { int __argi__ = 1; bool collapsed = lua_toboolean(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetNextWindowCollapsed(collapsed, cond); return 0; }; //void SetNextWindowFocus(); int cximgui_SetNextWindowFocus(lua_State* L) { ImGui::SetNextWindowFocus(); return 0; }; //void SetNextWindowBgAlpha(float alpha); int cximgui_SetNextWindowBgAlpha_1_n(lua_State* L) { int __argi__ = 1; float alpha = (float)lua_tonumber(L, __argi__++); ImGui::SetNextWindowBgAlpha(alpha); return 0; }; //void SetNextWindowViewport(ImGuiID viewport_id); int cximgui_SetNextWindowViewport_1_i(lua_State* L) { int __argi__ = 1; ImGuiID viewport_id = (ImGuiID)lua_tointeger(L, __argi__++); ImGui::SetNextWindowViewport(viewport_id); return 0; }; //void SetWindowPos(const ImVec2& pos,ImGuiCond cond); int cximgui_SetWindowPos_2_v2i(lua_State* L) { int __argi__ = 1; ImVec2 pos; pos.x = (float)lua_tonumber(L, __argi__++); pos.y = (float)lua_tonumber(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetWindowPos(pos, cond); return 0; }; //void SetWindowSize(const ImVec2& size,ImGuiCond cond); int cximgui_SetWindowSize_2_v2i(lua_State* L) { int __argi__ = 1; ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetWindowSize(size, cond); return 0; }; //void SetWindowCollapsed(bool collapsed,ImGuiCond cond); int cximgui_SetWindowCollapsed_2_bi(lua_State* L) { int __argi__ = 1; bool collapsed = lua_toboolean(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetWindowCollapsed(collapsed, cond); return 0; }; //void SetWindowFocus(); int cximgui_SetWindowFocus(lua_State* L) { ImGui::SetWindowFocus(); return 0; }; //void SetWindowFontScale(float scale); int cximgui_SetWindowFontScale_1_n(lua_State* L) { int __argi__ = 1; float scale = (float)lua_tonumber(L, __argi__++); ImGui::SetWindowFontScale(scale); return 0; }; //void SetWindowPos(const char* name,const ImVec2& pos,ImGuiCond cond); int cximgui_SetWindowPos_3_sv2i(lua_State* L) { int __argi__ = 1; const char* name = lua_tostring(L, __argi__++); ImVec2 pos; pos.x = (float)lua_tonumber(L, __argi__++); pos.y = (float)lua_tonumber(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetWindowPos(name, pos, cond); return 0; }; //void SetWindowSize(const char* name,const ImVec2& size,ImGuiCond cond); int cximgui_SetWindowSize_3_sv2i(lua_State* L) { int __argi__ = 1; const char* name = lua_tostring(L, __argi__++); ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetWindowSize(name, size, cond); return 0; }; //void SetWindowCollapsed(const char* name,bool collapsed,ImGuiCond cond); int cximgui_SetWindowCollapsed_3_sbi(lua_State* L) { int __argi__ = 1; const char* name = lua_tostring(L, __argi__++); bool collapsed = lua_toboolean(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetWindowCollapsed(name, collapsed, cond); return 0; }; //void SetWindowFocus(const char* name); int cximgui_SetWindowFocus_1_s(lua_State* L) { int __argi__ = 1; const char* name = lua_tostring(L, __argi__++); ImGui::SetWindowFocus(name); return 0; }; //float GetScrollX(); int cximgui_GetScrollX(lua_State* L) { float __ret__ = ImGui::GetScrollX(); lua_pushnumber(L, __ret__); return 1; }; //float GetScrollY(); int cximgui_GetScrollY(lua_State* L) { float __ret__ = ImGui::GetScrollY(); lua_pushnumber(L, __ret__); return 1; }; //float GetScrollMaxX(); int cximgui_GetScrollMaxX(lua_State* L) { float __ret__ = ImGui::GetScrollMaxX(); lua_pushnumber(L, __ret__); return 1; }; //float GetScrollMaxY(); int cximgui_GetScrollMaxY(lua_State* L) { float __ret__ = ImGui::GetScrollMaxY(); lua_pushnumber(L, __ret__); return 1; }; //void SetScrollX(float scroll_x); int cximgui_SetScrollX_1_n(lua_State* L) { int __argi__ = 1; float scroll_x = (float)lua_tonumber(L, __argi__++); ImGui::SetScrollX(scroll_x); return 0; }; //void SetScrollY(float scroll_y); int cximgui_SetScrollY_1_n(lua_State* L) { int __argi__ = 1; float scroll_y = (float)lua_tonumber(L, __argi__++); ImGui::SetScrollY(scroll_y); return 0; }; //void SetScrollHereY(float center_y_ratio); int cximgui_SetScrollHereY_1_n(lua_State* L) { int __argi__ = 1; float center_y_ratio = (float)luaL_optnumber(L, __argi__, 0.5f); if (center_y_ratio != 0.5f) __argi__++; ImGui::SetScrollHereY(center_y_ratio); return 0; }; //void SetScrollFromPosY(float pos_y,float center_y_ratio); int cximgui_SetScrollFromPosY_2_nn(lua_State* L) { int __argi__ = 1; float pos_y = (float)lua_tonumber(L, __argi__++); float center_y_ratio = (float)luaL_optnumber(L, __argi__, 0.5f); if (center_y_ratio != 0.5f) __argi__++; ImGui::SetScrollFromPosY(pos_y, center_y_ratio); return 0; }; //void PushFont(ImFont* font); //UnSupported PushFont //void PopFont(); int cximgui_PopFont(lua_State* L) { ImGui::PopFont(); return 0; }; //void PushStyleColor(ImGuiCol idx,ImU32 col); int cximgui_PushStyleColor_2_ii(lua_State* L) { int __argi__ = 1; ImGuiCol idx = (ImGuiCol)lua_tointeger(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); ImGui::PushStyleColor(idx, col); return 0; }; //void PushStyleColor(ImGuiCol idx,const ImVec4& col); int cximgui_PushStyleColor_2_iv4(lua_State* L) { int __argi__ = 1; ImGuiCol idx = (ImGuiCol)lua_tointeger(L, __argi__++); ImVec4 col; col.x = (float)lua_tonumber(L, __argi__++); col.y = (float)lua_tonumber(L, __argi__++); col.z = (float)lua_tonumber(L, __argi__++); col.w = (float)lua_tonumber(L, __argi__++); ImGui::PushStyleColor(idx, col); return 0; }; //void PopStyleColor(int count); int cximgui_PopStyleColor_1_i(lua_State* L) { int __argi__ = 1; int count = (int)luaL_optinteger(L, __argi__, 1); if (count != 1) __argi__++; ImGui::PopStyleColor(count); return 0; }; //void PushStyleVar(ImGuiStyleVar idx,float val); int cximgui_PushStyleVar_2_in(lua_State* L) { int __argi__ = 1; ImGuiStyleVar idx = (ImGuiStyleVar)lua_tointeger(L, __argi__++); float val = (float)lua_tonumber(L, __argi__++); ImGui::PushStyleVar(idx, val); return 0; }; //void PushStyleVar(ImGuiStyleVar idx,const ImVec2& val); int cximgui_PushStyleVar_2_iv2(lua_State* L) { int __argi__ = 1; ImGuiStyleVar idx = (ImGuiStyleVar)lua_tointeger(L, __argi__++); ImVec2 val; val.x = (float)lua_tonumber(L, __argi__++); val.y = (float)lua_tonumber(L, __argi__++); ImGui::PushStyleVar(idx, val); return 0; }; //void PopStyleVar(int count); int cximgui_PopStyleVar_1_i(lua_State* L) { int __argi__ = 1; int count = (int)luaL_optinteger(L, __argi__, 1); if (count != 1) __argi__++; ImGui::PopStyleVar(count); return 0; }; //const ImVec4& GetStyleColorVec4(ImGuiCol idx); int cximgui_GetStyleColorVec4_1_i(lua_State* L) { int __argi__ = 1; ImGuiCol idx = (ImGuiCol)lua_tointeger(L, __argi__++); const ImVec4& __ret__ = ImGui::GetStyleColorVec4(idx); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); lua_pushnumber(L, __ret__.z); lua_pushnumber(L, __ret__.w); return 4; }; //ImFont* GetFont(); int cximgui_GetFont(lua_State* L) { ImFont* __ret__ = ImGui::GetFont(); return 0; }; //float GetFontSize(); int cximgui_GetFontSize(lua_State* L) { float __ret__ = ImGui::GetFontSize(); lua_pushnumber(L, __ret__); return 1; }; //ImVec2 GetFontTexUvWhitePixel(); int cximgui_GetFontTexUvWhitePixel(lua_State* L) { ImVec2 __ret__ = ImGui::GetFontTexUvWhitePixel(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //ImU32 GetColorU32(ImGuiCol idx,float alpha_mul); int cximgui_GetColorU32_2_in(lua_State* L) { int __argi__ = 1; ImGuiCol idx = (ImGuiCol)lua_tointeger(L, __argi__++); float alpha_mul = (float)luaL_optnumber(L, __argi__, 1.0f); if (alpha_mul != 1.0f) __argi__++; ImU32 __ret__ = ImGui::GetColorU32(idx, alpha_mul); lua_pushinteger(L, __ret__); return 1; }; //ImU32 GetColorU32(const ImVec4& col); int cximgui_GetColorU32_1_v4(lua_State* L) { int __argi__ = 1; ImVec4 col; col.x = (float)lua_tonumber(L, __argi__++); col.y = (float)lua_tonumber(L, __argi__++); col.z = (float)lua_tonumber(L, __argi__++); col.w = (float)lua_tonumber(L, __argi__++); ImU32 __ret__ = ImGui::GetColorU32(col); lua_pushinteger(L, __ret__); return 1; }; //ImU32 GetColorU32(ImU32 col); int cximgui_GetColorU32_1_i(lua_State* L) { int __argi__ = 1; ImU32 col = (ImU32)lua_tointeger(L, __argi__++); ImU32 __ret__ = ImGui::GetColorU32(col); lua_pushinteger(L, __ret__); return 1; }; //void PushItemWidth(float item_width); int cximgui_PushItemWidth_1_n(lua_State* L) { int __argi__ = 1; float item_width = (float)lua_tonumber(L, __argi__++); ImGui::PushItemWidth(item_width); return 0; }; //void PopItemWidth(); int cximgui_PopItemWidth(lua_State* L) { ImGui::PopItemWidth(); return 0; }; //float CalcItemWidth(); int cximgui_CalcItemWidth(lua_State* L) { float __ret__ = ImGui::CalcItemWidth(); lua_pushnumber(L, __ret__); return 1; }; //void PushTextWrapPos(float wrap_pos_x); int cximgui_PushTextWrapPos_1_n(lua_State* L) { int __argi__ = 1; float wrap_pos_x = (float)luaL_optnumber(L, __argi__, 0.0f); if (wrap_pos_x != 0.0f) __argi__++; ImGui::PushTextWrapPos(wrap_pos_x); return 0; }; //void PopTextWrapPos(); int cximgui_PopTextWrapPos(lua_State* L) { ImGui::PopTextWrapPos(); return 0; }; //void PushAllowKeyboardFocus(bool allow_keyboard_focus); int cximgui_PushAllowKeyboardFocus_1_b(lua_State* L) { int __argi__ = 1; bool allow_keyboard_focus = lua_toboolean(L, __argi__++); ImGui::PushAllowKeyboardFocus(allow_keyboard_focus); return 0; }; //void PopAllowKeyboardFocus(); int cximgui_PopAllowKeyboardFocus(lua_State* L) { ImGui::PopAllowKeyboardFocus(); return 0; }; //void PushButtonRepeat(bool repeat); int cximgui_PushButtonRepeat_1_b(lua_State* L) { int __argi__ = 1; bool repeat = lua_toboolean(L, __argi__++); ImGui::PushButtonRepeat(repeat); return 0; }; //void PopButtonRepeat(); int cximgui_PopButtonRepeat(lua_State* L) { ImGui::PopButtonRepeat(); return 0; }; //void Separator(); int cximgui_Separator(lua_State* L) { ImGui::Separator(); return 0; }; //void SameLine(float pos_x,float spacing_w); int cximgui_SameLine_2_nn(lua_State* L) { int __argi__ = 1; float pos_x = (float)luaL_optnumber(L, __argi__, 0.0f); if (pos_x != 0.0f) __argi__++; float spacing_w = (float)luaL_optnumber(L, __argi__, -1.0f); if (spacing_w != -1.0f) __argi__++; ImGui::SameLine(pos_x, spacing_w); return 0; }; //void NewLine(); int cximgui_NewLine(lua_State* L) { ImGui::NewLine(); return 0; }; //void Spacing(); int cximgui_Spacing(lua_State* L) { ImGui::Spacing(); return 0; }; //void Dummy(const ImVec2& size); int cximgui_Dummy_1_v2(lua_State* L) { int __argi__ = 1; ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); ImGui::Dummy(size); return 0; }; //void Indent(float indent_w); int cximgui_Indent_1_n(lua_State* L) { int __argi__ = 1; float indent_w = (float)luaL_optnumber(L, __argi__, 0.0f); if (indent_w != 0.0f) __argi__++; ImGui::Indent(indent_w); return 0; }; //void Unindent(float indent_w); int cximgui_Unindent_1_n(lua_State* L) { int __argi__ = 1; float indent_w = (float)luaL_optnumber(L, __argi__, 0.0f); if (indent_w != 0.0f) __argi__++; ImGui::Unindent(indent_w); return 0; }; //void BeginGroup(); int cximgui_BeginGroup(lua_State* L) { ImGui::BeginGroup(); return 0; }; //void EndGroup(); int cximgui_EndGroup(lua_State* L) { ImGui::EndGroup(); return 0; }; //ImVec2 GetCursorPos(); int cximgui_GetCursorPos(lua_State* L) { ImVec2 __ret__ = ImGui::GetCursorPos(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //float GetCursorPosX(); int cximgui_GetCursorPosX(lua_State* L) { float __ret__ = ImGui::GetCursorPosX(); lua_pushnumber(L, __ret__); return 1; }; //float GetCursorPosY(); int cximgui_GetCursorPosY(lua_State* L) { float __ret__ = ImGui::GetCursorPosY(); lua_pushnumber(L, __ret__); return 1; }; //void SetCursorPos(const ImVec2& local_pos); int cximgui_SetCursorPos_1_v2(lua_State* L) { int __argi__ = 1; ImVec2 local_pos; local_pos.x = (float)lua_tonumber(L, __argi__++); local_pos.y = (float)lua_tonumber(L, __argi__++); ImGui::SetCursorPos(local_pos); return 0; }; //void SetCursorPosX(float x); int cximgui_SetCursorPosX_1_n(lua_State* L) { int __argi__ = 1; float x = (float)lua_tonumber(L, __argi__++); ImGui::SetCursorPosX(x); return 0; }; //void SetCursorPosY(float y); int cximgui_SetCursorPosY_1_n(lua_State* L) { int __argi__ = 1; float y = (float)lua_tonumber(L, __argi__++); ImGui::SetCursorPosY(y); return 0; }; //ImVec2 GetCursorStartPos(); int cximgui_GetCursorStartPos(lua_State* L) { ImVec2 __ret__ = ImGui::GetCursorStartPos(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //ImVec2 GetCursorScreenPos(); int cximgui_GetCursorScreenPos(lua_State* L) { ImVec2 __ret__ = ImGui::GetCursorScreenPos(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //void SetCursorScreenPos(const ImVec2& pos); int cximgui_SetCursorScreenPos_1_v2(lua_State* L) { int __argi__ = 1; ImVec2 pos; pos.x = (float)lua_tonumber(L, __argi__++); pos.y = (float)lua_tonumber(L, __argi__++); ImGui::SetCursorScreenPos(pos); return 0; }; //void AlignTextToFramePadding(); int cximgui_AlignTextToFramePadding(lua_State* L) { ImGui::AlignTextToFramePadding(); return 0; }; //float GetTextLineHeight(); int cximgui_GetTextLineHeight(lua_State* L) { float __ret__ = ImGui::GetTextLineHeight(); lua_pushnumber(L, __ret__); return 1; }; //float GetTextLineHeightWithSpacing(); int cximgui_GetTextLineHeightWithSpacing(lua_State* L) { float __ret__ = ImGui::GetTextLineHeightWithSpacing(); lua_pushnumber(L, __ret__); return 1; }; //float GetFrameHeight(); int cximgui_GetFrameHeight(lua_State* L) { float __ret__ = ImGui::GetFrameHeight(); lua_pushnumber(L, __ret__); return 1; }; //float GetFrameHeightWithSpacing(); int cximgui_GetFrameHeightWithSpacing(lua_State* L) { float __ret__ = ImGui::GetFrameHeightWithSpacing(); lua_pushnumber(L, __ret__); return 1; }; //void PushID(const char* str_id); int cximgui_PushID_1_s(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); ImGui::PushID(str_id); return 0; }; //void PushID(const char* str_id_begin,const char* str_id_end); int cximgui_PushID_2_ss(lua_State* L) { int __argi__ = 1; const char* str_id_begin = lua_tostring(L, __argi__++); const char* str_id_end = lua_tostring(L, __argi__++); ImGui::PushID(str_id_begin, str_id_end); return 0; }; //void PushID(const void* ptr_id); //UnSupported PushID //void PushID(int int_id); int cximgui_PushID_1_i(lua_State* L) { int __argi__ = 1; int int_id = (int)lua_tointeger(L, __argi__++); ImGui::PushID(int_id); return 0; }; //void PopID(); int cximgui_PopID(lua_State* L) { ImGui::PopID(); return 0; }; //ImGuiID GetID(const char* str_id); int cximgui_GetID_1_s(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); ImGuiID __ret__ = ImGui::GetID(str_id); lua_pushinteger(L, __ret__); return 1; }; //ImGuiID GetID(const char* str_id_begin,const char* str_id_end); int cximgui_GetID_2_ss(lua_State* L) { int __argi__ = 1; const char* str_id_begin = lua_tostring(L, __argi__++); const char* str_id_end = lua_tostring(L, __argi__++); ImGuiID __ret__ = ImGui::GetID(str_id_begin, str_id_end); lua_pushinteger(L, __ret__); return 1; }; //ImGuiID GetID(const void* ptr_id); //UnSupported GetID //void TextUnformatted(const char* text,const char* text_end); int cximgui_TextUnformatted_2_ss(lua_State* L) { int __argi__ = 1; const char* text = lua_tostring(L, __argi__++); const char* text_end = luaL_optstring(L, __argi__, NULL); if (text_end != NULL) __argi__++; ImGui::TextUnformatted(text, text_end); return 0; }; //void Text(const char* fmt,... ); //UnSupported Text //void TextV(const char* fmt,va_list args); //UnSupported TextV //void TextColored(const ImVec4& col,const char* fmt,... ); //UnSupported TextColored //void TextColoredV(const ImVec4& col,const char* fmt,va_list args); //UnSupported TextColoredV //void TextDisabled(const char* fmt,... ); //UnSupported TextDisabled //void TextDisabledV(const char* fmt,va_list args); //UnSupported TextDisabledV //void TextWrapped(const char* fmt,... ); //UnSupported TextWrapped //void TextWrappedV(const char* fmt,va_list args); //UnSupported TextWrappedV //void LabelText(const char* label,const char* fmt,... ); //UnSupported LabelText //void LabelTextV(const char* label,const char* fmt,va_list args); //UnSupported LabelTextV //void BulletText(const char* fmt,... ); //UnSupported BulletText //void BulletTextV(const char* fmt,va_list args); //UnSupported BulletTextV //bool Button(const char* label,const ImVec2& size); int cximgui_Button_2_sv2(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); ImVec2 size_def = ImVec2(0, 0); ImVec2 size; size.x = (float)luaL_optnumber(L, __argi__, size_def.x); size.y = (float)luaL_optnumber(L, __argi__ + 1, size_def.y); if (size.x != size_def.x || size.y != size_def.y) __argi__ += 2; bool __ret__ = ImGui::Button(label, size); lua_pushboolean(L, __ret__); return 1; }; //bool SmallButton(const char* label); int cximgui_SmallButton_1_s(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool __ret__ = ImGui::SmallButton(label); lua_pushboolean(L, __ret__); return 1; }; //bool InvisibleButton(const char* str_id,const ImVec2& size); int cximgui_InvisibleButton_2_sv2(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); bool __ret__ = ImGui::InvisibleButton(str_id, size); lua_pushboolean(L, __ret__); return 1; }; //bool ArrowButton(const char* str_id,ImGuiDir dir); int cximgui_ArrowButton_2_si(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); ImGuiDir dir = (ImGuiDir)lua_tointeger(L, __argi__++); bool __ret__ = ImGui::ArrowButton(str_id, dir); lua_pushboolean(L, __ret__); return 1; }; //void Image(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0,const ImVec2& uv1,const ImVec4& tint_col,const ImVec4& border_col); //UnSupported Image //bool ImageButton(ImTextureID user_texture_id,const ImVec2& size,const ImVec2& uv0,const ImVec2& uv1,int frame_padding,const ImVec4& bg_col,const ImVec4& tint_col); //UnSupported ImageButton //bool Checkbox(const char* label,bool* v); int cximgui_Checkbox_2_sbp(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool v = lua_toboolean(L, __argi__++); bool __ret__ = ImGui::Checkbox(label, &v); lua_pushboolean(L, __ret__); lua_pushboolean(L, v); return 2; }; //bool CheckboxFlags(const char* label,unsigned int* flags,unsigned int flags_value); int cximgui_CheckboxFlags_3_sIpI(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); unsigned int flags = (unsigned int)lua_tointeger(L, __argi__++); unsigned int flags_value = (unsigned int)lua_tointeger(L, __argi__++); bool __ret__ = ImGui::CheckboxFlags(label, &flags, flags_value); lua_pushboolean(L, __ret__); return 1; }; //bool RadioButton(const char* label,bool active); int cximgui_RadioButton_2_sb(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool active = lua_toboolean(L, __argi__++); bool __ret__ = ImGui::RadioButton(label, active); lua_pushboolean(L, __ret__); return 1; }; //bool RadioButton(const char* label,int* v,int v_button); int cximgui_RadioButton_3_sipi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v = (int)lua_tointeger(L, __argi__++); int v_button = (int)lua_tointeger(L, __argi__++); bool __ret__ = ImGui::RadioButton(label, &v, v_button); lua_pushboolean(L, __ret__); lua_pushinteger(L, v); return 2; }; //void ProgressBar(float fraction,const ImVec2& size_arg,const char* overlay); int cximgui_ProgressBar_3_nv2s(lua_State* L) { int __argi__ = 1; float fraction = (float)lua_tonumber(L, __argi__++); ImVec2 size_arg_def = ImVec2(-1, 0); ImVec2 size_arg; size_arg.x = (float)luaL_optnumber(L, __argi__, size_arg_def.x); size_arg.y = (float)luaL_optnumber(L, __argi__ + 1, size_arg_def.y); if (size_arg.x != size_arg_def.x || size_arg.y != size_arg_def.y) __argi__ += 2; const char* overlay = luaL_optstring(L, __argi__, NULL); if (overlay != NULL) __argi__++; ImGui::ProgressBar(fraction, size_arg, overlay); return 0; }; //void Bullet(); int cximgui_Bullet(lua_State* L) { ImGui::Bullet(); return 0; }; //bool BeginCombo(const char* label,const char* preview_value,ImGuiComboFlags flags); int cximgui_BeginCombo_3_ssi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); const char* preview_value = lua_tostring(L, __argi__++); ImGuiComboFlags flags = (ImGuiComboFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::BeginCombo(label, preview_value, flags); lua_pushboolean(L, __ret__); return 1; }; //void EndCombo(); int cximgui_EndCombo(lua_State* L) { ImGui::EndCombo(); return 0; }; //bool Combo(const char* label,int* current_item,const char* const[],int items_count,int popup_max_height_in_items); //UnSupported Combo //bool Combo(const char* label,int* current_item,const char* items_separated_by_zeros,int popup_max_height_in_items); int cximgui_Combo_4_sipsi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int current_item = (int)lua_tointeger(L, __argi__++); const char* items_separated_by_zeros = lua_tostring(L, __argi__++); int popup_max_height_in_items = (int)luaL_optinteger(L, __argi__, -1); if (popup_max_height_in_items != -1) __argi__++; bool __ret__ = ImGui::Combo(label, &current_item, items_separated_by_zeros, popup_max_height_in_items); lua_pushboolean(L, __ret__); lua_pushinteger(L, current_item); return 2; }; //bool Combo(const char* label,int* current_item,bool @1@2,void* data,int items_count,int popup_max_height_in_items); //UnSupported Combo //bool DragFloat(const char* label,float* v,float v_speed,float v_min,float v_max,const char* format,float power); int cximgui_DragFloat_7_snpnnnsn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v = (float)lua_tonumber(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; float v_min = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_min != 0.0f) __argi__++; float v_max = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_max != 0.0f) __argi__++; const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::DragFloat(label, &v, v_speed, v_min, v_max, format, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v); return 2; }; //bool DragFloat2(const char* label,float v[2],float v_speed,float v_min,float v_max,const char* format,float power); int cximgui_DragFloat2_7_snnnnsn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v[2]; v[0] = (float)lua_tonumber(L, __argi__++); v[1] = (float)lua_tonumber(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; float v_min = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_min != 0.0f) __argi__++; float v_max = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_max != 0.0f) __argi__++; const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::DragFloat2(label, v, v_speed, v_min, v_max, format, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v[0]); lua_pushnumber(L, v[1]); return 3; }; //bool DragFloat3(const char* label,float v[3],float v_speed,float v_min,float v_max,const char* format,float power); int cximgui_DragFloat3_7_snnnnsn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v[3]; v[0] = (float)lua_tonumber(L, __argi__++); v[1] = (float)lua_tonumber(L, __argi__++); v[2] = (float)lua_tonumber(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; float v_min = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_min != 0.0f) __argi__++; float v_max = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_max != 0.0f) __argi__++; const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::DragFloat3(label, v, v_speed, v_min, v_max, format, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v[0]); lua_pushnumber(L, v[1]); lua_pushnumber(L, v[2]); return 4; }; //bool DragFloat4(const char* label,float v[4],float v_speed,float v_min,float v_max,const char* format,float power); int cximgui_DragFloat4_7_snnnnsn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v[4]; v[0] = (float)lua_tonumber(L, __argi__++); v[1] = (float)lua_tonumber(L, __argi__++); v[2] = (float)lua_tonumber(L, __argi__++); v[3] = (float)lua_tonumber(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; float v_min = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_min != 0.0f) __argi__++; float v_max = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_max != 0.0f) __argi__++; const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::DragFloat4(label, v, v_speed, v_min, v_max, format, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v[0]); lua_pushnumber(L, v[1]); lua_pushnumber(L, v[2]); lua_pushnumber(L, v[3]); return 5; }; //bool DragFloatRange2(const char* label,float* v_current_min,float* v_current_max,float v_speed,float v_min,float v_max,const char* format,const char* format_max,float power); int cximgui_DragFloatRange2_9_snpnpnnnssn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v_current_min = (float)lua_tonumber(L, __argi__++); float v_current_max = (float)lua_tonumber(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; float v_min = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_min != 0.0f) __argi__++; float v_max = (float)luaL_optnumber(L, __argi__, 0.0f); if (v_max != 0.0f) __argi__++; const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; const char* format_max = luaL_optstring(L, __argi__, NULL); if (format_max != NULL) __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::DragFloatRange2(label, &v_current_min, &v_current_max, v_speed, v_min, v_max, format, format_max, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v_current_min); lua_pushnumber(L, v_current_max); return 3; }; //bool DragInt(const char* label,int* v,float v_speed,int v_min,int v_max,const char* format); int cximgui_DragInt_6_sipniis(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v = (int)lua_tointeger(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; int v_min = (int)luaL_optinteger(L, __argi__, 0); if (v_min != 0) __argi__++; int v_max = (int)luaL_optinteger(L, __argi__, 0); if (v_max != 0) __argi__++; const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; bool __ret__ = ImGui::DragInt(label, &v, v_speed, v_min, v_max, format); lua_pushboolean(L, __ret__); lua_pushinteger(L, v); return 2; }; //bool DragInt2(const char* label,int v[2],float v_speed,int v_min,int v_max,const char* format); int cximgui_DragInt2_6_siniis(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v[2]; v[0] = (int)lua_tointeger(L, __argi__++); v[1] = (int)lua_tointeger(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; int v_min = (int)luaL_optinteger(L, __argi__, 0); if (v_min != 0) __argi__++; int v_max = (int)luaL_optinteger(L, __argi__, 0); if (v_max != 0) __argi__++; const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; bool __ret__ = ImGui::DragInt2(label, v, v_speed, v_min, v_max, format); lua_pushboolean(L, __ret__); lua_pushinteger(L, v[0]); lua_pushinteger(L, v[1]); return 3; }; //bool DragInt3(const char* label,int v[3],float v_speed,int v_min,int v_max,const char* format); int cximgui_DragInt3_6_siniis(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v[3]; v[0] = (int)lua_tointeger(L, __argi__++); v[1] = (int)lua_tointeger(L, __argi__++); v[2] = (int)lua_tointeger(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; int v_min = (int)luaL_optinteger(L, __argi__, 0); if (v_min != 0) __argi__++; int v_max = (int)luaL_optinteger(L, __argi__, 0); if (v_max != 0) __argi__++; const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; bool __ret__ = ImGui::DragInt3(label, v, v_speed, v_min, v_max, format); lua_pushboolean(L, __ret__); lua_pushinteger(L, v[0]); lua_pushinteger(L, v[1]); lua_pushinteger(L, v[2]); return 4; }; //bool DragInt4(const char* label,int v[4],float v_speed,int v_min,int v_max,const char* format); int cximgui_DragInt4_6_siniis(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v[4]; v[0] = (int)lua_tointeger(L, __argi__++); v[1] = (int)lua_tointeger(L, __argi__++); v[2] = (int)lua_tointeger(L, __argi__++); v[3] = (int)lua_tointeger(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; int v_min = (int)luaL_optinteger(L, __argi__, 0); if (v_min != 0) __argi__++; int v_max = (int)luaL_optinteger(L, __argi__, 0); if (v_max != 0) __argi__++; const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; bool __ret__ = ImGui::DragInt4(label, v, v_speed, v_min, v_max, format); lua_pushboolean(L, __ret__); lua_pushinteger(L, v[0]); lua_pushinteger(L, v[1]); lua_pushinteger(L, v[2]); lua_pushinteger(L, v[3]); return 5; }; //bool DragIntRange2(const char* label,int* v_current_min,int* v_current_max,float v_speed,int v_min,int v_max,const char* format,const char* format_max); int cximgui_DragIntRange2_8_sipipniiss(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v_current_min = (int)lua_tointeger(L, __argi__++); int v_current_max = (int)lua_tointeger(L, __argi__++); float v_speed = (float)luaL_optnumber(L, __argi__, 1.0f); if (v_speed != 1.0f) __argi__++; int v_min = (int)luaL_optinteger(L, __argi__, 0); if (v_min != 0) __argi__++; int v_max = (int)luaL_optinteger(L, __argi__, 0); if (v_max != 0) __argi__++; const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; const char* format_max = luaL_optstring(L, __argi__, NULL); if (format_max != NULL) __argi__++; bool __ret__ = ImGui::DragIntRange2(label, &v_current_min, &v_current_max, v_speed, v_min, v_max, format, format_max); lua_pushboolean(L, __ret__); lua_pushinteger(L, v_current_min); lua_pushinteger(L, v_current_max); return 3; }; //bool DragScalar(const char* label,ImGuiDataType data_type,void* v,float v_speed,const void* v_min,const void* v_max,const char* format,float power); //UnSupported DragScalar //bool DragScalarN(const char* label,ImGuiDataType data_type,void* v,int components,float v_speed,const void* v_min,const void* v_max,const char* format,float power); //UnSupported DragScalarN //bool SliderFloat(const char* label,float* v,float v_min,float v_max,const char* format,float power); int cximgui_SliderFloat_6_snpnnsn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v = (float)lua_tonumber(L, __argi__++); float v_min = (float)lua_tonumber(L, __argi__++); float v_max = (float)lua_tonumber(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::SliderFloat(label, &v, v_min, v_max, format, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v); return 2; }; //bool SliderFloat2(const char* label,float v[2],float v_min,float v_max,const char* format,float power); int cximgui_SliderFloat2_6_snnnsn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v[2]; v[0] = (float)lua_tonumber(L, __argi__++); v[1] = (float)lua_tonumber(L, __argi__++); float v_min = (float)lua_tonumber(L, __argi__++); float v_max = (float)lua_tonumber(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::SliderFloat2(label, v, v_min, v_max, format, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v[0]); lua_pushnumber(L, v[1]); return 3; }; //bool SliderFloat3(const char* label,float v[3],float v_min,float v_max,const char* format,float power); int cximgui_SliderFloat3_6_snnnsn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v[3]; v[0] = (float)lua_tonumber(L, __argi__++); v[1] = (float)lua_tonumber(L, __argi__++); v[2] = (float)lua_tonumber(L, __argi__++); float v_min = (float)lua_tonumber(L, __argi__++); float v_max = (float)lua_tonumber(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::SliderFloat3(label, v, v_min, v_max, format, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v[0]); lua_pushnumber(L, v[1]); lua_pushnumber(L, v[2]); return 4; }; //bool SliderFloat4(const char* label,float v[4],float v_min,float v_max,const char* format,float power); int cximgui_SliderFloat4_6_snnnsn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v[4]; v[0] = (float)lua_tonumber(L, __argi__++); v[1] = (float)lua_tonumber(L, __argi__++); v[2] = (float)lua_tonumber(L, __argi__++); v[3] = (float)lua_tonumber(L, __argi__++); float v_min = (float)lua_tonumber(L, __argi__++); float v_max = (float)lua_tonumber(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::SliderFloat4(label, v, v_min, v_max, format, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v[0]); lua_pushnumber(L, v[1]); lua_pushnumber(L, v[2]); lua_pushnumber(L, v[3]); return 5; }; //bool SliderAngle(const char* label,float* v_rad,float v_degrees_min,float v_degrees_max,const char* format); int cximgui_SliderAngle_5_snpnns(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v_rad = (float)lua_tonumber(L, __argi__++); float v_degrees_min = (float)luaL_optnumber(L, __argi__, -360.0f); if (v_degrees_min != -360.0f) __argi__++; float v_degrees_max = (float)luaL_optnumber(L, __argi__, +360.0f); if (v_degrees_max != +360.0f) __argi__++; const char* format = luaL_optstring(L, __argi__, "%.0fdeg"); if (format != "%.0fdeg") __argi__++; bool __ret__ = ImGui::SliderAngle(label, &v_rad, v_degrees_min, v_degrees_max, format); lua_pushboolean(L, __ret__); lua_pushnumber(L, v_rad); return 2; }; //bool SliderInt(const char* label,int* v,int v_min,int v_max,const char* format); int cximgui_SliderInt_5_sipiis(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v = (int)lua_tointeger(L, __argi__++); int v_min = (int)lua_tointeger(L, __argi__++); int v_max = (int)lua_tointeger(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; bool __ret__ = ImGui::SliderInt(label, &v, v_min, v_max, format); lua_pushboolean(L, __ret__); lua_pushinteger(L, v); return 2; }; //bool SliderInt2(const char* label,int v[2],int v_min,int v_max,const char* format); int cximgui_SliderInt2_5_siiis(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v[2]; v[0] = (int)lua_tointeger(L, __argi__++); v[1] = (int)lua_tointeger(L, __argi__++); int v_min = (int)lua_tointeger(L, __argi__++); int v_max = (int)lua_tointeger(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; bool __ret__ = ImGui::SliderInt2(label, v, v_min, v_max, format); lua_pushboolean(L, __ret__); lua_pushinteger(L, v[0]); lua_pushinteger(L, v[1]); return 3; }; //bool SliderInt3(const char* label,int v[3],int v_min,int v_max,const char* format); int cximgui_SliderInt3_5_siiis(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v[3]; v[0] = (int)lua_tointeger(L, __argi__++); v[1] = (int)lua_tointeger(L, __argi__++); v[2] = (int)lua_tointeger(L, __argi__++); int v_min = (int)lua_tointeger(L, __argi__++); int v_max = (int)lua_tointeger(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; bool __ret__ = ImGui::SliderInt3(label, v, v_min, v_max, format); lua_pushboolean(L, __ret__); lua_pushinteger(L, v[0]); lua_pushinteger(L, v[1]); lua_pushinteger(L, v[2]); return 4; }; //bool SliderInt4(const char* label,int v[4],int v_min,int v_max,const char* format); int cximgui_SliderInt4_5_siiis(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v[4]; v[0] = (int)lua_tointeger(L, __argi__++); v[1] = (int)lua_tointeger(L, __argi__++); v[2] = (int)lua_tointeger(L, __argi__++); v[3] = (int)lua_tointeger(L, __argi__++); int v_min = (int)lua_tointeger(L, __argi__++); int v_max = (int)lua_tointeger(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; bool __ret__ = ImGui::SliderInt4(label, v, v_min, v_max, format); lua_pushboolean(L, __ret__); lua_pushinteger(L, v[0]); lua_pushinteger(L, v[1]); lua_pushinteger(L, v[2]); lua_pushinteger(L, v[3]); return 5; }; //bool SliderScalar(const char* label,ImGuiDataType data_type,void* v,const void* v_min,const void* v_max,const char* format,float power); //UnSupported SliderScalar //bool SliderScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* v_min,const void* v_max,const char* format,float power); //UnSupported SliderScalarN //bool VSliderFloat(const char* label,const ImVec2& size,float* v,float v_min,float v_max,const char* format,float power); int cximgui_VSliderFloat_7_sv2npnnsn(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); float v = (float)lua_tonumber(L, __argi__++); float v_min = (float)lua_tonumber(L, __argi__++); float v_max = (float)lua_tonumber(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; float power = (float)luaL_optnumber(L, __argi__, 1.0f); if (power != 1.0f) __argi__++; bool __ret__ = ImGui::VSliderFloat(label, size, &v, v_min, v_max, format, power); lua_pushboolean(L, __ret__); lua_pushnumber(L, v); return 2; }; //bool VSliderInt(const char* label,const ImVec2& size,int* v,int v_min,int v_max,const char* format); int cximgui_VSliderInt_6_sv2ipiis(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); int v = (int)lua_tointeger(L, __argi__++); int v_min = (int)lua_tointeger(L, __argi__++); int v_max = (int)lua_tointeger(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%d"); if (format != "%d") __argi__++; bool __ret__ = ImGui::VSliderInt(label, size, &v, v_min, v_max, format); lua_pushboolean(L, __ret__); lua_pushinteger(L, v); return 2; }; //bool VSliderScalar(const char* label,const ImVec2& size,ImGuiDataType data_type,void* v,const void* v_min,const void* v_max,const char* format,float power); //UnSupported VSliderScalar //bool InputText(const char* label,char* buf,size_t buf_size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); //UnSupported InputText //bool InputTextMultiline(const char* label,char* buf,size_t buf_size,const ImVec2& size,ImGuiInputTextFlags flags,ImGuiInputTextCallback callback,void* user_data); //UnSupported InputTextMultiline //bool InputFloat(const char* label,float* v,float step,float step_fast,const char* format,ImGuiInputTextFlags extra_flags); int cximgui_InputFloat_6_snpnnsi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v = (float)lua_tonumber(L, __argi__++); float step = (float)luaL_optnumber(L, __argi__, 0.0f); if (step != 0.0f) __argi__++; float step_fast = (float)luaL_optnumber(L, __argi__, 0.0f); if (step_fast != 0.0f) __argi__++; const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputFloat(label, &v, step, step_fast, format, extra_flags); lua_pushboolean(L, __ret__); lua_pushnumber(L, v); return 2; }; //bool InputFloat2(const char* label,float v[2],const char* format,ImGuiInputTextFlags extra_flags); int cximgui_InputFloat2_4_snsi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v[2]; v[0] = (float)lua_tonumber(L, __argi__++); v[1] = (float)lua_tonumber(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputFloat2(label, v, format, extra_flags); lua_pushboolean(L, __ret__); lua_pushnumber(L, v[0]); lua_pushnumber(L, v[1]); return 3; }; //bool InputFloat3(const char* label,float v[3],const char* format,ImGuiInputTextFlags extra_flags); int cximgui_InputFloat3_4_snsi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v[3]; v[0] = (float)lua_tonumber(L, __argi__++); v[1] = (float)lua_tonumber(L, __argi__++); v[2] = (float)lua_tonumber(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputFloat3(label, v, format, extra_flags); lua_pushboolean(L, __ret__); lua_pushnumber(L, v[0]); lua_pushnumber(L, v[1]); lua_pushnumber(L, v[2]); return 4; }; //bool InputFloat4(const char* label,float v[4],const char* format,ImGuiInputTextFlags extra_flags); int cximgui_InputFloat4_4_snsi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float v[4]; v[0] = (float)lua_tonumber(L, __argi__++); v[1] = (float)lua_tonumber(L, __argi__++); v[2] = (float)lua_tonumber(L, __argi__++); v[3] = (float)lua_tonumber(L, __argi__++); const char* format = luaL_optstring(L, __argi__, "%.3f"); if (format != "%.3f") __argi__++; ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputFloat4(label, v, format, extra_flags); lua_pushboolean(L, __ret__); lua_pushnumber(L, v[0]); lua_pushnumber(L, v[1]); lua_pushnumber(L, v[2]); lua_pushnumber(L, v[3]); return 5; }; //bool InputInt(const char* label,int* v,int step,int step_fast,ImGuiInputTextFlags extra_flags); int cximgui_InputInt_5_sipiii(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v = (int)lua_tointeger(L, __argi__++); int step = (int)luaL_optinteger(L, __argi__, 1); if (step != 1) __argi__++; int step_fast = (int)luaL_optinteger(L, __argi__, 100); if (step_fast != 100) __argi__++; ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputInt(label, &v, step, step_fast, extra_flags); lua_pushboolean(L, __ret__); lua_pushinteger(L, v); return 2; }; //bool InputInt2(const char* label,int v[2],ImGuiInputTextFlags extra_flags); int cximgui_InputInt2_3_sii(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v[2]; v[0] = (int)lua_tointeger(L, __argi__++); v[1] = (int)lua_tointeger(L, __argi__++); ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputInt2(label, v, extra_flags); lua_pushboolean(L, __ret__); lua_pushinteger(L, v[0]); lua_pushinteger(L, v[1]); return 3; }; //bool InputInt3(const char* label,int v[3],ImGuiInputTextFlags extra_flags); int cximgui_InputInt3_3_sii(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v[3]; v[0] = (int)lua_tointeger(L, __argi__++); v[1] = (int)lua_tointeger(L, __argi__++); v[2] = (int)lua_tointeger(L, __argi__++); ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputInt3(label, v, extra_flags); lua_pushboolean(L, __ret__); lua_pushinteger(L, v[0]); lua_pushinteger(L, v[1]); lua_pushinteger(L, v[2]); return 4; }; //bool InputInt4(const char* label,int v[4],ImGuiInputTextFlags extra_flags); int cximgui_InputInt4_3_sii(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int v[4]; v[0] = (int)lua_tointeger(L, __argi__++); v[1] = (int)lua_tointeger(L, __argi__++); v[2] = (int)lua_tointeger(L, __argi__++); v[3] = (int)lua_tointeger(L, __argi__++); ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputInt4(label, v, extra_flags); lua_pushboolean(L, __ret__); lua_pushinteger(L, v[0]); lua_pushinteger(L, v[1]); lua_pushinteger(L, v[2]); lua_pushinteger(L, v[3]); return 5; }; //bool InputDouble(const char* label,double* v,double step,double step_fast,const char* format,ImGuiInputTextFlags extra_flags); int cximgui_InputDouble_6_snpnnsi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); double v = (double)lua_tonumber(L, __argi__++); double step = (double)luaL_optnumber(L, __argi__, 0.0f); if (step != 0.0f) __argi__++; double step_fast = (double)luaL_optnumber(L, __argi__, 0.0f); if (step_fast != 0.0f) __argi__++; const char* format = luaL_optstring(L, __argi__, "%.6f"); if (format != "%.6f") __argi__++; ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputDouble(label, &v, step, step_fast, format, extra_flags); lua_pushboolean(L, __ret__); return 1; }; //bool InputScalar(const char* label,ImGuiDataType data_type,void* v,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags); //UnSupported InputScalar //bool InputScalarN(const char* label,ImGuiDataType data_type,void* v,int components,const void* step,const void* step_fast,const char* format,ImGuiInputTextFlags extra_flags); //UnSupported InputScalarN //bool ColorEdit3(const char* label,float col[3],ImGuiColorEditFlags flags); int cximgui_ColorEdit3_3_sni(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float col[3]; col[0] = (float)lua_tonumber(L, __argi__++); col[1] = (float)lua_tonumber(L, __argi__++); col[2] = (float)lua_tonumber(L, __argi__++); ImGuiColorEditFlags flags = (ImGuiColorEditFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::ColorEdit3(label, col, flags); lua_pushboolean(L, __ret__); lua_pushnumber(L, col[0]); lua_pushnumber(L, col[1]); lua_pushnumber(L, col[2]); return 4; }; //bool ColorEdit4(const char* label,float col[4],ImGuiColorEditFlags flags); int cximgui_ColorEdit4_3_sni(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float col[4]; col[0] = (float)lua_tonumber(L, __argi__++); col[1] = (float)lua_tonumber(L, __argi__++); col[2] = (float)lua_tonumber(L, __argi__++); col[3] = (float)lua_tonumber(L, __argi__++); ImGuiColorEditFlags flags = (ImGuiColorEditFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::ColorEdit4(label, col, flags); lua_pushboolean(L, __ret__); lua_pushnumber(L, col[0]); lua_pushnumber(L, col[1]); lua_pushnumber(L, col[2]); lua_pushnumber(L, col[3]); return 5; }; //bool ColorPicker3(const char* label,float col[3],ImGuiColorEditFlags flags); int cximgui_ColorPicker3_3_sni(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float col[3]; col[0] = (float)lua_tonumber(L, __argi__++); col[1] = (float)lua_tonumber(L, __argi__++); col[2] = (float)lua_tonumber(L, __argi__++); ImGuiColorEditFlags flags = (ImGuiColorEditFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::ColorPicker3(label, col, flags); lua_pushboolean(L, __ret__); lua_pushnumber(L, col[0]); lua_pushnumber(L, col[1]); lua_pushnumber(L, col[2]); return 4; }; //bool ColorPicker4(const char* label,float col[4],ImGuiColorEditFlags flags,const float* ref_col); int cximgui_ColorPicker4_4_sninp(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float col[4]; col[0] = (float)lua_tonumber(L, __argi__++); col[1] = (float)lua_tonumber(L, __argi__++); col[2] = (float)lua_tonumber(L, __argi__++); col[3] = (float)lua_tonumber(L, __argi__++); ImGuiColorEditFlags flags = (ImGuiColorEditFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; float ref_col = (float)luaL_optnumber(L, __argi__, NULL); if (ref_col != NULL) __argi__++; bool __ret__ = ImGui::ColorPicker4(label, col, flags, &ref_col); lua_pushboolean(L, __ret__); lua_pushnumber(L, col[0]); lua_pushnumber(L, col[1]); lua_pushnumber(L, col[2]); lua_pushnumber(L, col[3]); return 5; }; //bool ColorButton(const char* desc_id,const ImVec4& col,ImGuiColorEditFlags flags,ImVec2 size); int cximgui_ColorButton_4_sv4iv2(lua_State* L) { int __argi__ = 1; const char* desc_id = lua_tostring(L, __argi__++); ImVec4 col; col.x = (float)lua_tonumber(L, __argi__++); col.y = (float)lua_tonumber(L, __argi__++); col.z = (float)lua_tonumber(L, __argi__++); col.w = (float)lua_tonumber(L, __argi__++); ImGuiColorEditFlags flags = (ImGuiColorEditFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; ImVec2 size_def = ImVec2(0, 0); ImVec2 size; size.x = (float)luaL_optnumber(L, __argi__, size_def.x); size.y = (float)luaL_optnumber(L, __argi__ + 1, size_def.y); if (size.x != size_def.x || size.y != size_def.y) __argi__ += 2; bool __ret__ = ImGui::ColorButton(desc_id, col, flags, size); lua_pushboolean(L, __ret__); return 1; }; //void SetColorEditOptions(ImGuiColorEditFlags flags); int cximgui_SetColorEditOptions_1_i(lua_State* L) { int __argi__ = 1; ImGuiColorEditFlags flags = (ImGuiColorEditFlags)lua_tointeger(L, __argi__++); ImGui::SetColorEditOptions(flags); return 0; }; //bool TreeNode(const char* label); int cximgui_TreeNode_1_s(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool __ret__ = ImGui::TreeNode(label); lua_pushboolean(L, __ret__); return 1; }; //bool TreeNode(const char* str_id,const char* fmt,... ); //UnSupported TreeNode //bool TreeNode(const void* ptr_id,const char* fmt,... ); //UnSupported TreeNode //bool TreeNodeV(const char* str_id,const char* fmt,va_list args); //UnSupported TreeNodeV //bool TreeNodeV(const void* ptr_id,const char* fmt,va_list args); //UnSupported TreeNodeV //bool TreeNodeEx(const char* label,ImGuiTreeNodeFlags flags); int cximgui_TreeNodeEx_2_si(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); ImGuiTreeNodeFlags flags = (ImGuiTreeNodeFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::TreeNodeEx(label, flags); lua_pushboolean(L, __ret__); return 1; }; //bool TreeNodeEx(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,... ); //UnSupported TreeNodeEx //bool TreeNodeEx(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,... ); //UnSupported TreeNodeEx //bool TreeNodeExV(const char* str_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); //UnSupported TreeNodeExV //bool TreeNodeExV(const void* ptr_id,ImGuiTreeNodeFlags flags,const char* fmt,va_list args); //UnSupported TreeNodeExV //void TreePush(const char* str_id); int cximgui_TreePush_1_s(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); ImGui::TreePush(str_id); return 0; }; //void TreePush(const void* ptr_id); //UnSupported TreePush //void TreePop(); int cximgui_TreePop(lua_State* L) { ImGui::TreePop(); return 0; }; //void TreeAdvanceToLabelPos(); int cximgui_TreeAdvanceToLabelPos(lua_State* L) { ImGui::TreeAdvanceToLabelPos(); return 0; }; //float GetTreeNodeToLabelSpacing(); int cximgui_GetTreeNodeToLabelSpacing(lua_State* L) { float __ret__ = ImGui::GetTreeNodeToLabelSpacing(); lua_pushnumber(L, __ret__); return 1; }; //void SetNextTreeNodeOpen(bool is_open,ImGuiCond cond); int cximgui_SetNextTreeNodeOpen_2_bi(lua_State* L) { int __argi__ = 1; bool is_open = lua_toboolean(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetNextTreeNodeOpen(is_open, cond); return 0; }; //bool CollapsingHeader(const char* label,ImGuiTreeNodeFlags flags); int cximgui_CollapsingHeader_2_si(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); ImGuiTreeNodeFlags flags = (ImGuiTreeNodeFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::CollapsingHeader(label, flags); lua_pushboolean(L, __ret__); return 1; }; //bool CollapsingHeader(const char* label,bool* p_open,ImGuiTreeNodeFlags flags); int cximgui_CollapsingHeader_3_sbpi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool p_open = lua_toboolean(L, __argi__++); ImGuiTreeNodeFlags flags = (ImGuiTreeNodeFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::CollapsingHeader(label, &p_open, flags); lua_pushboolean(L, __ret__); lua_pushboolean(L, p_open); return 2; }; //bool Selectable(const char* label,bool selected,ImGuiSelectableFlags flags,const ImVec2& size); int cximgui_Selectable_4_sbiv2(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool selected = lua_toboolean(L, __argi__++); ImGuiSelectableFlags flags = (ImGuiSelectableFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; ImVec2 size_def = ImVec2(0, 0); ImVec2 size; size.x = (float)luaL_optnumber(L, __argi__, size_def.x); size.y = (float)luaL_optnumber(L, __argi__ + 1, size_def.y); if (size.x != size_def.x || size.y != size_def.y) __argi__ += 2; bool __ret__ = ImGui::Selectable(label, selected, flags, size); lua_pushboolean(L, __ret__); return 1; }; //bool Selectable(const char* label,bool* p_selected,ImGuiSelectableFlags flags,const ImVec2& size); int cximgui_Selectable_4_sbpiv2(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool p_selected = lua_toboolean(L, __argi__++); ImGuiSelectableFlags flags = (ImGuiSelectableFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; ImVec2 size_def = ImVec2(0, 0); ImVec2 size; size.x = (float)luaL_optnumber(L, __argi__, size_def.x); size.y = (float)luaL_optnumber(L, __argi__ + 1, size_def.y); if (size.x != size_def.x || size.y != size_def.y) __argi__ += 2; bool __ret__ = ImGui::Selectable(label, &p_selected, flags, size); lua_pushboolean(L, __ret__); lua_pushboolean(L, p_selected); return 2; }; //bool ListBox(const char* label,int* current_item,const char* const[],int items_count,int height_in_items); //UnSupported ListBox //bool ListBox(const char* label,int* current_item,bool @1@2,void* data,int items_count,int height_in_items); //UnSupported ListBox //bool ListBoxHeader(const char* label,const ImVec2& size); int cximgui_ListBoxHeader_2_sv2(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); ImVec2 size_def = ImVec2(0, 0); ImVec2 size; size.x = (float)luaL_optnumber(L, __argi__, size_def.x); size.y = (float)luaL_optnumber(L, __argi__ + 1, size_def.y); if (size.x != size_def.x || size.y != size_def.y) __argi__ += 2; bool __ret__ = ImGui::ListBoxHeader(label, size); lua_pushboolean(L, __ret__); return 1; }; //bool ListBoxHeader(const char* label,int items_count,int height_in_items); int cximgui_ListBoxHeader_3_sii(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int items_count = (int)lua_tointeger(L, __argi__++); int height_in_items = (int)luaL_optinteger(L, __argi__, -1); if (height_in_items != -1) __argi__++; bool __ret__ = ImGui::ListBoxHeader(label, items_count, height_in_items); lua_pushboolean(L, __ret__); return 1; }; //void ListBoxFooter(); int cximgui_ListBoxFooter(lua_State* L) { ImGui::ListBoxFooter(); return 0; }; //void PlotLines(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride); int cximgui_PlotLines_9_snpiisnnv2i(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float values = (float)lua_tonumber(L, __argi__++); int values_count = (int)lua_tointeger(L, __argi__++); int values_offset = (int)luaL_optinteger(L, __argi__, 0); if (values_offset != 0) __argi__++; const char* overlay_text = luaL_optstring(L, __argi__, NULL); if (overlay_text != NULL) __argi__++; float scale_min = (float)luaL_optnumber(L, __argi__, FLT_MAX); if (scale_min != FLT_MAX) __argi__++; float scale_max = (float)luaL_optnumber(L, __argi__, FLT_MAX); if (scale_max != FLT_MAX) __argi__++; ImVec2 graph_size_def = ImVec2(0, 0); ImVec2 graph_size; graph_size.x = (float)luaL_optnumber(L, __argi__, graph_size_def.x); graph_size.y = (float)luaL_optnumber(L, __argi__ + 1, graph_size_def.y); if (graph_size.x != graph_size_def.x || graph_size.y != graph_size_def.y) __argi__ += 2; int stride = (int)luaL_optinteger(L, __argi__, sizeof(float)); if (stride != sizeof(float)) __argi__++; ImGui::PlotLines(label, &values, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size, stride); return 0; }; //void PlotLines(const char* label,float @1@2,void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size); //UnSupported PlotLines //void PlotHistogram(const char* label,const float* values,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size,int stride); int cximgui_PlotHistogram_9_snpiisnnv2i(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); float values = (float)lua_tonumber(L, __argi__++); int values_count = (int)lua_tointeger(L, __argi__++); int values_offset = (int)luaL_optinteger(L, __argi__, 0); if (values_offset != 0) __argi__++; const char* overlay_text = luaL_optstring(L, __argi__, NULL); if (overlay_text != NULL) __argi__++; float scale_min = (float)luaL_optnumber(L, __argi__, FLT_MAX); if (scale_min != FLT_MAX) __argi__++; float scale_max = (float)luaL_optnumber(L, __argi__, FLT_MAX); if (scale_max != FLT_MAX) __argi__++; ImVec2 graph_size_def = ImVec2(0, 0); ImVec2 graph_size; graph_size.x = (float)luaL_optnumber(L, __argi__, graph_size_def.x); graph_size.y = (float)luaL_optnumber(L, __argi__ + 1, graph_size_def.y); if (graph_size.x != graph_size_def.x || graph_size.y != graph_size_def.y) __argi__ += 2; int stride = (int)luaL_optinteger(L, __argi__, sizeof(float)); if (stride != sizeof(float)) __argi__++; ImGui::PlotHistogram(label, &values, values_count, values_offset, overlay_text, scale_min, scale_max, graph_size, stride); return 0; }; //void PlotHistogram(const char* label,float @1@2,void* data,int values_count,int values_offset,const char* overlay_text,float scale_min,float scale_max,ImVec2 graph_size); //UnSupported PlotHistogram //void Value(const char* prefix,bool b); int cximgui_Value_2_sb(lua_State* L) { int __argi__ = 1; const char* prefix = lua_tostring(L, __argi__++); bool b = lua_toboolean(L, __argi__++); ImGui::Value(prefix, b); return 0; }; //void Value(const char* prefix,int v); int cximgui_Value_2_si(lua_State* L) { int __argi__ = 1; const char* prefix = lua_tostring(L, __argi__++); int v = (int)lua_tointeger(L, __argi__++); ImGui::Value(prefix, v); return 0; }; //void Value(const char* prefix,unsigned int v); int cximgui_Value_2_sI(lua_State* L) { int __argi__ = 1; const char* prefix = lua_tostring(L, __argi__++); unsigned int v = (unsigned int)lua_tointeger(L, __argi__++); ImGui::Value(prefix, v); return 0; }; //void Value(const char* prefix,float v,const char* float_format); int cximgui_Value_3_sns(lua_State* L) { int __argi__ = 1; const char* prefix = lua_tostring(L, __argi__++); float v = (float)lua_tonumber(L, __argi__++); const char* float_format = luaL_optstring(L, __argi__, NULL); if (float_format != NULL) __argi__++; ImGui::Value(prefix, v, float_format); return 0; }; //bool BeginMainMenuBar(); int cximgui_BeginMainMenuBar(lua_State* L) { bool __ret__ = ImGui::BeginMainMenuBar(); lua_pushboolean(L, __ret__); return 1; }; //void EndMainMenuBar(); int cximgui_EndMainMenuBar(lua_State* L) { ImGui::EndMainMenuBar(); return 0; }; //bool BeginMenuBar(); int cximgui_BeginMenuBar(lua_State* L) { bool __ret__ = ImGui::BeginMenuBar(); lua_pushboolean(L, __ret__); return 1; }; //void EndMenuBar(); int cximgui_EndMenuBar(lua_State* L) { ImGui::EndMenuBar(); return 0; }; //bool BeginMenu(const char* label,bool enabled); int cximgui_BeginMenu_2_sb(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool enabled = lua_toboolean(L, __argi__++); bool __ret__ = ImGui::BeginMenu(label, enabled); lua_pushboolean(L, __ret__); return 1; }; //void EndMenu(); int cximgui_EndMenu(lua_State* L) { ImGui::EndMenu(); return 0; }; //bool MenuItem(const char* label,const char* shortcut,bool selected,bool enabled); int cximgui_MenuItem_4_ssbb(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); const char* shortcut = luaL_optstring(L, __argi__, NULL); if (shortcut != NULL) __argi__++; bool selected = lua_toboolean(L, __argi__++); bool enabled = lua_toboolean(L, __argi__++); bool __ret__ = ImGui::MenuItem(label, shortcut, selected, enabled); lua_pushboolean(L, __ret__); return 1; }; //bool MenuItem(const char* label,const char* shortcut,bool* p_selected,bool enabled); int cximgui_MenuItem_4_ssbpb(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); const char* shortcut = lua_tostring(L, __argi__++); bool p_selected = lua_toboolean(L, __argi__++); bool enabled = lua_toboolean(L, __argi__++); bool __ret__ = ImGui::MenuItem(label, shortcut, &p_selected, enabled); lua_pushboolean(L, __ret__); lua_pushboolean(L, p_selected); return 2; }; //void BeginTooltip(); int cximgui_BeginTooltip(lua_State* L) { ImGui::BeginTooltip(); return 0; }; //void EndTooltip(); int cximgui_EndTooltip(lua_State* L) { ImGui::EndTooltip(); return 0; }; //void SetTooltip(const char* fmt,... ); //UnSupported SetTooltip //void SetTooltipV(const char* fmt,va_list args); //UnSupported SetTooltipV //void OpenPopup(const char* str_id); int cximgui_OpenPopup_1_s(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); ImGui::OpenPopup(str_id); return 0; }; //bool BeginPopup(const char* str_id,ImGuiWindowFlags flags); int cximgui_BeginPopup_2_si(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); ImGuiWindowFlags flags = (ImGuiWindowFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::BeginPopup(str_id, flags); lua_pushboolean(L, __ret__); return 1; }; //bool BeginPopupContextItem(const char* str_id,int mouse_button); int cximgui_BeginPopupContextItem_2_si(lua_State* L) { int __argi__ = 1; const char* str_id = luaL_optstring(L, __argi__, NULL); if (str_id != NULL) __argi__++; int mouse_button = (int)luaL_optinteger(L, __argi__, 1); if (mouse_button != 1) __argi__++; bool __ret__ = ImGui::BeginPopupContextItem(str_id, mouse_button); lua_pushboolean(L, __ret__); return 1; }; //bool BeginPopupContextWindow(const char* str_id,int mouse_button,bool also_over_items); int cximgui_BeginPopupContextWindow_3_sib(lua_State* L) { int __argi__ = 1; const char* str_id = luaL_optstring(L, __argi__, NULL); if (str_id != NULL) __argi__++; int mouse_button = (int)luaL_optinteger(L, __argi__, 1); if (mouse_button != 1) __argi__++; bool also_over_items = lua_toboolean(L, __argi__++); bool __ret__ = ImGui::BeginPopupContextWindow(str_id, mouse_button, also_over_items); lua_pushboolean(L, __ret__); return 1; }; //bool BeginPopupContextVoid(const char* str_id,int mouse_button); int cximgui_BeginPopupContextVoid_2_si(lua_State* L) { int __argi__ = 1; const char* str_id = luaL_optstring(L, __argi__, NULL); if (str_id != NULL) __argi__++; int mouse_button = (int)luaL_optinteger(L, __argi__, 1); if (mouse_button != 1) __argi__++; bool __ret__ = ImGui::BeginPopupContextVoid(str_id, mouse_button); lua_pushboolean(L, __ret__); return 1; }; //bool BeginPopupModal(const char* name,bool* p_open,ImGuiWindowFlags flags); int cximgui_BeginPopupModal_3_sbpi(lua_State* L) { int __argi__ = 1; const char* name = lua_tostring(L, __argi__++); bool p_open = lua_toboolean(L, __argi__++); ImGuiWindowFlags flags = (ImGuiWindowFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::BeginPopupModal(name, &p_open, flags); lua_pushboolean(L, __ret__); lua_pushboolean(L, p_open); return 2; }; //void EndPopup(); int cximgui_EndPopup(lua_State* L) { ImGui::EndPopup(); return 0; }; //bool OpenPopupOnItemClick(const char* str_id,int mouse_button); int cximgui_OpenPopupOnItemClick_2_si(lua_State* L) { int __argi__ = 1; const char* str_id = luaL_optstring(L, __argi__, NULL); if (str_id != NULL) __argi__++; int mouse_button = (int)luaL_optinteger(L, __argi__, 1); if (mouse_button != 1) __argi__++; bool __ret__ = ImGui::OpenPopupOnItemClick(str_id, mouse_button); lua_pushboolean(L, __ret__); return 1; }; //bool IsPopupOpen(const char* str_id); int cximgui_IsPopupOpen_1_s(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); bool __ret__ = ImGui::IsPopupOpen(str_id); lua_pushboolean(L, __ret__); return 1; }; //void CloseCurrentPopup(); int cximgui_CloseCurrentPopup(lua_State* L) { ImGui::CloseCurrentPopup(); return 0; }; //void Columns(int count,const char* id,bool border); int cximgui_Columns_3_isb(lua_State* L) { int __argi__ = 1; int count = (int)luaL_optinteger(L, __argi__, 1); if (count != 1) __argi__++; const char* id = luaL_optstring(L, __argi__, NULL); if (id != NULL) __argi__++; bool border = lua_toboolean(L, __argi__++); ImGui::Columns(count, id, border); return 0; }; //void NextColumn(); int cximgui_NextColumn(lua_State* L) { ImGui::NextColumn(); return 0; }; //int GetColumnIndex(); int cximgui_GetColumnIndex(lua_State* L) { int __ret__ = ImGui::GetColumnIndex(); lua_pushinteger(L, __ret__); return 1; }; //float GetColumnWidth(int column_index); int cximgui_GetColumnWidth_1_i(lua_State* L) { int __argi__ = 1; int column_index = (int)luaL_optinteger(L, __argi__, -1); if (column_index != -1) __argi__++; float __ret__ = ImGui::GetColumnWidth(column_index); lua_pushnumber(L, __ret__); return 1; }; //void SetColumnWidth(int column_index,float width); int cximgui_SetColumnWidth_2_in(lua_State* L) { int __argi__ = 1; int column_index = (int)lua_tointeger(L, __argi__++); float width = (float)lua_tonumber(L, __argi__++); ImGui::SetColumnWidth(column_index, width); return 0; }; //float GetColumnOffset(int column_index); int cximgui_GetColumnOffset_1_i(lua_State* L) { int __argi__ = 1; int column_index = (int)luaL_optinteger(L, __argi__, -1); if (column_index != -1) __argi__++; float __ret__ = ImGui::GetColumnOffset(column_index); lua_pushnumber(L, __ret__); return 1; }; //void SetColumnOffset(int column_index,float offset_x); int cximgui_SetColumnOffset_2_in(lua_State* L) { int __argi__ = 1; int column_index = (int)lua_tointeger(L, __argi__++); float offset_x = (float)lua_tonumber(L, __argi__++); ImGui::SetColumnOffset(column_index, offset_x); return 0; }; //int GetColumnsCount(); int cximgui_GetColumnsCount(lua_State* L) { int __ret__ = ImGui::GetColumnsCount(); lua_pushinteger(L, __ret__); return 1; }; //bool BeginTabBar(const char* str_id,ImGuiTabBarFlags flags); int cximgui_BeginTabBar_2_si(lua_State* L) { int __argi__ = 1; const char* str_id = lua_tostring(L, __argi__++); ImGuiTabBarFlags flags = (ImGuiTabBarFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::BeginTabBar(str_id, flags); lua_pushboolean(L, __ret__); return 1; }; //void EndTabBar(); int cximgui_EndTabBar(lua_State* L) { ImGui::EndTabBar(); return 0; }; //bool BeginTabItem(const char* label,bool* p_open,ImGuiTabItemFlags flags); int cximgui_BeginTabItem_3_sbpi(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); bool p_open = lua_toboolean(L, __argi__++); ImGuiTabItemFlags flags = (ImGuiTabItemFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::BeginTabItem(label, &p_open, flags); lua_pushboolean(L, __ret__); lua_pushboolean(L, p_open); return 2; }; //void EndTabItem(); int cximgui_EndTabItem(lua_State* L) { ImGui::EndTabItem(); return 0; }; //void SetTabItemClosed(const char* tab_or_docked_window_label); int cximgui_SetTabItemClosed_1_s(lua_State* L) { int __argi__ = 1; const char* tab_or_docked_window_label = lua_tostring(L, __argi__++); ImGui::SetTabItemClosed(tab_or_docked_window_label); return 0; }; //void DockSpace(ImGuiID id,const ImVec2& size,ImGuiDockNodeFlags flags,const ImGuiDockFamily* dock_family); //UnSupported DockSpace //ImGuiID DockSpaceOverViewport(ImGuiViewport* viewport,ImGuiDockNodeFlags dockspace_flags,const ImGuiDockFamily* dock_family); //UnSupported DockSpaceOverViewport //void SetNextWindowDockId(ImGuiID dock_id,ImGuiCond cond); int cximgui_SetNextWindowDockId_2_ii(lua_State* L) { int __argi__ = 1; ImGuiID dock_id = (ImGuiID)lua_tointeger(L, __argi__++); ImGuiCond cond = (ImGuiCond)luaL_optinteger(L, __argi__, 0); if (cond != 0) __argi__++; ImGui::SetNextWindowDockId(dock_id, cond); return 0; }; //void SetNextWindowDockFamily(const ImGuiDockFamily* dock_family); //UnSupported SetNextWindowDockFamily //ImGuiID GetWindowDockId(); int cximgui_GetWindowDockId(lua_State* L) { ImGuiID __ret__ = ImGui::GetWindowDockId(); lua_pushinteger(L, __ret__); return 1; }; //bool IsWindowDocked(); int cximgui_IsWindowDocked(lua_State* L) { bool __ret__ = ImGui::IsWindowDocked(); lua_pushboolean(L, __ret__); return 1; }; //void LogToTTY(int max_depth); int cximgui_LogToTTY_1_i(lua_State* L) { int __argi__ = 1; int max_depth = (int)luaL_optinteger(L, __argi__, -1); if (max_depth != -1) __argi__++; ImGui::LogToTTY(max_depth); return 0; }; //void LogToFile(int max_depth,const char* filename); int cximgui_LogToFile_2_is(lua_State* L) { int __argi__ = 1; int max_depth = (int)luaL_optinteger(L, __argi__, -1); if (max_depth != -1) __argi__++; const char* filename = luaL_optstring(L, __argi__, NULL); if (filename != NULL) __argi__++; ImGui::LogToFile(max_depth, filename); return 0; }; //void LogToClipboard(int max_depth); int cximgui_LogToClipboard_1_i(lua_State* L) { int __argi__ = 1; int max_depth = (int)luaL_optinteger(L, __argi__, -1); if (max_depth != -1) __argi__++; ImGui::LogToClipboard(max_depth); return 0; }; //void LogFinish(); int cximgui_LogFinish(lua_State* L) { ImGui::LogFinish(); return 0; }; //void LogButtons(); int cximgui_LogButtons(lua_State* L) { ImGui::LogButtons(); return 0; }; //void LogText(const char* fmt,... ); //UnSupported LogText //bool BeginDragDropSource(ImGuiDragDropFlags flags); int cximgui_BeginDragDropSource_1_i(lua_State* L) { int __argi__ = 1; ImGuiDragDropFlags flags = (ImGuiDragDropFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::BeginDragDropSource(flags); lua_pushboolean(L, __ret__); return 1; }; //bool SetDragDropPayload(const char* type,const void* data,size_t size,ImGuiCond cond); //UnSupported SetDragDropPayload //void EndDragDropSource(); int cximgui_EndDragDropSource(lua_State* L) { ImGui::EndDragDropSource(); return 0; }; //bool BeginDragDropTarget(); int cximgui_BeginDragDropTarget(lua_State* L) { bool __ret__ = ImGui::BeginDragDropTarget(); lua_pushboolean(L, __ret__); return 1; }; //const ImGuiPayload* AcceptDragDropPayload(const char* type,ImGuiDragDropFlags flags); int cximgui_AcceptDragDropPayload_2_si(lua_State* L) { int __argi__ = 1; const char* type = lua_tostring(L, __argi__++); ImGuiDragDropFlags flags = (ImGuiDragDropFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; const ImGuiPayload* __ret__ = ImGui::AcceptDragDropPayload(type, flags); return 0; }; //void EndDragDropTarget(); int cximgui_EndDragDropTarget(lua_State* L) { ImGui::EndDragDropTarget(); return 0; }; //const ImGuiPayload* GetDragDropPayload(); int cximgui_GetDragDropPayload(lua_State* L) { const ImGuiPayload* __ret__ = ImGui::GetDragDropPayload(); return 0; }; //void PushClipRect(const ImVec2& clip_rect_min,const ImVec2& clip_rect_max,bool intersect_with_current_clip_rect); int cximgui_PushClipRect_3_v2v2b(lua_State* L) { int __argi__ = 1; ImVec2 clip_rect_min; clip_rect_min.x = (float)lua_tonumber(L, __argi__++); clip_rect_min.y = (float)lua_tonumber(L, __argi__++); ImVec2 clip_rect_max; clip_rect_max.x = (float)lua_tonumber(L, __argi__++); clip_rect_max.y = (float)lua_tonumber(L, __argi__++); bool intersect_with_current_clip_rect = lua_toboolean(L, __argi__++); ImGui::PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect); return 0; }; //void PopClipRect(); int cximgui_PopClipRect(lua_State* L) { ImGui::PopClipRect(); return 0; }; //void SetItemDefaultFocus(); int cximgui_SetItemDefaultFocus(lua_State* L) { ImGui::SetItemDefaultFocus(); return 0; }; //void SetKeyboardFocusHere(int offset); int cximgui_SetKeyboardFocusHere_1_i(lua_State* L) { int __argi__ = 1; int offset = (int)luaL_optinteger(L, __argi__, 0); if (offset != 0) __argi__++; ImGui::SetKeyboardFocusHere(offset); return 0; }; //bool IsItemHovered(ImGuiHoveredFlags flags); int cximgui_IsItemHovered_1_i(lua_State* L) { int __argi__ = 1; ImGuiHoveredFlags flags = (ImGuiHoveredFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::IsItemHovered(flags); lua_pushboolean(L, __ret__); return 1; }; //bool IsItemActive(); int cximgui_IsItemActive(lua_State* L) { bool __ret__ = ImGui::IsItemActive(); lua_pushboolean(L, __ret__); return 1; }; //bool IsItemFocused(); int cximgui_IsItemFocused(lua_State* L) { bool __ret__ = ImGui::IsItemFocused(); lua_pushboolean(L, __ret__); return 1; }; //bool IsItemClicked(int mouse_button); int cximgui_IsItemClicked_1_i(lua_State* L) { int __argi__ = 1; int mouse_button = (int)luaL_optinteger(L, __argi__, 0); if (mouse_button != 0) __argi__++; bool __ret__ = ImGui::IsItemClicked(mouse_button); lua_pushboolean(L, __ret__); return 1; }; //bool IsItemVisible(); int cximgui_IsItemVisible(lua_State* L) { bool __ret__ = ImGui::IsItemVisible(); lua_pushboolean(L, __ret__); return 1; }; //bool IsItemEdited(); int cximgui_IsItemEdited(lua_State* L) { bool __ret__ = ImGui::IsItemEdited(); lua_pushboolean(L, __ret__); return 1; }; //bool IsItemDeactivated(); int cximgui_IsItemDeactivated(lua_State* L) { bool __ret__ = ImGui::IsItemDeactivated(); lua_pushboolean(L, __ret__); return 1; }; //bool IsItemDeactivatedAfterEdit(); int cximgui_IsItemDeactivatedAfterEdit(lua_State* L) { bool __ret__ = ImGui::IsItemDeactivatedAfterEdit(); lua_pushboolean(L, __ret__); return 1; }; //bool IsAnyItemHovered(); int cximgui_IsAnyItemHovered(lua_State* L) { bool __ret__ = ImGui::IsAnyItemHovered(); lua_pushboolean(L, __ret__); return 1; }; //bool IsAnyItemActive(); int cximgui_IsAnyItemActive(lua_State* L) { bool __ret__ = ImGui::IsAnyItemActive(); lua_pushboolean(L, __ret__); return 1; }; //bool IsAnyItemFocused(); int cximgui_IsAnyItemFocused(lua_State* L) { bool __ret__ = ImGui::IsAnyItemFocused(); lua_pushboolean(L, __ret__); return 1; }; //ImVec2 GetItemRectMin(); int cximgui_GetItemRectMin(lua_State* L) { ImVec2 __ret__ = ImGui::GetItemRectMin(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //ImVec2 GetItemRectMax(); int cximgui_GetItemRectMax(lua_State* L) { ImVec2 __ret__ = ImGui::GetItemRectMax(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //ImVec2 GetItemRectSize(); int cximgui_GetItemRectSize(lua_State* L) { ImVec2 __ret__ = ImGui::GetItemRectSize(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //void SetItemAllowOverlap(); int cximgui_SetItemAllowOverlap(lua_State* L) { ImGui::SetItemAllowOverlap(); return 0; }; //bool IsRectVisible(const ImVec2& size); int cximgui_IsRectVisible_1_v2(lua_State* L) { int __argi__ = 1; ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); bool __ret__ = ImGui::IsRectVisible(size); lua_pushboolean(L, __ret__); return 1; }; //bool IsRectVisible(const ImVec2& rect_min,const ImVec2& rect_max); int cximgui_IsRectVisible_2_v2v2(lua_State* L) { int __argi__ = 1; ImVec2 rect_min; rect_min.x = (float)lua_tonumber(L, __argi__++); rect_min.y = (float)lua_tonumber(L, __argi__++); ImVec2 rect_max; rect_max.x = (float)lua_tonumber(L, __argi__++); rect_max.y = (float)lua_tonumber(L, __argi__++); bool __ret__ = ImGui::IsRectVisible(rect_min, rect_max); lua_pushboolean(L, __ret__); return 1; }; //double GetTime(); int cximgui_GetTime(lua_State* L) { double __ret__ = ImGui::GetTime(); lua_pushnumber(L, __ret__); return 1; }; //int GetFrameCount(); int cximgui_GetFrameCount(lua_State* L) { int __ret__ = ImGui::GetFrameCount(); lua_pushinteger(L, __ret__); return 1; }; //ImDrawList* GetOverlayDrawList(); int cximgui_GetOverlayDrawList(lua_State* L) { ImDrawList* __ret__ = ImGui::GetOverlayDrawList(); return 0; }; //ImDrawList* GetOverlayDrawList(ImGuiViewport* viewport); //UnSupported GetOverlayDrawList //ImDrawListSharedData* GetDrawListSharedData(); int cximgui_GetDrawListSharedData(lua_State* L) { ImDrawListSharedData* __ret__ = ImGui::GetDrawListSharedData(); return 0; }; //const char* GetStyleColorName(ImGuiCol idx); int cximgui_GetStyleColorName_1_i(lua_State* L) { int __argi__ = 1; ImGuiCol idx = (ImGuiCol)lua_tointeger(L, __argi__++); const char* __ret__ = ImGui::GetStyleColorName(idx); lua_pushstring(L, __ret__); return 1; }; //void SetStateStorage(ImGuiStorage* storage); //UnSupported SetStateStorage //ImGuiStorage* GetStateStorage(); int cximgui_GetStateStorage(lua_State* L) { ImGuiStorage* __ret__ = ImGui::GetStateStorage(); return 0; }; //ImVec2 CalcTextSize(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width); int cximgui_CalcTextSize_4_ssbn(lua_State* L) { int __argi__ = 1; const char* text = lua_tostring(L, __argi__++); const char* text_end = luaL_optstring(L, __argi__, NULL); if (text_end != NULL) __argi__++; bool hide_text_after_double_hash = lua_toboolean(L, __argi__++); float wrap_width = (float)luaL_optnumber(L, __argi__, -1.0f); if (wrap_width != -1.0f) __argi__++; ImVec2 __ret__ = ImGui::CalcTextSize(text, text_end, hide_text_after_double_hash, wrap_width); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //void CalcListClipping(int items_count,float items_height,int* out_items_display_start,int* out_items_display_end); int cximgui_CalcListClipping_4_inipip(lua_State* L) { int __argi__ = 1; int items_count = (int)lua_tointeger(L, __argi__++); float items_height = (float)lua_tonumber(L, __argi__++); int out_items_display_start = (int)lua_tointeger(L, __argi__++); int out_items_display_end = (int)lua_tointeger(L, __argi__++); ImGui::CalcListClipping(items_count, items_height, &out_items_display_start, &out_items_display_end); lua_pushinteger(L, out_items_display_start); lua_pushinteger(L, out_items_display_end); return 2; }; //bool BeginChildFrame(ImGuiID id,const ImVec2& size,ImGuiWindowFlags flags); int cximgui_BeginChildFrame_3_iv2i(lua_State* L) { int __argi__ = 1; ImGuiID id = (ImGuiID)lua_tointeger(L, __argi__++); ImVec2 size; size.x = (float)lua_tonumber(L, __argi__++); size.y = (float)lua_tonumber(L, __argi__++); ImGuiWindowFlags flags = (ImGuiWindowFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; bool __ret__ = ImGui::BeginChildFrame(id, size, flags); lua_pushboolean(L, __ret__); return 1; }; //void EndChildFrame(); int cximgui_EndChildFrame(lua_State* L) { ImGui::EndChildFrame(); return 0; }; //ImVec4 ColorConvertU32ToFloat4(ImU32 in); int cximgui_ColorConvertU32ToFloat4_1_i(lua_State* L) { int __argi__ = 1; ImU32 in = (ImU32)lua_tointeger(L, __argi__++); ImVec4 __ret__ = ImGui::ColorConvertU32ToFloat4(in); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); lua_pushnumber(L, __ret__.z); lua_pushnumber(L, __ret__.w); return 4; }; //ImU32 ColorConvertFloat4ToU32(const ImVec4& in); int cximgui_ColorConvertFloat4ToU32_1_v4(lua_State* L) { int __argi__ = 1; ImVec4 in; in.x = (float)lua_tonumber(L, __argi__++); in.y = (float)lua_tonumber(L, __argi__++); in.z = (float)lua_tonumber(L, __argi__++); in.w = (float)lua_tonumber(L, __argi__++); ImU32 __ret__ = ImGui::ColorConvertFloat4ToU32(in); lua_pushinteger(L, __ret__); return 1; }; //void ColorConvertRGBtoHSV(float r,float g,float b,float& out_h,float& out_s,float& out_v); int cximgui_ColorConvertRGBtoHSV_6_nnnnnn(lua_State* L) { int __argi__ = 1; float r = (float)lua_tonumber(L, __argi__++); float g = (float)lua_tonumber(L, __argi__++); float b = (float)lua_tonumber(L, __argi__++); float out_h = (float)lua_tonumber(L, __argi__++); float out_s = (float)lua_tonumber(L, __argi__++); float out_v = (float)lua_tonumber(L, __argi__++); ImGui::ColorConvertRGBtoHSV(r, g, b, out_h, out_s, out_v); lua_pushnumber(L, out_h); lua_pushnumber(L, out_s); lua_pushnumber(L, out_v); return 3; }; //void ColorConvertHSVtoRGB(float h,float s,float v,float& out_r,float& out_g,float& out_b); int cximgui_ColorConvertHSVtoRGB_6_nnnnnn(lua_State* L) { int __argi__ = 1; float h = (float)lua_tonumber(L, __argi__++); float s = (float)lua_tonumber(L, __argi__++); float v = (float)lua_tonumber(L, __argi__++); float out_r = (float)lua_tonumber(L, __argi__++); float out_g = (float)lua_tonumber(L, __argi__++); float out_b = (float)lua_tonumber(L, __argi__++); ImGui::ColorConvertHSVtoRGB(h, s, v, out_r, out_g, out_b); lua_pushnumber(L, out_r); lua_pushnumber(L, out_g); lua_pushnumber(L, out_b); return 3; }; //int GetKeyIndex(ImGuiKey imgui_key); int cximgui_GetKeyIndex_1_i(lua_State* L) { int __argi__ = 1; ImGuiKey imgui_key = (ImGuiKey)lua_tointeger(L, __argi__++); int __ret__ = ImGui::GetKeyIndex(imgui_key); lua_pushinteger(L, __ret__); return 1; }; //bool IsKeyDown(int user_key_index); int cximgui_IsKeyDown_1_i(lua_State* L) { int __argi__ = 1; int user_key_index = (int)lua_tointeger(L, __argi__++); bool __ret__ = ImGui::IsKeyDown(user_key_index); lua_pushboolean(L, __ret__); return 1; }; //bool IsKeyPressed(int user_key_index,bool repeat); int cximgui_IsKeyPressed_2_ib(lua_State* L) { int __argi__ = 1; int user_key_index = (int)lua_tointeger(L, __argi__++); bool repeat = lua_toboolean(L, __argi__++); bool __ret__ = ImGui::IsKeyPressed(user_key_index, repeat); lua_pushboolean(L, __ret__); return 1; }; //bool IsKeyReleased(int user_key_index); int cximgui_IsKeyReleased_1_i(lua_State* L) { int __argi__ = 1; int user_key_index = (int)lua_tointeger(L, __argi__++); bool __ret__ = ImGui::IsKeyReleased(user_key_index); lua_pushboolean(L, __ret__); return 1; }; //int GetKeyPressedAmount(int key_index,float repeat_delay,float rate); int cximgui_GetKeyPressedAmount_3_inn(lua_State* L) { int __argi__ = 1; int key_index = (int)lua_tointeger(L, __argi__++); float repeat_delay = (float)lua_tonumber(L, __argi__++); float rate = (float)lua_tonumber(L, __argi__++); int __ret__ = ImGui::GetKeyPressedAmount(key_index, repeat_delay, rate); lua_pushinteger(L, __ret__); return 1; }; //bool IsMouseDown(int button); int cximgui_IsMouseDown_1_i(lua_State* L) { int __argi__ = 1; int button = (int)lua_tointeger(L, __argi__++); bool __ret__ = ImGui::IsMouseDown(button); lua_pushboolean(L, __ret__); return 1; }; //bool IsAnyMouseDown(); int cximgui_IsAnyMouseDown(lua_State* L) { bool __ret__ = ImGui::IsAnyMouseDown(); lua_pushboolean(L, __ret__); return 1; }; //bool IsMouseClicked(int button,bool repeat); int cximgui_IsMouseClicked_2_ib(lua_State* L) { int __argi__ = 1; int button = (int)lua_tointeger(L, __argi__++); bool repeat = lua_toboolean(L, __argi__++); bool __ret__ = ImGui::IsMouseClicked(button, repeat); lua_pushboolean(L, __ret__); return 1; }; //bool IsMouseDoubleClicked(int button); int cximgui_IsMouseDoubleClicked_1_i(lua_State* L) { int __argi__ = 1; int button = (int)lua_tointeger(L, __argi__++); bool __ret__ = ImGui::IsMouseDoubleClicked(button); lua_pushboolean(L, __ret__); return 1; }; //bool IsMouseReleased(int button); int cximgui_IsMouseReleased_1_i(lua_State* L) { int __argi__ = 1; int button = (int)lua_tointeger(L, __argi__++); bool __ret__ = ImGui::IsMouseReleased(button); lua_pushboolean(L, __ret__); return 1; }; //bool IsMouseDragging(int button,float lock_threshold); int cximgui_IsMouseDragging_2_in(lua_State* L) { int __argi__ = 1; int button = (int)luaL_optinteger(L, __argi__, 0); if (button != 0) __argi__++; float lock_threshold = (float)luaL_optnumber(L, __argi__, -1.0f); if (lock_threshold != -1.0f) __argi__++; bool __ret__ = ImGui::IsMouseDragging(button, lock_threshold); lua_pushboolean(L, __ret__); return 1; }; //bool IsMouseHoveringRect(const ImVec2& r_min,const ImVec2& r_max,bool clip); int cximgui_IsMouseHoveringRect_3_v2v2b(lua_State* L) { int __argi__ = 1; ImVec2 r_min; r_min.x = (float)lua_tonumber(L, __argi__++); r_min.y = (float)lua_tonumber(L, __argi__++); ImVec2 r_max; r_max.x = (float)lua_tonumber(L, __argi__++); r_max.y = (float)lua_tonumber(L, __argi__++); bool clip = lua_toboolean(L, __argi__++); bool __ret__ = ImGui::IsMouseHoveringRect(r_min, r_max, clip); lua_pushboolean(L, __ret__); return 1; }; //bool IsMousePosValid(const ImVec2* mouse_pos); int cximgui_IsMousePosValid_1_v2p(lua_State* L) { int __argi__ = 1; ImVec2 mouse_pos; mouse_pos.x = (float)lua_tonumber(L, __argi__++); mouse_pos.y = (float)lua_tonumber(L, __argi__++); bool __ret__ = ImGui::IsMousePosValid(&mouse_pos); lua_pushboolean(L, __ret__); return 1; }; //ImVec2 GetMousePos(); int cximgui_GetMousePos(lua_State* L) { ImVec2 __ret__ = ImGui::GetMousePos(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //ImVec2 GetMousePosOnOpeningCurrentPopup(); int cximgui_GetMousePosOnOpeningCurrentPopup(lua_State* L) { ImVec2 __ret__ = ImGui::GetMousePosOnOpeningCurrentPopup(); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //ImVec2 GetMouseDragDelta(int button,float lock_threshold); int cximgui_GetMouseDragDelta_2_in(lua_State* L) { int __argi__ = 1; int button = (int)luaL_optinteger(L, __argi__, 0); if (button != 0) __argi__++; float lock_threshold = (float)luaL_optnumber(L, __argi__, -1.0f); if (lock_threshold != -1.0f) __argi__++; ImVec2 __ret__ = ImGui::GetMouseDragDelta(button, lock_threshold); lua_pushnumber(L, __ret__.x); lua_pushnumber(L, __ret__.y); return 2; }; //void ResetMouseDragDelta(int button); int cximgui_ResetMouseDragDelta_1_i(lua_State* L) { int __argi__ = 1; int button = (int)luaL_optinteger(L, __argi__, 0); if (button != 0) __argi__++; ImGui::ResetMouseDragDelta(button); return 0; }; //ImGuiMouseCursor GetMouseCursor(); int cximgui_GetMouseCursor(lua_State* L) { ImGuiMouseCursor __ret__ = ImGui::GetMouseCursor(); lua_pushinteger(L, __ret__); return 1; }; //void SetMouseCursor(ImGuiMouseCursor type); int cximgui_SetMouseCursor_1_i(lua_State* L) { int __argi__ = 1; ImGuiMouseCursor type = (ImGuiMouseCursor)lua_tointeger(L, __argi__++); ImGui::SetMouseCursor(type); return 0; }; //void CaptureKeyboardFromApp(bool capture); int cximgui_CaptureKeyboardFromApp_1_b(lua_State* L) { int __argi__ = 1; bool capture = lua_toboolean(L, __argi__++); ImGui::CaptureKeyboardFromApp(capture); return 0; }; //void CaptureMouseFromApp(bool capture); int cximgui_CaptureMouseFromApp_1_b(lua_State* L) { int __argi__ = 1; bool capture = lua_toboolean(L, __argi__++); ImGui::CaptureMouseFromApp(capture); return 0; }; //const char* GetClipboardText(); int cximgui_GetClipboardText(lua_State* L) { const char* __ret__ = ImGui::GetClipboardText(); lua_pushstring(L, __ret__); return 1; }; //void SetClipboardText(const char* text); int cximgui_SetClipboardText_1_s(lua_State* L) { int __argi__ = 1; const char* text = lua_tostring(L, __argi__++); ImGui::SetClipboardText(text); return 0; }; //void LoadIniSettingsFromDisk(const char* ini_filename); int cximgui_LoadIniSettingsFromDisk_1_s(lua_State* L) { int __argi__ = 1; const char* ini_filename = lua_tostring(L, __argi__++); ImGui::LoadIniSettingsFromDisk(ini_filename); return 0; }; //void LoadIniSettingsFromMemory(const char* ini_data,size_t ini_size); int cximgui_LoadIniSettingsFromMemory_2_si(lua_State* L) { int __argi__ = 1; const char* ini_data = lua_tostring(L, __argi__++); size_t ini_size = (size_t)luaL_optinteger(L, __argi__, 0); if (ini_size != 0) __argi__++; ImGui::LoadIniSettingsFromMemory(ini_data, ini_size); return 0; }; //void SaveIniSettingsToDisk(const char* ini_filename); int cximgui_SaveIniSettingsToDisk_1_s(lua_State* L) { int __argi__ = 1; const char* ini_filename = lua_tostring(L, __argi__++); ImGui::SaveIniSettingsToDisk(ini_filename); return 0; }; //const char* SaveIniSettingsToMemory(size_t* out_ini_size); int cximgui_SaveIniSettingsToMemory_1_ip(lua_State* L) { int __argi__ = 1; size_t out_ini_size = (size_t)luaL_optinteger(L, __argi__, NULL); if (out_ini_size != NULL) __argi__++; const char* __ret__ = ImGui::SaveIniSettingsToMemory(&out_ini_size); lua_pushstring(L, __ret__); return 1; }; //void SetAllocatorFunctions(void* @1@2,void @3@4,void* user_data); //UnSupported SetAllocatorFunctions //void* MemAlloc(size_t size); int cximgui_MemAlloc_1_i(lua_State* L) { int __argi__ = 1; size_t size = (size_t)lua_tointeger(L, __argi__++); ImGui::MemAlloc(size); return 0; }; //void MemFree(void* ptr); //UnSupported MemFree //ImGuiPlatformIO& GetPlatformIO(); int cximgui_GetPlatformIO(lua_State* L) { ImGuiPlatformIO& __ret__ = ImGui::GetPlatformIO(); return 0; }; //ImGuiViewport* GetMainViewport(); //UnSupported GetMainViewport //void UpdatePlatformWindows(); int cximgui_UpdatePlatformWindows(lua_State* L) { ImGui::UpdatePlatformWindows(); return 0; }; //void RenderPlatformWindowsDefault(void* platform_arg,void* renderer_arg); //UnSupported RenderPlatformWindowsDefault //void DestroyPlatformWindows(); int cximgui_DestroyPlatformWindows(lua_State* L) { ImGui::DestroyPlatformWindows(); return 0; }; //ImGuiViewport* FindViewportByPlatformHandle(void* platform_handle); //UnSupported FindViewportByPlatformHandle //void PushClipRect(ImVec2 clip_rect_min,ImVec2 clip_rect_max,bool intersect_with_current_clip_rect); int cximgui_ImDrawList_PushClipRect_3_v2v2b(lua_State* L) { int __argi__ = 1; ImVec2 clip_rect_min; clip_rect_min.x = (float)lua_tonumber(L, __argi__++); clip_rect_min.y = (float)lua_tonumber(L, __argi__++); ImVec2 clip_rect_max; clip_rect_max.x = (float)lua_tonumber(L, __argi__++); clip_rect_max.y = (float)lua_tonumber(L, __argi__++); bool intersect_with_current_clip_rect = lua_toboolean(L, __argi__++); ImGui::GetOverlayDrawList()->PushClipRect(clip_rect_min, clip_rect_max, intersect_with_current_clip_rect); return 0; }; //void PushClipRectFullScreen(); int cximgui_ImDrawList_PushClipRectFullScreen(lua_State* L) { ImGui::GetOverlayDrawList()->PushClipRectFullScreen(); return 0; }; //void PopClipRect(); int cximgui_ImDrawList_PopClipRect(lua_State* L) { ImGui::GetOverlayDrawList()->PopClipRect(); return 0; }; //void PushTextureID(ImTextureID texture_id); //UnSupported PushTextureID //void PopTextureID(); int cximgui_ImDrawList_PopTextureID(lua_State* L) { ImGui::GetOverlayDrawList()->PopTextureID(); return 0; }; //void AddLine(const ImVec2& a,const ImVec2& b,ImU32 col,float thickness); int cximgui_ImDrawList_AddLine_4_v2v2in(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); float thickness = (float)luaL_optnumber(L, __argi__, 1.0f); if (thickness != 1.0f) __argi__++; ImGui::GetOverlayDrawList()->AddLine(a, b, col, thickness); return 0; }; //void AddRect(const ImVec2& a,const ImVec2& b,ImU32 col,float rounding,int rounding_corners_flags,float thickness); int cximgui_ImDrawList_AddRect_6_v2v2inin(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); float rounding = (float)luaL_optnumber(L, __argi__, 0.0f); if (rounding != 0.0f) __argi__++; int rounding_corners_flags = (int)luaL_optinteger(L, __argi__, ImDrawCornerFlags_All); if (rounding_corners_flags != ImDrawCornerFlags_All) __argi__++; float thickness = (float)luaL_optnumber(L, __argi__, 1.0f); if (thickness != 1.0f) __argi__++; ImGui::GetOverlayDrawList()->AddRect(a, b, col, rounding, rounding_corners_flags, thickness); return 0; }; //void AddRectFilled(const ImVec2& a,const ImVec2& b,ImU32 col,float rounding,int rounding_corners_flags); int cximgui_ImDrawList_AddRectFilled_5_v2v2ini(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); float rounding = (float)luaL_optnumber(L, __argi__, 0.0f); if (rounding != 0.0f) __argi__++; int rounding_corners_flags = (int)luaL_optinteger(L, __argi__, ImDrawCornerFlags_All); if (rounding_corners_flags != ImDrawCornerFlags_All) __argi__++; ImGui::GetOverlayDrawList()->AddRectFilled(a, b, col, rounding, rounding_corners_flags); return 0; }; //void AddRectFilledMultiColor(const ImVec2& a,const ImVec2& b,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left); int cximgui_ImDrawList_AddRectFilledMultiColor_6_v2v2iiii(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImU32 col_upr_left = (ImU32)lua_tointeger(L, __argi__++); ImU32 col_upr_right = (ImU32)lua_tointeger(L, __argi__++); ImU32 col_bot_right = (ImU32)lua_tointeger(L, __argi__++); ImU32 col_bot_left = (ImU32)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->AddRectFilledMultiColor(a, b, col_upr_left, col_upr_right, col_bot_right, col_bot_left); return 0; }; //void AddQuad(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,ImU32 col,float thickness); int cximgui_ImDrawList_AddQuad_6_v2v2v2v2in(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImVec2 c; c.x = (float)lua_tonumber(L, __argi__++); c.y = (float)lua_tonumber(L, __argi__++); ImVec2 d; d.x = (float)lua_tonumber(L, __argi__++); d.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); float thickness = (float)luaL_optnumber(L, __argi__, 1.0f); if (thickness != 1.0f) __argi__++; ImGui::GetOverlayDrawList()->AddQuad(a, b, c, d, col, thickness); return 0; }; //void AddQuadFilled(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,ImU32 col); int cximgui_ImDrawList_AddQuadFilled_5_v2v2v2v2i(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImVec2 c; c.x = (float)lua_tonumber(L, __argi__++); c.y = (float)lua_tonumber(L, __argi__++); ImVec2 d; d.x = (float)lua_tonumber(L, __argi__++); d.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->AddQuadFilled(a, b, c, d, col); return 0; }; //void AddTriangle(const ImVec2& a,const ImVec2& b,const ImVec2& c,ImU32 col,float thickness); int cximgui_ImDrawList_AddTriangle_5_v2v2v2in(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImVec2 c; c.x = (float)lua_tonumber(L, __argi__++); c.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); float thickness = (float)luaL_optnumber(L, __argi__, 1.0f); if (thickness != 1.0f) __argi__++; ImGui::GetOverlayDrawList()->AddTriangle(a, b, c, col, thickness); return 0; }; //void AddTriangleFilled(const ImVec2& a,const ImVec2& b,const ImVec2& c,ImU32 col); int cximgui_ImDrawList_AddTriangleFilled_4_v2v2v2i(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImVec2 c; c.x = (float)lua_tonumber(L, __argi__++); c.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->AddTriangleFilled(a, b, c, col); return 0; }; //void AddCircle(const ImVec2& centre,float radius,ImU32 col,int num_segments,float thickness); int cximgui_ImDrawList_AddCircle_5_v2niin(lua_State* L) { int __argi__ = 1; ImVec2 centre; centre.x = (float)lua_tonumber(L, __argi__++); centre.y = (float)lua_tonumber(L, __argi__++); float radius = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); int num_segments = (int)luaL_optinteger(L, __argi__, 12); if (num_segments != 12) __argi__++; float thickness = (float)luaL_optnumber(L, __argi__, 1.0f); if (thickness != 1.0f) __argi__++; ImGui::GetOverlayDrawList()->AddCircle(centre, radius, col, num_segments, thickness); return 0; }; //void AddCircleFilled(const ImVec2& centre,float radius,ImU32 col,int num_segments); int cximgui_ImDrawList_AddCircleFilled_4_v2nii(lua_State* L) { int __argi__ = 1; ImVec2 centre; centre.x = (float)lua_tonumber(L, __argi__++); centre.y = (float)lua_tonumber(L, __argi__++); float radius = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); int num_segments = (int)luaL_optinteger(L, __argi__, 12); if (num_segments != 12) __argi__++; ImGui::GetOverlayDrawList()->AddCircleFilled(centre, radius, col, num_segments); return 0; }; //void AddText(const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end); int cximgui_ImDrawList_AddText_4_v2iss(lua_State* L) { int __argi__ = 1; ImVec2 pos; pos.x = (float)lua_tonumber(L, __argi__++); pos.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); const char* text_begin = lua_tostring(L, __argi__++); const char* text_end = luaL_optstring(L, __argi__, NULL); if (text_end != NULL) __argi__++; ImGui::GetOverlayDrawList()->AddText(pos, col, text_begin, text_end); return 0; }; //void AddText(const ImFont* font,float font_size,const ImVec2& pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect); //UnSupported AddText //void AddImage(ImTextureID user_texture_id,const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,ImU32 col); //UnSupported AddImage //void AddImageQuad(ImTextureID user_texture_id,const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,const ImVec2& uv_a,const ImVec2& uv_b,const ImVec2& uv_c,const ImVec2& uv_d,ImU32 col); //UnSupported AddImageQuad //void AddImageRounded(ImTextureID user_texture_id,const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,ImU32 col,float rounding,int rounding_corners); //UnSupported AddImageRounded //void AddPolyline(const ImVec2* points,const int num_points,ImU32 col,bool closed,float thickness); int cximgui_ImDrawList_AddPolyline_5_v2piibn(lua_State* L) { int __argi__ = 1; ImVec2 points; points.x = (float)lua_tonumber(L, __argi__++); points.y = (float)lua_tonumber(L, __argi__++); int num_points = (int)lua_tointeger(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); bool closed = lua_toboolean(L, __argi__++); float thickness = (float)lua_tonumber(L, __argi__++); ImGui::GetOverlayDrawList()->AddPolyline(&points, num_points, col, closed, thickness); return 0; }; //void AddConvexPolyFilled(const ImVec2* points,const int num_points,ImU32 col); int cximgui_ImDrawList_AddConvexPolyFilled_3_v2pii(lua_State* L) { int __argi__ = 1; ImVec2 points; points.x = (float)lua_tonumber(L, __argi__++); points.y = (float)lua_tonumber(L, __argi__++); int num_points = (int)lua_tointeger(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->AddConvexPolyFilled(&points, num_points, col); return 0; }; //void AddBezierCurve(const ImVec2& pos0,const ImVec2& cp0,const ImVec2& cp1,const ImVec2& pos1,ImU32 col,float thickness,int num_segments); int cximgui_ImDrawList_AddBezierCurve_7_v2v2v2v2ini(lua_State* L) { int __argi__ = 1; ImVec2 pos0; pos0.x = (float)lua_tonumber(L, __argi__++); pos0.y = (float)lua_tonumber(L, __argi__++); ImVec2 cp0; cp0.x = (float)lua_tonumber(L, __argi__++); cp0.y = (float)lua_tonumber(L, __argi__++); ImVec2 cp1; cp1.x = (float)lua_tonumber(L, __argi__++); cp1.y = (float)lua_tonumber(L, __argi__++); ImVec2 pos1; pos1.x = (float)lua_tonumber(L, __argi__++); pos1.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); float thickness = (float)lua_tonumber(L, __argi__++); int num_segments = (int)luaL_optinteger(L, __argi__, 0); if (num_segments != 0) __argi__++; ImGui::GetOverlayDrawList()->AddBezierCurve(pos0, cp0, cp1, pos1, col, thickness, num_segments); return 0; }; //void PathArcTo(const ImVec2& centre,float radius,float a_min,float a_max,int num_segments); int cximgui_ImDrawList_PathArcTo_5_v2nnni(lua_State* L) { int __argi__ = 1; ImVec2 centre; centre.x = (float)lua_tonumber(L, __argi__++); centre.y = (float)lua_tonumber(L, __argi__++); float radius = (float)lua_tonumber(L, __argi__++); float a_min = (float)lua_tonumber(L, __argi__++); float a_max = (float)lua_tonumber(L, __argi__++); int num_segments = (int)luaL_optinteger(L, __argi__, 10); if (num_segments != 10) __argi__++; ImGui::GetOverlayDrawList()->PathArcTo(centre, radius, a_min, a_max, num_segments); return 0; }; //void PathArcToFast(const ImVec2& centre,float radius,int a_min_of_12,int a_max_of_12); int cximgui_ImDrawList_PathArcToFast_4_v2nii(lua_State* L) { int __argi__ = 1; ImVec2 centre; centre.x = (float)lua_tonumber(L, __argi__++); centre.y = (float)lua_tonumber(L, __argi__++); float radius = (float)lua_tonumber(L, __argi__++); int a_min_of_12 = (int)lua_tointeger(L, __argi__++); int a_max_of_12 = (int)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->PathArcToFast(centre, radius, a_min_of_12, a_max_of_12); return 0; }; //void PathBezierCurveTo(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,int num_segments); int cximgui_ImDrawList_PathBezierCurveTo_4_v2v2v2i(lua_State* L) { int __argi__ = 1; ImVec2 p1; p1.x = (float)lua_tonumber(L, __argi__++); p1.y = (float)lua_tonumber(L, __argi__++); ImVec2 p2; p2.x = (float)lua_tonumber(L, __argi__++); p2.y = (float)lua_tonumber(L, __argi__++); ImVec2 p3; p3.x = (float)lua_tonumber(L, __argi__++); p3.y = (float)lua_tonumber(L, __argi__++); int num_segments = (int)luaL_optinteger(L, __argi__, 0); if (num_segments != 0) __argi__++; ImGui::GetOverlayDrawList()->PathBezierCurveTo(p1, p2, p3, num_segments); return 0; }; //void PathRect(const ImVec2& rect_min,const ImVec2& rect_max,float rounding,int rounding_corners_flags); int cximgui_ImDrawList_PathRect_4_v2v2ni(lua_State* L) { int __argi__ = 1; ImVec2 rect_min; rect_min.x = (float)lua_tonumber(L, __argi__++); rect_min.y = (float)lua_tonumber(L, __argi__++); ImVec2 rect_max; rect_max.x = (float)lua_tonumber(L, __argi__++); rect_max.y = (float)lua_tonumber(L, __argi__++); float rounding = (float)luaL_optnumber(L, __argi__, 0.0f); if (rounding != 0.0f) __argi__++; int rounding_corners_flags = (int)luaL_optinteger(L, __argi__, ImDrawCornerFlags_All); if (rounding_corners_flags != ImDrawCornerFlags_All) __argi__++; ImGui::GetOverlayDrawList()->PathRect(rect_min, rect_max, rounding, rounding_corners_flags); return 0; }; //void ChannelsSplit(int channels_count); int cximgui_ImDrawList_ChannelsSplit_1_i(lua_State* L) { int __argi__ = 1; int channels_count = (int)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->ChannelsSplit(channels_count); return 0; }; //void ChannelsMerge(); int cximgui_ImDrawList_ChannelsMerge(lua_State* L) { ImGui::GetOverlayDrawList()->ChannelsMerge(); return 0; }; //void ChannelsSetCurrent(int channel_index); int cximgui_ImDrawList_ChannelsSetCurrent_1_i(lua_State* L) { int __argi__ = 1; int channel_index = (int)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->ChannelsSetCurrent(channel_index); return 0; }; //void AddCallback(ImDrawCallback callback,void* callback_data); //UnSupported AddCallback //void AddDrawCmd(); int cximgui_ImDrawList_AddDrawCmd(lua_State* L) { ImGui::GetOverlayDrawList()->AddDrawCmd(); return 0; }; //ImDrawList* CloneOutput(); int cximgui_ImDrawList_CloneOutput(lua_State* L) { ImDrawList* __ret__ = ImGui::GetOverlayDrawList()->CloneOutput(); return 0; }; //void Clear(); int cximgui_ImDrawList_Clear(lua_State* L) { ImGui::GetOverlayDrawList()->Clear(); return 0; }; //void ClearFreeMemory(); int cximgui_ImDrawList_ClearFreeMemory(lua_State* L) { ImGui::GetOverlayDrawList()->ClearFreeMemory(); return 0; }; //void PrimReserve(int idx_count,int vtx_count); int cximgui_ImDrawList_PrimReserve_2_ii(lua_State* L) { int __argi__ = 1; int idx_count = (int)lua_tointeger(L, __argi__++); int vtx_count = (int)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->PrimReserve(idx_count, vtx_count); return 0; }; //void PrimRect(const ImVec2& a,const ImVec2& b,ImU32 col); int cximgui_ImDrawList_PrimRect_3_v2v2i(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->PrimRect(a, b, col); return 0; }; //void PrimRectUV(const ImVec2& a,const ImVec2& b,const ImVec2& uv_a,const ImVec2& uv_b,ImU32 col); int cximgui_ImDrawList_PrimRectUV_5_v2v2v2v2i(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImVec2 uv_a; uv_a.x = (float)lua_tonumber(L, __argi__++); uv_a.y = (float)lua_tonumber(L, __argi__++); ImVec2 uv_b; uv_b.x = (float)lua_tonumber(L, __argi__++); uv_b.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->PrimRectUV(a, b, uv_a, uv_b, col); return 0; }; //void PrimQuadUV(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& d,const ImVec2& uv_a,const ImVec2& uv_b,const ImVec2& uv_c,const ImVec2& uv_d,ImU32 col); int cximgui_ImDrawList_PrimQuadUV_9_v2v2v2v2v2v2v2v2i(lua_State* L) { int __argi__ = 1; ImVec2 a; a.x = (float)lua_tonumber(L, __argi__++); a.y = (float)lua_tonumber(L, __argi__++); ImVec2 b; b.x = (float)lua_tonumber(L, __argi__++); b.y = (float)lua_tonumber(L, __argi__++); ImVec2 c; c.x = (float)lua_tonumber(L, __argi__++); c.y = (float)lua_tonumber(L, __argi__++); ImVec2 d; d.x = (float)lua_tonumber(L, __argi__++); d.y = (float)lua_tonumber(L, __argi__++); ImVec2 uv_a; uv_a.x = (float)lua_tonumber(L, __argi__++); uv_a.y = (float)lua_tonumber(L, __argi__++); ImVec2 uv_b; uv_b.x = (float)lua_tonumber(L, __argi__++); uv_b.y = (float)lua_tonumber(L, __argi__++); ImVec2 uv_c; uv_c.x = (float)lua_tonumber(L, __argi__++); uv_c.y = (float)lua_tonumber(L, __argi__++); ImVec2 uv_d; uv_d.x = (float)lua_tonumber(L, __argi__++); uv_d.y = (float)lua_tonumber(L, __argi__++); ImU32 col = (ImU32)lua_tointeger(L, __argi__++); ImGui::GetOverlayDrawList()->PrimQuadUV(a, b, c, d, uv_a, uv_b, uv_c, uv_d, col); return 0; }; //void UpdateClipRect(); int cximgui_ImDrawList_UpdateClipRect(lua_State* L) { ImGui::GetOverlayDrawList()->UpdateClipRect(); return 0; }; //void UpdateTextureID(); int cximgui_ImDrawList_UpdateTextureID(lua_State* L) { ImGui::GetOverlayDrawList()->UpdateTextureID(); return 0; }; //total func 399 unSupported 69 luaL_Reg cximgui_methods[] = { {"GetCurrentContext",cximgui_GetCurrentContext}, {"DebugCheckVersionAndDataLayout",cximgui_DebugCheckVersionAndDataLayout_6_siiiii}, {"GetIO",cximgui_GetIO}, {"GetStyle",cximgui_GetStyle}, {"NewFrame",cximgui_NewFrame}, {"EndFrame",cximgui_EndFrame}, {"Render",cximgui_Render}, {"GetDrawData",cximgui_GetDrawData}, {"ShowDemoWindow",cximgui_ShowDemoWindow_1_bp}, {"ShowMetricsWindow",cximgui_ShowMetricsWindow_1_bp}, {"ShowStyleSelector",cximgui_ShowStyleSelector_1_s}, {"ShowFontSelector",cximgui_ShowFontSelector_1_s}, {"ShowUserGuide",cximgui_ShowUserGuide}, {"GetVersion",cximgui_GetVersion}, {"Begin",cximgui_Begin_3_sbpi}, {"End",cximgui_End}, {"BeginChild",cximgui_BeginChild_4_sv2bi}, {"BeginChild2",cximgui_BeginChild_4_iv2bi}, {"EndChild",cximgui_EndChild}, {"IsWindowAppearing",cximgui_IsWindowAppearing}, {"IsWindowCollapsed",cximgui_IsWindowCollapsed}, {"IsWindowFocused",cximgui_IsWindowFocused_1_i}, {"IsWindowHovered",cximgui_IsWindowHovered_1_i}, {"GetWindowDrawList",cximgui_GetWindowDrawList}, {"GetWindowDpiScale",cximgui_GetWindowDpiScale}, {"GetWindowViewport",cximgui_GetWindowViewport}, {"GetWindowPos",cximgui_GetWindowPos}, {"GetWindowSize",cximgui_GetWindowSize}, {"GetWindowWidth",cximgui_GetWindowWidth}, {"GetWindowHeight",cximgui_GetWindowHeight}, {"GetContentRegionMax",cximgui_GetContentRegionMax}, {"GetContentRegionAvail",cximgui_GetContentRegionAvail}, {"GetContentRegionAvailWidth",cximgui_GetContentRegionAvailWidth}, {"GetWindowContentRegionMin",cximgui_GetWindowContentRegionMin}, {"GetWindowContentRegionMax",cximgui_GetWindowContentRegionMax}, {"GetWindowContentRegionWidth",cximgui_GetWindowContentRegionWidth}, {"SetNextWindowPos",cximgui_SetNextWindowPos_3_v2iv2}, {"SetNextWindowSize",cximgui_SetNextWindowSize_2_v2i}, {"SetNextWindowContentSize",cximgui_SetNextWindowContentSize_1_v2}, {"SetNextWindowCollapsed",cximgui_SetNextWindowCollapsed_2_bi}, {"SetNextWindowFocus",cximgui_SetNextWindowFocus}, {"SetNextWindowBgAlpha",cximgui_SetNextWindowBgAlpha_1_n}, {"SetNextWindowViewport",cximgui_SetNextWindowViewport_1_i}, {"SetWindowPos",cximgui_SetWindowPos_2_v2i}, {"SetWindowSize",cximgui_SetWindowSize_2_v2i}, {"SetWindowCollapsed",cximgui_SetWindowCollapsed_2_bi}, {"SetWindowFocus",cximgui_SetWindowFocus}, {"SetWindowFontScale",cximgui_SetWindowFontScale_1_n}, {"SetWindowPos",cximgui_SetWindowPos_3_sv2i}, {"SetWindowSize",cximgui_SetWindowSize_3_sv2i}, {"SetWindowCollapsed",cximgui_SetWindowCollapsed_3_sbi}, {"SetWindowFocus",cximgui_SetWindowFocus_1_s}, {"GetScrollX",cximgui_GetScrollX}, {"GetScrollY",cximgui_GetScrollY}, {"GetScrollMaxX",cximgui_GetScrollMaxX}, {"GetScrollMaxY",cximgui_GetScrollMaxY}, {"SetScrollX",cximgui_SetScrollX_1_n}, {"SetScrollY",cximgui_SetScrollY_1_n}, {"SetScrollHereY",cximgui_SetScrollHereY_1_n}, {"SetScrollFromPosY",cximgui_SetScrollFromPosY_2_nn}, {"PopFont",cximgui_PopFont}, {"PushStyleColor",cximgui_PushStyleColor_2_ii}, {"PushStyleColor2",cximgui_PushStyleColor_2_iv4}, {"PopStyleColor",cximgui_PopStyleColor_1_i}, {"PushStyleVar",cximgui_PushStyleVar_2_in}, {"PushStyleVar2",cximgui_PushStyleVar_2_iv2}, {"PopStyleVar",cximgui_PopStyleVar_1_i}, {"GetStyleColorVec4",cximgui_GetStyleColorVec4_1_i}, {"GetFont",cximgui_GetFont}, {"GetFontSize",cximgui_GetFontSize}, {"GetFontTexUvWhitePixel",cximgui_GetFontTexUvWhitePixel}, {"GetColorU32",cximgui_GetColorU32_2_in}, {"GetColorU322",cximgui_GetColorU32_1_v4}, {"GetColorU323",cximgui_GetColorU32_1_i}, {"PushItemWidth",cximgui_PushItemWidth_1_n}, {"PopItemWidth",cximgui_PopItemWidth}, {"CalcItemWidth",cximgui_CalcItemWidth}, {"PushTextWrapPos",cximgui_PushTextWrapPos_1_n}, {"PopTextWrapPos",cximgui_PopTextWrapPos}, {"PushAllowKeyboardFocus",cximgui_PushAllowKeyboardFocus_1_b}, {"PopAllowKeyboardFocus",cximgui_PopAllowKeyboardFocus}, {"PushButtonRepeat",cximgui_PushButtonRepeat_1_b}, {"PopButtonRepeat",cximgui_PopButtonRepeat}, {"Separator",cximgui_Separator}, {"SameLine",cximgui_SameLine_2_nn}, {"NewLine",cximgui_NewLine}, {"Spacing",cximgui_Spacing}, {"Dummy",cximgui_Dummy_1_v2}, {"Indent",cximgui_Indent_1_n}, {"Unindent",cximgui_Unindent_1_n}, {"BeginGroup",cximgui_BeginGroup}, {"EndGroup",cximgui_EndGroup}, {"GetCursorPos",cximgui_GetCursorPos}, {"GetCursorPosX",cximgui_GetCursorPosX}, {"GetCursorPosY",cximgui_GetCursorPosY}, {"SetCursorPos",cximgui_SetCursorPos_1_v2}, {"SetCursorPosX",cximgui_SetCursorPosX_1_n}, {"SetCursorPosY",cximgui_SetCursorPosY_1_n}, {"GetCursorStartPos",cximgui_GetCursorStartPos}, {"GetCursorScreenPos",cximgui_GetCursorScreenPos}, {"SetCursorScreenPos",cximgui_SetCursorScreenPos_1_v2}, {"AlignTextToFramePadding",cximgui_AlignTextToFramePadding}, {"GetTextLineHeight",cximgui_GetTextLineHeight}, {"GetTextLineHeightWithSpacing",cximgui_GetTextLineHeightWithSpacing}, {"GetFrameHeight",cximgui_GetFrameHeight}, {"GetFrameHeightWithSpacing",cximgui_GetFrameHeightWithSpacing}, {"PushID",cximgui_PushID_1_s}, {"PushID2",cximgui_PushID_2_ss}, {"PushID3",cximgui_PushID_1_i}, {"PopID",cximgui_PopID}, {"GetID",cximgui_GetID_1_s}, {"GetID2",cximgui_GetID_2_ss}, {"TextUnformatted",cximgui_TextUnformatted_2_ss}, {"Button",cximgui_Button_2_sv2}, {"SmallButton",cximgui_SmallButton_1_s}, {"InvisibleButton",cximgui_InvisibleButton_2_sv2}, {"ArrowButton",cximgui_ArrowButton_2_si}, {"Checkbox",cximgui_Checkbox_2_sbp}, {"CheckboxFlags",cximgui_CheckboxFlags_3_sIpI}, {"RadioButton",cximgui_RadioButton_2_sb}, {"RadioButton2",cximgui_RadioButton_3_sipi}, {"ProgressBar",cximgui_ProgressBar_3_nv2s}, {"Bullet",cximgui_Bullet}, {"BeginCombo",cximgui_BeginCombo_3_ssi}, {"EndCombo",cximgui_EndCombo}, {"Combo",cximgui_Combo_4_sipsi}, {"DragFloat",cximgui_DragFloat_7_snpnnnsn}, {"DragFloat2",cximgui_DragFloat2_7_snnnnsn}, {"DragFloat3",cximgui_DragFloat3_7_snnnnsn}, {"DragFloat4",cximgui_DragFloat4_7_snnnnsn}, {"DragFloatRange2",cximgui_DragFloatRange2_9_snpnpnnnssn}, {"DragInt",cximgui_DragInt_6_sipniis}, {"DragInt2",cximgui_DragInt2_6_siniis}, {"DragInt3",cximgui_DragInt3_6_siniis}, {"DragInt4",cximgui_DragInt4_6_siniis}, {"DragIntRange2",cximgui_DragIntRange2_8_sipipniiss}, {"SliderFloat",cximgui_SliderFloat_6_snpnnsn}, {"SliderFloat2",cximgui_SliderFloat2_6_snnnsn}, {"SliderFloat3",cximgui_SliderFloat3_6_snnnsn}, {"SliderFloat4",cximgui_SliderFloat4_6_snnnsn}, {"SliderAngle",cximgui_SliderAngle_5_snpnns}, {"SliderInt",cximgui_SliderInt_5_sipiis}, {"SliderInt2",cximgui_SliderInt2_5_siiis}, {"SliderInt3",cximgui_SliderInt3_5_siiis}, {"SliderInt4",cximgui_SliderInt4_5_siiis}, {"VSliderFloat",cximgui_VSliderFloat_7_sv2npnnsn}, {"VSliderInt",cximgui_VSliderInt_6_sv2ipiis}, {"InputFloat",cximgui_InputFloat_6_snpnnsi}, {"InputFloat2",cximgui_InputFloat2_4_snsi}, {"InputFloat3",cximgui_InputFloat3_4_snsi}, {"InputFloat4",cximgui_InputFloat4_4_snsi}, {"InputInt",cximgui_InputInt_5_sipiii}, {"InputInt2",cximgui_InputInt2_3_sii}, {"InputInt3",cximgui_InputInt3_3_sii}, {"InputInt4",cximgui_InputInt4_3_sii}, {"InputDouble",cximgui_InputDouble_6_snpnnsi}, {"ColorEdit3",cximgui_ColorEdit3_3_sni}, {"ColorEdit4",cximgui_ColorEdit4_3_sni}, {"ColorPicker3",cximgui_ColorPicker3_3_sni}, {"ColorPicker4",cximgui_ColorPicker4_4_sninp}, {"ColorButton",cximgui_ColorButton_4_sv4iv2}, {"SetColorEditOptions",cximgui_SetColorEditOptions_1_i}, {"TreeNode",cximgui_TreeNode_1_s}, {"TreeNodeEx",cximgui_TreeNodeEx_2_si}, {"TreePush",cximgui_TreePush_1_s}, {"TreePop",cximgui_TreePop}, {"TreeAdvanceToLabelPos",cximgui_TreeAdvanceToLabelPos}, {"GetTreeNodeToLabelSpacing",cximgui_GetTreeNodeToLabelSpacing}, {"SetNextTreeNodeOpen",cximgui_SetNextTreeNodeOpen_2_bi}, {"CollapsingHeader",cximgui_CollapsingHeader_2_si}, {"CollapsingHeader2",cximgui_CollapsingHeader_3_sbpi}, {"Selectable",cximgui_Selectable_4_sbiv2}, {"Selectable2",cximgui_Selectable_4_sbpiv2}, {"ListBoxHeader",cximgui_ListBoxHeader_2_sv2}, {"ListBoxHeader2",cximgui_ListBoxHeader_3_sii}, {"ListBoxFooter",cximgui_ListBoxFooter}, {"PlotLines",cximgui_PlotLines_9_snpiisnnv2i}, {"PlotHistogram",cximgui_PlotHistogram_9_snpiisnnv2i}, {"Value",cximgui_Value_2_sb}, {"Value2",cximgui_Value_2_si}, {"Value3",cximgui_Value_2_sI}, {"Value4",cximgui_Value_3_sns}, {"BeginMainMenuBar",cximgui_BeginMainMenuBar}, {"EndMainMenuBar",cximgui_EndMainMenuBar}, {"BeginMenuBar",cximgui_BeginMenuBar}, {"EndMenuBar",cximgui_EndMenuBar}, {"BeginMenu",cximgui_BeginMenu_2_sb}, {"EndMenu",cximgui_EndMenu}, {"MenuItem",cximgui_MenuItem_4_ssbb}, {"MenuItem2",cximgui_MenuItem_4_ssbpb}, {"BeginTooltip",cximgui_BeginTooltip}, {"EndTooltip",cximgui_EndTooltip}, {"OpenPopup",cximgui_OpenPopup_1_s}, {"BeginPopup",cximgui_BeginPopup_2_si}, {"BeginPopupContextItem",cximgui_BeginPopupContextItem_2_si}, {"BeginPopupContextWindow",cximgui_BeginPopupContextWindow_3_sib}, {"BeginPopupContextVoid",cximgui_BeginPopupContextVoid_2_si}, {"BeginPopupModal",cximgui_BeginPopupModal_3_sbpi}, {"EndPopup",cximgui_EndPopup}, {"OpenPopupOnItemClick",cximgui_OpenPopupOnItemClick_2_si}, {"IsPopupOpen",cximgui_IsPopupOpen_1_s}, {"CloseCurrentPopup",cximgui_CloseCurrentPopup}, {"Columns",cximgui_Columns_3_isb}, {"NextColumn",cximgui_NextColumn}, {"GetColumnIndex",cximgui_GetColumnIndex}, {"GetColumnWidth",cximgui_GetColumnWidth_1_i}, {"SetColumnWidth",cximgui_SetColumnWidth_2_in}, {"GetColumnOffset",cximgui_GetColumnOffset_1_i}, {"SetColumnOffset",cximgui_SetColumnOffset_2_in}, {"GetColumnsCount",cximgui_GetColumnsCount}, {"BeginTabBar",cximgui_BeginTabBar_2_si}, {"EndTabBar",cximgui_EndTabBar}, {"BeginTabItem",cximgui_BeginTabItem_3_sbpi}, {"EndTabItem",cximgui_EndTabItem}, {"SetTabItemClosed",cximgui_SetTabItemClosed_1_s}, {"SetNextWindowDockId",cximgui_SetNextWindowDockId_2_ii}, {"GetWindowDockId",cximgui_GetWindowDockId}, {"IsWindowDocked",cximgui_IsWindowDocked}, {"LogToTTY",cximgui_LogToTTY_1_i}, {"LogToFile",cximgui_LogToFile_2_is}, {"LogToClipboard",cximgui_LogToClipboard_1_i}, {"LogFinish",cximgui_LogFinish}, {"LogButtons",cximgui_LogButtons}, {"BeginDragDropSource",cximgui_BeginDragDropSource_1_i}, {"EndDragDropSource",cximgui_EndDragDropSource}, {"BeginDragDropTarget",cximgui_BeginDragDropTarget}, {"AcceptDragDropPayload",cximgui_AcceptDragDropPayload_2_si}, {"EndDragDropTarget",cximgui_EndDragDropTarget}, {"GetDragDropPayload",cximgui_GetDragDropPayload}, {"PushClipRect",cximgui_PushClipRect_3_v2v2b}, {"PopClipRect",cximgui_PopClipRect}, {"SetItemDefaultFocus",cximgui_SetItemDefaultFocus}, {"SetKeyboardFocusHere",cximgui_SetKeyboardFocusHere_1_i}, {"IsItemHovered",cximgui_IsItemHovered_1_i}, {"IsItemActive",cximgui_IsItemActive}, {"IsItemFocused",cximgui_IsItemFocused}, {"IsItemClicked",cximgui_IsItemClicked_1_i}, {"IsItemVisible",cximgui_IsItemVisible}, {"IsItemEdited",cximgui_IsItemEdited}, {"IsItemDeactivated",cximgui_IsItemDeactivated}, {"IsItemDeactivatedAfterEdit",cximgui_IsItemDeactivatedAfterEdit}, {"IsAnyItemHovered",cximgui_IsAnyItemHovered}, {"IsAnyItemActive",cximgui_IsAnyItemActive}, {"IsAnyItemFocused",cximgui_IsAnyItemFocused}, {"GetItemRectMin",cximgui_GetItemRectMin}, {"GetItemRectMax",cximgui_GetItemRectMax}, {"GetItemRectSize",cximgui_GetItemRectSize}, {"SetItemAllowOverlap",cximgui_SetItemAllowOverlap}, {"IsRectVisible",cximgui_IsRectVisible_1_v2}, {"IsRectVisible2",cximgui_IsRectVisible_2_v2v2}, {"GetTime",cximgui_GetTime}, {"GetFrameCount",cximgui_GetFrameCount}, {"GetOverlayDrawList",cximgui_GetOverlayDrawList}, {"GetDrawListSharedData",cximgui_GetDrawListSharedData}, {"GetStyleColorName",cximgui_GetStyleColorName_1_i}, {"GetStateStorage",cximgui_GetStateStorage}, {"CalcTextSize",cximgui_CalcTextSize_4_ssbn}, {"CalcListClipping",cximgui_CalcListClipping_4_inipip}, {"BeginChildFrame",cximgui_BeginChildFrame_3_iv2i}, {"EndChildFrame",cximgui_EndChildFrame}, {"ColorConvertU32ToFloat4",cximgui_ColorConvertU32ToFloat4_1_i}, {"ColorConvertFloat4ToU32",cximgui_ColorConvertFloat4ToU32_1_v4}, {"ColorConvertRGBtoHSV",cximgui_ColorConvertRGBtoHSV_6_nnnnnn}, {"ColorConvertHSVtoRGB",cximgui_ColorConvertHSVtoRGB_6_nnnnnn}, {"GetKeyIndex",cximgui_GetKeyIndex_1_i}, {"IsKeyDown",cximgui_IsKeyDown_1_i}, {"IsKeyPressed",cximgui_IsKeyPressed_2_ib}, {"IsKeyReleased",cximgui_IsKeyReleased_1_i}, {"GetKeyPressedAmount",cximgui_GetKeyPressedAmount_3_inn}, {"IsMouseDown",cximgui_IsMouseDown_1_i}, {"IsAnyMouseDown",cximgui_IsAnyMouseDown}, {"IsMouseClicked",cximgui_IsMouseClicked_2_ib}, {"IsMouseDoubleClicked",cximgui_IsMouseDoubleClicked_1_i}, {"IsMouseReleased",cximgui_IsMouseReleased_1_i}, {"IsMouseDragging",cximgui_IsMouseDragging_2_in}, {"IsMouseHoveringRect",cximgui_IsMouseHoveringRect_3_v2v2b}, {"IsMousePosValid",cximgui_IsMousePosValid_1_v2p}, {"GetMousePos",cximgui_GetMousePos}, {"GetMousePosOnOpeningCurrentPopup",cximgui_GetMousePosOnOpeningCurrentPopup}, {"GetMouseDragDelta",cximgui_GetMouseDragDelta_2_in}, {"ResetMouseDragDelta",cximgui_ResetMouseDragDelta_1_i}, {"GetMouseCursor",cximgui_GetMouseCursor}, {"SetMouseCursor",cximgui_SetMouseCursor_1_i}, {"CaptureKeyboardFromApp",cximgui_CaptureKeyboardFromApp_1_b}, {"CaptureMouseFromApp",cximgui_CaptureMouseFromApp_1_b}, {"GetClipboardText",cximgui_GetClipboardText}, {"SetClipboardText",cximgui_SetClipboardText_1_s}, {"LoadIniSettingsFromDisk",cximgui_LoadIniSettingsFromDisk_1_s}, {"LoadIniSettingsFromMemory",cximgui_LoadIniSettingsFromMemory_2_si}, {"SaveIniSettingsToDisk",cximgui_SaveIniSettingsToDisk_1_s}, {"SaveIniSettingsToMemory",cximgui_SaveIniSettingsToMemory_1_ip}, {"MemAlloc",cximgui_MemAlloc_1_i}, {"GetPlatformIO",cximgui_GetPlatformIO}, {"UpdatePlatformWindows",cximgui_UpdatePlatformWindows}, {"DestroyPlatformWindows",cximgui_DestroyPlatformWindows}, {"PushClipRect",cximgui_ImDrawList_PushClipRect_3_v2v2b}, {"PushClipRectFullScreen",cximgui_ImDrawList_PushClipRectFullScreen}, {"PopClipRect",cximgui_ImDrawList_PopClipRect}, {"PopTextureID",cximgui_ImDrawList_PopTextureID}, {"AddLine",cximgui_ImDrawList_AddLine_4_v2v2in}, {"AddRect",cximgui_ImDrawList_AddRect_6_v2v2inin}, {"AddRectFilled",cximgui_ImDrawList_AddRectFilled_5_v2v2ini}, {"AddRectFilledMultiColor",cximgui_ImDrawList_AddRectFilledMultiColor_6_v2v2iiii}, {"AddQuad",cximgui_ImDrawList_AddQuad_6_v2v2v2v2in}, {"AddQuadFilled",cximgui_ImDrawList_AddQuadFilled_5_v2v2v2v2i}, {"AddTriangle",cximgui_ImDrawList_AddTriangle_5_v2v2v2in}, {"AddTriangleFilled",cximgui_ImDrawList_AddTriangleFilled_4_v2v2v2i}, {"AddCircle",cximgui_ImDrawList_AddCircle_5_v2niin}, {"AddCircleFilled",cximgui_ImDrawList_AddCircleFilled_4_v2nii}, {"AddText",cximgui_ImDrawList_AddText_4_v2iss}, {"AddPolyline",cximgui_ImDrawList_AddPolyline_5_v2piibn}, {"AddConvexPolyFilled",cximgui_ImDrawList_AddConvexPolyFilled_3_v2pii}, {"AddBezierCurve",cximgui_ImDrawList_AddBezierCurve_7_v2v2v2v2ini}, {"PathArcTo",cximgui_ImDrawList_PathArcTo_5_v2nnni}, {"PathArcToFast",cximgui_ImDrawList_PathArcToFast_4_v2nii}, {"PathBezierCurveTo",cximgui_ImDrawList_PathBezierCurveTo_4_v2v2v2i}, {"PathRect",cximgui_ImDrawList_PathRect_4_v2v2ni}, {"ChannelsSplit",cximgui_ImDrawList_ChannelsSplit_1_i}, {"ChannelsMerge",cximgui_ImDrawList_ChannelsMerge}, {"ChannelsSetCurrent",cximgui_ImDrawList_ChannelsSetCurrent_1_i}, {"AddDrawCmd",cximgui_ImDrawList_AddDrawCmd}, {"CloneOutput",cximgui_ImDrawList_CloneOutput}, {"Clear",cximgui_ImDrawList_Clear}, {"ClearFreeMemory",cximgui_ImDrawList_ClearFreeMemory}, {"PrimReserve",cximgui_ImDrawList_PrimReserve_2_ii}, {"PrimRect",cximgui_ImDrawList_PrimRect_3_v2v2i}, {"PrimRectUV",cximgui_ImDrawList_PrimRectUV_5_v2v2v2v2i}, {"PrimQuadUV",cximgui_ImDrawList_PrimQuadUV_9_v2v2v2v2v2v2v2v2i}, {"UpdateClipRect",cximgui_ImDrawList_UpdateClipRect}, {"UpdateTextureID",cximgui_ImDrawList_UpdateTextureID}, { NULL, NULL } }; struct CXIMStrBuf { char* str; uint32_t size; }; int cximgui_strbuf_reset(lua_State* L) { CXIMStrBuf* buf = (CXIMStrBuf*)lua_touserdata(L, 1); const char* str = lua_tostring(L, 2); size_t len = strlen(str); strcpy(buf->str, str); buf->str[len] = '\0'; return 0; } int cximgui_strbuf_str(lua_State* L) { CXIMStrBuf* buf = (CXIMStrBuf*)lua_touserdata(L, 1); lua_pushstring(L, buf->str); return 1; } int cximgui_strbuf_size(lua_State* L) { CXIMStrBuf* buf = (CXIMStrBuf*)lua_touserdata(L, 1); lua_pushinteger(L, buf->size); return 1; } luaL_Reg cximgui_strbuf_methods[] = { { "str", cximgui_strbuf_str }, { "size", cximgui_strbuf_size }, { "reset", cximgui_strbuf_reset }, { NULL,NULL } }; int cximgui_strbuf_destroy(lua_State* L) { CXIMStrBuf* buf = (CXIMStrBuf*)lua_touserdata(L, 1); delete[] buf->str; return 0; } int cximgui_strbuf_create(lua_State* L) { const char* str = lua_tostring(L, 1); size_t len = strlen(str); uint32_t size = (uint32_t)lua_tointeger(L, 2); CXIMStrBuf* buf = (CXIMStrBuf*)lua_newuserdata(L, sizeof(CXIMStrBuf)); luaL_setmetatable(L, "mt_cximgui_strbuf"); buf->str = new char[size]; strcpy(buf->str, str); buf->str[len] = '\0'; buf->size = size; return 1; } int cximgui_InputText_3_sui(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); CXIMStrBuf* buf = (CXIMStrBuf*)lua_touserdata(L, __argi__++); ImGuiInputTextFlags extra_flags = (ImGuiInputTextFlags)luaL_optinteger(L, __argi__, 0); if (extra_flags != 0) __argi__++; bool __ret__ = ImGui::InputText(label, buf->str, buf->size, extra_flags); lua_pushboolean(L, __ret__); return 1; }; int cximgui_DockSpace_3_iv2i(lua_State*L) { int __argi__ = 1; int id = (int)lua_tointeger(L, __argi__++); ImVec2 size_def = ImVec2(0, 0); ImVec2 size; size.x = (float)luaL_optnumber(L, __argi__, size_def.x); size.y = (float)luaL_optnumber(L, __argi__ + 1, size_def.y); if (size.x != size_def.x || size.y != size_def.y) __argi__ += 2; ImGuiDockNodeFlags flags = (ImGuiDockNodeFlags)luaL_optinteger(L, __argi__, 0); if (flags != 0) __argi__++; ImGui::DockSpace(id, size, flags); return 0; } int cximgui_GetMainViewport(lua_State*L) { ImGuiViewport* viewport = ImGui::GetMainViewport(); lua_pushinteger(L, viewport->ID); lua_pushinteger(L, (int)viewport->Pos.x); lua_pushinteger(L, (int)viewport->Pos.y); lua_pushinteger(L, (int)viewport->Size.x); lua_pushinteger(L, (int)viewport->Size.y); return 5; } int cximgui_ListBox_5_spipsii(lua_State* L) { int __argi__ = 1; const char* label = lua_tostring(L, __argi__++); int current_item = (int)lua_tointeger(L, __argi__++); int len = (int)luaL_len(L, __argi__); char** items = new char*[len]; int i = 0; lua_pushnil(L); while (lua_next(L, __argi__) != 0) { size_t str_len = 0; const char* str = lua_tolstring(L, -1, &str_len); items[i] = new char[str_len + 1]; strcpy(items[i], str); i++; lua_pop(L, 1); } __argi__++; int height_in_items = (int)luaL_optinteger(L, __argi__, -1); if (height_in_items != -1)__argi__++; bool __ret__ = ImGui::ListBox(label, &current_item, (const char* const*)items, len, height_in_items); for (int i = 0; i < len; i++) { delete[] items[i]; } delete[] items; lua_pushboolean(L, __ret__); lua_pushinteger(L, current_item); return 2; } int cximgui_clipper_list(lua_State*L) { int size = (int)lua_tointeger(L, 1); ImGuiListClipper clipper(size); while (clipper.Step()) { int ps = clipper.DisplayStart; int pe = clipper.DisplayEnd; lua_pushvalue(L, 2); lua_pushinteger(L, ps); lua_pushinteger(L, pe); lua_pcall(L, 2, 0, 0); } return 0; } int cximgui_keys_mod(lua_State*L) { const char* which = lua_tostring(L, 1); ImGuiIO& io = ImGui::GetIO(); if (strcmp(which, "Ctrl") == 0) { lua_pushboolean(L, io.KeyCtrl); } else if (strcmp(which, "Shift") == 0) { lua_pushboolean(L, io.KeyShift); } else if (strcmp(which, "ALT") == 0) { lua_pushboolean(L, io.KeyAlt); } else if (strcmp(which, "Super") == 0) { lua_pushboolean(L, io.KeySuper); } return 1; } luaL_Reg cximgui_extra_methods[] = { { "CreateStrbuf", cximgui_strbuf_create }, { "DestroyStrbuf", cximgui_strbuf_destroy }, { "InputText",cximgui_InputText_3_sui }, { "Text", cximgui_TextUnformatted_2_ss }, { "DockSpace", cximgui_DockSpace_3_iv2i }, { "GetMainViewport", cximgui_GetMainViewport }, { "ListBox", cximgui_ListBox_5_spipsii }, { "ClipperList", cximgui_clipper_list }, { "KeysMod", cximgui_keys_mod}, { NULL,NULL } }; void luaopen_cximgui(lua_State* L) { #define REG_IMGUI_ENUM(name) (lua_pushinteger(L, name),lua_setglobal(L, #name)) #include "cximgui_enums.inl" #undef REG_IMGUI_ENUM if (luaL_newmetatable(L, "mt_cximgui_strbuf")) { luaL_setfuncs(L, cximgui_strbuf_methods, 0); lua_setfield(L, -1, "__index"); } else { std::cout << "associate cximgui_strbuf error!" << std::endl; } if (luaL_newmetatable(L, "mt_cximgui")) { luaL_setfuncs(L, cximgui_methods, 0); luaL_setfuncs(L, cximgui_extra_methods, 0); lua_setfield(L, -1, "__index"); } else { std::cout << "associate cximgui error!" << std::endl; } lua_newtable(L); luaL_setmetatable(L, "mt_cximgui"); lua_setglobal(L, "imgui"); }
[ "oceancx@gmail.com" ]
oceancx@gmail.com
c481dbb27d63ff88078720bd7ee8a338bdbf0ae0
be947ec7af6d1039dbc2a829862876b71ebf597c
/SQLComponents/SQLWrappers.h
512ad5777e06ec520a8722a2669e083090696311
[]
no_license
pengge/CXHibernate
b398975d9fa84b581217dfa781b21107a11fa2a1
6eeb0b0d3604e673a4ef0d830dbfa09b2f8d3706
refs/heads/master
2020-06-12T11:48:13.192014
2018-08-07T14:07:30
2018-08-07T14:07:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
15,447
h
//////////////////////////////////////////////////////////////////////// // // File: SQLWrappers.h // // Copyright (c) 1998-2018 ir. W.E. Huisman // All rights reserved // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, // and to permit persons to whom the Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies // or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // Last Revision: 28-05-2018 // Version number: 1.5.0 // #pragma once #include "SQLComponents.h" ////////////////////////////////////////////////////////////////////////// // // This files contains wrappers for all SQLXxxxx functions to circumvent // access violations and other exceptions from ODBC drivers by catching them all // namespace SQLComponents { inline SQLRETURN SqlDriverConnect(SQLHDBC hdbc, SQLHWND hwnd, SQLCHAR *szConnStrIn, SQLSMALLINT cbConnStrIn, SQLCHAR *szConnStrOut, SQLSMALLINT cbConnStrOutMax, SQLSMALLINT *pcbConnStrOut, SQLUSMALLINT fDriverCompletion) { try { return ::SQLDriverConnect(hdbc, hwnd, szConnStrIn, cbConnStrIn, szConnStrOut, cbConnStrOutMax, pcbConnStrOut, fDriverCompletion); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlDisconnect(SQLHDBC ConnectionHandle) { try { return ::SQLDisconnect(ConnectionHandle); } catch (StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlFreeHandle(SQLSMALLINT HandleType, SQLHANDLE Handle) { try { return SQLFreeHandle(HandleType, Handle); } catch (StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlFreeStmt(HSTMT stmt,SQLUSMALLINT option) { try { return SQLFreeStmt(stmt,option); } catch (StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlGetInfo(SQLHDBC hdbc, SQLUSMALLINT fInfoType, SQLPOINTER rgbInfoValue, SQLSMALLINT cbInfoValueMax, SQLSMALLINT* pcbInfoValue) { try { return SQLGetInfo(hdbc, fInfoType, rgbInfoValue, cbInfoValueMax, pcbInfoValue); } catch (StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlAllocHandle(SQLSMALLINT HandleType, SQLHANDLE InputHandle, SQLHANDLE *OutputHandle) { try { return SQLAllocHandle(HandleType, InputHandle, OutputHandle); } catch (StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlAllocEnv(SQLHENV *EnvironmentHandle) { try { return SQLAllocEnv(EnvironmentHandle); } catch (StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlAllocConnect(SQLHENV EnvironmentHandle, SQLHDBC *ConnectionHandle) { try { return SQLAllocConnect(EnvironmentHandle, ConnectionHandle); } catch (StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlAllocStmt(SQLHDBC ConnectionHandle, SQLHSTMT *StatementHandle) { try { return SQLAllocStmt(ConnectionHandle, StatementHandle); } catch (StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlGetDiagRec(SQLSMALLINT fHandleType, SQLHANDLE handle, SQLSMALLINT iRecord, SQLCHAR *szSqlState, SQLINTEGER *pfNativeError, SQLCHAR *szErrorMsg, SQLSMALLINT cbErrorMsgMax, SQLSMALLINT *pcbErrorMsg) { try { return SQLGetDiagRec(fHandleType, handle, iRecord, szSqlState, pfNativeError, szErrorMsg, cbErrorMsgMax, pcbErrorMsg); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlEndTran(SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT CompletionType) { try { return SQLEndTran(HandleType, Handle, CompletionType); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlSetConnectAttr(SQLHDBC hdbc, SQLINTEGER fAttribute, SQLPOINTER rgbValue, SQLINTEGER cbValue) { try { return SQLSetConnectAttr(hdbc, fAttribute, rgbValue, cbValue); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlCloseCursor(SQLHSTMT StatementHandle) { try { return SQLCloseCursor(StatementHandle); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlPrepare(SQLHSTMT hstmt, SQLCHAR *szSqlStr, SQLINTEGER cbSqlStr) { try { return SQLPrepare(hstmt, szSqlStr, cbSqlStr); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlNumParams(SQLHSTMT hstmt, SQLSMALLINT *pcpar) { try { return SQLNumParams(hstmt, pcpar); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlExecute(SQLHSTMT StatementHandle) { try { return SQLExecute(StatementHandle); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlExecDirect(SQLHSTMT hstmt, SQLCHAR *szSqlStr, SQLINTEGER cbSqlStr) { try { return SQLExecDirect(hstmt, szSqlStr, cbSqlStr); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlRowCount(SQLHSTMT StatementHandle, SQLLEN* RowCount) { try { return SQLRowCount(StatementHandle, RowCount); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlFetch(SQLHSTMT StatementHandle) { try { return SQLFetch(StatementHandle); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlNumResultCols(SQLHSTMT StatementHandle, SQLSMALLINT *ColumnCount) { try { return SQLNumResultCols(StatementHandle, ColumnCount); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlDescribeCol(SQLHSTMT hstmt, SQLUSMALLINT icol, SQLCHAR *szColName, SQLSMALLINT cbColNameMax, SQLSMALLINT *pcbColName, SQLSMALLINT *pfSqlType, SQLULEN* pcbColDef, SQLSMALLINT *pibScale, SQLSMALLINT *pfNullable) { try { return SQLDescribeCol(hstmt, icol, szColName, cbColNameMax, pcbColName, pfSqlType, pcbColDef, pibScale, pfNullable); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlBindCol(SQLHSTMT StatementHandle, SQLUSMALLINT ColumnNumber, SQLSMALLINT TargetType, SQLPOINTER TargetValue, SQLLEN BufferLength, SQLLEN *StrLen_or_Ind) { try { return ::SQLBindCol(StatementHandle, ColumnNumber, TargetType, TargetValue, BufferLength, StrLen_or_Ind); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlBindParameter(SQLHSTMT hstmt, SQLUSMALLINT ipar, SQLSMALLINT fParamType, SQLSMALLINT fCType, SQLSMALLINT fSqlType, SQLULEN cbColDef, SQLSMALLINT ibScale, SQLPOINTER rgbValue, SQLLEN cbValueMax, SQLLEN *pcbValue) { try { return ::SQLBindParameter(hstmt, ipar, fParamType, fCType, fSqlType, cbColDef, ibScale, rgbValue, cbValueMax, pcbValue); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlCancel(SQLHSTMT hstmt) { try { return ::SQLCancel(hstmt); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlNativeSql(HDBC hdbc,SQLCHAR* stmt,SQLINTEGER len,SQLCHAR* sql,SQLINTEGER max,SQLINTEGER* reslen) { try { return ::SQLNativeSql(hdbc,stmt,len,sql,max,reslen); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlDataSources(SQLHENV EnvironmentHandle ,SQLUSMALLINT Direction ,SQLCHAR* ServerName ,SQLSMALLINT BufferLength1 ,SQLSMALLINT* NameLength1Ptr ,SQLCHAR* Description ,SQLSMALLINT BufferLength2 ,SQLSMALLINT* NameLength2Ptr) { try { return SQLDataSources(EnvironmentHandle,Direction,ServerName,BufferLength1,NameLength1Ptr,Description,BufferLength2,NameLength2Ptr); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlColAttribute(SQLHSTMT p_hstmt ,SQLUSMALLINT p_column ,SQLUSMALLINT p_field ,SQLPOINTER p_attribute ,SQLSMALLINT p_buflen ,SQLSMALLINT* p_strlen ,SQLLEN* p_numattrib) { try { return SQLColAttribute(p_hstmt,p_column,p_field,p_attribute,p_buflen,p_strlen,p_numattrib); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlGetData(SQLHSTMT p_hstmt ,SQLUSMALLINT p_column ,SQLSMALLINT p_type ,SQLPOINTER p_value ,SQLLEN p_bufferlen ,SQLLEN* p_strlen_or_ind) { try { return SQLGetData(p_hstmt,p_column,p_type,p_value,p_bufferlen,p_strlen_or_ind); } catch (StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlDrivers(SQLHENV EnvironmentHandle ,SQLUSMALLINT Direction ,SQLCHAR* DriverDescription ,SQLSMALLINT BufferLength1 ,SQLSMALLINT* DescriptionLengthPtr ,SQLCHAR* DriverAttributes ,SQLSMALLINT BufferLength2 ,SQLSMALLINT* AttributesLengthPtr) { try { return ::SQLDrivers(EnvironmentHandle ,Direction ,DriverDescription ,BufferLength1 ,DescriptionLengthPtr ,DriverAttributes ,BufferLength2 ,AttributesLengthPtr); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlPutData(SQLHSTMT p_hstmt ,SQLPOINTER p_data ,SQLINTEGER p_strlen_or_ind) { try { return SQLPutData(p_hstmt,p_data,p_strlen_or_ind); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlGetStmtAttr(SQLHSTMT p_hstmt ,SQLINTEGER p_attribute ,SQLPOINTER p_value ,SQLINTEGER p_buflen ,SQLINTEGER* p_strlen) { try { return SQLGetStmtAttr(p_hstmt,p_attribute,p_value,p_buflen,p_strlen); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlSetDescField(SQLHDESC p_handle ,SQLSMALLINT p_record ,SQLSMALLINT p_field ,SQLPOINTER p_value ,SQLINTEGER p_bufLength) { try { return ::SQLSetDescField(p_handle,p_record,p_field,p_value,p_bufLength); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlError(SQLHENV p_henv ,SQLHDBC p_hdbc ,SQLHSTMT p_hstmt ,SQLCHAR* p_state ,SQLINTEGER* p_native ,SQLCHAR* p_text ,SQLSMALLINT p_buflen ,SQLSMALLINT* p_txtlen) { try { return SQLError(p_henv,p_hdbc,p_hstmt,p_state,p_native,p_text,p_buflen,p_txtlen); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlGetFunctions(SQLHDBC p_hdbc ,SQLUSMALLINT p_id ,SQLUSMALLINT* p_supported) { try { return SQLGetFunctions(p_hdbc,p_id,p_supported); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlGetTypeInfo(SQLHSTMT p_hstmt,SQLSMALLINT p_type) { try { return SQLGetTypeInfo(p_hstmt,p_type); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlSetStmtAttr(SQLHSTMT p_hstmt ,SQLINTEGER p_attribute ,SQLPOINTER p_value ,SQLINTEGER p_strlen) { try { return SQLSetStmtAttr(p_hstmt,p_attribute,p_value,p_strlen); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlParamData(SQLHSTMT p_hstmt,SQLPOINTER* p_value) { try { return ::SQLParamData(p_hstmt,p_value); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlMoreResults(SQLHSTMT p_hstmt) { try { return ::SQLMoreResults(p_hstmt); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } inline SQLRETURN SqlGetCursorName(SQLHSTMT p_hstmt,SQLCHAR* p_buffer,SQLSMALLINT p_buflen,SQLSMALLINT* p_resultLength) { try { return ::SQLGetCursorName(p_hstmt,p_buffer,p_buflen,p_resultLength); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } // OLD STYLE ODBC 1.x / 2.x call. Do only use if absolutely necessary!! inline SQLRETURN SqlColAttributes(SQLHSTMT p_hstmt ,SQLUSMALLINT p_icol ,SQLUSMALLINT p_descType ,SQLPOINTER p_rgbDesc ,SQLSMALLINT p_cbDescMax ,SQLSMALLINT* p_pcbDesc ,SQLLEN* p_pfDesc) { try { return SQLColAttributes(p_hstmt,p_icol,p_descType,p_rgbDesc,p_cbDescMax,p_pcbDesc,p_pfDesc); } catch(StdException& er) { UNREFERENCED_PARAMETER(er); return SQL_ERROR; } } // End of namespace }
[ "edwig.huisman@hetnet.nl" ]
edwig.huisman@hetnet.nl
a9da41b76ea00ec561a284de8d2ff6db176599bb
89b7e4a17ae14a43433b512146364b3656827261
/testcases/CWE122_Heap_Based_Buffer_Overflow/s07/CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_83_goodG2B.cpp
eaed6b2af221afb1c30b26f3c8fa30c9e4f3acfc
[]
no_license
tuyen1998/Juliet_test_Suite
7f50a3a39ecf0afbb2edfd9f444ee017d94f99ee
4f968ac0376304f4b1b369a615f25977be5430ac
refs/heads/master
2020-08-31T23:40:45.070918
2019-11-01T07:43:59
2019-11-01T07:43:59
218,817,337
0
1
null
null
null
null
UTF-8
C++
false
false
1,547
cpp
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_83_goodG2B.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml Template File: sources-sink-83_goodG2B.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocate memory for a string, but do not allocate space for NULL terminator * GoodSource: Allocate enough memory for a string and the NULL terminator * Sinks: cpy * BadSink : Copy string to data using wcscpy() * Flow Variant: 83 Data flow: data passed to class constructor and destructor by declaring the class object on the stack * * */ #ifndef OMITGOOD #include "std_testcase.h" #include "CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_83.h" namespace CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_83 { CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_83_goodG2B::CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_83_goodG2B(wchar_t * dataCopy) { data = dataCopy; /* FIX: Allocate space for a null terminator */ data = (wchar_t *)malloc((10+1)*sizeof(wchar_t)); if (data == NULL) {exit(-1);} } CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_83_goodG2B::~CWE122_Heap_Based_Buffer_Overflow__c_CWE193_wchar_t_cpy_83_goodG2B() { { wchar_t source[10+1] = SRC_STRING; /* POTENTIAL FLAW: data may not have enough space to hold source */ wcscpy(data, source); printWLine(data); free(data); } } } #endif /* OMITGOOD */
[ "35531872+tuyen1998@users.noreply.github.com" ]
35531872+tuyen1998@users.noreply.github.com
6d2dd5083307594bc6c364e98e3be180689094a7
cdd00d4d303e0829bb0c00530a165e1bd20cc7e6
/gcpCbass/util/common/DataFrame.h
8a9b5b11b04196e5e9858b1ae931a230573877a9
[]
no_license
chopley/controlCode
fa538a20719989c7d13946d7e273bae153aa91d7
0b40d14797bc6db63ca9ea55115be5217d87dc88
refs/heads/master
2021-01-19T01:34:05.388485
2016-07-20T11:20:29
2016-07-20T11:20:29
11,604,863
0
0
null
null
null
null
UTF-8
C++
false
false
7,925
h
#ifndef GCP_UTIL_DATAFRAME_H #define GCP_UTIL_DATAFRAME_H /** * @file DataFrame.h * * Tagged: Sat Mar 20 00:16:55 UTC 2004 * * @author Erik Leitch */ #include "gcp/util/common/AxisRange.h" #include "gcp/util/common/Complex.h" #include "gcp/util/common/RegDate.h" #include "gcp/util/common/DataType.h" #include "gcp/util/common/Mutex.h" namespace gcp { namespace util { class AxisRange; /** * A generic interface for a data frame consisting of contiguous * blocks of arbitrary-sized types. Contains pure virtual * methods, so it cannot be instantiated. */ class DataFrame { public: /** * Constructors. */ DataFrame(); /** * Destructor. */ virtual ~DataFrame(); /** * Resize the internal buffer. This can't be pure virtual, * since I call it from the constructor. */ virtual void resize(unsigned int nBuffer); /** * Return the size of the internal buffer. */ virtual unsigned int size() = 0; /** * Return the number of registers in the internal buffer. */ unsigned int nReg(); /** * Return the number of bytes in the internal buffer. */ unsigned int nByte(); /** * Define an operator for accessing elements of the frame buffer. */ virtual unsigned char& operator[](unsigned int index); /** * Define an overloadable operator for assignment */ virtual void operator=(DataFrame& frame); /** * Get a pointer to our internal data suitable for using as an * external network buffer */ virtual unsigned char* data() = 0; /** * Pack an array into our internal memory */ void pack(void* data, AxisRange& range, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Pack an array into our internal memory from consecutive * locations in the input data array. */ void pack(void* data, unsigned ndata, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Pack a single value for all elements of an array */ void packValue(void* data, AxisRange& range, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Pack a single value for all elements of an array */ void packValue(void* data, unsigned ndata, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Pack an array into our internal memory */ void addSum(void* data, AxisRange& range, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Pack an array into our internal memory from consecutive * locations in the input data array. */ void addSum(void* data, unsigned ndata, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Pack an array into our internal memory */ void addRunningAverage(void* data, AxisRange& range, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Pack an array into our internal memory from consecutive * locations in the input data array. */ void addRunningAverage(void* data, unsigned ndata, DataType::Type type, unsigned iStart, bool lockFrame=true); void resetRunningAvgCounter(); void incrementRunningAvgCounter(); /** * Pack an array into our internal memory */ void addUnion(void* data, AxisRange& range, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Pack an array into our internal memory from consecutive * locations in the input data array. */ void addUnion(void* data, unsigned ndata, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Unpack an array from our internal memory */ void unpack(void* data, AxisRange& range, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Unpack an array from our internal memory to consecutive * locations in the output data array. */ void unpack(void* data, unsigned ndata, DataType::Type type, unsigned iStart, bool lockFrame=true); /** * Return an arbitrary pointer to our internal data, cast as the * requested type. Calls the following type-specific methods * under the hood. */ void* getPtr(unsigned int index, DataType::Type type); // Methods for returning pointers of different types to internal // data. These are made virtual so that inheritors can define // what, if anything, happens when they are called. For certain // types of frames, it may be inappropriate to recast pointers // to internal data, in which case some of the following should // throw exceptions. /** * Return a pointer to our internal data, cast as a bool * pointer. */ virtual bool* getBoolPtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as an unsigned * char pointer. */ virtual unsigned char* getUcharPtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as a char * pointer. */ virtual char* getCharPtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as an unsigned * short pointer. */ virtual unsigned short* getUshortPtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as a short * pointer. */ virtual short* getShortPtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as an unsigned * int pointer. */ virtual unsigned int* getUintPtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as an integer * pointer. */ virtual int* getIntPtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as an unsigned * long pointer. */ virtual unsigned long* getUlongPtr(unsigned long index=0); /** * Return a pointer to our internal data, cast as an integer * pointer. */ virtual long* getLongPtr(unsigned long index=0); /** * Return a pointer to our internal data, cast as a float * pointer. */ virtual float* getFloatPtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as a double * pointer. */ virtual double* getDoublePtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as a Date * pointer. */ virtual RegDate::Data* getDatePtr(unsigned int index=0); /** * Return a pointer to our internal data, cast as a * Complex<float> pointer. */ virtual Complex<float>::Data* getComplexFloatPtr(unsigned int index=0); /** * Lock the frame */ void lock(); /** * Unlock the frame */ void unlock(); public: // A counter for running averages unsigned nAvg_; private: /** * A mutex to protect the data frame. */ Mutex guard_; /** * A utility member */ AxisRange axisRange_; }; // End class DataFrame } // End namespace util } // End namespace gcp #endif // End #ifndef GCP_UTIL_DATAFRAME_H
[ "cbassuser@c-bass.(none)" ]
cbassuser@c-bass.(none)
90cb8b6783350f47de5f3a7b36bcf56d69576ee5
49726408fe9e1956869c5eb4110f87a4685835f3
/test_runner.h
9ba7b3189a8349cb5d7c77d6bf82aa06d255bfc3
[]
no_license
flanker-d/yellow_belt
e5690f7d30188cbcb6732ff8b79587232fd02fd1
521022cd4e7bee818212f49e1d97682aef55db3a
refs/heads/master
2020-04-01T08:12:07.220750
2018-10-14T21:37:53
2018-10-14T21:37:53
153,021,292
0
0
null
null
null
null
UTF-8
C++
false
false
1,758
h
#pragma once #include <sstream> #include <exception> #include <iostream> #include <string> #include <map> #include <set> #include <vector> using namespace std; template <class T> ostream& operator << (ostream& os, const set<T>& s) { os << "{"; bool first = true; for (const auto& x : s) { if (!first) { os << ", "; } first = false; os << x; } return os << "}"; } template <class T> ostream& operator << (ostream& os, const vector<T>& s) { os << "{"; bool first = true; for (const auto& x : s) { if (!first) { os << ", "; } first = false; os << x; } return os << "}"; } template <class K, class V> ostream& operator << (ostream& os, const map<K, V>& m) { os << "{"; bool first = true; for (const auto& kv : m) { if (!first) { os << ", "; } first = false; os << kv.first << ": " << kv.second; } return os << "}"; } template<class T, class U> void AssertEqual(const T& t, const U& u, const string& hint) { if (t != u) { ostringstream os; os << "Assertion failed: " << t << " != " << u << " hint: " << hint; throw runtime_error(os.str()); } } inline void Assert(bool b, const string& hint) { AssertEqual(b, true, hint); } class TestRunner { public: template <class TestFunc> void RunTest(TestFunc func, const string& test_name) { try { func(); cerr << test_name << " OK" << endl; } catch (runtime_error& e) { ++fail_count; cerr << test_name << " fail: " << e.what() << endl; } } ~TestRunner() { if (fail_count > 0) { cerr << fail_count << " unit tests failed. Terminate" << endl; exit(1); } } private: int fail_count = 0; };
[ "artyom.sorokoumov@gmail.com" ]
artyom.sorokoumov@gmail.com
3122156c1e8ad0415e21c44095f98a0386375f4e
8644f7862c3520824143262858f3413171d0f365
/Projet/Sources/main.cpp
eb069ec52865c36c80cf57b0bfb2623a10180a2d
[]
no_license
Campano/ImmunoWars
83dcf307e09237a866daff409aa2d504979464ea
66182a0ab663c5e8014b4eef691a212631a7d983
refs/heads/master
2020-08-28T05:54:12.838099
2019-10-25T21:06:37
2019-10-25T21:06:37
217,614,481
0
0
null
null
null
null
ISO-8859-1
C++
false
false
2,695
cpp
/* Projet second semestre EPF 1A, Promo 2014 Nom du projet : IMMUNO WARS Auteurs : Simon CAMPANO & Nicolas MANIE Nom du fichier : main.cpp Dernière Modification : 16/05/2010 Description : Le main n'a pour but que de lancer partie() ou editeur_prgm(). Ainsi, il a ses propres surfaces qui ne sont utilisés que pour lui et lui seul. */ #include <stdlib.h> #include <stdio.h> #include "structures.h" #include <SDL/SDL.h> #include <SDL/SDL_getenv.h>// Bibliotheque de positionement de fenetre #ifdef WINDOWS #include <SDL/SDL_image.h> // Bibliotheque qui prend en charge tout les types d'images #include <SDL/SDL_ttf.h> #include <FMOD/fmod.h> #endif #ifdef MAC #include <SDL_image/SDL_image.h> // Bibliotheque qui prend en charge tout les types d'images #include <SDL_ttf/SDL_ttf.h> #include "fmod.h" #include "fmod_errors.h" #include "wincompat.h" #endif #include "partie.h" #include "editeur.h" #include "outils_main.h" int main(int argc, char *argv[]) { /* CREATION DES SURFACES POUR LA SDL */ SDL_Surface* tableau_surface_main[NB_SURFACE_MAIN]; SDL_Rect tableau_position_main[NB_POS_MAIN]; /* DECLARATIONS DES VARIABLES */ int menu=-1, son=1; FSOUND_STREAM *musique = NULL; /* CHARGEMENT DES SURFACES */ init_main(tableau_surface_main, tableau_position_main); /* CHARGEMENT ET DEFINITION DE LA MUSIQUE */ musique = FSOUND_Stream_Open("music/musique.mp3", FSOUND_LOOP_NORMAL, 0, 0); FSOUND_Stream_SetLoopCount(musique, -1);// Boucle à l'infini FSOUND_SetVolume(FSOUND_ALL, 255);// Reglage du volume /* MENU PRINCIPAL */ while(menu!=QUITTER) { FSOUND_Stream_Play(FSOUND_FREE, musique);// Lecture de la musique afficher_menu(tableau_surface_main, tableau_position_main, &son); choix_menu(tableau_surface_main, tableau_position_main, &menu, &son); if(menu==JOUER) { FSOUND_Stream_Stop(musique);// On arrete la musique partie(); //game.h } else if(menu==EDITEUR) { FSOUND_Stream_Stop(musique); editeur_prg(); // editeur.h SDL_ShowCursor(SDL_ENABLE); // Au cas où l'utilisateur a quitté l'éditeur en ayant le curseur désactivé. } } liberer_sdl_main(tableau_surface_main); // Libération des surfaces utiles au main. FSOUND_Stream_Close(musique);// Libération de l'espace mémoire FSOUND_Close(); // Quitte la bibliotheque de gestion de la musique return EXIT_SUCCESS; }
[ "scampano@simplicite.fr" ]
scampano@simplicite.fr
f25f7073c4fd3cc2590256bb41033d68f4642221
69cf9c7f6596feadacdbf3d1e7964be79f4f2b1e
/Crypto.cxx
693cea0c485ef3d08e0724d8658695848d5affe4
[]
no_license
liheyuan/keepasscxx
4519efb9e69da92e1d8ed336b0eb9df38ead812e
fd9846cf71428d61bd63acdf3265b8dd78cf50fd
refs/heads/master
2021-01-10T08:42:52.181269
2016-02-17T04:46:38
2016-02-17T04:46:38
50,974,514
1
0
null
null
null
null
UTF-8
C++
false
false
10,870
cxx
#include <cryptopp/sha.h> #include <cryptopp/hex.h> #include <cryptopp/aes.h> #include <cryptopp/modes.h> #include <cryptopp/salsa.h> #include <cryptopp/base64.h> #include "Crypto.h" bool Crypto::sha256(const vector<char> &input, vector<char>& output) { CryptoPP::SHA256 hash; byte digest[CryptoPP::SHA256::DIGESTSIZE]; hash.CalculateDigest(digest, reinterpret_cast<const byte*>(&input[0]), sizeof(char)*input.size()); // write output output.clear(); for(int i=0; i < sizeof(digest) / sizeof(char); i++) { output.push_back((char)digest[i]); } return true; } bool Crypto::sha256(const string &input, vector<char>& outputVec) { // make vec input vector<char> inputVec; if(!stringToVec(input, inputVec)) { return false; } // sha256(vec) return sha256(inputVec, outputVec); } bool Crypto::sha256Hex(const string &input, string& output) { // make vec input vector<char> inputVec; if(!stringToVec(input, inputVec)) { return false; } // sha256(vec) vector<char> outputVec; if(!sha256(inputVec, outputVec)) { return false; } // debug return digestToHex(outputVec, output); } bool Crypto::stringToVec(const string& str, vector<char>& vec) { std::copy( str.begin(), str.end(), std::back_inserter(vec)); return true; } bool Crypto::hexToDigest(const string& input, vector<char>& output) { output.clear(); CryptoPP::HexDecoder decoder; decoder.Put( (byte*)input.data(), input.size() ); decoder.MessageEnd(); size_t len = decoder.MaxRetrievable(); if(len > 0 && len < CRYPTO_SIZE_MAX) { output.resize(len); output.resize(len); decoder.Get((byte*)output.data(), output.size()); return true; } return false; } bool Crypto::digestToHex(const vector<char>& input, string& output) { output.clear(); CryptoPP::HexEncoder encoder; encoder.Attach( new CryptoPP::StringSink( output ) ); encoder.Put( reinterpret_cast<const byte*>(&input[0]), sizeof(char)*input.size() ); encoder.MessageEnd(); return true; } bool Crypto::sha256ByFile(const string& fileName, vector<char>& output) { // Open & load file FILE* fp = fopen(fileName.c_str(), "rb"); if(!fp) { return false; } vector<char> input; char tmp; while(1 == fread(&tmp, sizeof(char), 1, fp)) { input.push_back(tmp); } fclose(fp); return sha256(input, output); } bool Crypto::sha256HexByFile(const string& fileName, string& output) { vector<char> outputVec; if(!sha256ByFile(fileName, outputVec)) { return false; } return digestToHex(outputVec, output); } bool Crypto::aesECBEncrypt(const vector<char>& key, const vector<char>& input, vector<char>& output, uint64_t rounds) { // check key length size_t keyLen = key.size(); if(keyLen != 16 && keyLen != 24 && keyLen != 32) { return false; } // ecb inplace encrypt CryptoPP::ECB_Mode< CryptoPP::AES >::Encryption e(reinterpret_cast<const byte*>(&key[0]), key.size() * sizeof(char)); vector<char> tmpVec(input.begin(), input.end()); byte* ptr = reinterpret_cast<byte*>(&tmpVec[0]); for(size_t i=0; i<rounds; i++) { e.ProcessData(ptr, ptr, sizeof(char) * tmpVec.size()); } output.assign(tmpVec.begin(), tmpVec.end()); return true; } bool Crypto::aesECBEncryptHex(const string& key, const string& input, string& output, uint64_t rounds) { // convert key to vec vector<char> keyVec; if(!stringToVec(key, keyVec)) { return false; } // convert input to vec vector<char> inputVec; if(!stringToVec(input, inputVec)) { return false; } // aesECBEncrypt vector<char> outputVec; if(!aesECBEncrypt(keyVec, inputVec, outputVec, rounds)) { return false; } // convert to hex return digestToHex(outputVec, output); } bool Crypto::aesCBCEncrypt(const vector<char>& key, const vector<char>& iv, const vector<char>& input, vector<char>& output) { // check key length size_t keyLen = key.size(); if(keyLen != 16 && keyLen != 24 && keyLen != 32) { return false; } // check iv length if(iv.size() != 16) { return false; } // ecb inplace encrypt const byte* pKey = reinterpret_cast<const byte*>(&key[0]); const byte* pIv = reinterpret_cast<const byte*>(&iv[0]); CryptoPP::CBC_Mode< CryptoPP::AES >::Encryption e(pKey, key.size() * sizeof(char), pIv); vector<char> tmpVec(input.begin(), input.end()); byte* pTmp = reinterpret_cast<byte*>(&tmpVec[0]); e.ProcessData(pTmp, pTmp, sizeof(char) * tmpVec.size()); output.assign(tmpVec.begin(), tmpVec.end()); return true; } bool Crypto::aesCBCEncrypt(const string& key, const string& iv, const string& input, vector<char>& outputVec) { // convert key to vec vector<char> keyVec; if(!stringToVec(key, keyVec)) { return false; } // convert input to vec vector<char> inputVec; if(!stringToVec(input, inputVec)) { return false; } // convert iv to vec vector<char> ivVec; if(!stringToVec(iv, ivVec)) { return false; } // aesCBCEncrypt return aesCBCEncrypt(keyVec, ivVec, inputVec, outputVec); } bool Crypto::aesCBCEncryptHex(const string& key, const string& iv, const string& input, string& output) { // convert key to vec vector<char> keyVec; if(!stringToVec(key, keyVec)) { return false; } // convert input to vec vector<char> inputVec; if(!stringToVec(input, inputVec)) { return false; } // convert iv to vec vector<char> ivVec; if(!stringToVec(iv, ivVec)) { return false; } // aesCBCEncrypt vector<char> outputVec; if(!aesCBCEncrypt(keyVec, ivVec, inputVec, outputVec)) { return false; } // convert to hex return digestToHex(outputVec, output); } bool Crypto::aesCBCDecrypt(const vector<char>& key, const vector<char>& iv, const vector<char>& input, vector<char>& output) { // check key length size_t keyLen = key.size(); if(keyLen != 16 && keyLen != 24 && keyLen != 32) { return false; } // check iv length if(iv.size() != 16) { return false; } // ecb inplace encrypt const byte* pKey = reinterpret_cast<const byte*>(&key[0]); const byte* pIv = reinterpret_cast<const byte*>(&iv[0]); CryptoPP::CBC_Mode< CryptoPP::AES >::Decryption d(pKey, key.size() * sizeof(char), pIv); vector<char> tmpVec(input.begin(), input.end()); byte* pTmp = reinterpret_cast<byte*>(&tmpVec[0]); d.ProcessData(pTmp, pTmp, sizeof(char) * tmpVec.size()); output.assign(tmpVec.begin(), tmpVec.end()); return true; } bool Crypto::aesCBCDecrypt(const string& key, const string& iv, const vector<char>& inputVec, vector<char>& outputVec) { // convert key to vec vector<char> keyVec; if(!stringToVec(key, keyVec)) { return false; } // convert iv to vec vector<char> ivVec; if(!stringToVec(iv, ivVec)) { return false; } // aesCBCDecrypt return aesCBCDecrypt(keyVec, ivVec, inputVec, outputVec); } bool Crypto::aesCBCDecryptHex(const string& key, const string& iv, const string& input, string& output) { // convert key to vec vector<char> keyVec; if(!stringToVec(key, keyVec)) { return false; } // convert input to vec vector<char> inputVec; if(!stringToVec(input, inputVec)) { return false; } // convert iv to vec vector<char> ivVec; if(!stringToVec(iv, ivVec)) { return false; } // aesCBCDecrypt vector<char> outputVec; if(!aesCBCDecrypt(keyVec, ivVec, inputVec, outputVec)) { return false; } // convert to hex return digestToHex(outputVec, output); } bool Crypto::aesUnpad(vector<char>& data) { // empty vec won't need unpad if(data.empty()) { return false; } // get len size_t padLen = data[data.size() - 1]; // not enough data for unpad if(data.size() <= padLen) { return false; } // remove last padLen elements vector<char>::iterator itr = data.end(); std::advance(itr, -padLen); data.erase(itr, data.end()); return true; } bool Crypto::salsa20Decrypt(const vector<char>& key, const vector<char>& iv, const vector<char>& input, vector<char>& output) { // Decrypt const byte* pKey = reinterpret_cast<const byte*>(&key[0]); const byte* pIv = reinterpret_cast<const byte*>(&iv[0]); CryptoPP::Salsa20::Decryption d(pKey, key.size() * sizeof(char), pIv); vector<char> tmpVec(input.begin(), input.end()); byte* pTmp = reinterpret_cast<byte*>(&tmpVec[0]); d.ProcessData(pTmp, pTmp, sizeof(char) * tmpVec.size()); output.assign(tmpVec.begin(), tmpVec.end()); return true; } bool Crypto::salsa20Encrypt(const vector<char>& key, const vector<char>& iv, const vector<char>& input, vector<char>& output) { // Encrypt const byte* pKey = reinterpret_cast<const byte*>(&key[0]); const byte* pIv = reinterpret_cast<const byte*>(&iv[0]); CryptoPP::Salsa20::Encryption d(pKey, key.size() * sizeof(char), pIv); vector<char> tmpVec(input.begin(), input.end()); byte* pTmp = reinterpret_cast<byte*>(&tmpVec[0]); d.ProcessData(pTmp, pTmp, sizeof(char) * tmpVec.size()); output.assign(tmpVec.begin(), tmpVec.end()); return true; } bool Crypto::base64Encode(const vector<char>& input, vector<char>& output) { CryptoPP::Base64Encoder encoder; encoder.Put((byte*)input.data(), input.size()); encoder.MessageEnd(); output.clear(); size_t len = encoder.MaxRetrievable(); if(len > 0 && len < CRYPTO_SIZE_MAX) { output.resize(len); encoder.Get((byte*)output.data(), output.size()); return true; } return false; } bool Crypto::base64Decode(const vector<char>& input, vector<char>& output) { CryptoPP::Base64Decoder decoder; decoder.Put((byte*)input.data(), input.size()); decoder.MessageEnd(); output.clear(); size_t len = decoder.MaxRetrievable(); if(len > 0 && len < CRYPTO_SIZE_MAX) { output.resize(len); decoder.Get((byte*)output.data(), output.size()); return true; } return false; } bool Crypto::vecToString(const vector<char>& vec, string& str) { str.assign(vec.begin(), vec.end()); return true; } bool Crypto::xorVec(const vector<char>& aVec, const vector<char>& bVec, vector<char>& output) { // check size equals if(aVec.size() != bVec.size()) { return false; } // xor each output.clear(); for(size_t i=0; i<aVec.size(); i++) { uint8_t a = aVec[i]; uint8_t b = bVec[i]; output.push_back(b^a); } return true; }
[ "lihy@fenbi.com" ]
lihy@fenbi.com
96531d77bd67b61e12dcc200fb897616678cc420
108fc359c4b5d7138b985c5cd28126e6d7a5f146
/src/clientversion.h
32aa2e537b8fd78a4257e340947d3ed1d4cf13da
[ "MIT" ]
permissive
coinstew/coin2collegecoin
d99b5a854884866ba2c6a81ab8ca22b3ffbc1a97
f36433bc0a9c59ca029477aa37b0b82bddb14ab9
refs/heads/master
2020-03-09T20:38:54.657964
2018-04-10T22:20:33
2018-04-10T22:20:33
128,990,376
0
0
null
null
null
null
UTF-8
C++
false
false
2,235
h
// Copyright (c) 2009-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_CLIENTVERSION_H #define BITCOIN_CLIENTVERSION_H #if defined(HAVE_CONFIG_H) #include "config/coin2college-config.h" #else /** * client versioning and copyright year */ //! These need to be macros, as clientversion.cpp's and coin2college*-res.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 12 #define CLIENT_VERSION_REVISION 2 #define CLIENT_VERSION_BUILD 1 //! Set to true for release, false for prerelease or test build #define CLIENT_VERSION_IS_RELEASE true /** * Copyright year (2009-this) * Todo: update this when changing our copyright comments in the source */ #define COPYRIGHT_YEAR 2018 #endif //HAVE_CONFIG_H /** * Converts the parameter X to a string after macro replacement on X has been performed. * Don't merge these into one macro! */ #define STRINGIZE(X) DO_STRINGIZE(X) #define DO_STRINGIZE(X) #X //! Copyright string used in Windows .rc files #define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " The Bitcoin Core Developers, 2014-" STRINGIZE(COPYRIGHT_YEAR) " The Dash Core Developers, 2018-" STRINGIZE(COPYRIGHT_YEAR) " The Coin2College Core Developers" /** * coin2colleged-res.rc includes this file, but it cannot cope with real c++ code. * WINDRES_PREPROC is defined to indicate that its pre-processor is running. * Anything other than a define should be guarded below. */ #if !defined(WINDRES_PREPROC) #include <string> #include <vector> static const int CLIENT_VERSION = 1000000 * CLIENT_VERSION_MAJOR + 10000 * CLIENT_VERSION_MINOR + 100 * CLIENT_VERSION_REVISION + 1 * CLIENT_VERSION_BUILD; extern const std::string CLIENT_NAME; extern const std::string CLIENT_BUILD; extern const std::string CLIENT_DATE; std::string FormatFullVersion(); std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments); #endif // WINDRES_PREPROC #endif // BITCOIN_CLIENTVERSION_H
[ "info@coinstew.com" ]
info@coinstew.com
ed3b08406d483304e18d8974aa71f0aba815c20a
23b58413e5aa0586456ef4b593f50395955a8327
/driver_control/commands.h
6ae2736b348776026e134d6eb4f0b6430be690ec
[]
no_license
Aliowa/Motor-Driver-TTU
6a5366b8c01c05022cc0c70bcfc66149dbe10a98
3f86b1af930822bcda094ffe948677186f3fc08e
refs/heads/master
2022-04-19T11:45:07.241040
2020-04-14T09:38:25
2020-04-14T09:38:25
254,922,902
0
0
null
null
null
null
UTF-8
C++
false
false
1,942
h
#include <Arduino.h> enum Defs { threePhase, fourPhase, halfStep, fullStep, cw, ccw, }; class ExtractCommand { public: int extractMode(int); void extractManualCommand(int); void allLow(void); int setPhase(int); int setRotation(int); int setStep(int); private: const int modeMask = 0xF0; //11110000 in BIN const int commandMask[4] = {0x01, 0x02, 0x04, 0x08}; //00000001, 00000010, 00000100, 00001000 const int driverPins[4] = {40, 41, 42, 43}; const int c[4] = {4, 3, 2, 1}; }; int ExtractCommand::extractMode(int inByte) { return inByte & modeMask; } void ExtractCommand::extractManualCommand(int inByte) { for (int i = 0; i < 4; i++) { int testByte = inByte & commandMask[i]; if (testByte == commandMask[i]) digitalWrite(driverPins[i], HIGH); //Serial.println("Phase " + String(c[i]) + " HIGH"); else digitalWrite(driverPins[i], LOW); //Serial.println("Phase " + String(c[i]) + " LOW"); } } void ExtractCommand::allLow(void) { for (int i = 0; i < sizeof(driverPins); i++) digitalWrite(driverPins[i], LOW); } int ExtractCommand::setPhase(int inByte) { int testByte = inByte & commandMask[3]; if (testByte == commandMask[3]) { //Serial.println("4 phase"); return fourPhase; } else { //Serial.println("3 phase"); return threePhase; } } int ExtractCommand::setRotation(int inByte) { int testByte = inByte & commandMask[2]; if (testByte == commandMask[2]) { //Serial.println("ccw"); return ccw; } else { //Serial.println("cw"); return cw; } } int ExtractCommand::setStep(int inByte) { int testByte = inByte & commandMask[1]; if (testByte == commandMask[1]) { //Serial.println("Half step"); return halfStep; } else { //Serial.println("full Step"); return fullStep; } }
[ "noreply@github.com" ]
Aliowa.noreply@github.com
bb0569eff62871b01099de9dbea280341a459499
e066cb735cb7bcfa539999b8451f9015659a4926
/ProgrammingFinance/Homework6/Booklist.h
9395dc348cb8849a4aa5d8640ab716919e5d5bc6
[]
no_license
DazhiLi-hub/Dazhi-Project
4eef060f1d08278c7fec74dc2b9f773fbee75308
68f191832384dfb8e7b5b2a23d186c1d5956dc28
refs/heads/master
2023-07-19T08:41:02.785586
2021-09-08T07:46:39
2021-09-08T07:46:39
240,947,210
0
0
null
null
null
null
UTF-8
C++
false
false
570
h
#ifndef BOOKLIST_H #define BOOKLIST_H #include<string> #include<iostream> using namespace std; struct BookInfo { int isbnNum; string title; string author; }; class Booklist { private: BookInfo list[20]; int total_books; bool is_sorted; public: Booklist(); void printBookList() const; int Insert(); int Insert_at(); int Linear_search(); int Binary_search(); int Delete_at(); int Delete_by_ISBN(); int Selection_sort(); int Bubble_sort(); int Set_TestSet(); int Get_totalBooks() const; }; #endif
[ "61103944+DazhiLi-hub@users.noreply.github.com" ]
61103944+DazhiLi-hub@users.noreply.github.com
07914034fa2bcfd98f8e4d0a5408a310e93c4b55
bb6ebff7a7f6140903d37905c350954ff6599091
/third_party/WebKit/Source/modules/push_messaging/NavigatorPushManager.cpp
a3d7f16e940a7e379031137cf8e5da74f74293e2
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
PDi-Communication-Systems-Inc/lollipop_external_chromium_org
faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f
ccadf4e63dd34be157281f53fe213d09a8c66d2c
refs/heads/master
2022-12-23T18:07:04.568931
2016-04-11T16:03:36
2016-04-11T16:03:36
53,677,925
0
1
BSD-3-Clause
2022-12-09T23:46:46
2016-03-11T15:49:07
C++
UTF-8
C++
false
false
1,427
cpp
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "config.h" #include "modules/push_messaging/NavigatorPushManager.h" #include "core/dom/Document.h" #include "core/frame/Navigator.h" #include "modules/push_messaging/PushManager.h" namespace WebCore { NavigatorPushManager::NavigatorPushManager() { } NavigatorPushManager::~NavigatorPushManager() { } const char* NavigatorPushManager::supplementName() { return "NavigatorPushManager"; } NavigatorPushManager& NavigatorPushManager::from(Navigator& navigator) { NavigatorPushManager* supplement = static_cast<NavigatorPushManager*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName())); if (!supplement) { supplement = new NavigatorPushManager(); provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement)); } return *supplement; } PushManager* NavigatorPushManager::push(Navigator& navigator) { return NavigatorPushManager::from(navigator).pushManager(); } PushManager* NavigatorPushManager::pushManager() { if (!m_pushManager) m_pushManager = PushManager::create(); return m_pushManager.get(); } void NavigatorPushManager::trace(Visitor* visitor) { visitor->trace(m_pushManager); WillBeHeapSupplement<Navigator>::trace(visitor); } } // namespace WebCore
[ "mrobbeloth@pdiarm.com" ]
mrobbeloth@pdiarm.com
4abbab9afe0a9baba99aa69f01568951cf0e55a0
a84b013cd995870071589cefe0ab060ff3105f35
/webdriver/branches/chrome/chrome/src/cpp/include/webkit/port/bindings/v8/v8_np_utils.h
6e8290b5ea87494175d94ea5c62f525e100ddbf2
[ "Apache-2.0" ]
permissive
vdt/selenium
137bcad58b7184690b8785859d77da0cd9f745a0
30e5e122b068aadf31bcd010d00a58afd8075217
refs/heads/master
2020-12-27T21:35:06.461381
2009-08-18T15:56:32
2009-08-18T15:56:32
13,650,409
1
0
null
null
null
null
UTF-8
C++
false
false
991
h
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef v8_np_utils_h #define v8_np_utils_h #include <v8.h> #include "third_party/npapi/bindings/npruntime.h" namespace WebCore { class Frame; } // Convert a V8 Value of any type (string, bool, object, etc) to a NPVariant. void ConvertV8ObjectToNPVariant(v8::Local<v8::Value> object, NPObject *owner, NPVariant* result); // Convert a NPVariant (string, bool, object, etc) back to a V8 Value. // The owner object is the NPObject which relates to the object, if the object // is an Object. The created NPObject will be tied to the lifetime of the // owner. v8::Handle<v8::Value> ConvertNPVariantToV8Object(const NPVariant* value, NPObject* owner); // Helper function to create an NPN String Identifier from a v8 string. NPIdentifier GetStringIdentifier(v8::Handle<v8::String> str); #endif // v8_np_utils_h
[ "noel.gordon@07704840-8298-11de-bf8c-fd130f914ac9" ]
noel.gordon@07704840-8298-11de-bf8c-fd130f914ac9
e162650b82e3dd5eada4a5ed0d90045834214f8a
b77349e25b6154dae08820d92ac01601d4e761ee
/List/HeaderCtrlEx/HeaderCtrlExt.h
410e0a5417e568cdac1516c7944dbdbe2b27e96e
[]
no_license
ShiverZm/MFC
e084c3460fe78f820ff1fec46fe1fc575c3e3538
3d05380d2e02b67269d2f0eb136a3ac3de0dbbab
refs/heads/master
2023-02-21T08:57:39.316634
2021-01-26T10:18:38
2021-01-26T10:18:38
332,725,087
0
0
null
2021-01-25T11:35:20
2021-01-25T11:29:59
null
UTF-8
C++
false
false
1,202
h
#if !defined(AFX_HEADERCTRLEX1_H__8839C76A_39CB_4CD1_A9B3_D77B3E64E8C8__INCLUDED_) #define AFX_HEADERCTRLEX1_H__8839C76A_39CB_4CD1_A9B3_D77B3E64E8C8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // HeaderCtrlEx1.h : header file // ///////////////////////////////////////////////////////////////////////////// // CHeaderCtrlEx window class CHeaderCtrlEx : public CHeaderCtrl { // Construction public: CHeaderCtrlEx(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CHeaderCtrlEx) //}}AFX_VIRTUAL // Implementation public: virtual ~CHeaderCtrlEx(); // Generated message map functions protected: //{{AFX_MSG(CHeaderCtrlEx) // NOTE - the ClassWizard will add and remove member functions here. //}}AFX_MSG DECLARE_MESSAGE_MAP() virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_HEADERCTRLEX1_H__8839C76A_39CB_4CD1_A9B3_D77B3E64E8C8__INCLUDED_)
[ "w.z.y2006@163.com" ]
w.z.y2006@163.com
99426133c78dbac113bd52054c84f4948682e09f
7b7c1d9dbb9d2da7be522ea3b858066d7c527845
/Codeforces/1199D - Welfare State.cpp
81aeec6826cc221c1c0743fbf8bbf5dab7580bb0
[]
no_license
cyyself/OILife
97893cf7e1d3de61517b0ddd5e6a064700886667
9190e45c6a660bf2e1db6d08d84ddf26eccd85dc
refs/heads/master
2021-06-03T10:02:33.627522
2021-04-17T09:27:49
2021-04-17T09:27:49
101,148,852
12
0
null
null
null
null
UTF-8
C++
false
false
630
cpp
#include <bits/stdc++.h> using namespace std; int op[200005],p[200005],x[200005]; int a[200005]; int main() { int n; scanf("%d",&n); for (int i=1;i<=n;i++) scanf("%d",&a[i]); int q; scanf("%d",&q); for (int i=1;i<=q;i++) { scanf("%d",&op[i]); if (op[i] == 1) scanf("%d%d",&p[i],&x[i]); else scanf("%d",&x[i]); } int suf = 0; for (int i=q;i>=1;i--) { if (op[i] == 2) suf = max(suf,x[i]); else x[i] = max(x[i],suf); } for (int i=1;i<=n;i++) a[i] = max(suf,a[i]); for (int i=1;i<=q;i++) if (op[i] == 1) a[p[i]] = x[i]; printf("%d",a[1]); for (int i=2;i<=n;i++) printf(" %d",a[i]); printf("\n"); return 0; }
[ "noreply@github.com" ]
cyyself.noreply@github.com
9bb350e891a0ed56173d6a70d4496f8e3fbec02f
a0030770fcf21715bcfdd350db31ab3870a64174
/OE626_gsoap_call_wcf/cppClient/soapClientLib.cpp
ebf155a2bd08a031f8d22a103f4231400dbfe101
[]
no_license
gauge2009/RPC
f28aab8d79d8433b6b2c1e99859580d2ea2aa4dc
d3dc273999322af76560e6e959379c2768053673
refs/heads/master
2021-01-10T19:06:13.510363
2015-06-26T13:21:34
2015-06-26T13:21:34
38,043,175
0
0
null
null
null
null
UTF-8
C++
false
false
747
cpp
/* soapClientLib.cpp Generated by gSOAP 2.8.22 from calc.h Copyright(C) 2000-2015, Robert van Engelen, Genivia Inc. All Rights Reserved. The generated code is released under one of the following licenses: GPL or Genivia's license for commercial use. This program is released under the GPL with the additional exemption that compiling, linking, and/or using OpenSSL is allowed. */ /** Use this file in your project build instead of the two files soapC.cpp and soapClient.cpp. This hides the serializer functions and avoids linking problems when linking multiple clients and servers. */ #ifndef WITH_NOGLOBAL #define WITH_NOGLOBAL #endif #define SOAP_FMAC3 static #include "soapC.cpp" #include "soapClient.cpp" /* End of soapClientLib.cpp */
[ "promvc@live.com" ]
promvc@live.com
b8bc770fabcb16be1b21b71be9fbb1a6fa09205f
06f7b16ef886d048c1b63ba1f3bfae3020731698
/src/ssx10/test/io_mt_test.h
fe6b41b8e7814f3660106adfa555c4dbfe960c72
[ "Apache-2.0" ]
permissive
John-Chan/ssx-tester
1ac9b7e737cc6cddc304b635c3baadab5e0778a9
01faadb05ba61436e031614514ba92417bbf7e7a
refs/heads/master
2021-05-09T07:29:09.608646
2018-01-31T05:13:51
2018-01-31T05:13:51
119,361,317
0
0
null
null
null
null
UTF-8
C++
false
false
226
h
#ifndef SSX_TEST_IO_MT_TEST_H #define SSX_TEST_IO_MT_TEST_H namespace ssx { namespace testing { void run_io_mt_test(unsigned int seconds, int thread_size, bool dynamic_req); void print_run_io_mt_test_help(); } } #endif
[ "cpp_cheen@163.com" ]
cpp_cheen@163.com
60d9a137f9ca77c14d62aa8d7b4cea13e8cce911
c6073b089b98d9ea8410c8ccf9d5471cc54b8af7
/src/main.cc
f9ee4b196289791568cc956df72dbf4c1f53169e
[ "MIT" ]
permissive
zacklukem/llang
8562ce7472b5ec865de0441070fe80bf44d9560e
8538bd0deaabfca40787c709cd5dd32dd62c0c8a
refs/heads/main
2023-04-07T18:31:15.871149
2021-04-12T15:22:58
2021-04-12T15:22:58
356,061,561
2
0
null
null
null
null
UTF-8
C++
false
false
3,812
cc
// Copyright 2020 Zachary Mayhew #include "ast.hh" #include "state.hh" #include <cstddef> #include <llvm/IR/BasicBlock.h> #include <llvm/IR/Constants.h> #include <llvm/IR/DerivedTypes.h> #include <llvm/IR/Function.h> #include <llvm/IR/IRBuilder.h> #include <llvm/IR/LLVMContext.h> #include <llvm/IR/LegacyPassManager.h> #include <llvm/IR/Module.h> #include <llvm/IR/Type.h> #include <llvm/Support/FileSystem.h> #include <llvm/Support/Host.h> #include <llvm/Support/TargetRegistry.h> #include <llvm/Support/TargetSelect.h> #include <llvm/Support/raw_ostream.h> #include <llvm/Target/TargetMachine.h> #include <llvm/Target/TargetOptions.h> #include <map> #include <memory> #include <string> #include "gen.hh" #include "parser.hh" #include "verify.hh" #include <cerrno> #include <filesystem> #include <fstream> #include <iostream> #include <sstream> #include <string> static std::string get_file_contents(const char* filename) { std::ifstream in(filename, std::ios::in | std::ios::binary); if (in) { std::ostringstream contents; contents << in.rdbuf(); in.close(); return contents.str(); } throw errno; } int main(int argc, char** argv) { if (argc < 2) { std::cout << "Usage: llang <file>"; } auto file_fs = std::filesystem::path(argv[1]); std::string str = get_file_contents(file_fs.c_str()); auto source = std::make_shared<llang::Source>(str, file_fs.generic_string()); // Open a new context and module. auto ctx = std::make_unique<llvm::LLVMContext>(); auto mod = std::make_unique<llvm::Module>("my cool jit", *ctx); std::map<std::string, std::pair<llvm::AllocaInst*, llvm::Type*>> named_values; // Create a new builder for the module. auto builder = std::make_unique<llvm::IRBuilder<>>(*ctx); auto state = std::make_shared<llang::State>(std::move(ctx), std::move(mod), std::move(builder), std::move(named_values)); llang::Parser parser(source, state); auto func = parser.parseDocument(); { auto vv = std::make_shared<llang::VerifyVisitor>(state); func->accept_n(*vv.get()); } if (!source->debugPrintMessages()) { llang::GenVisitor gv(state); func->accept_n(gv); } else { return 0; } state->mod->print(llvm::errs(), nullptr); // Initialize the target registry etc. llvm::InitializeAllTargetInfos(); llvm::InitializeAllTargets(); llvm::InitializeAllTargetMCs(); llvm::InitializeAllAsmParsers(); llvm::InitializeAllAsmPrinters(); auto targetTriple = llvm::sys::getDefaultTargetTriple(); state->mod->setTargetTriple(targetTriple); std::string error; auto target = llvm::TargetRegistry::lookupTarget(targetTriple, error); // Print an error and exit if we couldn't find the requested target. // This generally occurs if we've forgotten to initialise the // TargetRegistry or we have a bogus target triple. if (!target) { llvm::errs() << error; return 1; } auto cpu = "generic"; auto features = ""; llvm::TargetOptions opt; auto rm = llvm::Optional<llvm::Reloc::Model>(); auto theTargetMachine = target->createTargetMachine(targetTriple, cpu, features, opt, rm); state->mod->setDataLayout(theTargetMachine->createDataLayout()); auto filename = file_fs.replace_extension(".o").generic_string(); std::error_code ec; llvm::raw_fd_ostream dest(filename, ec, llvm::sys::fs::OF_None); if (ec) { llvm::errs() << "Could not open file: " << ec.message(); return 1; } llvm::legacy::PassManager pass; auto fileType = llvm::CGFT_ObjectFile; if (theTargetMachine->addPassesToEmitFile(pass, dest, nullptr, fileType)) { llvm::errs() << "TheTargetMachine can't emit a file of this type"; return 1; } pass.run(*state->mod); dest.flush(); llvm::outs() << "Wrote " << filename << "\n"; }
[ "mayhew.zachary2003@gmail.com" ]
mayhew.zachary2003@gmail.com
b727dafea399acd2f401e10f54eab91edbafe39f
2ab6fbc4e16321b6b6d5f7942fed81246550a116
/omini_wheel_v1JUGAD/teach1.ino
233e85dd800198c1f7425237fde07713979301b7
[]
no_license
johnsolo/omni_wheel_bot
a5ee694245deaa777af940ee1577a34b80d95cf9
1e4225af559e8e4341fe36655c6ae623c354a1df
refs/heads/master
2021-01-23T19:26:36.578752
2018-03-26T06:59:53
2018-03-26T06:59:53
102,825,476
0
0
null
null
null
null
UTF-8
C++
false
false
2,934
ino
/////////////////////////////////////////////////////////////////////////////////////////////TEACH MODE/////////////////////////////////////////////////////////////////////////////// void teach1() { teach_flag = 1; int start_flag = 0, stop_flag = 1; memset (ble_input, '\0', sizeof(ble_input)); serial_flush(); while (teach_flag != 0) { rf_read(); ble_char = 1; flag = 0; path[0] = '\0'; ble_read(); state_(); switch (path[0]) { case 'e' : Serial.println("exit........"); //ble_serial.println("0x01teach0x1dE0x04"); teach_flag = 0; break; default: break; } if (RFID_Data == "START") { Serial.println("start"); ble_serial.print("0x01teach10x1dK0x04"); //delay(2000); //readAck(); //if(ack=='1') { forward(); delay(1000); } for_flag = 0; RFID_Data = ""; count1 = 0; stop_flag = 0; start_flag = 1; } else if (RFID_Data == "LEFT" && start_flag == 1) { Serial.println("Left"); ble_serial.print("0x01teach10x1dL0x04"); // delay(2000); // readAck(); // if(ack=='1') { left2(); delay(1000); } for_flag = 0; RFID_Data = " "; count1 = 0; } else if (RFID_Data == "FORWARD" && start_flag == 1 ) { Serial.println("forward"); // encoder(motorp, motorn, 1, 0, 8,); ble_serial.print("0x01teach10x1dF0x04"); //delay(2000); // readAck(); // if(ack=='1') { forward(); delay(1000); } for_flag = 0; RFID_Data = " "; count1 = 0; } else if (RFID_Data == "STOP" && start_flag == 1) { Serial.println("stop"); //ble_serial.println("0x01teach0x1dstop successful0x04"); ble_serial.print("0x01teach10x1dD0x04"); //encoder(motorp, motorn, 0, 1, 8); //delay(2000); // readAck(); //if(ack=='1') { stop_(); stop_flag = 1; } delay(50); ble_serial.print("0x01teach10x1dA0x04"); RFID_Data = "\0"; count1 = 0; } else if (RFID_Data == "RIGHT" && start_flag == 1 ) { Serial.println("right"); ble_serial.print("0x01teach10x1dR0x04"); //delay(2000); // readAck(); // if(ack=='1') { right2(); delay(1000); } for_flag = 0; RFID_Data = "\0"; count1 = 0; } else if (RFID_Data == "17004454A2" && start_flag == 1) { Serial.println("exit"); ble_serial.print("0x01teach10x1dE0x04"); teach_flag = 0; RFID_Data = ""; count1 = 0; } else if (start_flag == 0) { count1 = 0; RFID_Data = ""; } } teach_flag = 1; RFID_Data = ""; Serial.println("out of teach"); ble_char = 0; } ///this mode is only for for learn and teach mode
[ "john@graspio.com" ]
john@graspio.com
82ccb4e27543eb009cfcd0f3339357eac185bcbb
4458b8968ab0e7427f91d2a7471c60ee3e1245df
/2.1.1/cf17_final_b.cpp
ac1231143912d9edb2081ebacc571fe843e3f3a4
[]
no_license
knknkn1162/ant_competitive_solution
89be79bce55cec33db18ce7dd87b919c16f7a655
03c6db143a63680387614c734e77ae0c3f428b9a
refs/heads/master
2022-11-16T12:56:56.056393
2020-07-13T08:47:48
2020-07-13T08:47:48
258,682,506
2
0
null
null
null
null
UTF-8
C++
false
false
2,563
cpp
#include <iostream> // cout, endl, cin #include <string> // string, to_string, stoi #include <vector> // vector #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <utility> // pair, make_pair #include <tuple> // tuple, make_tuple #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <map> // map #include <queue> // queue, priority_queue #include <set> // set #include <stack> // stack #include <deque> // deque #include <unordered_map> // unordered_map #include <unordered_set> // unordered_set #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #define _GLIBCXX_DEBUG // check [] #define DIVISOR 1000000007 using namespace std; typedef pair<int,int> pii; typedef pair<int64_t, int64_t> pII; template<typename T> void cins(vector<T>& arr) { for(T& e: arr) cin >> e; } #ifdef DEBUG #define debug(fmt, ...) \ printf("[debug: %s] " fmt, __func__, __VA_ARGS__) #define ps(arr) \ debug("[debug: %s] ", __func__); \ for(auto e: arr) cout << e << " "; \ cout << endl; #else #define debug(fmt, ...) #define ps(arr) #endif int find(vector<int> arr, int val) { for(int i = 0; i < arr.size(); i++) { if(arr[i] == val) { return i; } } return -1; } int main(void) { string str; cin >> str; int len = str.length(); bool flag = 0; vector<int> map(3); if(len == 1) { flag = 1; goto finish; } for(int i = 0; i < str.length(); i++) { map[str[i]-'a']++; } for(int i = 0; i < 3; i++) { for(int j = 0; j < 3; j++) { // "aa" if(i == j) continue; int pprev = i; int prev = j; vector<int> abc_map(3); vector<int> mmap(map); if(!mmap[i] || !mmap[j]) continue; abc_map[pprev]++; abc_map[prev]++; mmap[pprev]--; mmap[prev]--; bool is_ok = 1; for(int k = 2; k < len; k++) { int cur = find(abc_map, 0); if(!mmap[cur]) { is_ok = 0; break; } // update abc_map[pprev]--; abc_map[cur]++; mmap[cur]--; pprev = prev; prev = cur; } debug("%c%c -> %d\n", i+'a', j+'a', is_ok); if(is_ok) { flag = 1; goto finish; } } } finish: cout << (flag ? "YES" : "NO") << endl; return 0; }
[ "knknkn1162@gmail.com" ]
knknkn1162@gmail.com
0aee1e4a004caf5286e50389fffeb1041f51a94b
f5c5afb6e8c4afc8bad23333de836fb7d607d971
/common/protocol/event/game_starts_event.h
befaa54e65f2aaaf955e1cc232b729cb5dc51fd0
[ "MIT" ]
permissive
dima1997/PORTAL_2D_copy
471fa199c2886a9e1e3b53f7796b8f4cd922099d
7618d970feded3fc05fda0c422a5d76a1d3056c7
refs/heads/master
2020-09-05T14:36:04.176004
2019-06-26T01:03:51
2019-06-26T01:03:51
220,131,617
0
0
null
null
null
null
UTF-8
C++
false
false
285
h
// // Created by franciscosicardi on 26/05/19. // #ifndef PORTAL_GAME_STARTS_EVENT_H #define PORTAL_GAME_STARTS_EVENT_H #include "event.h" class GameStartsEvent: public Event { public: GameStartsEvent(); ~GameStartsEvent() override; }; #endif //PORTAL_GAME_STARTS_EVENT_H
[ "francisco.sicardi@despegar.com" ]
francisco.sicardi@despegar.com
d736233e9ecdaabb46185cc6df1515577424025a
da7156dc56cc983a82457df15783c7778446db66
/src/gpu/vk/GrVkCaps.cpp
09798d904f1c92eb2ddcf564d37b82d4020290d4
[ "BSD-3-Clause" ]
permissive
boberfly/skia-lite
3e882fc8a8a5a61af1384b922c43ad8187a72f1e
928713a4ee8e8471127a68aba39e6bf8f0855fd8
refs/heads/master
2020-06-23T06:17:03.142216
2019-07-24T02:23:46
2019-07-24T02:23:46
198,541,826
4
1
null
null
null
null
UTF-8
C++
false
false
51,276
cpp
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/gpu/GrBackendSurface.h" #include "include/gpu/GrRenderTarget.h" #include "include/gpu/vk/GrVkBackendContext.h" #include "include/gpu/vk/GrVkExtensions.h" #include "src/gpu/GrRenderTargetProxy.h" #include "src/gpu/GrShaderCaps.h" #include "src/gpu/GrUtil.h" #include "src/gpu/SkGr.h" #include "src/gpu/vk/GrVkCaps.h" #include "src/gpu/vk/GrVkInterface.h" #include "src/gpu/vk/GrVkTexture.h" #include "src/gpu/vk/GrVkUtil.h" #ifdef SK_BUILD_FOR_ANDROID #include <sys/system_properties.h> #endif GrVkCaps::GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface* vkInterface, VkPhysicalDevice physDev, const VkPhysicalDeviceFeatures2& features, uint32_t instanceVersion, uint32_t physicalDeviceVersion, const GrVkExtensions& extensions, GrProtected isProtected) : INHERITED(contextOptions) { /************************************************************************** * GrCaps fields **************************************************************************/ fMipMapSupport = true; // always available in Vulkan fSRGBSupport = true; // always available in Vulkan fNPOTTextureTileSupport = true; // always available in Vulkan fReuseScratchTextures = true; //TODO: figure this out fGpuTracingSupport = false; //TODO: figure this out fOversizedStencilSupport = false; //TODO: figure this out fInstanceAttribSupport = true; fSemaphoreSupport = true; // always available in Vulkan fFenceSyncSupport = true; // always available in Vulkan fCrossContextTextureSupport = true; fHalfFloatVertexAttributeSupport = true; // We always copy in/out of a transfer buffer so it's trivial to support row bytes. fReadPixelsRowBytesSupport = true; fWritePixelsRowBytesSupport = true; fTransferBufferSupport = true; fMaxRenderTargetSize = 4096; // minimum required by spec fMaxTextureSize = 4096; // minimum required by spec fDynamicStateArrayGeometryProcessorTextureSupport = true; fShaderCaps.reset(new GrShaderCaps(contextOptions)); this->init(contextOptions, vkInterface, physDev, features, physicalDeviceVersion, extensions, isProtected); } static int get_compatible_format_class(GrPixelConfig config) { switch (config) { case kAlpha_8_GrPixelConfig: case kAlpha_8_as_Red_GrPixelConfig: case kGray_8_GrPixelConfig: case kGray_8_as_Red_GrPixelConfig: return 1; case kRGB_565_GrPixelConfig: case kRGBA_4444_GrPixelConfig: case kRG_88_GrPixelConfig: case kAlpha_half_GrPixelConfig: case kAlpha_half_as_Red_GrPixelConfig: case kR_16_GrPixelConfig: return 2; case kRGB_888_GrPixelConfig: return 3; case kRGBA_8888_GrPixelConfig: case kRGB_888X_GrPixelConfig: case kBGRA_8888_GrPixelConfig: case kSRGBA_8888_GrPixelConfig: case kRGBA_1010102_GrPixelConfig: case kRG_1616_GrPixelConfig: return 4; case kRGBA_half_GrPixelConfig: case kRGBA_half_Clamped_GrPixelConfig: return 5; case kRGBA_float_GrPixelConfig: return 6; case kRGB_ETC1_GrPixelConfig: return 7; case kUnknown_GrPixelConfig: case kAlpha_8_as_Alpha_GrPixelConfig: case kGray_8_as_Lum_GrPixelConfig: case kAlpha_half_as_Lum_GrPixelConfig: SK_ABORT("Unsupported Vulkan pixel config"); return 0; // Experimental (for Y416 and mutant P016/P010) case kRGBA_16161616_GrPixelConfig: return 8; case kRG_half_GrPixelConfig: return 4; } SK_ABORT("Invalid pixel config"); return 0; } bool GrVkCaps::canCopyImage(GrPixelConfig dstConfig, int dstSampleCnt, bool dstHasYcbcr, GrPixelConfig srcConfig, int srcSampleCnt, bool srcHasYcbcr) const { if ((dstSampleCnt > 1 || srcSampleCnt > 1) && dstSampleCnt != srcSampleCnt) { return false; } if (dstHasYcbcr || srcHasYcbcr) { return false; } // We require that all vulkan GrSurfaces have been created with transfer_dst and transfer_src // as image usage flags. if (get_compatible_format_class(srcConfig) != get_compatible_format_class(dstConfig)) { return false; } return true; } bool GrVkCaps::canCopyAsBlit(GrPixelConfig dstConfig, int dstSampleCnt, bool dstIsLinear, bool dstHasYcbcr, GrPixelConfig srcConfig, int srcSampleCnt, bool srcIsLinear, bool srcHasYcbcr) const { VkFormat dstFormat; SkAssertResult(GrPixelConfigToVkFormat(dstConfig, &dstFormat)); VkFormat srcFormat; SkAssertResult(GrPixelConfigToVkFormat(srcConfig, &srcFormat)); // We require that all vulkan GrSurfaces have been created with transfer_dst and transfer_src // as image usage flags. if (!this->formatCanBeDstofBlit(dstFormat, dstIsLinear) || !this->formatCanBeSrcofBlit(srcFormat, srcIsLinear)) { return false; } // We cannot blit images that are multisampled. Will need to figure out if we can blit the // resolved msaa though. if (dstSampleCnt > 1 || srcSampleCnt > 1) { return false; } if (dstHasYcbcr || srcHasYcbcr) { return false; } return true; } bool GrVkCaps::canCopyAsResolve(GrPixelConfig dstConfig, int dstSampleCnt, bool dstHasYcbcr, GrPixelConfig srcConfig, int srcSampleCnt, bool srcHasYcbcr) const { // The src surface must be multisampled. if (srcSampleCnt <= 1) { return false; } // The dst must not be multisampled. if (dstSampleCnt > 1) { return false; } // Surfaces must have the same format. if (dstConfig != srcConfig) { return false; } if (dstHasYcbcr || srcHasYcbcr) { return false; } return true; } bool GrVkCaps::onCanCopySurface(const GrSurfaceProxy* dst, const GrSurfaceProxy* src, const SkIRect& srcRect, const SkIPoint& dstPoint) const { if (src->isProtected() && !dst->isProtected()) { return false; } GrPixelConfig dstConfig = dst->config(); GrPixelConfig srcConfig = src->config(); // TODO: Figure out a way to track if we've wrapped a linear texture in a proxy (e.g. // PromiseImage which won't get instantiated right away. Does this need a similar thing like the // tracking of external or rectangle textures in GL? For now we don't create linear textures // internally, and I don't believe anyone is wrapping them. bool srcIsLinear = false; bool dstIsLinear = false; int dstSampleCnt = 0; int srcSampleCnt = 0; if (const GrRenderTargetProxy* rtProxy = dst->asRenderTargetProxy()) { // Copying to or from render targets that wrap a secondary command buffer is not allowed // since they would require us to know the VkImage, which we don't have, as well as need us // to stop and start the VkRenderPass which we don't have access to. if (rtProxy->wrapsVkSecondaryCB()) { return false; } dstSampleCnt = rtProxy->numSamples(); } if (const GrRenderTargetProxy* rtProxy = src->asRenderTargetProxy()) { // Copying to or from render targets that wrap a secondary command buffer is not allowed // since they would require us to know the VkImage, which we don't have, as well as need us // to stop and start the VkRenderPass which we don't have access to. if (rtProxy->wrapsVkSecondaryCB()) { return false; } srcSampleCnt = rtProxy->numSamples(); } SkASSERT((dstSampleCnt > 0) == SkToBool(dst->asRenderTargetProxy())); SkASSERT((srcSampleCnt > 0) == SkToBool(src->asRenderTargetProxy())); bool dstHasYcbcr = false; if (auto ycbcr = dst->backendFormat().getVkYcbcrConversionInfo()) { if (ycbcr->isValid()) { dstHasYcbcr = true; } } bool srcHasYcbcr = false; if (auto ycbcr = src->backendFormat().getVkYcbcrConversionInfo()) { if (ycbcr->isValid()) { srcHasYcbcr = true; } } return this->canCopyImage(dstConfig, dstSampleCnt, dstHasYcbcr, srcConfig, srcSampleCnt, srcHasYcbcr) || this->canCopyAsBlit(dstConfig, dstSampleCnt, dstIsLinear, dstHasYcbcr, srcConfig, srcSampleCnt, srcIsLinear, srcHasYcbcr) || this->canCopyAsResolve(dstConfig, dstSampleCnt, dstHasYcbcr, srcConfig, srcSampleCnt, srcHasYcbcr); } template<typename T> T* get_extension_feature_struct(const VkPhysicalDeviceFeatures2& features, VkStructureType type) { // All Vulkan structs that could be part of the features chain will start with the // structure type followed by the pNext pointer. We cast to the CommonVulkanHeader // so we can get access to the pNext for the next struct. struct CommonVulkanHeader { VkStructureType sType; void* pNext; }; void* pNext = features.pNext; while (pNext) { CommonVulkanHeader* header = static_cast<CommonVulkanHeader*>(pNext); if (header->sType == type) { return static_cast<T*>(pNext); } pNext = header->pNext; } return nullptr; } void GrVkCaps::init(const GrContextOptions& contextOptions, const GrVkInterface* vkInterface, VkPhysicalDevice physDev, const VkPhysicalDeviceFeatures2& features, uint32_t physicalDeviceVersion, const GrVkExtensions& extensions, GrProtected isProtected) { VkPhysicalDeviceProperties properties; GR_VK_CALL(vkInterface, GetPhysicalDeviceProperties(physDev, &properties)); VkPhysicalDeviceMemoryProperties memoryProperties; GR_VK_CALL(vkInterface, GetPhysicalDeviceMemoryProperties(physDev, &memoryProperties)); SkASSERT(physicalDeviceVersion <= properties.apiVersion); if (extensions.hasExtension(VK_KHR_SWAPCHAIN_EXTENSION_NAME, 1)) { fSupportsSwapchain = true; } if (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0) || extensions.hasExtension(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME, 1)) { fSupportsPhysicalDeviceProperties2 = true; } if (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0) || extensions.hasExtension(VK_KHR_GET_MEMORY_REQUIREMENTS_2_EXTENSION_NAME, 1)) { fSupportsMemoryRequirements2 = true; } if (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0) || extensions.hasExtension(VK_KHR_BIND_MEMORY_2_EXTENSION_NAME, 1)) { fSupportsBindMemory2 = true; } if (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0) || extensions.hasExtension(VK_KHR_MAINTENANCE1_EXTENSION_NAME, 1)) { fSupportsMaintenance1 = true; } if (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0) || extensions.hasExtension(VK_KHR_MAINTENANCE2_EXTENSION_NAME, 1)) { fSupportsMaintenance2 = true; } if (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0) || extensions.hasExtension(VK_KHR_MAINTENANCE3_EXTENSION_NAME, 1)) { fSupportsMaintenance3 = true; } if (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0) || (extensions.hasExtension(VK_KHR_DEDICATED_ALLOCATION_EXTENSION_NAME, 1) && this->supportsMemoryRequirements2())) { fSupportsDedicatedAllocation = true; } if (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0) || (extensions.hasExtension(VK_KHR_EXTERNAL_MEMORY_CAPABILITIES_EXTENSION_NAME, 1) && this->supportsPhysicalDeviceProperties2() && extensions.hasExtension(VK_KHR_EXTERNAL_MEMORY_EXTENSION_NAME, 1) && this->supportsDedicatedAllocation())) { fSupportsExternalMemory = true; } #ifdef SK_BUILD_FOR_ANDROID // Currently Adreno devices are not supporting the QUEUE_FAMILY_FOREIGN_EXTENSION, so until they // do we don't explicitly require it here even the spec says it is required. if (extensions.hasExtension( VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME, 2) && /* extensions.hasExtension(VK_EXT_QUEUE_FAMILY_FOREIGN_EXTENSION_NAME, 1) &&*/ this->supportsExternalMemory() && this->supportsBindMemory2()) { fSupportsAndroidHWBExternalMemory = true; fSupportsAHardwareBufferImages = true; } #endif auto ycbcrFeatures = get_extension_feature_struct<VkPhysicalDeviceSamplerYcbcrConversionFeatures>( features, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES); if (ycbcrFeatures && ycbcrFeatures->samplerYcbcrConversion && fSupportsAndroidHWBExternalMemory && (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0) || (extensions.hasExtension(VK_KHR_SAMPLER_YCBCR_CONVERSION_EXTENSION_NAME, 1) && this->supportsMaintenance1() && this->supportsBindMemory2() && this->supportsMemoryRequirements2() && this->supportsPhysicalDeviceProperties2()))) { fSupportsYcbcrConversion = true; } // We always push back the default GrVkYcbcrConversionInfo so that the case of no conversion // will return a key of 0. fYcbcrInfos.push_back(GrVkYcbcrConversionInfo()); if ((isProtected == GrProtected::kYes) && (physicalDeviceVersion >= VK_MAKE_VERSION(1, 1, 0))) { fSupportsProtectedMemory = true; fAvoidUpdateBuffers = true; fShouldAlwaysUseDedicatedImageMemory = true; } this->initGrCaps(vkInterface, physDev, properties, memoryProperties, features, extensions); this->initShaderCaps(properties, features); if (!contextOptions.fDisableDriverCorrectnessWorkarounds) { #if defined(SK_CPU_X86) // We need to do this before initing the config table since it uses fSRGBSupport if (kImagination_VkVendor == properties.vendorID) { fSRGBSupport = false; } #endif } if (kQualcomm_VkVendor == properties.vendorID) { // A "clear" load for the CCPR atlas runs faster on QC than a "discard" load followed by a // scissored clear. // On NVIDIA and Intel, the discard load followed by clear is faster. // TODO: Evaluate on ARM, Imagination, and ATI. fPreferFullscreenClears = true; } if (kQualcomm_VkVendor == properties.vendorID || kARM_VkVendor == properties.vendorID) { // On Qualcomm and ARM mapping a gpu buffer and doing both reads and writes to it is slow. // Thus for index and vertex buffers we will force to use a cpu side buffer and then copy // the whole buffer up to the gpu. fBufferMapThreshold = SK_MaxS32; } if (kQualcomm_VkVendor == properties.vendorID) { // On Qualcomm it looks like using vkCmdUpdateBuffer is slower than using a transfer buffer // even for small sizes. fAvoidUpdateBuffers = true; } if (kARM_VkVendor == properties.vendorID) { // ARM seems to do better with more fine triangles as opposed to using the sample mask. // (At least in our current round rect op.) fPreferTrianglesOverSampleMask = true; } this->initFormatTable(vkInterface, physDev, properties); this->initStencilFormat(vkInterface, physDev); if (!contextOptions.fDisableDriverCorrectnessWorkarounds) { this->applyDriverCorrectnessWorkarounds(properties); } this->applyOptionsOverrides(contextOptions); fShaderCaps->applyOptionsOverrides(contextOptions); } void GrVkCaps::applyDriverCorrectnessWorkarounds(const VkPhysicalDeviceProperties& properties) { if (kQualcomm_VkVendor == properties.vendorID) { fMustDoCopiesFromOrigin = true; // Transfer doesn't support this workaround. fTransferBufferSupport = false; } #if defined(SK_BUILD_FOR_WIN) if (kNvidia_VkVendor == properties.vendorID || kIntel_VkVendor == properties.vendorID) { fMustSleepOnTearDown = true; } #elif defined(SK_BUILD_FOR_ANDROID) if (kImagination_VkVendor == properties.vendorID) { fMustSleepOnTearDown = true; } #endif #if defined(SK_BUILD_FOR_ANDROID) // Protected memory features have problems in Android P and earlier. if (fSupportsProtectedMemory && (kQualcomm_VkVendor == properties.vendorID)) { char androidAPIVersion[PROP_VALUE_MAX]; int strLength = __system_property_get("ro.build.version.sdk", androidAPIVersion); if (strLength == 0 || atoi(androidAPIVersion) <= 28) { fSupportsProtectedMemory = false; } } #endif // AMD seems to have issues binding new VkPipelines inside a secondary command buffer. // Current workaround is to use a different secondary command buffer for each new VkPipeline. if (kAMD_VkVendor == properties.vendorID) { fNewCBOnPipelineChange = true; } // On Mali galaxy s7 we see lots of rendering issues when we suballocate VkImages. if (kARM_VkVendor == properties.vendorID) { fShouldAlwaysUseDedicatedImageMemory = true; } //////////////////////////////////////////////////////////////////////////// // GrCaps workarounds //////////////////////////////////////////////////////////////////////////// if (kARM_VkVendor == properties.vendorID) { fInstanceAttribSupport = false; fAvoidWritePixelsFastPath = true; // bugs.skia.org/8064 } // AMD advertises support for MAX_UINT vertex input attributes, but in reality only supports 32. if (kAMD_VkVendor == properties.vendorID) { fMaxVertexAttributes = SkTMin(fMaxVertexAttributes, 32); } //////////////////////////////////////////////////////////////////////////// // GrShaderCaps workarounds //////////////////////////////////////////////////////////////////////////// if (kImagination_VkVendor == properties.vendorID) { fShaderCaps->fAtan2ImplementedAsAtanYOverX = true; } } int get_max_sample_count(VkSampleCountFlags flags) { SkASSERT(flags & VK_SAMPLE_COUNT_1_BIT); if (!(flags & VK_SAMPLE_COUNT_2_BIT)) { return 0; } if (!(flags & VK_SAMPLE_COUNT_4_BIT)) { return 2; } if (!(flags & VK_SAMPLE_COUNT_8_BIT)) { return 4; } if (!(flags & VK_SAMPLE_COUNT_16_BIT)) { return 8; } if (!(flags & VK_SAMPLE_COUNT_32_BIT)) { return 16; } if (!(flags & VK_SAMPLE_COUNT_64_BIT)) { return 32; } return 64; } void GrVkCaps::initGrCaps(const GrVkInterface* vkInterface, VkPhysicalDevice physDev, const VkPhysicalDeviceProperties& properties, const VkPhysicalDeviceMemoryProperties& memoryProperties, const VkPhysicalDeviceFeatures2& features, const GrVkExtensions& extensions) { // So GPUs, like AMD, are reporting MAX_INT support vertex attributes. In general, there is no // need for us ever to support that amount, and it makes tests which tests all the vertex // attribs timeout looping over that many. For now, we'll cap this at 64 max and can raise it if // we ever find that need. static const uint32_t kMaxVertexAttributes = 64; fMaxVertexAttributes = SkTMin(properties.limits.maxVertexInputAttributes, kMaxVertexAttributes); // We could actually query and get a max size for each config, however maxImageDimension2D will // give the minimum max size across all configs. So for simplicity we will use that for now. fMaxRenderTargetSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX); fMaxTextureSize = SkTMin(properties.limits.maxImageDimension2D, (uint32_t)INT_MAX); if (fDriverBugWorkarounds.max_texture_size_limit_4096) { fMaxTextureSize = SkTMin(fMaxTextureSize, 4096); } // Our render targets are always created with textures as the color // attachment, hence this min: fMaxRenderTargetSize = SkTMin(fMaxTextureSize, fMaxRenderTargetSize); // TODO: check if RT's larger than 4k incur a performance cost on ARM. fMaxPreferredRenderTargetSize = fMaxRenderTargetSize; // Assuming since we will always map in the end to upload the data we might as well just map // from the get go. There is no hard data to suggest this is faster or slower. fBufferMapThreshold = 0; fMapBufferFlags = kCanMap_MapFlag | kSubset_MapFlag | kAsyncRead_MapFlag; fOversizedStencilSupport = true; if (extensions.hasExtension(VK_EXT_BLEND_OPERATION_ADVANCED_EXTENSION_NAME, 2) && this->supportsPhysicalDeviceProperties2()) { VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT blendProps; blendProps.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT; blendProps.pNext = nullptr; VkPhysicalDeviceProperties2 props; props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2; props.pNext = &blendProps; GR_VK_CALL(vkInterface, GetPhysicalDeviceProperties2(physDev, &props)); if (blendProps.advancedBlendAllOperations == VK_TRUE) { fShaderCaps->fAdvBlendEqInteraction = GrShaderCaps::kAutomatic_AdvBlendEqInteraction; auto blendFeatures = get_extension_feature_struct<VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT>( features, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT); if (blendFeatures && blendFeatures->advancedBlendCoherentOperations == VK_TRUE) { fBlendEquationSupport = kAdvancedCoherent_BlendEquationSupport; } else { // TODO: Currently non coherent blends are not supported in our vulkan backend. They // require us to support self dependencies in our render passes. // fBlendEquationSupport = kAdvanced_BlendEquationSupport; } } } } void GrVkCaps::initShaderCaps(const VkPhysicalDeviceProperties& properties, const VkPhysicalDeviceFeatures2& features) { GrShaderCaps* shaderCaps = fShaderCaps.get(); shaderCaps->fVersionDeclString = "#version 330\n"; // Vulkan is based off ES 3.0 so the following should all be supported shaderCaps->fUsesPrecisionModifiers = true; shaderCaps->fFlatInterpolationSupport = true; // Flat interpolation appears to be slow on Qualcomm GPUs. This was tested in GL and is assumed // to be true with Vulkan as well. shaderCaps->fPreferFlatInterpolation = kQualcomm_VkVendor != properties.vendorID; // GrShaderCaps shaderCaps->fShaderDerivativeSupport = true; // FIXME: http://skbug.com/7733: Disable geometry shaders until Intel/Radeon GMs draw correctly. // shaderCaps->fGeometryShaderSupport = // shaderCaps->fGSInvocationsSupport = features.features.geometryShader; shaderCaps->fDualSourceBlendingSupport = features.features.dualSrcBlend; shaderCaps->fIntegerSupport = true; shaderCaps->fVertexIDSupport = true; shaderCaps->fFPManipulationSupport = true; // Assume the minimum precisions mandated by the SPIR-V spec. shaderCaps->fFloatIs32Bits = true; shaderCaps->fHalfIs32Bits = false; shaderCaps->fMaxFragmentSamplers = SkTMin( SkTMin(properties.limits.maxPerStageDescriptorSampledImages, properties.limits.maxPerStageDescriptorSamplers), (uint32_t)INT_MAX); } bool stencil_format_supported(const GrVkInterface* interface, VkPhysicalDevice physDev, VkFormat format) { VkFormatProperties props; memset(&props, 0, sizeof(VkFormatProperties)); GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &props)); return SkToBool(VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT & props.optimalTilingFeatures); } void GrVkCaps::initStencilFormat(const GrVkInterface* interface, VkPhysicalDevice physDev) { // List of legal stencil formats (though perhaps not supported on // the particular gpu/driver) from most preferred to least. We are guaranteed to have either // VK_FORMAT_D24_UNORM_S8_UINT or VK_FORMAT_D32_SFLOAT_S8_UINT. VK_FORMAT_D32_SFLOAT_S8_UINT // can optionally have 24 unused bits at the end so we assume the total bits is 64. static const StencilFormat // internal Format stencil bits total bits packed? gS8 = { VK_FORMAT_S8_UINT, 8, 8, false }, gD24S8 = { VK_FORMAT_D24_UNORM_S8_UINT, 8, 32, true }, gD32S8 = { VK_FORMAT_D32_SFLOAT_S8_UINT, 8, 64, true }; if (stencil_format_supported(interface, physDev, VK_FORMAT_S8_UINT)) { fPreferredStencilFormat = gS8; } else if (stencil_format_supported(interface, physDev, VK_FORMAT_D24_UNORM_S8_UINT)) { fPreferredStencilFormat = gD24S8; } else { SkASSERT(stencil_format_supported(interface, physDev, VK_FORMAT_D32_SFLOAT_S8_UINT)); fPreferredStencilFormat = gD32S8; } } static bool format_is_srgb(VkFormat format) { SkASSERT(GrVkFormatIsSupported(format)); switch (format) { case VK_FORMAT_R8G8B8A8_SRGB: return true; default: return false; } } // These are all the valid VkFormats that we support in Skia. They are roughly ordered from most // frequently used to least to improve look up times in arrays. static constexpr VkFormat kVkFormats[] = { VK_FORMAT_R8G8B8A8_UNORM, VK_FORMAT_R8_UNORM, VK_FORMAT_B8G8R8A8_UNORM, VK_FORMAT_R5G6B5_UNORM_PACK16, VK_FORMAT_R16G16B16A16_SFLOAT, VK_FORMAT_R16_SFLOAT, VK_FORMAT_R8G8B8_UNORM, VK_FORMAT_R8G8_UNORM, VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_FORMAT_B4G4R4A4_UNORM_PACK16, VK_FORMAT_R4G4B4A4_UNORM_PACK16, VK_FORMAT_R32G32B32A32_SFLOAT, VK_FORMAT_R8G8B8A8_SRGB, VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK, VK_FORMAT_R16_UNORM, VK_FORMAT_R16G16_UNORM, // Experimental (for Y416 and mutant P016/P010) VK_FORMAT_R16G16B16A16_UNORM, VK_FORMAT_R16G16_SFLOAT, }; const GrVkCaps::FormatInfo& GrVkCaps::getFormatInfo(VkFormat format) const { static_assert(SK_ARRAY_COUNT(kVkFormats) == GrVkCaps::kNumVkFormats, "Size of VkFormats array must match static value in header"); for (size_t i = 0; i < SK_ARRAY_COUNT(kVkFormats); ++i) { if (kVkFormats[i] == format) { return fFormatTable[i]; } } SK_ABORT("Invalid VkFormat"); static const FormatInfo kInvalidFormat; return kInvalidFormat; } void GrVkCaps::initFormatTable(const GrVkInterface* interface, VkPhysicalDevice physDev, const VkPhysicalDeviceProperties& properties) { static_assert(SK_ARRAY_COUNT(kVkFormats) == GrVkCaps::kNumVkFormats, "Size of VkFormats array must match static value in header"); for (size_t i = 0; i < SK_ARRAY_COUNT(kVkFormats); ++i) { VkFormat format = kVkFormats[i]; if (!format_is_srgb(format) || fSRGBSupport) { fFormatTable[i].init(interface, physDev, properties, format); } } } void GrVkCaps::FormatInfo::InitConfigFlags(VkFormatFeatureFlags vkFlags, uint16_t* flags) { if (SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT & vkFlags) && SkToBool(VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT & vkFlags)) { *flags = *flags | kTextureable_Flag; // Ganesh assumes that all renderable surfaces are also texturable if (SkToBool(VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT & vkFlags)) { *flags = *flags | kRenderable_Flag; } } if (SkToBool(VK_FORMAT_FEATURE_BLIT_SRC_BIT & vkFlags)) { *flags = *flags | kBlitSrc_Flag; } if (SkToBool(VK_FORMAT_FEATURE_BLIT_DST_BIT & vkFlags)) { *flags = *flags | kBlitDst_Flag; } } void GrVkCaps::FormatInfo::initSampleCounts(const GrVkInterface* interface, VkPhysicalDevice physDev, const VkPhysicalDeviceProperties& physProps, VkFormat format) { VkImageUsageFlags usage = VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; VkImageFormatProperties properties; GR_VK_CALL(interface, GetPhysicalDeviceImageFormatProperties(physDev, format, VK_IMAGE_TYPE_2D, VK_IMAGE_TILING_OPTIMAL, usage, 0, // createFlags &properties)); VkSampleCountFlags flags = properties.sampleCounts; if (flags & VK_SAMPLE_COUNT_1_BIT) { fColorSampleCounts.push_back(1); } if (kImagination_VkVendor == physProps.vendorID) { // MSAA does not work on imagination return; } if (kIntel_VkVendor == physProps.vendorID) { // MSAA on Intel before Gen 9 is slow and/or buggy if (GrGetIntelGpuFamily(physProps.deviceID) < kFirstGen9_IntelGpuFamily) { return; } } if (flags & VK_SAMPLE_COUNT_2_BIT) { fColorSampleCounts.push_back(2); } if (flags & VK_SAMPLE_COUNT_4_BIT) { fColorSampleCounts.push_back(4); } if (flags & VK_SAMPLE_COUNT_8_BIT) { fColorSampleCounts.push_back(8); } if (flags & VK_SAMPLE_COUNT_16_BIT) { fColorSampleCounts.push_back(16); } if (flags & VK_SAMPLE_COUNT_32_BIT) { fColorSampleCounts.push_back(32); } if (flags & VK_SAMPLE_COUNT_64_BIT) { fColorSampleCounts.push_back(64); } } void GrVkCaps::FormatInfo::init(const GrVkInterface* interface, VkPhysicalDevice physDev, const VkPhysicalDeviceProperties& properties, VkFormat format) { VkFormatProperties props; memset(&props, 0, sizeof(VkFormatProperties)); GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &props)); InitConfigFlags(props.linearTilingFeatures, &fLinearFlags); InitConfigFlags(props.optimalTilingFeatures, &fOptimalFlags); if (fOptimalFlags & kRenderable_Flag) { this->initSampleCounts(interface, physDev, properties, format); } } bool GrVkCaps::isFormatSRGB(const GrBackendFormat& format) const { if (!format.getVkFormat()) { return false; } return format_is_srgb(*format.getVkFormat()); } bool GrVkCaps::isFormatTexturable(GrColorType, const GrBackendFormat& format) const { if (!format.getVkFormat()) { return false; } return this->isVkFormatTexturable(*format.getVkFormat()); } bool GrVkCaps::isVkFormatTexturable(VkFormat format) const { if (!GrVkFormatIsSupported(format)) { return false; } const FormatInfo& info = this->getFormatInfo(format); return SkToBool(FormatInfo::kTextureable_Flag & info.fOptimalFlags); } bool GrVkCaps::isConfigTexturable(GrPixelConfig config) const { VkFormat format; if (!GrPixelConfigToVkFormat(config, &format)) { return false; } return this->isVkFormatTexturable(format); } bool GrVkCaps::isFormatRenderable(VkFormat format) const { return this->maxRenderTargetSampleCount(format) > 0; } int GrVkCaps::getRenderTargetSampleCount(int requestedCount, GrColorType, const GrBackendFormat& format) const { if (!format.getVkFormat()) { return 0; } return this->getRenderTargetSampleCount(requestedCount, *format.getVkFormat()); } int GrVkCaps::getRenderTargetSampleCount(int requestedCount, GrPixelConfig config) const { // Currently we don't allow RGB_888X to be renderable because we don't have a way to handle // blends that reference dst alpha when the values in the dst alpha channel are uninitialized. if (config == kRGB_888X_GrPixelConfig) { return 0; } VkFormat format; if (!GrPixelConfigToVkFormat(config, &format)) { return 0; } return this->getRenderTargetSampleCount(requestedCount, format); } int GrVkCaps::getRenderTargetSampleCount(int requestedCount, VkFormat format) const { requestedCount = SkTMax(1, requestedCount); const FormatInfo& info = this->getFormatInfo(format); int count = info.fColorSampleCounts.count(); if (!count) { return 0; } if (1 == requestedCount) { SkASSERT(info.fColorSampleCounts.count() && info.fColorSampleCounts[0] == 1); return 1; } for (int i = 0; i < count; ++i) { if (info.fColorSampleCounts[i] >= requestedCount) { return info.fColorSampleCounts[i]; } } return 0; } int GrVkCaps::maxRenderTargetSampleCount(GrColorType, const GrBackendFormat& format) const { if (!format.getVkFormat()) { return 0; } return this->maxRenderTargetSampleCount(*format.getVkFormat()); } int GrVkCaps::maxRenderTargetSampleCount(GrPixelConfig config) const { // Currently we don't allow RGB_888X to be renderable because we don't have a way to handle // blends that reference dst alpha when the values in the dst alpha channel are uninitialized. if (config == kRGB_888X_GrPixelConfig) { return 0; } VkFormat format; if (!GrPixelConfigToVkFormat(config, &format)) { return 0; } return this->maxRenderTargetSampleCount(format); } int GrVkCaps::maxRenderTargetSampleCount(VkFormat format) const { const FormatInfo& info = this->getFormatInfo(format); const auto& table = info.fColorSampleCounts; if (!table.count()) { return 0; } return table[table.count() - 1]; } GrCaps::SurfaceReadPixelsSupport GrVkCaps::surfaceSupportsReadPixels( const GrSurface* surface) const { if (surface->isProtected()) { return SurfaceReadPixelsSupport::kUnsupported; } if (auto tex = static_cast<const GrVkTexture*>(surface->asTexture())) { // We can't directly read from a VkImage that has a ycbcr sampler. if (tex->ycbcrConversionInfo().isValid()) { return SurfaceReadPixelsSupport::kCopyToTexture2D; } // We can't directly read from a compressed format SkImage::CompressionType compressionType; if (GrVkFormatToCompressionType(tex->imageFormat(), &compressionType)) { return SurfaceReadPixelsSupport::kCopyToTexture2D; } } return SurfaceReadPixelsSupport::kSupported; } bool GrVkCaps::onSurfaceSupportsWritePixels(const GrSurface* surface) const { if (auto rt = surface->asRenderTarget()) { return rt->numSamples() <= 1 && SkToBool(surface->asTexture()); } // We can't write to a texture that has a ycbcr sampler. if (auto tex = static_cast<const GrVkTexture*>(surface->asTexture())) { // We can't directly read from a VkImage that has a ycbcr sampler. if (tex->ycbcrConversionInfo().isValid()) { return false; } } return true; } // A near clone of format_color_type_valid_pair static GrPixelConfig validate_image_info(VkFormat format, GrColorType ct, bool hasYcbcrConversion) { if (format == VK_FORMAT_UNDEFINED) { // If the format is undefined then it is only valid as an external image which requires that // we have a valid VkYcbcrConversion. if (hasYcbcrConversion) { // We don't actually care what the color type or config are since we won't use those // values for external textures. However, for read pixels we will draw to a non ycbcr // texture of this config so we set RGBA here for that. return kRGBA_8888_GrPixelConfig; } else { return kUnknown_GrPixelConfig; } } if (hasYcbcrConversion) { // We only support having a ycbcr conversion for external images. return kUnknown_GrPixelConfig; } switch (ct) { case GrColorType::kUnknown: break; case GrColorType::kAlpha_8: if (VK_FORMAT_R8_UNORM == format) { return kAlpha_8_as_Red_GrPixelConfig; } break; case GrColorType::kBGR_565: if (VK_FORMAT_R5G6B5_UNORM_PACK16 == format) { return kRGB_565_GrPixelConfig; } break; case GrColorType::kABGR_4444: if (VK_FORMAT_B4G4R4A4_UNORM_PACK16 == format || VK_FORMAT_R4G4B4A4_UNORM_PACK16 == format) { return kRGBA_4444_GrPixelConfig; } break; case GrColorType::kRGBA_8888: if (VK_FORMAT_R8G8B8A8_UNORM == format) { return kRGBA_8888_GrPixelConfig; } break; case GrColorType::kRGBA_8888_SRGB: if (VK_FORMAT_R8G8B8A8_SRGB == format) { return kSRGBA_8888_GrPixelConfig; } break; case GrColorType::kRGB_888x: if (VK_FORMAT_R8G8B8_UNORM == format) { return kRGB_888_GrPixelConfig; } if (VK_FORMAT_R8G8B8A8_UNORM == format) { return kRGB_888X_GrPixelConfig; } break; case GrColorType::kRG_88: if (VK_FORMAT_R8G8_UNORM == format) { return kRG_88_GrPixelConfig; } break; case GrColorType::kBGRA_8888: if (VK_FORMAT_B8G8R8A8_UNORM == format) { return kBGRA_8888_GrPixelConfig; } break; case GrColorType::kRGBA_1010102: if (VK_FORMAT_A2B10G10R10_UNORM_PACK32 == format) { return kRGBA_1010102_GrPixelConfig; } break; case GrColorType::kGray_8: if (VK_FORMAT_R8_UNORM == format) { return kGray_8_as_Red_GrPixelConfig; } break; case GrColorType::kAlpha_F16: if (VK_FORMAT_R16_SFLOAT == format) { return kAlpha_half_as_Red_GrPixelConfig; } break; case GrColorType::kRGBA_F16: if (VK_FORMAT_R16G16B16A16_SFLOAT == format) { return kRGBA_half_GrPixelConfig; } break; case GrColorType::kRGBA_F16_Clamped: if (VK_FORMAT_R16G16B16A16_SFLOAT == format) { return kRGBA_half_Clamped_GrPixelConfig; } break; case GrColorType::kRGBA_F32: if (VK_FORMAT_R32G32B32A32_SFLOAT == format) { return kRGBA_float_GrPixelConfig; } break; case GrColorType::kR_16: if (VK_FORMAT_R16_UNORM == format) { return kR_16_GrPixelConfig; } break; case GrColorType::kRG_1616: if (VK_FORMAT_R16G16_UNORM == format) { return kRG_1616_GrPixelConfig; } break; case GrColorType::kRGBA_16161616: if (VK_FORMAT_R16G16B16A16_UNORM == format) { return kRGBA_16161616_GrPixelConfig; } break; case GrColorType::kRG_F16: if (VK_FORMAT_R16G16_SFLOAT == format) { return kRG_half_GrPixelConfig; } break; } return kUnknown_GrPixelConfig; } GrPixelConfig GrVkCaps::validateBackendRenderTarget(const GrBackendRenderTarget& rt, GrColorType ct) const { GrVkImageInfo imageInfo; if (!rt.getVkImageInfo(&imageInfo)) { return kUnknown_GrPixelConfig; } return validate_image_info(imageInfo.fFormat, ct, imageInfo.fYcbcrConversionInfo.isValid()); } bool GrVkCaps::onAreColorTypeAndFormatCompatible(GrColorType ct, const GrBackendFormat& format) const { const VkFormat* vkFormat = format.getVkFormat(); const GrVkYcbcrConversionInfo* ycbcrInfo = format.getVkYcbcrConversionInfo(); if (!vkFormat || !ycbcrInfo) { return false; } return kUnknown_GrPixelConfig != validate_image_info(*vkFormat, ct, ycbcrInfo->isValid()); } GrPixelConfig GrVkCaps::onGetConfigFromBackendFormat(const GrBackendFormat& format, GrColorType ct) const { const VkFormat* vkFormat = format.getVkFormat(); const GrVkYcbcrConversionInfo* ycbcrInfo = format.getVkYcbcrConversionInfo(); if (!vkFormat || !ycbcrInfo) { return kUnknown_GrPixelConfig; } return validate_image_info(*vkFormat, ct, ycbcrInfo->isValid()); } static GrPixelConfig get_yuva_config(VkFormat vkFormat) { switch (vkFormat) { case VK_FORMAT_R8_UNORM: return kAlpha_8_as_Red_GrPixelConfig; case VK_FORMAT_R8G8B8A8_UNORM: return kRGBA_8888_GrPixelConfig; case VK_FORMAT_R8G8B8_UNORM: return kRGB_888_GrPixelConfig; case VK_FORMAT_R8G8_UNORM: return kRG_88_GrPixelConfig; case VK_FORMAT_B8G8R8A8_UNORM: return kBGRA_8888_GrPixelConfig; case VK_FORMAT_A2B10G10R10_UNORM_PACK32: return kRGBA_1010102_GrPixelConfig; case VK_FORMAT_R16_UNORM: return kR_16_GrPixelConfig; case VK_FORMAT_R16G16_UNORM: return kRG_1616_GrPixelConfig; // Experimental (for Y416 and mutant P016/P010) case VK_FORMAT_R16G16B16A16_UNORM: return kRGBA_16161616_GrPixelConfig; case VK_FORMAT_R16G16_SFLOAT: return kRG_half_GrPixelConfig; default: return kUnknown_GrPixelConfig; } } GrPixelConfig GrVkCaps::getYUVAConfigFromBackendFormat(const GrBackendFormat& format) const { const VkFormat* vkFormat = format.getVkFormat(); if (!vkFormat) { return kUnknown_GrPixelConfig; } return get_yuva_config(*vkFormat); } GrBackendFormat GrVkCaps::getBackendFormatFromColorType(GrColorType ct) const { GrPixelConfig config = GrColorTypeToPixelConfig(ct); if (config == kUnknown_GrPixelConfig) { return GrBackendFormat(); } VkFormat format; if (!GrPixelConfigToVkFormat(config, &format)) { return GrBackendFormat(); } return GrBackendFormat::MakeVk(format); } GrBackendFormat GrVkCaps::getBackendFormatFromCompressionType( SkImage::CompressionType compressionType) const { switch (compressionType) { case SkImage::kETC1_CompressionType: return GrBackendFormat::MakeVk(VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK); } SK_ABORT("Invalid compression type"); return {}; } bool GrVkCaps::canClearTextureOnCreation() const { return true; } #ifdef SK_DEBUG static bool format_color_type_valid_pair(VkFormat vkFormat, GrColorType colorType) { switch (colorType) { case GrColorType::kUnknown: return false; case GrColorType::kAlpha_8: return VK_FORMAT_R8_UNORM == vkFormat; case GrColorType::kBGR_565: return VK_FORMAT_R5G6B5_UNORM_PACK16 == vkFormat; case GrColorType::kABGR_4444: return VK_FORMAT_B4G4R4A4_UNORM_PACK16 == vkFormat || VK_FORMAT_R4G4B4A4_UNORM_PACK16 == vkFormat; case GrColorType::kRGBA_8888: return VK_FORMAT_R8G8B8A8_UNORM == vkFormat; case GrColorType::kRGBA_8888_SRGB: return VK_FORMAT_R8G8B8A8_SRGB == vkFormat; case GrColorType::kRGB_888x: GR_STATIC_ASSERT(GrCompressionTypeClosestColorType(SkImage::kETC1_CompressionType) == GrColorType::kRGB_888x); return VK_FORMAT_R8G8B8_UNORM == vkFormat || VK_FORMAT_R8G8B8A8_UNORM == vkFormat || VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK == vkFormat; case GrColorType::kRG_88: return VK_FORMAT_R8G8_UNORM == vkFormat; case GrColorType::kBGRA_8888: return VK_FORMAT_B8G8R8A8_UNORM == vkFormat; case GrColorType::kRGBA_1010102: return VK_FORMAT_A2B10G10R10_UNORM_PACK32 == vkFormat; case GrColorType::kGray_8: return VK_FORMAT_R8_UNORM == vkFormat; case GrColorType::kAlpha_F16: return VK_FORMAT_R16_SFLOAT == vkFormat; case GrColorType::kRGBA_F16: return VK_FORMAT_R16G16B16A16_SFLOAT == vkFormat; case GrColorType::kRGBA_F16_Clamped: return VK_FORMAT_R16G16B16A16_SFLOAT == vkFormat; case GrColorType::kRGBA_F32: return VK_FORMAT_R32G32B32A32_SFLOAT == vkFormat; case GrColorType::kR_16: return VK_FORMAT_R16_UNORM == vkFormat; case GrColorType::kRG_1616: return VK_FORMAT_R16G16_UNORM == vkFormat; // Experimental (for Y416 and mutant P016/P010) case GrColorType::kRGBA_16161616: return VK_FORMAT_R16G16B16A16_UNORM == vkFormat; case GrColorType::kRG_F16: return VK_FORMAT_R16G16_SFLOAT == vkFormat; } SK_ABORT("Unknown color type"); return false; } #endif static GrSwizzle get_swizzle(const GrBackendFormat& format, GrColorType colorType, bool forOutput) { SkASSERT(format.getVkFormat()); VkFormat vkFormat = *format.getVkFormat(); SkASSERT(format_color_type_valid_pair(vkFormat, colorType)); switch (colorType) { case GrColorType::kAlpha_8: // fall through case GrColorType::kAlpha_F16: if (forOutput) { return GrSwizzle::AAAA(); } else { return GrSwizzle::RRRR(); } case GrColorType::kGray_8: if (!forOutput) { return GrSwizzle::RRRA(); } break; case GrColorType::kABGR_4444: if (VK_FORMAT_B4G4R4A4_UNORM_PACK16 == vkFormat) { return GrSwizzle::BGRA(); } break; case GrColorType::kRGB_888x: if (!forOutput) { return GrSwizzle::RGB1(); } default: return GrSwizzle::RGBA(); } return GrSwizzle::RGBA(); } GrSwizzle GrVkCaps::getTextureSwizzle(const GrBackendFormat& format, GrColorType colorType) const { return get_swizzle(format, colorType, false); } GrSwizzle GrVkCaps::getOutputSwizzle(const GrBackendFormat& format, GrColorType colorType) const { return get_swizzle(format, colorType, true); } size_t GrVkCaps::onTransferFromOffsetAlignment(GrColorType bufferColorType) const { // This GrColorType has 32 bpp but the Vulkan pixel format we use for with may have 24bpp // (VK_FORMAT_R8G8B8_...) or may be 32 bpp. We don't support post transforming the pixel data // for transfer-from currently and don't want to have to pass info about the src surface here. if (bufferColorType == GrColorType::kRGB_888x) { return false; } size_t bpp = GrColorTypeBytesPerPixel(bufferColorType); // The VkBufferImageCopy bufferOffset field must be both a multiple of 4 and of a single texel. switch (bpp & 0b11) { // bpp is already a multiple of 4. case 0: return bpp; // bpp is a multiple of 2 but not 4. case 2: return 2 * bpp; // bpp is not a multiple of 2. default: return 4 * bpp; } } GrCaps::SupportedRead GrVkCaps::supportedReadPixelsColorType( GrColorType srcColorType, const GrBackendFormat& srcBackendFormat, GrColorType dstColorType) const { const VkFormat* vkFormat = srcBackendFormat.getVkFormat(); if (!vkFormat) { return {GrSwizzle(), GrColorType::kUnknown}; } switch (*vkFormat) { case VK_FORMAT_R8G8B8A8_UNORM: return {GrSwizzle::RGBA(), GrColorType::kRGBA_8888}; case VK_FORMAT_R8_UNORM: if (srcColorType == GrColorType::kAlpha_8) { return {GrSwizzle::RGBA(), GrColorType::kAlpha_8}; } else if (srcColorType == GrColorType::kGray_8) { return {GrSwizzle::RGBA(), GrColorType::kGray_8}; } case VK_FORMAT_B8G8R8A8_UNORM: return {GrSwizzle::RGBA(), GrColorType::kBGRA_8888}; case VK_FORMAT_R5G6B5_UNORM_PACK16: return {GrSwizzle::RGBA(), GrColorType::kBGR_565}; case VK_FORMAT_R16G16B16A16_SFLOAT: if (srcColorType == GrColorType::kRGBA_F16) { return {GrSwizzle::RGBA(), GrColorType::kRGBA_F16}; } else if (srcColorType == GrColorType::kRGBA_F16_Clamped){ return {GrSwizzle::RGBA(), GrColorType::kRGBA_F16_Clamped}; } case VK_FORMAT_R16_SFLOAT: return {GrSwizzle::RGBA(), GrColorType::kAlpha_F16}; case VK_FORMAT_R8G8B8_UNORM: return {GrSwizzle::RGBA(), GrColorType::kRGB_888x}; case VK_FORMAT_R8G8_UNORM: return {GrSwizzle::RGBA(), GrColorType::kRG_88}; case VK_FORMAT_A2B10G10R10_UNORM_PACK32: return {GrSwizzle::RGBA(), GrColorType::kRGBA_1010102}; case VK_FORMAT_B4G4R4A4_UNORM_PACK16: return {GrSwizzle::RGBA(), GrColorType::kABGR_4444}; case VK_FORMAT_R4G4B4A4_UNORM_PACK16: return {GrSwizzle::RGBA(), GrColorType::kABGR_4444}; case VK_FORMAT_R32G32B32A32_SFLOAT: return {GrSwizzle::RGBA(), GrColorType::kRGBA_F32}; case VK_FORMAT_R8G8B8A8_SRGB: return {GrSwizzle::RGBA(), GrColorType::kRGBA_8888_SRGB}; case VK_FORMAT_R16_UNORM: return {GrSwizzle::RGBA(), GrColorType::kR_16}; case VK_FORMAT_R16G16_UNORM: return {GrSwizzle::RGBA(), GrColorType::kRG_1616}; // Experimental (for Y416 and mutant P016/P010) case VK_FORMAT_R16G16B16A16_UNORM: return {GrSwizzle::RGBA(), GrColorType::kRGBA_16161616}; case VK_FORMAT_R16G16_SFLOAT: return {GrSwizzle::RGBA(), GrColorType::kRG_F16}; default: return {GrSwizzle(), GrColorType::kUnknown}; } }
[ "boberfly@gmail.com" ]
boberfly@gmail.com
e9334ed133a805ac835d68c5f00708c1b48fdd8a
167b7c038e8a5dbd005931cc1b266c19a7f1731d
/TDD/Soundex.h
ecef04aba3ac9307b40b3592a035ad65422abc8f
[]
no_license
sundalin0512/TDD
bb7e5fc5eb4467d5e7efc9d1650c9e974d9fa271
75a750c943db757b34b506ee7c2cd73d29b2b227
refs/heads/master
2021-07-20T14:44:06.458596
2017-10-29T05:07:12
2017-10-29T05:07:12
107,598,783
0
0
null
null
null
null
UTF-8
C++
false
false
1,120
h
#pragma once #ifndef Soundex_h #define Soundex_h #include <string> #include <unordered_map> class Soundex { public: std::string encode(const std::string& word) const { return zeroPad(head(word) + encodedDigits(word)); } private: static const size_t MaxCodeLength{ 4 }; std::string head(const std::string& word) const { return word.substr(0, 1); } std::string encodedDigits(const std::string& word) const { if (word.length() > 1) return encodedDigit(word[1]); return ""; } std::string zeroPad(const std::string& word) const { auto zerosNeeded = MaxCodeLength - word.length(); return word + std::string(zerosNeeded, '0'); } std::string encodedDigit(char letter) const { const std::unordered_map<char, std::string> encodings{ { 'b', "1" },{ 'f', "1" },{ 'p', "1" },{ 'v', "1" }, { 'c', "2" },{ 'g', "2" },{ 'j', "2" },{ 'k', "2" },{ 'q', "2" }, { 's', "2" },{ 'x', "2" },{ 'z', "2" }, { 'd', "3" },{ 't', "3" }, { 'l', "4" }, { 'm', "5" },{ 'n', "5" }, { 'r', "6" } }; auto it = encodings.find(letter); return it == encodings.end() ? "" : it->second; } }; #endif
[ "sundalin0512@outlook.com" ]
sundalin0512@outlook.com
05c69900f7d3604311ce412bd5daf9314149a973
4e29395020ce78f435e75e0b3f1e09b227f6f4d8
/AIProjects/tianyan/vms/vag/common/cplusplus/third_party/Ice/include/Ice/CommunicatorF.h
edf861d3c94f0bcf5ae7a6e14450343c3115b1d4
[]
no_license
luoyangustc/argus
8b332d94af331a2594f5b1715ef74a4dd98041ad
2ad0df5d7355c3b81484f6625b82530b38b248f3
refs/heads/master
2020-05-25T21:57:37.815370
2019-05-22T09:42:40
2019-05-22T09:42:40
188,005,059
5
3
null
null
null
null
UTF-8
C++
false
false
1,546
h
// ********************************************************************** // // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** // // Ice version 3.4.2 // // <auto-generated> // // Generated from file `CommunicatorF.ice' // // Warning: do not edit this file. // // </auto-generated> // #ifndef __Ice_CommunicatorF_h__ #define __Ice_CommunicatorF_h__ #include <Ice/LocalObjectF.h> #include <Ice/ProxyF.h> #include <Ice/ObjectF.h> #include <Ice/Exception.h> #include <Ice/LocalObject.h> #include <IceUtil/ScopedArray.h> #include <Ice/UndefSysMacros.h> #ifndef ICE_IGNORE_VERSION # if ICE_INT_VERSION / 100 != 304 # error Ice version mismatch! # endif # if ICE_INT_VERSION % 100 > 50 # error Beta header file detected # endif # if ICE_INT_VERSION % 100 < 2 # error Ice patch level mismatch! # endif #endif #ifndef ICE_API # ifdef ICE_API_EXPORTS # define ICE_API ICE_DECLSPEC_EXPORT # else # define ICE_API ICE_DECLSPEC_IMPORT # endif #endif namespace Ice { class Communicator; bool operator==(const Communicator&, const Communicator&); bool operator<(const Communicator&, const Communicator&); } namespace IceInternal { ICE_API ::Ice::LocalObject* upCast(::Ice::Communicator*); } namespace Ice { typedef ::IceInternal::Handle< ::Ice::Communicator> CommunicatorPtr; } #endif
[ "luoyang@qiniu.com" ]
luoyang@qiniu.com
2439a24eb54dd0e1dfdd3245ecc49f8bb5438aca
fbef8ff62158f6cfad491d51481277b928f9e75d
/raytracing/src/raytracing.cpp
26f742acb5240b169d3134561f48b783f167e10b
[]
no_license
lalagi2/rayt
dc35ef9344a843db76f306ac41c92d8255c922fc
694e3637a04ef0f1b33e530c19d84895cd131459
refs/heads/master
2021-01-01T16:39:37.250372
2013-01-15T12:54:07
2013-01-15T12:54:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
447
cpp
//============================================================================ // Name : raytracing.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include <iostream> using namespace std; int main() { cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!! return 0; }
[ "tothlajosg@gmail.com" ]
tothlajosg@gmail.com
009b739f92236940ee30a9d232402a25cddf418e
8632d68d5d1a2fd5497ea1a8ad83bfd052b63304
/headband_v0.2/Code/Headband_v02_cleaned/Interrupt.ino
5450235b595cf198738e121e1a138a1c89155f15
[]
no_license
RobotGrrl/fabacademy
dc05794143758ce5b3d0f70f15220d7f387bc5ba
24bfcb9083934beea44513ca52a44619f4baaf48
refs/heads/master
2021-01-15T17:07:01.330872
2015-07-23T16:43:48
2015-07-23T16:43:48
30,564,098
1
0
null
null
null
null
UTF-8
C++
false
false
5,745
ino
volatile int rate[10]; // array to hold last ten IBI values volatile unsigned long sampleCounter = 0; // used to determine pulse timing volatile unsigned long lastBeatTime = 0; // used to find IBI volatile int P =512; // used to find peak in pulse wave, seeded volatile int T = 512; // used to find trough in pulse wave, seeded volatile int thresh = 525; // used to find instant moment of heart beat, seeded volatile int amp = 100; // used to hold amplitude of pulse waveform, seeded volatile boolean firstBeat = true; // used to seed rate array so we startup with reasonable BPM volatile boolean secondBeat = false; // used to seed rate array so we startup with reasonable BPM void interruptSetup(){ // Initializes Timer2 to throw an interrupt every 2mS. TCCR2A = 0x02; // DISABLE PWM ON DIGITAL PINS 3 AND 11, AND GO INTO CTC MODE TCCR2B = 0x06; // DON'T FORCE COMPARE, 256 PRESCALER OCR2A = 0X7C; // SET THE TOP OF THE COUNT TO 124 FOR 500Hz SAMPLE RATE TIMSK2 = 0x02; // ENABLE INTERRUPT ON MATCH BETWEEN TIMER2 AND OCR2A sei(); // MAKE SURE GLOBAL INTERRUPTS ARE ENABLED } // THIS IS THE TIMER 2 INTERRUPT SERVICE ROUTINE. // Timer 2 makes sure that we take a reading every 2 miliseconds ISR(TIMER2_COMPA_vect){ // triggered when Timer2 counts to 124 cli(); // disable interrupts while we do this Signal = analogRead(PULSE_PIN); // read the Pulse Sensor sampleCounter += 2; // keep track of the time in mS with this variable int N = sampleCounter - lastBeatTime; // monitor the time since the last beat to avoid noise // find the peak and trough of the pulse wave if(Signal < thresh && N > (IBI/5)*3){ // avoid dichrotic noise by waiting 3/5 of last IBI if (Signal < T){ // T is the trough T = Signal; // keep track of lowest point in pulse wave } } if(Signal > thresh && Signal > P){ // thresh condition helps avoid noise P = Signal; // P is the peak } // keep track of highest point in pulse wave // NOW IT'S TIME TO LOOK FOR THE HEART BEAT // signal surges up in value every time there is a pulse if (N > 250){ // avoid high frequency noise if ( (Signal > thresh) && (Pulse == false) && (N > (IBI/5)*3) ){ Pulse = true; // set the Pulse flag when we think there is a pulse digitalWrite(BLINK_PIN,HIGH); // turn on pin 13 LED IBI = sampleCounter - lastBeatTime; // measure time between beats in mS lastBeatTime = sampleCounter; // keep track of time for next pulse if(secondBeat){ // if this is the second beat, if secondBeat == TRUE secondBeat = false; // clear secondBeat flag for(int i=0; i<=9; i++){ // seed the running total to get a realisitic BPM at startup rate[i] = IBI; } } if(firstBeat){ // if it's the first time we found a beat, if firstBeat == TRUE firstBeat = false; // clear firstBeat flag secondBeat = true; // set the second beat flag sei(); // enable interrupts again return; // IBI value is unreliable so discard it } // keep a running total of the last 10 IBI values word runningTotal = 0; // clear the runningTotal variable for(int i=0; i<=8; i++){ // shift data in the rate array rate[i] = rate[i+1]; // and drop the oldest IBI value runningTotal += rate[i]; // add up the 9 oldest IBI values } rate[9] = IBI; // add the latest IBI to the rate array runningTotal += rate[9]; // add the latest IBI to runningTotal runningTotal /= 10; // average the last 10 IBI values BPM = 60000/runningTotal; // how many beats can fit into a minute? that's BPM! QS = true; // set Quantified Self flag // QS FLAG IS NOT CLEARED INSIDE THIS ISR } } if (Signal < thresh && Pulse == true){ // when the values are going down, the beat is over digitalWrite(BLINK_PIN,LOW); // turn off pin 13 LED Pulse = false; // reset the Pulse flag so we can do it again amp = P - T; // get amplitude of the pulse wave thresh = amp/2 + T; // set thresh at 50% of the amplitude P = thresh; // reset these for next time T = thresh; } if (N > 2500){ // if 2.5 seconds go by without a beat thresh = 512; // set thresh default P = 512; // set P default T = 512; // set T default lastBeatTime = sampleCounter; // bring the lastBeatTime up to date firstBeat = true; // set these to avoid noise secondBeat = false; // when we get the heartbeat back } sei(); // enable interrupts when youre done! }// end isr
[ "erin@robotgrrl.com" ]
erin@robotgrrl.com
c505eb5769bfeb8c949621af16cd47c8aae3187c
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_5952.cpp
897d7394f1c8d437a9c04ad167e596cbadcac7b9
[]
no_license
niuxu18/logTracker-old
97543445ea7e414ed40bdc681239365d33418975
f2b060f13a0295387fe02187543db124916eb446
refs/heads/master
2021-09-13T21:39:37.686481
2017-12-11T03:36:34
2017-12-11T03:36:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
13
cpp
*fragment = 0
[ "993273596@qq.com" ]
993273596@qq.com
28ec42335b36e2a992ae754ec7df620838ab0428
248bdd698605a8b2b623fe82899eec15bc80b889
/media/webrtc/trunk/webrtc/modules/video_coding/video_codec_initializer.cc
ae6afe52418cc822294283caf64a0e15d76e3869
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Feodor2/Mypal68
64a6f8055cb22ae6183a3a018e1487a44e20886e
dc92ce6bcc8032b5311ffc4f9f0cca38411637b1
refs/heads/main
2023-08-31T00:31:47.840415
2023-08-26T10:26:15
2023-08-26T10:26:15
478,824,817
393
39
NOASSERTION
2023-06-23T04:53:57
2022-04-07T04:21:39
null
UTF-8
C++
false
false
10,100
cc
/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "modules/video_coding/include/video_codec_initializer.h" #include "common_types.h" // NOLINT(build/include) #include "common_video/include/video_bitrate_allocator.h" #include "modules/video_coding/codecs/vp8/screenshare_layers.h" #include "modules/video_coding/codecs/vp8/simulcast_rate_allocator.h" #include "modules/video_coding/codecs/vp8/temporal_layers.h" #include "modules/video_coding/include/video_coding_defines.h" #include "modules/video_coding/utility/default_video_bitrate_allocator.h" #include "rtc_base/basictypes.h" #include "rtc_base/logging.h" #include "system_wrappers/include/clock.h" namespace webrtc { namespace { bool TemporalLayersConfigured(const std::vector<VideoStream>& streams) { for (const VideoStream& stream : streams) { if (stream.temporal_layer_thresholds_bps.size() > 0) return true; } return false; } } // namespace bool VideoCodecInitializer::SetupCodec( const VideoEncoderConfig& config, const VideoSendStream::Config::EncoderSettings settings, const std::vector<VideoStream>& streams, bool nack_enabled, VideoCodec* codec, std::unique_ptr<VideoBitrateAllocator>* bitrate_allocator) { *codec = VideoEncoderConfigToVideoCodec(config, streams, settings.payload_name, settings.payload_type, nack_enabled); std::unique_ptr<TemporalLayersFactory> tl_factory; switch (codec->codecType) { case kVideoCodecVP8: { if (!codec->VP8()->tl_factory) { if (codec->mode == kScreensharing && (codec->numberOfSimulcastStreams > 1 || (codec->numberOfSimulcastStreams == 1 && codec->VP8()->numberOfTemporalLayers == 2))) { // Conference mode temporal layering for screen content. tl_factory.reset(new ScreenshareTemporalLayersFactory()); } else { // Standard video temporal layers. tl_factory.reset(new TemporalLayersFactory()); } codec->VP8()->tl_factory = tl_factory.get(); } break; } default: { // TODO(sprang): Warn, once we have specific allocators for all supported // codec types. break; } } *bitrate_allocator = CreateBitrateAllocator(*codec, std::move(tl_factory)); return true; } std::unique_ptr<VideoBitrateAllocator> VideoCodecInitializer::CreateBitrateAllocator( const VideoCodec& codec, std::unique_ptr<TemporalLayersFactory> tl_factory) { std::unique_ptr<VideoBitrateAllocator> rate_allocator; switch (codec.codecType) { case kVideoCodecVP8: { // Set up default VP8 temporal layer factory, if not provided. rate_allocator.reset( new SimulcastRateAllocator(codec, std::move(tl_factory))); } break; default: rate_allocator.reset(new DefaultVideoBitrateAllocator(codec)); } return rate_allocator; } // TODO(sprang): Split this up and separate the codec specific parts. VideoCodec VideoCodecInitializer::VideoEncoderConfigToVideoCodec( const VideoEncoderConfig& config, const std::vector<VideoStream>& streams, const std::string& payload_name, int payload_type, bool nack_enabled) { static const int kEncoderMinBitrateKbps = 30; RTC_DCHECK(!streams.empty()); RTC_DCHECK_GE(config.min_transmit_bitrate_bps, 0); VideoCodec video_codec; memset(&video_codec, 0, sizeof(video_codec)); video_codec.codecType = PayloadStringToCodecType(payload_name); switch (config.content_type) { case VideoEncoderConfig::ContentType::kRealtimeVideo: video_codec.mode = kRealtimeVideo; break; case VideoEncoderConfig::ContentType::kScreen: video_codec.mode = kScreensharing; if (!streams.empty() && streams[0].temporal_layer_thresholds_bps.size() == 1) { video_codec.targetBitrate = streams[0].temporal_layer_thresholds_bps[0] / 1000; } break; } if (config.encoder_specific_settings) config.encoder_specific_settings->FillEncoderSpecificSettings(&video_codec); switch (video_codec.codecType) { case kVideoCodecVP8: { if (!config.encoder_specific_settings) *video_codec.VP8() = VideoEncoder::GetDefaultVp8Settings(); video_codec.VP8()->numberOfTemporalLayers = static_cast<unsigned char>( streams.back().temporal_layer_thresholds_bps.size() + 1); if (nack_enabled && !TemporalLayersConfigured(streams)) { RTC_LOG(LS_INFO) << "No temporal layers and nack enabled -> resilience off"; video_codec.VP8()->resilience = kResilienceOff; } break; } case kVideoCodecVP9: { if (!config.encoder_specific_settings) *video_codec.VP9() = VideoEncoder::GetDefaultVp9Settings(); if (video_codec.mode == kScreensharing && config.encoder_specific_settings) { video_codec.VP9()->flexibleMode = true; // For now VP9 screensharing use 1 temporal and 2 spatial layers. RTC_DCHECK_EQ(1, video_codec.VP9()->numberOfTemporalLayers); RTC_DCHECK_EQ(2, video_codec.VP9()->numberOfSpatialLayers); } video_codec.VP9()->numberOfTemporalLayers = static_cast<unsigned char>( streams.back().temporal_layer_thresholds_bps.size() + 1); if (nack_enabled && !TemporalLayersConfigured(streams) && video_codec.VP9()->numberOfSpatialLayers == 1) { RTC_LOG(LS_INFO) << "No temporal or spatial layers and nack enabled -> " << "resilience off"; video_codec.VP9()->resilienceOn = false; } break; } case kVideoCodecH264: { if (!config.encoder_specific_settings) *video_codec.H264() = VideoEncoder::GetDefaultH264Settings(); break; } default: // TODO(pbos): Support encoder_settings codec-agnostically. RTC_DCHECK(!config.encoder_specific_settings) << "Encoder-specific settings for codec type not wired up."; break; } strncpy(video_codec.plName, payload_name.c_str(), kPayloadNameSize - 1); video_codec.plName[kPayloadNameSize - 1] = '\0'; video_codec.plType = payload_type; video_codec.numberOfSimulcastStreams = static_cast<unsigned char>(streams.size()); video_codec.minBitrate = streams[0].min_bitrate_bps / 1000; if (video_codec.minBitrate < kEncoderMinBitrateKbps) video_codec.minBitrate = kEncoderMinBitrateKbps; video_codec.timing_frame_thresholds = {kDefaultTimingFramesDelayMs, kDefaultOutlierFrameSizePercent}; RTC_DCHECK_LE(streams.size(), kMaxSimulcastStreams); if (video_codec.codecType == kVideoCodecVP9) { // If the vector is empty, bitrates will be configured automatically. RTC_DCHECK(config.spatial_layers.empty() || config.spatial_layers.size() == video_codec.VP9()->numberOfSpatialLayers); RTC_DCHECK_LE(video_codec.VP9()->numberOfSpatialLayers, kMaxSimulcastStreams); for (size_t i = 0; i < config.spatial_layers.size(); ++i) video_codec.spatialLayers[i] = config.spatial_layers[i]; } for (size_t i = 0; i < streams.size(); ++i) { SimulcastStream* sim_stream = &video_codec.simulcastStream[i]; RTC_DCHECK_GT(streams[i].width, 0); RTC_DCHECK_GT(streams[i].height, 0); RTC_DCHECK_GT(streams[i].max_framerate, 0); // Different framerates not supported per stream at the moment, unless it's // screenshare where there is an exception and a simulcast encoder adapter, // which supports different framerates, is used instead. if (config.content_type != VideoEncoderConfig::ContentType::kScreen) { RTC_DCHECK_EQ(streams[i].max_framerate, streams[0].max_framerate); } RTC_DCHECK_GE(streams[i].min_bitrate_bps, 0); RTC_DCHECK_GE(streams[i].target_bitrate_bps, streams[i].min_bitrate_bps); RTC_DCHECK_GE(streams[i].max_bitrate_bps, streams[i].target_bitrate_bps); RTC_DCHECK_GE(streams[i].max_qp, 0); sim_stream->width = static_cast<uint16_t>(streams[i].width); sim_stream->height = static_cast<uint16_t>(streams[i].height); sim_stream->minBitrate = streams[i].min_bitrate_bps / 1000; sim_stream->targetBitrate = streams[i].target_bitrate_bps / 1000; sim_stream->maxBitrate = streams[i].max_bitrate_bps / 1000; sim_stream->qpMax = streams[i].max_qp; // We know .rid is terminated RTC_DCHECK(strlen(streams[i].rid) < sizeof(sim_stream->rid)); strncpy(sim_stream->rid, streams[i].rid, sizeof(sim_stream->rid)); sim_stream->numberOfTemporalLayers = static_cast<unsigned char>( streams[i].temporal_layer_thresholds_bps.size() + 1); video_codec.width = std::max(video_codec.width, static_cast<uint16_t>(streams[i].width)); video_codec.height = std::max(video_codec.height, static_cast<uint16_t>(streams[i].height)); video_codec.minBitrate = std::min(static_cast<uint16_t>(video_codec.minBitrate), static_cast<uint16_t>(streams[i].min_bitrate_bps / 1000)); video_codec.maxBitrate += streams[i].max_bitrate_bps / 1000; video_codec.qpMax = std::max(video_codec.qpMax, static_cast<unsigned int>(streams[i].max_qp)); } if (video_codec.maxBitrate == 0) { // Unset max bitrate -> cap to one bit per pixel. video_codec.maxBitrate = (video_codec.width * video_codec.height * video_codec.maxFramerate) / 1000; } if (video_codec.maxBitrate < kEncoderMinBitrateKbps) video_codec.maxBitrate = kEncoderMinBitrateKbps; RTC_DCHECK_GT(streams[0].max_framerate, 0); video_codec.maxFramerate = streams[0].max_framerate; return video_codec; } } // namespace webrtc
[ "Feodor2@mail.ru@" ]
Feodor2@mail.ru@
da3156d36ac39b0f66b3336e974944a24b31079c
0887bb788a5a5686ab6b9e8b481db7539542f304
/SLinkedList.hpp
3979e4d8df736afd1682780fa32545d37990f882
[]
no_license
yudistrange/TrashCan
62a54dbc0e0ef0aa0c971dd84228dd569cfcbb74
007fd4dfde3cbd3794b1c8c1afcd89ceeba80d26
refs/heads/master
2021-01-01T19:30:58.330646
2013-10-06T16:34:51
2013-10-06T16:34:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
369
hpp
struct Snode { int val; Snode * next; }; class SLinkedList { private: Snode * head; int size; public: SLinkedList (); Snode * getHead (); void hInsert (int i); void tInsert (int i); void pInsert (int i, int pos); void Delete (int i); void pDelete (int pos); int Search (int i); int binSearch (int i); Snode * nSearch (int i); };
[ "yudistrange@gmail.com" ]
yudistrange@gmail.com
16252c2486a83c471f6c7811f600da5600297a38
c9747b061835fb5e5d5e9788f957f622d48552db
/ArrayStack.h
7377f4a41ae13a2539c4ce9f8f11452001bbef24
[]
no_license
s3dawyXD/DataStructure
513bdad1e6f1aa2000a60a3e878f8d24ebbbee5b
3ba629ea11ee2843dbb004333e262b6fc40322ac
refs/heads/master
2022-06-05T02:58:08.144013
2020-04-29T21:31:34
2020-04-29T21:31:34
260,047,304
0
0
null
null
null
null
UTF-8
C++
false
false
369
h
#ifndef __ARRAY_STACK_H__ #define __ARRAY_STACK_H__ #define DEF_CAP (100) //template<typename E> typedef int E; class ArrayStack { private: E* S; int t; int capacity; public: ArrayStack(int cap = DEF_CAP); ~ArrayStack(); int size()const; bool empty()const; void push(const E & e); void pop(); const E & top()const; }; #endif
[ "m1hamed98@gmail.com" ]
m1hamed98@gmail.com
8c499039906e7b6a4e3ee344d905ac6008efe0b7
18b853b83ed6fff6a44b30a3a4c85ae48a123420
/Ch1/1_1.cpp
34f0ce01649d0ad01c98e1b80b593cd4dcba44b2
[]
no_license
qwuaren/AppliedProgramming2019
02c7a31c0a2a5e6cfb6be0558189edd6d4cceb7f
cbde1241d353493bffe7b5244da9165842995050
refs/heads/master
2022-07-12T11:15:00.288470
2020-05-11T07:53:58
2020-05-11T07:53:58
256,882,329
0
0
null
null
null
null
UTF-8
C++
false
false
103
cpp
#include <iostream> int main(int argc, char* argv[]) { std::cout << "Hello world\n"; return 0; }
[ "karenalavi@gmail.com" ]
karenalavi@gmail.com
17b52bd9f87d8a806fb283faaffaab379f584b6f
efcc9ecde592f2db0e5de4ff9737176a422d00e3
/Src/TabPageSerialportAssistant/SerialportSAKIODeviceControler.hh
242c6fc4ea7169abf0a078ab850b7f99e33b1ca9
[]
no_license
xujin961129/Kits
86b7373e4367b641d0a8ffcdc316a6cf52df6456
315f3070b1f9e227e4395ca7865eb3b7ff3afe66
refs/heads/master
2020-07-11T03:48:57.557781
2019-08-26T09:13:39
2019-08-26T09:13:39
204,438,592
5
2
null
null
null
null
UTF-8
C++
false
false
1,043
hh
/******************************************************************************* * The file is encoding with utf-8 (with BOM) * * I write the comment with English, it's not because that I'm good at English, * but for "installing B". * * Copyright (C) 2018-2018 wuhai persionnal. All rights reserved. *******************************************************************************/ #ifndef SERIALPORTSAKIODEVICECONTROLER_HH #define SERIALPORTSAKIODEVICECONTROLER_HH #include "SAKIODeviceControler.hh" namespace Ui{ class SerialportSAKIODeviceControler; } class SerialportSAKIODeviceControler: public SAKIODeviceControler { Q_OBJECT public: SerialportSAKIODeviceControler(QWidget *parent = Q_NULLPTR); ~SerialportSAKIODeviceControler(); virtual void afterDeviceOpen(); virtual void afterDeviceClose(); public slots: virtual void open(); virtual void refresh(); private: Ui::SerialportSAKIODeviceControler *ui = nullptr; /// ----------------------------------------------- void initUI(); }; #endif
[ "xujin961129.@163.com" ]
xujin961129.@163.com
357a2b84d86643ced47cfa8f4027b93c4dbd38e1
2357eaf1295fd78a53d2aa826672d3891994ef1f
/src/pathtracer/primitive.hpp
d0200395fc704142992812a1532fc9e97e6eb8e9
[]
no_license
ennis/path-tracer
36def0289dbb4b83429da761d2457e4e7d78e79d
88d40fcc111712d14c22b0dc536d35b92353f475
refs/heads/master
2020-06-02T13:21:25.170124
2015-04-18T16:13:50
2015-04-18T16:13:50
33,879,414
0
0
null
null
null
null
UTF-8
C++
false
false
6,088
hpp
#ifndef PRIMITIVE_HPP #define PRIMITIVE_HPP #include "vec.hpp" #include "bbox.hpp" #include "texture.hpp" #include "transform.hpp" #include "ray.hpp" #include <iostream> class Primitive; class Material; //================================== // Intersection struct Intersection { // Primitive at hit point Primitive const *primitive; // incoming ray direction Vec WoW; // distance travelled along the ray float t; // hit point Point P; // Local base Vec N, T, S; // Texture coordinates float u, v; inline Vec toLocal(Vec const& VW) const { return Vec(dot(T,VW), dot(S,VW), dot(N,VW)); } inline Vec toWorld(Vec const& VL) const { return VL.x() * T + VL.y() * S + VL.z() * N; } // Lambertian, phong: Sampled texture Vec texSample; }; enum LightSamplingStrategy { SOLID_ANGLE, AREA_LIGHT, POINT_LIGHT }; struct OcclusionTest { float maxt; Ray shadow; }; //================================== // Emitter class Emitter { public: // sample the light virtual Vec sampleLight(Point const &P, float u1, float u2, Vec &WiW, float &pdf, float &maxt) const { return Vec(); } protected: }; //================================== // PointLight class PointLight : public Emitter { public: PointLight(Point const &at, Vec const &emittance) : m_point(at), m_emittance(emittance) {} virtual Vec sampleLight(Point const &P, float u1, float u2, Vec &WiW, float &pdf, float &maxt) const { Vec D = m_point - P; float d2 = dot(D, D); maxt = sqrtf(d2); WiW = D / maxt; pdf = 1.f; return m_emittance / d2; //std::clog << E << '\n'; } protected: Point m_point; Vec m_emittance; }; //================================== // Primitive class Primitive : public Emitter { public: Primitive( Transform const *transform, Material const *material, Vec const &emittance) : m_transform(transform), m_material(material), m_emittance(emittance) {} virtual ~Primitive() {} /* * Compute intersection point with primitive * If isect is NULL, only a predicate is returned */ virtual bool intersect(Ray const& ray, Intersection& isect) const = 0; Material const *getMaterial() const { return m_material; } Vec const &getEmittance() const { return m_emittance; } protected: AABB m_aabb; Transform const *m_transform; Material const *m_material; Vec m_emittance; }; static inline void sphereUV(Vec const& N, float &u, float &v) { // UV parameters u = 0.5f + atan2f(N.z(), N.x()) / (2 * M_PI); v = 0.5f + 2.f * asinf(N.y()) / (2 * M_PI); } class Sphere : public Primitive { public: Sphere(Point const& center, float radius, Transform const *transform, Material const *material, Vec const &emittance) : Primitive(transform, material, emittance), m_center(center), m_radius(radius) { // TODO AABBs /*m_aabb = AABB(Point(-radius, -radius, -radius), Point(radius, radius, radius)); if (transform != NULL) { m_aabb = transformAABB(*transform, m_aabb); }*/ } virtual ~Sphere() {} virtual bool intersect(Ray const& R, Intersection& isect) const { // Ray to object space Vec RO = R.O - m_center; // Compute A, B and C coefficients float a = dot(R.D, R.D); float b = 2 * dot(R.D, RO); float c = dot(RO, RO) - (m_radius * m_radius); //std::clog << a << ' ' << b << ' ' << c << std::endl; // Find discriminant float disc = b*b - 4*a*c; // if discriminant is negative there are no real roots, so return // false as R misses sphere if (disc < 0) return false; //std::clog << disc << std::endl; // compute q as described above float discSqrt = sqrtf(disc); float q; if (b < 0.f) { q = -0.5f * (b - discSqrt); } else { q = -0.5f * (b + discSqrt); } float t0 = q / a; float t1 = c / q; if (t0 > t1) { std::swap(t0, t1); } if (t1 < EPSILON) return false; if (t0 < EPSILON) { isect.t = t1; } else { isect.t = t0; } isect.P = R.along(isect.t); isect.N = (isect.P - m_center).normalized(); //isect.P += EPSILON * isect.N; // UV parameters sphereUV(isect.N, isect.u, isect.v); genOrtho(isect.N, isect.S, isect.T); isect.primitive = this; return true; } virtual Vec sampleLight(Point const &P, float u1, float u2, Vec &WiW, float &pdf, float &maxt) const { Vec D = m_center - P; Vec N = D.normalized(); float d2 = dot(D, D); // apparent angle float cos_max = sqrtf(1.f - (m_radius*m_radius / d2)); // solid angle float omega = 2*M_PI*(1-cos_max); // generate a ray Vec T,S; genOrtho(N, T, S); float phi = 2*M_PI*u1; float v = 1.f - u2 * (1 - cos_max); float w = sqrt(1 - v*v); WiW = cos(phi) * w * T + sin(phi) * w * S + v * N; Ray R = Ray(P, WiW); Intersection test; if (!intersect(R, test)) { //std::clog << "GRAZE.\n"; pdf = 1.f / omega; return Vec(); } maxt = (P - test.P).norm(); pdf = 1.f / omega; return m_emittance; //pdf = omega / (4.0f * M_PI); // INV_TWOPI //std::clog << omega << '\t' << pdf << '\n'; } protected: Point m_center; float m_radius; }; class Plane : public Primitive { public: Plane(Point const& center, Vec const& normal, Transform const *transform, Material *material, Vec const &emittance) : Primitive(transform, material, emittance), m_center(center), m_normal(normal) {} virtual ~Plane() {} virtual bool intersect(Ray const& R, Intersection& isect) const { if (fabs(dot(R.D, m_normal)) < EPSILON) { return false; } else { isect.t = dot(m_center - R.O, m_normal) / dot(R.D, m_normal); if (isect.t < EPSILON) { return false; } } isect.N = m_normal; // TODO factorize genOrtho(isect.N, isect.S, isect.T); isect.P = R.O + isect.t * R.D; isect.primitive = this; Vec PL = isect.toLocal(isect.P); isect.u = (PL.x() < 0.f) ? (1.f - fmodf(abs(PL.x()), 1.f)) : fmodf(PL.x(), 1.f); isect.v = (PL.y() < 0.f) ? (1.f - fmodf(abs(PL.y()), 1.f)) : fmodf(PL.y(), 1.f); return true; } virtual void sample(Point const& O, Intersection &isect, float &pdf) const { // TODO } protected: Point m_center; Vec m_normal; }; #endif
[ "blerona@telesun.imag.fr" ]
blerona@telesun.imag.fr
f660542aa68bd4420c8c3ff4b93644c77b85e05e
33d33eb0a459f8fd5f3fbd5f3e2ff95cbb804f64
/256.paint-house.104480883.ac.cpp
f5d7c48d1f0929dcc7caacc3d4c46c0db55d3a89
[]
no_license
wszk1992/LeetCode-Survival-Notes
7b4b7c9b1a5b7251b8053111510e2cefa06a0390
01f01330964f5c2269116038d0dde0370576f1e4
refs/heads/master
2021-01-01T17:59:32.945290
2017-09-15T17:57:40
2017-09-15T17:57:40
98,215,658
1
0
null
null
null
null
UTF-8
C++
false
false
469
cpp
class Solution { public: int minCost(vector<vector<int>>& costs) { int n = costs.size(); vector<vector<int>> dp(n+1, vector<int>(3, 0)); for(int i = 1; i <= n; i++) { dp[i][0] = min(dp[i-1][1],dp[i-1][2]) + costs[i-1][0]; dp[i][1] = min(dp[i-1][0],dp[i-1][2]) + costs[i-1][1]; dp[i][2] = min(dp[i-1][0],dp[i-1][1]) + costs[i-1][2]; } return min(min(dp[n][0], dp[n][1]), dp[n][2]); } };
[ "wszk1992@gmail.com" ]
wszk1992@gmail.com
4353a65f434b4d98c1fb56d3a43959f3c167d1b7
29716cb863c320e041316542c725463698e17c00
/horner.cpp
fe1ca7d0e205681a45cdad8e318c9931eaadb078
[]
no_license
generalis/pi
4e9a9d240b5bb728854879c52bbb4b77f59185c5
6244824dcc948c4f2708c9527d5a3eaf1f5f9574
refs/heads/master
2020-05-05T03:39:25.227572
2019-04-05T13:01:52
2019-04-05T13:01:52
179,681,375
0
0
null
null
null
null
UTF-8
C++
false
false
2,999
cpp
#include <iostream> #include <sstream> using namespace std; namespace patch { template < typename T > std::string to_string( const T& n ) { std::ostringstream stm ; stm << n ; return stm.str() ; } } #include <bits/stdc++.h> using namespace std; // Multiplies str1 and str2, and prints result. string iloczyn(string num1, string num2) { int n1 = num1.size(); int n2 = num2.size(); if (n1 == 0 || n2 == 0) return "0"; // will keep the result number in vector // in reverse order vector<int> result(n1 + n2, 0); // Below two indexes are used to find positions // in result. int i_n1 = 0; int i_n2 = 0; // Go from right to left in num1 for (int i=n1-1; i>=0; i--) { int carry = 0; int n1 = num1[i] - '0'; // To shift position to left after every // multiplication of a digit in num2 i_n2 = 0; // Go from right to left in num2 for (int j=n2-1; j>=0; j--) { // Take current digit of second number int n2 = num2[j] - '0'; // Multiply with current digit of first number // and add result to previously stored result // at current position. int sum = n1*n2 + result[i_n1 + i_n2] + carry; // Carry for next iteration carry = sum/10; // Store result result[i_n1 + i_n2] = sum % 10; i_n2++; } // store carry in next cell if (carry > 0) result[i_n1 + i_n2] += carry; // To shift position to left after every // multiplication of a digit in num1. i_n1++; } // ignore '0's from the right int i = result.size() - 1; while (i>=0 && result[i] == 0) i--; // If all were '0's - means either both or // one of num1 or num2 were '0' if (i == -1) return "0"; // generate the result string string s = ""; while (i >= 0) s += patch::to_string(result[i--]); return s; } string dodaj(string a, string b) { if(a.size() < b.size()) swap(a, b); int j = a.size()-1; for(int i=b.size()-1; i>=0; i--, j--) a[j]+=(b[i]-'0'); for(int i=a.size()-1; i>0; i--) { if(a[i] > '9') { int d = a[i]-'0'; a[i-1] = ((a[i-1]-'0') + d/10) + '0'; a[i] = (d%10)+'0'; } } if(a[0] > '9') { string k; k+=a[0]; a[0] = ((a[0]-'0')%10)+'0'; k[0] = ((k[0]-'0')/10)+'0'; a = k+a; } return a; } //wielomian L(k)=960k^2+1208k+376 string L[3]={"960","1208","376"}; //wielomian M(k)=4096k^4+8192k^3+5696k^2+1552k+120 string M[5]={"4096","8192","5696","1552","120"}; //poprawnie liczy na liczbach całkowitych dodatnich int main() { string k="0", licznik, mianownik; cout << "k="; cin >> k; int i; i=0; licznik = "0"; while(i<=2) { licznik = dodaj(iloczyn(licznik,k) , L[i] ); //cout << k << endl; i++; } cout << licznik << endl; i=0; mianownik = "0"; while(i<=4) { mianownik = dodaj(iloczyn(mianownik,k) , M[i] ); i++; } cout << mianownik << endl; return 0; }
[ "swiftmailer9@gmail.com" ]
swiftmailer9@gmail.com
aca05c8b4c71812b3e5ea58b7abf581f3362eec1
8ff8051031301e9a26a8af298b0d8eb1ab70d319
/dev/working/Command.cpp
d1ebd000cf02dd70cfea6039e8dfe076a6dc50f4
[]
no_license
NRWB/css343-lab04
081415fd77272480b96f522e310f2b45fccb6b74
d4c7029f294a608aa6a3302eb979cfe8ab0bb566
refs/heads/master
2021-01-10T20:40:01.898659
2014-12-01T05:10:54
2014-12-01T05:10:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
226
cpp
#include "Command.h" Command::Command() { cmdName = ""; } Command::~Command() { // } void Command::setName(const string value) { // cmdName = value; } string Command::getName() const { return cmdName; }
[ "nick.bell7@live.com" ]
nick.bell7@live.com
fb3e95c373fe5eabaa5a578c264db884394041bd
f2c1aec43c2ea768ca7d7513d7803d6f4e1b63aa
/Numerical integration/funzione.h
9506b6c99128bd41dab623c4c83803de7418b2ad
[]
no_license
marcello-negri/ExperimentalDataProcessing
1d7810050db2560ad0faa5c848e687240d5d1c0e
093f9d8790f89a37d14719d88e222583c1b46ec9
refs/heads/main
2023-01-03T07:28:20.599948
2020-10-30T18:09:38
2020-10-30T18:09:38
308,334,958
0
0
null
null
null
null
UTF-8
C++
false
false
735
h
#ifndef _FUNZIONE_H #define _FUNZIONE_H #include <cmath> class FunzioneBase { public: virtual double Eval (double x) const =0; }; class Parabola: public FunzioneBase { public: Parabola(); Parabola (double a, double b, double c); ~Parabola(); virtual double Eval (double x) const; void SetA(double a){m_a=a;}; void SetB(double b){m_b=b;}; void SetC(double c){m_c=c;}; double GetA() const {return m_a;}; double GetB() const {return m_b;}; double GetC() const {return m_c;}; private: double m_a, m_b, m_c; }; class Seno: public FunzioneBase { public: Seno(double A, double omega); Seno(); ~Seno(); virtual double Eval(double x)const; private: double m_A, m_omega; }; #endif
[ "noreply@github.com" ]
marcello-negri.noreply@github.com
c659fc1d7a7443a59231243cb615105acea97c13
486b04913fd541a82cd012f0e2aa4c1d5a47c094
/工程/XcodeGlutDemo/XcodeGlutDemo/GL_TOOL/include/GLBatch.cpp
12538dc63aac30aa135859d73c7fdd7d0ad26a06
[]
no_license
lishaizhe/knowledge
58c38925aea997d4bb1e6d2bbdfd6a0717829c2f
d3bf05cf33f75bb525539fcc7f23e0afcb19034a
refs/heads/master
2023-06-27T10:52:54.754644
2023-06-13T13:59:09
2023-06-13T13:59:09
49,691,073
4
0
null
null
null
null
UTF-8
C++
false
false
17,151
cpp
/* GLBatch.cpp Copyright (c) 2009, Richard S. Wright Jr. GLTools Open Source Library All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of Richard S. Wright Jr. nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef __GLT_BATCH #define __GLT_BATCH #include "GLBatch.h" #include "GLShaderManager.h" //////////////////////// TEMPORARY TEMPORARY TEMPORARY - On SnowLeopard this is suppored, but GLEW doens't hook up properly //////////////////////// Fixed probably in 10.6.3 #ifdef __APPLE__ #define glGenVertexArrays glGenVertexArraysAPPLE #define glDeleteVertexArrays glDeleteVertexArraysAPPLE #define glBindVertexArray glBindVertexArrayAPPLE #endif /////////////////////// OpenGL ES support on iPhone/iPad #ifdef OPENGL_ES #define GL_WRITE_ONLY GL_WRITE_ONLY_OES #define glMapBuffer glMapBufferOES #define glUnmapBuffer glUnmapBufferOES #endif GLBatch::GLBatch(void): nNumTextureUnits(0), nNumVerts(0), pVerts(NULL), pNormals(NULL), pColors(NULL), pTexCoords(NULL), uiVertexArray(0), uiNormalArray(0), uiColorArray(0), vertexArrayObject(0), bBatchDone(false), nVertsBuilding(0), uiTextureCoordArray(NULL) { } GLBatch::~GLBatch(void) { // Vertex buffer objects if(uiVertexArray != 0) glDeleteBuffers(1, &uiVertexArray); if(uiNormalArray != 0) glDeleteBuffers(1, &uiNormalArray); if(uiColorArray != 0) glDeleteBuffers(1, &uiColorArray); for(unsigned int i = 0; i < nNumTextureUnits; i++) glDeleteBuffers(1, &uiTextureCoordArray[i]); #ifndef OPENGL_ES glDeleteVertexArrays(1, &vertexArrayObject); #endif delete [] uiTextureCoordArray; delete [] pTexCoords; } // Start the primitive batch. void GLBatch::Begin(GLenum primitive, GLuint nVerts, GLuint nTextureUnits) { primitiveType = primitive; nNumVerts = nVerts; if(nTextureUnits > 4) // Limit to four texture units nTextureUnits = 4; nNumTextureUnits = nTextureUnits; if(nNumTextureUnits != 0) { uiTextureCoordArray = new GLuint[nNumTextureUnits]; // An array of pointers to texture coordinate arrays pTexCoords = new M3DVector2f*[nNumTextureUnits]; for(unsigned int i = 0; i < nNumTextureUnits; i++) { uiTextureCoordArray[i] = 0; pTexCoords[i] = NULL; } } // Vertex Array object for this Array #ifndef OPENGL_ES glGenVertexArrays(1, &vertexArrayObject); glBindVertexArray(vertexArrayObject); #endif } // Block Copy in vertex data void GLBatch::CopyVertexData3f(M3DVector3f *vVerts) { // First time, create the buffer object, allocate the space if(uiVertexArray == 0) { glGenBuffers(1, &uiVertexArray); glBindBuffer(GL_ARRAY_BUFFER, uiVertexArray); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 3 * nNumVerts, vVerts, GL_DYNAMIC_DRAW); } else { // Just bind to existing object glBindBuffer(GL_ARRAY_BUFFER, uiVertexArray); // Copy the data in glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(GLfloat) * 3 * nNumVerts, vVerts); pVerts = NULL; } } // Block copy in normal data void GLBatch::CopyNormalDataf(M3DVector3f *vNorms) { // First time, create the buffer object, allocate the space if(uiNormalArray == 0) { glGenBuffers(1, &uiNormalArray); glBindBuffer(GL_ARRAY_BUFFER, uiNormalArray); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 3 * nNumVerts, vNorms, GL_DYNAMIC_DRAW); } else { // Just bind to existing object glBindBuffer(GL_ARRAY_BUFFER, uiNormalArray); // Copy the data in glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(GLfloat) * 3 * nNumVerts, vNorms); pNormals = NULL; } } void GLBatch::CopyColorData4f(M3DVector4f *vColors) { // First time, create the buffer object, allocate the space if(uiColorArray == 0) { glGenBuffers(1, &uiColorArray); glBindBuffer(GL_ARRAY_BUFFER, uiColorArray); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 4 * nNumVerts, vColors, GL_DYNAMIC_DRAW); } else { // Just bind to existing object glBindBuffer(GL_ARRAY_BUFFER, uiColorArray); // Copy the data in glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(GLfloat) * 4 * nNumVerts, vColors); pColors = NULL; } } void GLBatch::CopyTexCoordData2f(M3DVector2f *vTexCoords, GLuint uiTextureLayer) { // First time, create the buffer object, allocate the space if(uiTextureCoordArray[uiTextureLayer] == 0) { glGenBuffers(1, &uiTextureCoordArray[uiTextureLayer]); glBindBuffer(GL_ARRAY_BUFFER, uiTextureCoordArray[uiTextureLayer]); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 2 * nNumVerts, vTexCoords, GL_DYNAMIC_DRAW); } else { // Just bind to existing object glBindBuffer(GL_ARRAY_BUFFER, uiTextureCoordArray[uiTextureLayer]); // Copy the data in glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(GLfloat) * 2 * nNumVerts, vTexCoords); pTexCoords[uiTextureLayer] = NULL; } } // Bind everything up in a little package void GLBatch::End(void) { #ifndef OPENGL_ES // Check to see if items have been added one at a time if(pVerts != NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiVertexArray); glUnmapBuffer(GL_ARRAY_BUFFER); pVerts = NULL; } if(pColors != NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiColorArray); glUnmapBuffer(GL_ARRAY_BUFFER); pColors = NULL; } if(pNormals != NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiNormalArray); glUnmapBuffer(GL_ARRAY_BUFFER); pNormals = NULL; } for(unsigned int i = 0; i < nNumTextureUnits; i++) if(pTexCoords[i] != NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiTextureCoordArray[i]); glUnmapBuffer(GL_ARRAY_BUFFER); pTexCoords[i] = NULL; } // Set up the vertex array object glBindVertexArray(vertexArrayObject); #endif if(uiVertexArray !=0) { glEnableVertexAttribArray(GLT_ATTRIBUTE_VERTEX); glBindBuffer(GL_ARRAY_BUFFER, uiVertexArray); glVertexAttribPointer(GLT_ATTRIBUTE_VERTEX, 3, GL_FLOAT, GL_FALSE, 0, 0); } if(uiColorArray != 0) { glEnableVertexAttribArray(GLT_ATTRIBUTE_COLOR); glBindBuffer(GL_ARRAY_BUFFER, uiColorArray); glVertexAttribPointer(GLT_ATTRIBUTE_COLOR, 4, GL_FLOAT, GL_FALSE, 0, 0); } if(uiNormalArray != 0) { glEnableVertexAttribArray(GLT_ATTRIBUTE_NORMAL); glBindBuffer(GL_ARRAY_BUFFER, uiNormalArray); glVertexAttribPointer(GLT_ATTRIBUTE_NORMAL, 3, GL_FLOAT, GL_FALSE, 0, 0); } // How many texture units for(unsigned int i = 0; i < nNumTextureUnits; i++) if(uiTextureCoordArray[i] != 0) { glEnableVertexAttribArray(GLT_ATTRIBUTE_TEXTURE0 + i), glBindBuffer(GL_ARRAY_BUFFER, uiTextureCoordArray[i]); glVertexAttribPointer(GLT_ATTRIBUTE_TEXTURE0 + i, 2, GL_FLOAT, GL_FALSE, 0, 0); } bBatchDone = true; #ifndef OPENGL_ES glBindVertexArray(0); #endif } // Just start over. No reallocations, etc. void GLBatch::Reset(void) { bBatchDone = false; nVertsBuilding = 0; } // Add a single vertex to the end of the array void GLBatch::Vertex3f(GLfloat x, GLfloat y, GLfloat z) { // First see if the vertex array buffer has been created... if(uiVertexArray == 0) { // Nope, we need to create it glGenBuffers(1, &uiVertexArray); glBindBuffer(GL_ARRAY_BUFFER, uiVertexArray); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 3 * nNumVerts, NULL, GL_DYNAMIC_DRAW); } // Now see if it's already mapped, if not, map it if(pVerts == NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiVertexArray); pVerts = (M3DVector3f *)glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY); } // Ignore if we go past the end, keeps things from blowing up if(nVertsBuilding >= nNumVerts) return; // Copy it in... pVerts[nVertsBuilding][0] = x; pVerts[nVertsBuilding][1] = y; pVerts[nVertsBuilding][2] = z; nVertsBuilding++; } void GLBatch::Vertex3fv(M3DVector3f vVertex) { // First see if the vertex array buffer has been created... if(uiVertexArray == 0) { // Nope, we need to create it glGenBuffers(1, &uiVertexArray); glBindBuffer(GL_ARRAY_BUFFER, uiVertexArray); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 3 * nNumVerts, NULL, GL_DYNAMIC_DRAW); } // Now see if it's already mapped, if not, map it if(pVerts == NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiVertexArray); pVerts = (M3DVector3f *)glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY); } // Ignore if we go past the end, keeps things from blowing up if(nVertsBuilding >= nNumVerts) return; // Copy it in... memcpy(pVerts[nVertsBuilding], vVertex, sizeof(M3DVector3f)); nVertsBuilding++; } // Unlike normal OpenGL immediate mode, you must specify a normal per vertex // or you will get junk... void GLBatch::Normal3f(GLfloat x, GLfloat y, GLfloat z) { // First see if the vertex array buffer has been created... if(uiNormalArray == 0) { // Nope, we need to create it glGenBuffers(1, &uiNormalArray); glBindBuffer(GL_ARRAY_BUFFER, uiNormalArray); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 3 * nNumVerts, NULL, GL_DYNAMIC_DRAW); } // Now see if it's already mapped, if not, map it if(pNormals == NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiNormalArray); pNormals = (M3DVector3f *)glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY); } // Ignore if we go past the end, keeps things from blowing up if(nVertsBuilding >= nNumVerts) return; // Copy it in... pNormals[nVertsBuilding][0] = x; pNormals[nVertsBuilding][1] = y; pNormals[nVertsBuilding][2] = z; } // Ditto above void GLBatch::Normal3fv(M3DVector3f vNormal) { // First see if the vertex array buffer has been created... if(uiNormalArray == 0) { // Nope, we need to create it glGenBuffers(1, &uiNormalArray); glBindBuffer(GL_ARRAY_BUFFER, uiNormalArray); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 3 * nNumVerts, NULL, GL_DYNAMIC_DRAW); } // Now see if it's already mapped, if not, map it if(pNormals == NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiNormalArray); pNormals = (M3DVector3f *)glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY); } // Ignore if we go past the end, keeps things from blowing up if(nVertsBuilding >= nNumVerts) return; // Copy it in... memcpy(pNormals[nVertsBuilding], vNormal, sizeof(M3DVector3f)); } void GLBatch::Color4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a) { // First see if the vertex array buffer has been created... if(uiColorArray == 0) { // Nope, we need to create it glGenBuffers(1, &uiColorArray); glBindBuffer(GL_ARRAY_BUFFER, uiColorArray); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 4 * nNumVerts, NULL, GL_DYNAMIC_DRAW); } // Now see if it's already mapped, if not, map it if(pColors == NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiColorArray); pColors = (M3DVector4f *)glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY); } // Ignore if we go past the end, keeps things from blowing up if(nVertsBuilding >= nNumVerts) return; // Copy it in... pColors[nVertsBuilding][0] = r; pColors[nVertsBuilding][1] = g; pColors[nVertsBuilding][2] = b; pColors[nVertsBuilding][3] = a; } void GLBatch::Color4fv(M3DVector4f vColor) { // First see if the vertex array buffer has been created... if(uiColorArray == 0) { // Nope, we need to create it glGenBuffers(1, &uiColorArray); glBindBuffer(GL_ARRAY_BUFFER, uiColorArray); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 4 * nNumVerts, NULL, GL_DYNAMIC_DRAW); } // Now see if it's already mapped, if not, map it if(pColors == NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiColorArray); pColors = (M3DVector4f *)glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY); } // Ignore if we go past the end, keeps things from blowing up if(nVertsBuilding >= nNumVerts) return; // Copy it in... memcpy(pColors[nVertsBuilding], vColor, sizeof(M3DVector4f)); } // Unlike normal OpenGL immediate mode, you must specify a texture coord // per vertex or you will get junk... void GLBatch::MultiTexCoord2f(GLuint texture, GLclampf s, GLclampf t) { // First see if the vertex array buffer has been created... if(uiTextureCoordArray[texture] == 0) { // Nope, we need to create it glGenBuffers(1, &uiTextureCoordArray[texture]); glBindBuffer(GL_ARRAY_BUFFER, uiTextureCoordArray[texture]); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 2 * nNumVerts, NULL, GL_DYNAMIC_DRAW); } // Now see if it's already mapped, if not, map it if(pTexCoords[texture] == NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiTextureCoordArray[texture]); pTexCoords[texture] = (M3DVector2f *)glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY); } // Ignore if we go past the end, keeps things from blowing up if(nVertsBuilding >= nNumVerts) return; // Copy it in... pTexCoords[texture][nVertsBuilding][0] = s; pTexCoords[texture][nVertsBuilding][1] = t; } // Ditto above void GLBatch::MultiTexCoord2fv(GLuint texture, M3DVector2f vTexCoord) { // First see if the vertex array buffer has been created... if(uiTextureCoordArray[texture] == 0) { // Nope, we need to create it glGenBuffers(1, &uiTextureCoordArray[texture]); glBindBuffer(GL_ARRAY_BUFFER, uiTextureCoordArray[texture]); glBufferData(GL_ARRAY_BUFFER, sizeof(GLfloat) * 2 * nNumVerts, NULL, GL_DYNAMIC_DRAW); } // Now see if it's already mapped, if not, map it if(pTexCoords[texture] == NULL) { glBindBuffer(GL_ARRAY_BUFFER, uiTextureCoordArray[texture]); pTexCoords[texture] = (M3DVector2f *)glMapBuffer(GL_ARRAY_BUFFER, GL_WRITE_ONLY); } // Ignore if we go past the end, keeps things from blowing up if(nVertsBuilding >= nNumVerts) return; // Copy it in... memcpy(pTexCoords[texture], vTexCoord, sizeof(M3DVector2f)); } void GLBatch::Draw(void) { if(!bBatchDone) return; #ifndef OPENGL_ES // Set up the vertex array object glBindVertexArray(vertexArrayObject); #else if(uiVertexArray !=0) { glEnableVertexAttribArray(GLT_ATTRIBUTE_VERTEX); glBindBuffer(GL_ARRAY_BUFFER, uiVertexArray); glVertexAttribPointer(GLT_ATTRIBUTE_VERTEX, 3, GL_FLOAT, GL_FALSE, 0, 0); } if(uiColorArray != 0) { glEnableVertexAttribArray(GLT_ATTRIBUTE_COLOR); glBindBuffer(GL_ARRAY_BUFFER, uiColorArray); glVertexAttribPointer(GLT_ATTRIBUTE_COLOR, 4, GL_FLOAT, GL_FALSE, 0, 0); } if(uiNormalArray != 0) { glEnableVertexAttribArray(GLT_ATTRIBUTE_NORMAL); glBindBuffer(GL_ARRAY_BUFFER, uiNormalArray); glVertexAttribPointer(GLT_ATTRIBUTE_NORMAL, 3, GL_FLOAT, GL_FALSE, 0, 0); } // How many texture units for(unsigned int i = 0; i < nNumTextureUnits; i++) if(uiTextureCoordArray[i] != 0) { glEnableVertexAttribArray(GLT_ATTRIBUTE_TEXTURE0 + i), glBindBuffer(GL_ARRAY_BUFFER, uiTextureCoordArray[i]); glVertexAttribPointer(GLT_ATTRIBUTE_TEXTURE0 + i, 2, GL_FLOAT, GL_FALSE, 0, 0); } #endif glDrawArrays(primitiveType, 0, nNumVerts); #ifndef OPENGL_ES glBindVertexArray(0); #else glDisableVertexAttribArray(GLT_ATTRIBUTE_VERTEX); glDisableVertexAttribArray(GLT_ATTRIBUTE_NORMAL); glDisableVertexAttribArray(GLT_ATTRIBUTE_COLOR); for(unsigned int i = 0; i < nNumTextureUnits; i++) if(uiTextureCoordArray[i] != 0) glDisableVertexAttribArray(GLT_ATTRIBUTE_TEXTURE0 + i); #endif } #endif
[ "435832656@qq.com" ]
435832656@qq.com
e312410ce8903798e7689bcada4161e67220afec
f0e8f6736c9d7482f0ea52dd0a3c412d340f2d63
/Chapter6/6.38.cpp
c7d05f9317113e38c6b3b30d3249316c35e037c9
[]
no_license
zhouguoguo/C-plus-plus-Primer
146d46e24a9b98207fa0e18759ac5dfcaea6307d
27970b85457e86ff657f04c618851ec1a3f35a58
refs/heads/master
2020-06-23T17:35:01.778747
2017-03-03T04:22:06
2017-03-03T04:22:06
76,225,490
2
0
null
2016-12-26T05:41:00
2016-12-12T05:40:33
C++
UTF-8
C++
false
false
386
cpp
#include <iostream> using namespace std; int odd[5] = {1,3,5,7,9}; int even[5] = {0,2,4,6,8}; decltype(odd) &arrPtr(int i) { return (i % 2) ? odd : even; } int main() { int val = 2; cout << arrPtr(val)[0] << endl; cout << arrPtr(val)[1] << endl; cout << arrPtr(val)[2] << endl; cout << arrPtr(val)[3] << endl; cout << arrPtr(val)[4] << endl; return 0; }
[ "noreply@github.com" ]
zhouguoguo.noreply@github.com
ce089e1f3f27fda87b06db4ac08bc85a03921fbe
5ae875a170dd9333748bcd03f4e37e8d5f385401
/model/EntityAction.hpp
7d6cf0d08c0b8f33166f68670567d7a227794068
[]
no_license
dgrachev28/aicup2020
134f0704a17e8f626f4c704505257d3dcd8b6840
df4ce2e363ccfa4d104742e0b0416834a8617073
refs/heads/master
2023-03-02T06:58:31.503747
2021-02-04T07:22:48
2021-02-04T07:22:48
335,604,609
0
0
null
null
null
null
UTF-8
C++
false
false
1,075
hpp
#ifndef _MODEL_ENTITY_ACTION_HPP_ #define _MODEL_ENTITY_ACTION_HPP_ #include "../Stream.hpp" #include "AttackAction.hpp" #include "AutoAttack.hpp" #include "BuildAction.hpp" #include "EntityType.hpp" #include "MoveAction.hpp" #include "RepairAction.hpp" #include "Vec2Int.hpp" #include <memory> #include <stdexcept> #include <string> #include <vector> #include <optional> class EntityAction { public: std::optional<MoveAction> moveAction; std::optional<BuildAction> buildAction; std::optional<AttackAction> attackAction; std::optional<RepairAction> repairAction; EntityAction(); EntityAction(const MoveAction& action); EntityAction(const BuildAction& action); EntityAction(const AttackAction& action); EntityAction(const RepairAction& action); EntityAction(std::optional<MoveAction> moveAction, std::optional<BuildAction> buildAction, std::optional<AttackAction> attackAction, std::optional<RepairAction> repairAction); static EntityAction readFrom(InputStream& stream); void writeTo(OutputStream& stream) const; }; #endif
[ "dgrachev28@gmail.com" ]
dgrachev28@gmail.com
bb042e4f14712d1a99492fbcb52193691d73cfee
7e5a38f253bb00aa7d2c9c08fc9726de6bbd3b10
/E9_Shadows/DXFramework/Light.cpp
cb20581f02c1685bc259176c6f8c7c61b8feb3bd
[]
no_license
Abertay-University-SDI/CMP301_Shadows
6281eee38c34958d967dc09b1bfafbd36502bca5
577cec3abd4b453be01986c1eba90ffb993c706f
refs/heads/master
2023-08-28T23:15:13.591459
2021-11-08T09:44:09
2021-11-08T09:44:09
287,368,737
0
0
null
null
null
null
UTF-8
C++
false
false
2,941
cpp
// Light class // Holds data that represents a single light source #include "light.h" // create view matrix, based on light position and lookat. Used for shadow mapping. void Light::generateViewMatrix() { // default up vector XMVECTOR up = XMVectorSet(0.0f, 1.0f, 0.0f, 1.0f); if (direction.y == 1 || (direction.x == 0 && direction.z == 0)) { up = XMVectorSet(0.0f, 0.0f, 1.0f, 1.0); } else if (direction.y == -1 || (direction.x == 0 && direction.z == 0)) { up = XMVectorSet(0.0f, 0.0f, -1.0f, 1.0); } //XMVECTOR up = XMVectorSet(0.0f, 1.0f, 0.0f, 1.0f); XMVECTOR dir = XMVectorSet(direction.x, direction.y, direction.z, 1.0f); XMVECTOR right = XMVector3Cross(dir, up); up = XMVector3Cross(right, dir); // Create the view matrix from the three vectors. viewMatrix = XMMatrixLookAtLH(position, position + dir, up); } // Create a projection matrix for the (point) light source. Used in shadow mapping. void Light::generateProjectionMatrix(float screenNear, float screenFar) { float fieldOfView, screenAspect; // Setup field of view and screen aspect for a square light source. fieldOfView = (float)XM_PI / 2.0f; screenAspect = 1.0f; // Create the projection matrix for the light. projectionMatrix = XMMatrixPerspectiveFovLH(fieldOfView, screenAspect, screenNear, screenFar); } // Create orthomatrix for (directional) light source. Used in shadow mapping. void Light::generateOrthoMatrix(float screenWidth, float screenHeight, float near, float far) { orthoMatrix = XMMatrixOrthographicLH(screenWidth, screenHeight, near, far); } void Light::setAmbientColour(float red, float green, float blue, float alpha) { ambientColour = XMFLOAT4(red, green, blue, alpha); } void Light::setDiffuseColour(float red, float green, float blue, float alpha) { diffuseColour = XMFLOAT4(red, green, blue, alpha); } void Light::setDirection(float x, float y, float z) { direction = XMFLOAT3(x, y, z); } void Light::setSpecularColour(float red, float green, float blue, float alpha) { specularColour = XMFLOAT4(red, green, blue, alpha); } void Light::setSpecularPower(float power) { specularPower = power; } void Light::setPosition(float x, float y, float z) { position = XMVectorSet(x, y, z, 1.0f); } XMFLOAT4 Light::getAmbientColour() { return ambientColour; } XMFLOAT4 Light::getDiffuseColour() { return diffuseColour; } XMFLOAT3 Light::getDirection() { return direction; } XMFLOAT4 Light::getSpecularColour() { return specularColour; } float Light::getSpecularPower() { return specularPower; } XMFLOAT3 Light::getPosition() { XMFLOAT3 temp(XMVectorGetX(position), XMVectorGetY(position), XMVectorGetZ(position)); return temp; } void Light::setLookAt(float x, float y, float z) { lookAt = XMVectorSet(x, y, z, 1.0f); } XMMATRIX Light::getViewMatrix() { return viewMatrix; } XMMATRIX Light::getProjectionMatrix() { return projectionMatrix; } XMMATRIX Light::getOrthoMatrix() { return orthoMatrix; }
[ "p.robertson@abertay.ac.uk" ]
p.robertson@abertay.ac.uk
3d9ac8d1fba9859b43592e8f8d9868e69cc529b6
84e5c66a4879c11850ca58a4a0f90389e52c3f49
/overloading/addition/overload.h
6e111d12f89291496ff24fd4a6a9fc696ff03259
[]
no_license
TrevarO/Descriptial
6953e3b5daede3d8c1b46f78b7cd15667445e004
f895bb6895233d89e77b896f1012bef5170dec70
refs/heads/master
2020-03-08T01:50:31.368400
2018-04-05T01:10:36
2018-04-05T01:10:36
127,842,121
0
0
null
2018-04-03T02:55:02
2018-04-03T02:55:02
null
UTF-8
C++
false
false
203
h
#include <iostream> using namespace std; class Add { void operator + (Add); friend istream &operator >> (istream &input, Add &i); public: double x; double y; void add(double, double); };
[ "noreply@github.com" ]
TrevarO.noreply@github.com
a5d2939275dbb7d85b0ec767a77494a221d58f49
60db84d8cb6a58bdb3fb8df8db954d9d66024137
/android-cpp-sdk/platforms/android-4/java/util/concurrent/CopyOnWriteArrayList.hpp
b78da280f4aa169347123fa6de764ecdf679b790
[ "BSL-1.0" ]
permissive
tpurtell/android-cpp-sdk
ba853335b3a5bd7e2b5c56dcb5a5be848da6550c
8313bb88332c5476645d5850fe5fdee8998c2415
refs/heads/master
2021-01-10T20:46:37.322718
2012-07-17T22:06:16
2012-07-17T22:06:16
37,555,992
5
4
null
null
null
null
UTF-8
C++
false
false
24,001
hpp
/*================================================================================ code generated by: java2cpp author: Zoran Angelov, mailto://baldzar@gmail.com class: java.util.concurrent.CopyOnWriteArrayList ================================================================================*/ #ifndef J2CPP_INCLUDE_IMPLEMENTATION #ifndef J2CPP_JAVA_UTIL_CONCURRENT_COPYONWRITEARRAYLIST_HPP_DECL #define J2CPP_JAVA_UTIL_CONCURRENT_COPYONWRITEARRAYLIST_HPP_DECL namespace j2cpp { namespace java { namespace io { class Serializable; } } } namespace j2cpp { namespace java { namespace util { class List; } } } namespace j2cpp { namespace java { namespace util { class Iterator; } } } namespace j2cpp { namespace java { namespace util { class ListIterator; } } } namespace j2cpp { namespace java { namespace util { class RandomAccess; } } } namespace j2cpp { namespace java { namespace util { class Collection; } } } namespace j2cpp { namespace java { namespace lang { class Cloneable; } } } namespace j2cpp { namespace java { namespace lang { class String; } } } namespace j2cpp { namespace java { namespace lang { class Object; } } } namespace j2cpp { namespace java { namespace lang { class Iterable; } } } #include <java/io/Serializable.hpp> #include <java/lang/Cloneable.hpp> #include <java/lang/Iterable.hpp> #include <java/lang/Object.hpp> #include <java/lang/String.hpp> #include <java/util/Collection.hpp> #include <java/util/Iterator.hpp> #include <java/util/List.hpp> #include <java/util/ListIterator.hpp> #include <java/util/RandomAccess.hpp> namespace j2cpp { namespace java { namespace util { namespace concurrent { class CopyOnWriteArrayList; class CopyOnWriteArrayList : public object<CopyOnWriteArrayList> { public: J2CPP_DECLARE_CLASS J2CPP_DECLARE_METHOD(0) J2CPP_DECLARE_METHOD(1) J2CPP_DECLARE_METHOD(2) J2CPP_DECLARE_METHOD(3) J2CPP_DECLARE_METHOD(4) J2CPP_DECLARE_METHOD(5) J2CPP_DECLARE_METHOD(6) J2CPP_DECLARE_METHOD(7) J2CPP_DECLARE_METHOD(8) J2CPP_DECLARE_METHOD(9) J2CPP_DECLARE_METHOD(10) J2CPP_DECLARE_METHOD(11) J2CPP_DECLARE_METHOD(12) J2CPP_DECLARE_METHOD(13) J2CPP_DECLARE_METHOD(14) J2CPP_DECLARE_METHOD(15) J2CPP_DECLARE_METHOD(16) J2CPP_DECLARE_METHOD(17) J2CPP_DECLARE_METHOD(18) J2CPP_DECLARE_METHOD(19) J2CPP_DECLARE_METHOD(20) J2CPP_DECLARE_METHOD(21) J2CPP_DECLARE_METHOD(22) J2CPP_DECLARE_METHOD(23) J2CPP_DECLARE_METHOD(24) J2CPP_DECLARE_METHOD(25) J2CPP_DECLARE_METHOD(26) J2CPP_DECLARE_METHOD(27) J2CPP_DECLARE_METHOD(28) J2CPP_DECLARE_METHOD(29) J2CPP_DECLARE_METHOD(30) J2CPP_DECLARE_METHOD(31) J2CPP_DECLARE_METHOD(32) J2CPP_DECLARE_METHOD(33) explicit CopyOnWriteArrayList(jobject jobj) : object<CopyOnWriteArrayList>(jobj) { } operator local_ref<java::io::Serializable>() const; operator local_ref<java::util::List>() const; operator local_ref<java::util::RandomAccess>() const; operator local_ref<java::util::Collection>() const; operator local_ref<java::lang::Cloneable>() const; operator local_ref<java::lang::Object>() const; operator local_ref<java::lang::Iterable>() const; CopyOnWriteArrayList(); CopyOnWriteArrayList(local_ref< java::util::Collection > const&); CopyOnWriteArrayList(local_ref< array< local_ref< java::lang::Object >, 1> > const&); jboolean add(local_ref< java::lang::Object > const&); void add(jint, local_ref< java::lang::Object > const&); jboolean addAll(local_ref< java::util::Collection > const&); jboolean addAll(jint, local_ref< java::util::Collection > const&); jint addAllAbsent(local_ref< java::util::Collection > const&); jboolean addIfAbsent(local_ref< java::lang::Object > const&); void clear(); local_ref< java::lang::Object > clone(); jboolean contains(local_ref< java::lang::Object > const&); jboolean containsAll(local_ref< java::util::Collection > const&); jboolean equals(local_ref< java::lang::Object > const&); local_ref< java::lang::Object > get(jint); jint hashCode(); jint indexOf(local_ref< java::lang::Object > const&, jint); jint indexOf(local_ref< java::lang::Object > const&); jboolean isEmpty(); local_ref< java::util::Iterator > iterator(); jint lastIndexOf(local_ref< java::lang::Object > const&, jint); jint lastIndexOf(local_ref< java::lang::Object > const&); local_ref< java::util::ListIterator > listIterator(); local_ref< java::util::ListIterator > listIterator(jint); local_ref< java::lang::Object > remove(jint); jboolean remove(local_ref< java::lang::Object > const&); jboolean removeAll(local_ref< java::util::Collection > const&); jboolean retainAll(local_ref< java::util::Collection > const&); local_ref< java::lang::Object > set(jint, local_ref< java::lang::Object > const&); jint size(); local_ref< java::util::List > subList(jint, jint); local_ref< array< local_ref< java::lang::Object >, 1> > toArray(); local_ref< array< local_ref< java::lang::Object >, 1> > toArray(local_ref< array< local_ref< java::lang::Object >, 1> > const&); local_ref< java::lang::String > toString(); }; //class CopyOnWriteArrayList } //namespace concurrent } //namespace util } //namespace java } //namespace j2cpp #endif //J2CPP_JAVA_UTIL_CONCURRENT_COPYONWRITEARRAYLIST_HPP_DECL #else //J2CPP_INCLUDE_IMPLEMENTATION #ifndef J2CPP_JAVA_UTIL_CONCURRENT_COPYONWRITEARRAYLIST_HPP_IMPL #define J2CPP_JAVA_UTIL_CONCURRENT_COPYONWRITEARRAYLIST_HPP_IMPL namespace j2cpp { java::util::concurrent::CopyOnWriteArrayList::operator local_ref<java::io::Serializable>() const { return local_ref<java::io::Serializable>(get_jobject()); } java::util::concurrent::CopyOnWriteArrayList::operator local_ref<java::util::List>() const { return local_ref<java::util::List>(get_jobject()); } java::util::concurrent::CopyOnWriteArrayList::operator local_ref<java::util::RandomAccess>() const { return local_ref<java::util::RandomAccess>(get_jobject()); } java::util::concurrent::CopyOnWriteArrayList::operator local_ref<java::util::Collection>() const { return local_ref<java::util::Collection>(get_jobject()); } java::util::concurrent::CopyOnWriteArrayList::operator local_ref<java::lang::Cloneable>() const { return local_ref<java::lang::Cloneable>(get_jobject()); } java::util::concurrent::CopyOnWriteArrayList::operator local_ref<java::lang::Object>() const { return local_ref<java::lang::Object>(get_jobject()); } java::util::concurrent::CopyOnWriteArrayList::operator local_ref<java::lang::Iterable>() const { return local_ref<java::lang::Iterable>(get_jobject()); } java::util::concurrent::CopyOnWriteArrayList::CopyOnWriteArrayList() : object<java::util::concurrent::CopyOnWriteArrayList>( call_new_object< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(0), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(0) >() ) { } java::util::concurrent::CopyOnWriteArrayList::CopyOnWriteArrayList(local_ref< java::util::Collection > const &a0) : object<java::util::concurrent::CopyOnWriteArrayList>( call_new_object< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(1), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(1) >(a0) ) { } java::util::concurrent::CopyOnWriteArrayList::CopyOnWriteArrayList(local_ref< array< local_ref< java::lang::Object >, 1> > const &a0) : object<java::util::concurrent::CopyOnWriteArrayList>( call_new_object< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(2), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(2) >(a0) ) { } jboolean java::util::concurrent::CopyOnWriteArrayList::add(local_ref< java::lang::Object > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(3), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(3), jboolean >(get_jobject(), a0); } void java::util::concurrent::CopyOnWriteArrayList::add(jint a0, local_ref< java::lang::Object > const &a1) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(4), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(4), void >(get_jobject(), a0, a1); } jboolean java::util::concurrent::CopyOnWriteArrayList::addAll(local_ref< java::util::Collection > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(5), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(5), jboolean >(get_jobject(), a0); } jboolean java::util::concurrent::CopyOnWriteArrayList::addAll(jint a0, local_ref< java::util::Collection > const &a1) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(6), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(6), jboolean >(get_jobject(), a0, a1); } jint java::util::concurrent::CopyOnWriteArrayList::addAllAbsent(local_ref< java::util::Collection > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(7), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(7), jint >(get_jobject(), a0); } jboolean java::util::concurrent::CopyOnWriteArrayList::addIfAbsent(local_ref< java::lang::Object > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(8), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(8), jboolean >(get_jobject(), a0); } void java::util::concurrent::CopyOnWriteArrayList::clear() { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(9), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(9), void >(get_jobject()); } local_ref< java::lang::Object > java::util::concurrent::CopyOnWriteArrayList::clone() { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(10), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(10), local_ref< java::lang::Object > >(get_jobject()); } jboolean java::util::concurrent::CopyOnWriteArrayList::contains(local_ref< java::lang::Object > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(11), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(11), jboolean >(get_jobject(), a0); } jboolean java::util::concurrent::CopyOnWriteArrayList::containsAll(local_ref< java::util::Collection > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(12), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(12), jboolean >(get_jobject(), a0); } jboolean java::util::concurrent::CopyOnWriteArrayList::equals(local_ref< java::lang::Object > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(13), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(13), jboolean >(get_jobject(), a0); } local_ref< java::lang::Object > java::util::concurrent::CopyOnWriteArrayList::get(jint a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(14), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(14), local_ref< java::lang::Object > >(get_jobject(), a0); } jint java::util::concurrent::CopyOnWriteArrayList::hashCode() { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(15), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(15), jint >(get_jobject()); } jint java::util::concurrent::CopyOnWriteArrayList::indexOf(local_ref< java::lang::Object > const &a0, jint a1) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(16), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(16), jint >(get_jobject(), a0, a1); } jint java::util::concurrent::CopyOnWriteArrayList::indexOf(local_ref< java::lang::Object > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(17), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(17), jint >(get_jobject(), a0); } jboolean java::util::concurrent::CopyOnWriteArrayList::isEmpty() { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(18), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(18), jboolean >(get_jobject()); } local_ref< java::util::Iterator > java::util::concurrent::CopyOnWriteArrayList::iterator() { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(19), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(19), local_ref< java::util::Iterator > >(get_jobject()); } jint java::util::concurrent::CopyOnWriteArrayList::lastIndexOf(local_ref< java::lang::Object > const &a0, jint a1) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(20), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(20), jint >(get_jobject(), a0, a1); } jint java::util::concurrent::CopyOnWriteArrayList::lastIndexOf(local_ref< java::lang::Object > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(21), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(21), jint >(get_jobject(), a0); } local_ref< java::util::ListIterator > java::util::concurrent::CopyOnWriteArrayList::listIterator() { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(22), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(22), local_ref< java::util::ListIterator > >(get_jobject()); } local_ref< java::util::ListIterator > java::util::concurrent::CopyOnWriteArrayList::listIterator(jint a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(23), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(23), local_ref< java::util::ListIterator > >(get_jobject(), a0); } local_ref< java::lang::Object > java::util::concurrent::CopyOnWriteArrayList::remove(jint a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(24), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(24), local_ref< java::lang::Object > >(get_jobject(), a0); } jboolean java::util::concurrent::CopyOnWriteArrayList::remove(local_ref< java::lang::Object > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(25), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(25), jboolean >(get_jobject(), a0); } jboolean java::util::concurrent::CopyOnWriteArrayList::removeAll(local_ref< java::util::Collection > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(26), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(26), jboolean >(get_jobject(), a0); } jboolean java::util::concurrent::CopyOnWriteArrayList::retainAll(local_ref< java::util::Collection > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(27), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(27), jboolean >(get_jobject(), a0); } local_ref< java::lang::Object > java::util::concurrent::CopyOnWriteArrayList::set(jint a0, local_ref< java::lang::Object > const &a1) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(28), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(28), local_ref< java::lang::Object > >(get_jobject(), a0, a1); } jint java::util::concurrent::CopyOnWriteArrayList::size() { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(29), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(29), jint >(get_jobject()); } local_ref< java::util::List > java::util::concurrent::CopyOnWriteArrayList::subList(jint a0, jint a1) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(30), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(30), local_ref< java::util::List > >(get_jobject(), a0, a1); } local_ref< array< local_ref< java::lang::Object >, 1> > java::util::concurrent::CopyOnWriteArrayList::toArray() { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(31), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(31), local_ref< array< local_ref< java::lang::Object >, 1> > >(get_jobject()); } local_ref< array< local_ref< java::lang::Object >, 1> > java::util::concurrent::CopyOnWriteArrayList::toArray(local_ref< array< local_ref< java::lang::Object >, 1> > const &a0) { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(32), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(32), local_ref< array< local_ref< java::lang::Object >, 1> > >(get_jobject(), a0); } local_ref< java::lang::String > java::util::concurrent::CopyOnWriteArrayList::toString() { return call_method< java::util::concurrent::CopyOnWriteArrayList::J2CPP_CLASS_NAME, java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_NAME(33), java::util::concurrent::CopyOnWriteArrayList::J2CPP_METHOD_SIGNATURE(33), local_ref< java::lang::String > >(get_jobject()); } J2CPP_DEFINE_CLASS(java::util::concurrent::CopyOnWriteArrayList,"java/util/concurrent/CopyOnWriteArrayList") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,0,"<init>","()V") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,1,"<init>","(Ljava/util/Collection;)V") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,2,"<init>","([java.lang.Object)V") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,3,"add","(Ljava/lang/Object;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,4,"add","(ILjava/lang/Object;)V") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,5,"addAll","(Ljava/util/Collection;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,6,"addAll","(ILjava/util/Collection;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,7,"addAllAbsent","(Ljava/util/Collection;)I") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,8,"addIfAbsent","(Ljava/lang/Object;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,9,"clear","()V") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,10,"clone","()Ljava/lang/Object;") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,11,"contains","(Ljava/lang/Object;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,12,"containsAll","(Ljava/util/Collection;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,13,"equals","(Ljava/lang/Object;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,14,"get","(I)Ljava/lang/Object;") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,15,"hashCode","()I") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,16,"indexOf","(Ljava/lang/Object;I)I") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,17,"indexOf","(Ljava/lang/Object;)I") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,18,"isEmpty","()Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,19,"iterator","()Ljava/util/Iterator;") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,20,"lastIndexOf","(Ljava/lang/Object;I)I") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,21,"lastIndexOf","(Ljava/lang/Object;)I") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,22,"listIterator","()Ljava/util/ListIterator;") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,23,"listIterator","(I)Ljava/util/ListIterator;") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,24,"remove","(I)Ljava/lang/Object;") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,25,"remove","(Ljava/lang/Object;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,26,"removeAll","(Ljava/util/Collection;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,27,"retainAll","(Ljava/util/Collection;)Z") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,28,"set","(ILjava/lang/Object;)Ljava/lang/Object;") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,29,"size","()I") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,30,"subList","(II)Ljava/util/List;") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,31,"toArray","()[java.lang.Object") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,32,"toArray","([java.lang.Object)[java.lang.Object") J2CPP_DEFINE_METHOD(java::util::concurrent::CopyOnWriteArrayList,33,"toString","()Ljava/lang/String;") } //namespace j2cpp #endif //J2CPP_JAVA_UTIL_CONCURRENT_COPYONWRITEARRAYLIST_HPP_IMPL #endif //J2CPP_INCLUDE_IMPLEMENTATION
[ "baldzar@gmail.com" ]
baldzar@gmail.com
d5d719c1baba932c57d4d74ea5586978ac554e32
fe1e599acaa39e318abac640fe2f68b154b7259c
/RoboLabWP/RoboLabWPComp/View/Graphics/Matrix system/MZMatrixSystem.h
57148c95797a781aeb89f35fb9c393d23b450655
[]
no_license
GA239/robolabwp
0c8d393194908e3c80e89d1fad593b0957e21453
35705fd0f851ef9a9959828a14fac204f517bcd5
refs/heads/master
2021-01-19T17:31:36.244208
2015-10-28T08:23:33
2015-10-28T08:26:33
101,060,772
0
0
null
null
null
null
UTF-8
C++
false
false
1,187
h
#pragma once // // MZMatrixSystem.h // Robo Lab // #include "Model\Basic Types\MZMacro.h" #include "View\Graphics\Shader sistem\MZShaderSystem.h" #include <vector> #include "glm\glm.hpp" using namespace glm; using namespace std; class MZMatrixSystem { static MZMatrixSystem* instance; static int _refcount; public: static MZMatrixSystem* startSystem() { instance = new MZMatrixSystem(); _refcount = 0; return instance; } static MZMatrixSystem* getInstance() { if(!instance) { startSystem(); } _refcount++; return instance; } void FreeInst() { _refcount--; if(!_refcount) {delete this; instance = NULL;}} void translateWithVector3(vec3 vector); void translate(double x, double y, double z); void scale(double x, double y, double z); void pop(); void prepare(); void setProjectionWithZoom(double zoom); private: MZMatrixSystem(void); virtual ~MZMatrixSystem(void); MZMatrixSystem(const MZMatrixSystem& root); MZMatrixSystem& operator=(const MZMatrixSystem&); mat4 _viewMatrix; mat4 _modelMatrix; mat4 _projectionMatrix; //GLKMatrixStackRef _matrixStackReference; vector<mat4> _matrixStackReference; };
[ "ag239@yandex.ru" ]
ag239@yandex.ru
819437412e7192f3094605d896757a0c88a1872c
70828283ca189ff2dbd979adaeb03ebdacdd0da3
/vulkansdk-macos-1.2.162.0/macOS/include/spirv_cross/spirv_cross.hpp
446275a26841c75574e453f7fe3564d318cd4cee
[]
no_license
mterekhov/doom
8c4703b91bed4b71b6dd4d2949e412d2d5142daf
e67dea1d95604c899d0254869e0aa9ee186591a2
refs/heads/master
2023-06-24T09:35:33.833068
2021-03-12T09:04:24
2021-03-12T09:04:24
331,362,925
0
0
null
null
null
null
UTF-8
C++
false
false
130
hpp
version https://git-lfs.github.com/spec/v1 oid sha256:55a47b219eb88b522d41967d9255c7fbb2d028c6f6282ac112aadaea81fac074 size 47211
[ "" ]
6ccea793c0c98463059c7117875076ded59a142f
1710252b2cea07aff1874d6861e3c744f6f1220e
/DataView/dataview.cpp
473e9982f0bb66d7789a34604b199be845182deb
[]
no_license
lawrencetang/K5800Source
3978c5fe4f599bd2eac896937145d68218f9a264
7b022790c89ce4a441d73849fa4c14db85067c39
refs/heads/master
2020-03-07T08:19:17.765767
2018-04-03T01:23:48
2018-04-03T01:23:48
127,374,394
0
0
null
null
null
null
UTF-8
C++
false
false
11,648
cpp
#include "dataview.h" #include "ui_dataview.h" #include <QDir> #include <QFile> #include <QDebug> #include <QFileInfo> #include <QDateTime> #include <QTextStream> #include <QFileDialog> #include <QMessageBox> #include <QDesktopServices> #include <QMouseEvent> #include <QScrollBar> #include <QRect> #include "olistscroll.h" DataView::DataView(QString systemPath, bool supportCuvette, QWidget *parent) : QFrame(parent), ui(new Ui::DataView) { // 初始化UI ui->setupUi(this); // 初始化系统路径 m_systemPath = QDir::currentPath() + "/" + systemPath;//lt:初始化时是data文件夹 m_supportCuvette = supportCuvette; initializeSystem(); initializeWidget(); } DataView::~DataView() { delete ui; } QMap<QString, QString> DataView::getViewTitle() { return m_viewTitle; } /** * 函数名称: setCurrentDir * 函数用途: 设置当前目录 * 输入参数: * dir = 目录id * 输出参数: * 无 */ void DataView::setCurrentDir(QString name) { if (m_dirMap.contains( name )) { int id = m_dirMap.value( name );//lt:根据name作为key值返回该qmap的value值qmap[qstring, int] ui->comboBox->setCurrentIndex( id );//lt:将该id设为当前项目的index } } /** * 函数名称: showDataFile * 函数用途: 显示目录下的所有数据文件 * 输入参数: * dir = 目录名称 * 输出参数: * 无 */ void DataView::showDataFile(QString dirname) { if (dirname.isEmpty()) { return; }//lt:软件为英文时测量的只能在英文目录内查找,中文时测量的只能在中文目录中查找 // 检查目录是否存在 QString path = m_systemPath + "/" + dirname; QDir dir(path); if (!dir.exists()) { QMessageBox::warning(this, tr("Warnning"), tr("Dir not exist!"), QMessageBox::Ok); return; } // 清空listWidget m_poscorllArea->clear(); // 加载该目录下所有以.csv结尾的所有文件 dir.setFilter(QDir::Files); QFileInfoList list = dir.entryInfoList(); for (int i = 0; i < list.size(); i ++) { QFileInfo fileinfo = list.at(i); if (fileinfo.fileName().endsWith( ".csv" )) { QListWidgetItem *item = NULL; item = new QListWidgetItem( QIcon( ":/icons/file.png" ), fileinfo.fileName() ); /* if (i == 0) { item->setBackgroundColor( Qt::gray ); } */ item->setFont( QFont( "黑体", 12 ) ); item->setSizeHint( QSize(128, 64) ); m_poscorllArea->insertItem( 0, item ); } } int count = m_poscorllArea->count(); for (int r = 0; r < count; r ++) { QListWidgetItem *item = m_poscorllArea->item( r ); if (0 == r ) { item->setBackgroundColor( Qt::white ); } else { item->setBackgroundColor( Qt::white ); } } } /** * @brief DataView::updateView * @param dirname */ void DataView::updateView(QString dirname) { showDataFile( dirname ); emit dirChanged(dirname); } /** * 函数名称: selectedItem * 函数用途: 删除数据文件//lt:(选择) * 输入参数: * 无 * 输出参数: * 无 */ void DataView::itemSelected(QListWidgetItem *item) { QString type = ui->comboBox->currentText();//lt:根据comboBox的项目值 //QMessageBox::warning(0, "warning", type, QMessageBox::Ok);//ltj QString filename = m_systemPath + "/" + type + "/" + item->text();//lt:item是comboBox每项内的子项目的值 emit fileReadReady( type, filename ); } /** * 函数名称: saveDataFile * 函数用途: 保存文件 * 输入参数: * data = 数据 * 输出参数: * 无 */ void DataView::saveDataFile(QStringList data) { QString filename = QDateTime::currentDateTime().toString("yyyy-MM-dd hh.mm.ss") + ".csv"; saveDataFile( filename, data ); } /** * 函数名称: saveDataFile * 函数用途: 保存文件 * 输入参数: * filename = 文件名称(不含路径) * data = 数据 * 输出参数: * 无 */ void DataView::saveDataFile(QString filename, QStringList data) { QString filepath = m_systemPath + "/" + ui->comboBox->currentText() + "/"; filename = filepath + filename; QFile file(filename); if (!file.open( QIODevice::WriteOnly|QIODevice::Append )) { //lt:因为拟合需要保存测量结果将Truncate模式改为append模式 QMessageBox::warning(this, tr("Warnning"), tr("Save data error!"), QMessageBox::Ok); return; } QTextStream out(&file); out.setCodec("GB2312"); for (int i = 0; i < data.size(); i ++) { out << data.at(i); if (i != data.size() - 1) { out << "\n"; }//lt:表中的每一行就是qstringlist中的一个qstring } file.close(); QFileInfo fileInfo( filename ); //showDataFile( ui->comboBox->currentText() ); insert( fileInfo.fileName() ); } /** * 函数名称: deleteDataFile * 函数用途: 删除数据文件 * 输入参数: * 无 * 输出参数: * 无 */ void DataView::remove() { if (QMessageBox::Ok == QMessageBox::warning(this, tr("Warnning"), tr("Do you want select all files?"), QMessageBox::Ok|QMessageBox::Cancel)) { m_poscorllArea->selectAll(); } if (QMessageBox::Cancel == QMessageBox::warning(this, tr("Warnning"), tr("Do you want to delete file?"), QMessageBox::Ok|QMessageBox::Cancel)) { return; } // 获取选中的item QListWidget *t_pListWidget = m_poscorllArea; QList<QListWidgetItem *> selectedItems = t_pListWidget->selectedItems(); // 获取目录路径 QString filepath = m_systemPath + "/" + ui->comboBox->currentText() + "/"; for (int i = 0; i < selectedItems.size(); i ++) { // 删除文件 QListWidgetItem *item = selectedItems.at(i); QString filename = filepath + item->text(); // 删除item int row = t_pListWidget->row( item ); t_pListWidget->takeItem( row ); delete item; item = NULL; bool ok = QFile::remove(filename); if (!ok) { // QMessageBox::warning(this, tr("Warnning"), // tr("Delete file error!"), QMessageBox::Ok); continue; } } } /** * 函数名称: moveTo * 函数用途: 复制文件到其他目录 * 输入参数: * 无 * 输出参数: * 无 */ void DataView::moveTo() { // 获取选中的item QListWidget *t_pListWidget = m_poscorllArea; QList<QListWidgetItem *> selectedItems = t_pListWidget->selectedItems(); if (selectedItems.isEmpty()) { return; } QDesktopServices::openUrl( QUrl( "osk.exe", QUrl::TolerantMode ) ); for (int i = 0; i < selectedItems.size(); i ++) { QString newName = QFileDialog::getSaveFileName(this, tr("Move File"), QDir::currentPath(), tr("File (*.csv)")); if (newName.isEmpty()) { return; } // 获取目录路径 QString filepath = m_systemPath + "/" + ui->comboBox->currentText() + "/"; // 复制文件到指定目录下 QListWidgetItem *item = selectedItems.at(i); QString filename = filepath + item->text(); bool ok = QFile::copy(filename, newName); if (!ok) { QMessageBox::warning(this, tr("Warnning"), tr("Copy file error!"), QMessageBox::Ok); continue; } } } /** * @brief DataView::insert * @param filename */ void DataView::insert(QString filename) { if (filename.isEmpty()) { return; } // 清空背景 int count = m_poscorllArea->count(); for (int r = 0; r < count; r ++) { QListWidgetItem *item = m_poscorllArea->item( r ); item->setBackgroundColor( Qt::white ); } // QListWidgetItem *item = new QListWidgetItem( /*QIcon( ":/icons/file.png" ),*/ filename ); item->setBackground( QBrush( Qt::gray ) ); item->setFont( QFont( "黑体", 12 ) ); item->setSizeHint( QSize(128, 64) ); m_poscorllArea->insertItem( 0, item ); } /** * 函数名称: initializeSystem * 函数用途: 初始化文件系统 * 输入参数: * 无 * 输出参数: * 无 */ void DataView::initializeSystem() { QString path = m_systemPath; // 检查系统文件目录是否存在,如果不存在则创建系统文件目录//lt:data目录 QDir dir(path); if(!dir.exists()) { bool ok = dir.mkdir(path); if (!ok) { QMessageBox::warning(this, tr("Warnning"), tr("Create dir error!"), QMessageBox::Ok); return; } } // 检查数据目录是否存在,否则创建相应的目录 ui->comboBox->clear(); QStringList dirNameList; if (m_supportCuvette) { // 核酸检测、蛋白检测、全波长检测、细胞检测、微阵列检测、标准曲线、动力学检测 dirNameList << tr("Nucleic Acid") << tr("Protein") << tr("UV-VIS") << tr("Cell Culture") << tr("Micro Array") << tr("Kit Method") << tr("Dynamics") << tr("Device Check"); } else { // 核酸检测、蛋白检测、全波长检测、细胞检测、微阵列检测、标准曲线、动力学检测 dirNameList << tr("Nucleic Acid") << tr("Protein") << tr("UV-VIS") << tr("Cell Culture") << tr("Micro Array") << tr("Kit Method") << tr("Device Check"); } m_dirMap.clear(); m_viewTitle.clear(); for (int i = 0; i < dirNameList.size(); i ++) { QString dirPath = path + "/" + dirNameList.at(i); dir.setPath( dirPath );//lt:进入子目录,不存在下面的代码来建立 if (!dir.exists()) { bool ok = dir.mkdir( dirPath ); if (!ok) { continue; } } // 将文目录名称放入comboBox中 QString name = dirNameList.at(i); ui->comboBox->addItem( QIcon( ":/icons/folder" ), name );//lt:自动加索引 m_dirMap.insert( name, i );//lt:人为加索引,切换页面时,通过该qmap的name值作为键,找到和combobox索引相同的值i,通过该值设置控件的index来切换控件 m_viewTitle.insert( name, name ); } } /** * 函数名称: initializeWidget * 函数用途: 初始化窗体控件 * 输入参数: * 无 * 输出参数: * 无 */ void DataView::initializeWidget() { m_poscorllArea = new OListscroll(this); m_poscorllArea->setGeometry(QRect(1,72,278,570)); ui->comboBox->setGeometry(QRect(1,1,280,70)); m_pdvlayout = new QVBoxLayout; m_pdvlayout->addWidget(ui->comboBox); m_pdvlayout->addWidget(m_poscorllArea); m_pdvlayout->addLayout(ui->horizontalLayout); connect(ui->comboBox, SIGNAL(currentIndexChanged( QString )), this, SLOT(updateView( QString ))); connect(m_poscorllArea, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(itemSelected( QListWidgetItem* ))); connect(ui->deleteBtn, SIGNAL(clicked( bool )), this, SLOT(remove())); connect(ui->moveToBtn, SIGNAL(clicked( bool )), this, SLOT(moveTo())); }
[ "526785371@qq.com" ]
526785371@qq.com
d67e6420fff8f36e0854532d44f74e344e836dc2
6a9566d2d6c97d2482c6a855d3d4a093c18d9ce9
/Nethack-3.6.0.uwp/sys/uwp/uwpconditionvariable.h
49b01f76998983727a565ebf8b1e1f815033007b
[]
no_license
rholder613/NH2017
c38f296801555734a7b6a63820b69a3e63b30010
24c06687765e509c6979a416b4c0a7cd2a77b02b
refs/heads/master
2021-01-11T16:54:58.249552
2017-01-22T08:02:16
2017-01-22T08:02:16
79,694,571
1
0
null
null
null
null
UTF-8
C++
false
false
912
h
/* NetHack 3.6 uwpconditionvariable.h $NHDT-Date: $ $NHDT-Branch: $:$NHDT-Revision: $ */ /* Copyright (c) Bart House, 2016-2017. */ /* Nethack for the Universal Windows Platform (UWP) */ /* NetHack may be freely redistributed. See license for details. */ #pragma once namespace Nethack { class ConditionVariable { public: ConditionVariable() { InitializeConditionVariable(&m_conditionVariable); } void Sleep(Lock & inLock) { inLock.m_ownerThreadId = 0; BOOL success = SleepConditionVariableSRW(&m_conditionVariable, &inLock.m_lock, INFINITE, 0); inLock.m_ownerThreadId = GetCurrentThreadId(); assert(success); } void Wake() { WakeConditionVariable(&m_conditionVariable); } private: CONDITION_VARIABLE m_conditionVariable; }; }
[ "ross@apprefactory.ca" ]
ross@apprefactory.ca
e6228e7159483ee213b2f423659004eb2ae2e33f
301d556ef8c088652bd6cd685f02bec1f4aa5489
/Snake/point.cpp
d54ee258c717f9c5d828062186c9ed54f2f4fb1e
[]
no_license
Tamirbs90/Sanke-with-additional-features
30104fd01352b93ee75644ef4fab939d9a68079c
0f82fde4a46385c053cb116fc4d424f63a05b2c4
refs/heads/master
2020-03-27T07:07:46.530930
2018-08-26T08:45:07
2018-08-26T08:45:07
146,165,097
0
0
null
null
null
null
UTF-8
C++
false
false
1,204
cpp
#include "stdafx.h" #include "point.h" void Point::draw() { gotoxy(x, y); cout << symbol << endl; } void Point::clear() { gotoxy(x, y); cout << " " << endl; } int Point::nextX(){ if (crossScreen) { return (-min_x + x + dir_x + (max_x - min_x + 1)) % (max_x - min_x + 1) + min_x; } int next = x + dir_x; if (next >= max_x) { changeDir(Direction::LEFT); } if (next <= min_x) { changeDir(Direction::RIGHT); } return x + dir_x; } int Point::nextY(){ if (crossScreen) { return (-min_y + y + dir_y + (max_y - min_y + 1)) % (max_y - min_y + 1) + min_y; } int next = y + dir_y; if (next >= max_y) { changeDir(Direction::UP); } if (next <= min_y) { changeDir(Direction::DOWN); } return y + dir_y; } void Point::moveImpl() { x = nextX(); y = nextY(); } void Point::move(Direction dir) { changeDir(dir); moveImpl(); } void Point::changeDir(Direction dir) { switch (dir) { case Direction::LEFT: dir_x = -1; dir_y = 0; break; case Direction::RIGHT: dir_x = 1; dir_y = 0; break; case Direction::UP: dir_x = 0; dir_y = -1; break; case Direction::DOWN: dir_x = 0; dir_y = 1; break; case Direction::STAY: dir_x = 0; dir_y = 0; } }
[ "42584911+Tamirbs90@users.noreply.github.com" ]
42584911+Tamirbs90@users.noreply.github.com
40418db77636167f36c6e5cb909b19078cda7520
4931cc524c60e134a100a6226a2864463209244b
/Src/FERenderer/FEDX11Renderer.h
89129f9fd920359dfb151a1204a5d0f2a1b25749
[]
no_license
Frojer/FrojerEngine
65856564d1ac32eb1addbdbb4ad77f11999b45b3
64d3bd7d20efc7fe44dbbf38be19d4a867587776
refs/heads/master
2021-06-03T10:06:47.912552
2020-05-27T16:26:56
2020-05-27T16:26:56
135,670,150
0
0
null
null
null
null
UHC
C++
false
false
3,524
h
#pragma once #ifndef _FE_DX11_RENDERER #define _FE_DX11_RENDERER #include "IFERenderer.h" #ifdef FE_DX11 #include "FEDX11Shader.h" #include <unordered_map> // DX 표준 헤더 #include <d3d11.h> // DX 표준 헤더. (DX 11.0) //#include <d3d11_1.h> // DX 표준 헤더. (DX 11.1) #pragma comment(lib, "d3d11") // DX 라이브러리 로딩. d3d11.dll 필요. ///////////////////////////////////////////////////////////////////// // // DXGI : DirectX Graphics Infrastructure // DX 의 버전에 독립적인 하드웨어 저수준 접근 방식을 제공합니다. // ///////////////////////////////////////////////////////////////////// //#include <dxgi.h> // DXGI 헤더. (d3d11.h 에 포함됨) #pragma comment(lib, "dxgi") // DXGI 라이브러리. DXGI.dll 필요. class FEDX11Renderer : public IFERenderer { private: ID3D11Device* _pDevice; ID3D11DeviceContext* _pDXDC; IDXGISwapChain* _pSwapChain; ID3D11RenderTargetView* _pRTView; //D3D 기능 레벨 (Direct3D feature level) //현재 사용할 DX 버전 지정. DX 렌더링 장치의 호환성 향상 D3D_FEATURE_LEVEL _featureLevels;// = D3D_FEATURE_LEVEL_11_0; // DX11 대응. //D3D_FEATURE_LEVEL featureLevels = D3D_FEATURE_LEVEL_9_3; // DX9.0c 대응. //깊이 스텐실 버퍼 관련. ID3D11Texture2D* _pDS; // 깊이-스텐실 버퍼. ID3D11DepthStencilView* _pDSView; // 깊이-스텐실 뷰. // 래스터라이저 상태객체 std::unordered_map<BYTE, ID3D11RasterizerState*> _RSStateMap; // 깊이/스텐실 버퍼 상태객체. std::unordered_map<DWORD, ID3D11DepthStencilState*> _DSStateMap; // BlendState 상태객체. std::vector<std::pair<FE_BLEND_DESC, ID3D11BlendState*> > _BlendStateArr; // SamplerState 상태객체 std::vector<std::pair<FE_SAMPLER_STATE_FLAG, ID3D11SamplerState*> > _smpStateArr; private: virtual bool Create(void* i_phWnd) override; void Release(); HRESULT CreateDeviceSwapChain(HWND i_hWnd); HRESULT CreateRenderTarget(); HRESULT CreateDepthStencil(); void SetViewPort() const; // 레스터 상태객체 void RasterStateCreate(BYTE flag); void RasterStateRelease(); void RasterStateLoad(); // 깊이/스텐실 버퍼 상태객체 void DSStateCreate(DWORD flag); void DSStateRelease(); void DSStateLoad(); // 깊이/스텐실 버퍼 상태객체 ID3D11BlendState* BlendStateCreate(const FE_BLEND_DESC& desc); void BlendStateRelease(); void BlendStateLoad(); public: FEDX11Renderer(); virtual ~FEDX11Renderer(); virtual void SetRSState(BYTE flag) override; virtual void SetDSState(DWORD flag, UINT stencilRef) override; virtual void SetBlendState(const FE_BLEND_DESC& desc) override; virtual void SetViewports(UINT NumViewports, const FEViewport *pViewports) override; virtual void SetVertexBuffer(UINT StartSlot, UINT NumBuffers, const IFEBuffer* ppVertexBuffers, const UINT* pStrides, const UINT* pOffsets) const override; virtual void SetIndexBuffer(const IFEBuffer* pIndexBuffer, FEGI_FORMAT Format, UINT Offset) const override; virtual void SetPrimitiveTopology(FE_PRIMITIVE_TOPOLOGY Topology) const override; virtual void ClearBackBuffer(const FEVector4& i_color) const override; virtual void Draw(UINT VertexCount, UINT StartVertexLocation) const override; virtual void DrawIndexed(UINT IndexCount, UINT StartIndexLocation, UINT BaseVertexLocation) const override; virtual void Flip() const override; ID3D11Device* GetDevice() const; ID3D11DeviceContext* GetDXDC() const; friend class FEDX11Shader; }; #endif #endif
[ "choicoco1995@naver.com" ]
choicoco1995@naver.com
b146dda6946ddf4b2583109a8de1760866c4bdca
4cd6ffcaea1c0dd96053d1e61b8c366bf8e513b2
/10/10.1/TSP.cpp
aed2df1092f0c21253edb8dee72ac1b133e867f3
[]
no_license
ElisaLegnani/LSN_exercises
f070fc8836a13d32e34eee895b4faaeff2a6811c
13345a32b0d2deebdd1f8e589a9ae90438768906
refs/heads/main
2023-02-23T02:21:28.164178
2021-01-29T10:13:29
2021-01-29T10:13:29
328,937,722
0
0
null
null
null
null
UTF-8
C++
false
false
6,170
cpp
/******************************** Numerical Simulation Laboratory Exercise 10.1 Elisa Legnani *********************************/ #include <iostream> #include <fstream> #include <cmath> #include <algorithm> #include <numeric> #include <vector> #include "random.h" #include "TSP.h" using namespace std; int main(int argc, char *argv[]){ Input(); PrintBestLength(0); for (int i=0; i<tsteps; i++){ Reset(); for (int j=0; j<nsteps; j++){ Metropolis(); } FindBestLength(); PrintBestLength(i+1); if ((i+1)%20==0){ cout << "Temperature step number " << i+1 << ", T=" << temp << endl << " min length: "<< bestlength <<endl; alpha=double(accepted)/double(attempted); e=(0.5-alpha)/0.5; cout <<" acceptance rate: " << alpha << endl << endl ; } temp*=trate; nsteps+=100; } PrintBestPath(); return 0; } void Input(void){ ifstream seedout("seed.out"); bool checkseed=seedout.is_open(); seedout.close(); if(checkseed) rnd.SetSeed("seed.out"); else rnd.SetSeed(); ifstream ReadInput; cout << "Travelling Salesman Problem " << endl; cout << "Genetic Algorithm "<< endl << endl; ReadInput.open("input.dat"); ReadInput >> ncities; ReadInput >> config; cout << "The program evaluates the shortest path"<< endl; cout << " among " << ncities << " cities" << endl; if(config=="circle"){ cout << " on a circumference with radius=1" << endl << endl; Circumference(); } else if(config=="square"){ cout << " inside a square with side=1" << endl << endl; Square(); } else { cout << "PROBLEM: Insert the cities configuration: 'circle' or 'square'"<< endl << endl; } PrintCities(); ReadInput >> temp; ReadInput >> trate; ReadInput >> tsteps; ReadInput >> nsteps; cout << "- Initial temperature: " << temp << endl; cout << "- Temperature decay rate: " << trate << endl; cout << "- Number of temperature steps: " << tsteps << endl; cout << "- Number of (target) Metropolis steps: " << nsteps << endl << endl; double d=nsteps-100*(tsteps-1); d=nsteps/d; nsteps=int(nsteps/d); path=RandomPath(ncities); bestpath=path; bestlength=Length(path); ReadInput.close(); } void Circumference(void){ for(int i=0; i<ncities; i++){ double theta=rnd.Rannyu()*2*M_PI; double x=cos(theta); double y=sin(theta); coordinates.push_back({x,y}); } } void Square(void){ for(int i=0; i<ncities; i++){ double x=rnd.Rannyu(); double y=rnd.Rannyu(); coordinates.push_back({x,y}); } } vector<double> RandomPath(int ncities){ vector<double> path; path.push_back(0.0); path.push_back(1 + rand()%(ncities-1)); while(path.size() != ncities){ int random = 1 + rand()%(ncities-1); if(find(path.begin(), path.end(), random) == path.end()) path.push_back(random); } //Every city is visited only once and all cities are visited path.push_back(0.0); //Extra space to store the length of the path return path; } vector<double> Mutation(vector<double> path){ vector<double> new_path = path; int r = (int)rnd.Rannyu(0,3); if(r==0){ //Mutation 1: pair permutation of cities int r1=(int)rnd.Rannyu(1,ncities); int r2=(int)rnd.Rannyu(1,ncities); swap(new_path[r1],new_path[r2]); } if(r==1){ //Mutation 2: inversion of city order int r1=(int)rnd.Rannyu(1,ncities); int r2=(int)rnd.Rannyu(1,ncities); if(r2>r1) reverse(new_path.begin()+r1, new_path.begin()+r2); else reverse(new_path.begin()+r2, new_path.begin()+r1); } if(r==2){ //Mutation 3: permutation of contiguous cities vector<int> r; r.push_back((int)rnd.Rannyu(1,ncities)); r.push_back((int)rnd.Rannyu(1,ncities)); r.push_back((int)rnd.Rannyu(1,ncities)); sort(r.begin(), r.end()); rotate(new_path.begin()+r[0], new_path.begin()+r[1], new_path.begin()+r[2]); } return new_path; } void Reset(){ attempted=0; accepted=0; beta=1./temp; tstep++; } void Metropolis(void){ vector<double> y=Mutation(path); //Probability to accept double deltaL=Length(y)-Length(path); double q=exp(-beta*deltaL); double A=min(1.,q); //Accept? double r=rnd.Rannyu(); if (r<=A){ path=y; accepted++; } attempted++; } void FindBestLength(void){ double length=Length(path); if(length<bestlength){ bestpath=path; bestlength=length; } } double Distance(vector<double> c1, vector<double> c2){ double d2=0.; for(int i=0 ; i<2; i++) d2 = d2 + pow(c1[i]-c2[i],2); return sqrt(d2); } double Length(vector<double> path){ double sum=0.; for(int i=0; i<ncities; i++){ sum = sum + Distance(coordinates[(int)path[i]],coordinates[(int)path[(i+1)%ncities]]); } return sum; } void PrintCities(void){ ofstream Config("positions.out"); for(int i=0; i<ncities; i++) Config << coordinates[i][0] << " " << coordinates[i][1] <<endl; Config << coordinates[0][0] << " " << coordinates[0][1] << endl; Config.close(); } void PrintBestPath(){ ofstream BestPath; BestPath.open("best_path.out"); for(int i=0; i<ncities; i++){ BestPath << coordinates[(int)bestpath[i]][0] << " " << coordinates[(int)bestpath[i]][1] << endl; } BestPath << coordinates[(int)bestpath[0]][0] << " " << coordinates[(int)bestpath[0]][1] << endl; BestPath.close(); rnd.SaveSeed(); } void PrintBestLength(int tstep){ ofstream BestLength; BestLength.open("best_length.out", ios::app); BestLength << tstep << " " << temp << " " << bestlength << endl; BestLength.close(); }
[ "noreply@github.com" ]
ElisaLegnani.noreply@github.com
a415c2a67da88e2f237d61f7d229b49621c2d483
d0b3557057583668173c145fa9df2043bc10b865
/c_api/test/countIoctlIsEffectivelyCalled_test.cc
5b24cef44d39ce1084735d3440836f2a92137afc
[]
no_license
CSGames-Archive/OS-2018
f00160a35dae14e782fd8bcbfbd8b409d4145f41
901c84ea8bbe69638fdaa90f98753d97681a5d42
refs/heads/master
2020-03-08T16:56:03.193123
2018-04-03T17:09:54
2018-04-03T17:09:54
128,254,952
0
1
null
null
null
null
UTF-8
C++
false
false
278
cc
#include "common.hh" TEST_F(CountBuffers, countIoctlIsEffectivelyCalled) { size_t count; int ret = kiki_count_buffers(dev, &count); ASSERT_EQ(0, ret) << "count buffers did not return 0"; GetCorrectionStats(); EXPECT_EQ(1, correction_stats.count_buffers_called); }
[ "jonathan.gingras.1@gmail.com" ]
jonathan.gingras.1@gmail.com
3beb32d14af282818cf696afd694ca9bf0b03229
d443d21170d299b382ad51b47103f73c91784da2
/install_jobs/tests/print_dir.hpp
acdfb3fa48c3c569930339e317b9f62fa6fdcf39
[]
no_license
korslund/spread
2513c8c664d28887241fde70864acce779b2728a
377cc5175dc5f5b46eea3a06b77f181c4163e072
refs/heads/master
2021-01-10T20:22:52.035754
2013-11-30T12:08:29
2013-11-30T12:08:29
4,837,827
1
2
null
null
null
null
UTF-8
C++
false
false
815
hpp
#include "dir/from_fs.hpp" #include <iostream> void printDir(Spread::Directory &dir) { using namespace Spread; using namespace std; Hash::DirMap::const_iterator it; for(it = dir.dir.begin(); it != dir.dir.end(); it++) { string hstring = it->second.toString(); // Pad hashes up to 50 chars for(int i=hstring.size(); i<50; i++) hstring += " "; cout << hstring << " " << it->first << endl; } cout << "Total " << dir.dir.size() << " elements\n";; cout << "Hash: " << dir.hash() << endl; } void printDir(const std::string &where) { using namespace Spread; using namespace std; Cache::CacheIndex cache; DirFromFS dfs(cache); Directory dir; dfs.includeDirs = true; dfs.load(where, dir); cout << "\nDirectory: " << where << endl; printDir(dir); }
[ "korslund@gmail.com" ]
korslund@gmail.com
638e15dc21d37b70108b124e97fd613c0d1817d0
131416ed956c82f2d527f56f627f90c4555f3f5b
/tools/cpp-define-generator/asm_defines.cc
b79e1ae26ec474b40106c4b4386c3b59fbc05fd6
[ "Apache-2.0" ]
permissive
LineageOS/android_art
5edf0db5fc8861deb699a3b9299172cfef00c58a
96ac90faab12beb9cf671ae73f85f02225c96039
refs/heads/lineage-18.0
2022-11-19T21:06:09.486629
2019-03-01T14:30:59
2020-09-15T14:01:35
75,633,906
21
205
NOASSERTION
2020-10-07T19:19:48
2016-12-05T14:45:12
C++
UTF-8
C++
false
false
1,571
cc
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // // This file is used to generate #defines for use in assembly source code. // // The content of this file will be used to compile an object file // (generated as human readable assembly text file, not as binary). // This text file will then be post-processed by a python script to find // and extract the constants and generate the final asm_defines.h header. // // We use "asm volatile" to generate text that will stand out in the // compiler generated intermediate assembly file (eg. ">>FOO 42 0<<"). // We emit all values as 64-bit integers (which we will printed as text). // We also store a flag which specifies whether the constant is negative. // Note that "asm volatile" must be inside a method to please the compiler. #define ASM_DEFINE(NAME, EXPR) \ void AsmDefineHelperFor_##NAME() { \ asm volatile("\n.ascii \">>" #NAME " %0 %1<<\"" \ :: "i" (static_cast<int64_t>(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ } #include "asm_defines.def"
[ "dsrbecky@google.com" ]
dsrbecky@google.com
ad259e507cfe00ab6f95403b71b11e07cbebaae7
f142eef2daa06e19d55a8ec317747df0e88110e7
/main.cpp
4da9004afe1491c1f0b2ecf222b5b0f2472e857d
[]
no_license
el19207/main.cpp
bee19e825a2375dd38701c3140bf9f0e30fab769
fa2d026089cfa56b9294e4566eb3d015122764da
refs/heads/master
2021-03-04T15:42:54.801275
2020-03-09T13:44:16
2020-03-09T13:44:16
246,046,593
0
0
null
null
null
null
UTF-8
C++
false
false
75
cpp
#include <iostream> int main() { std::cout << "good morning World!\n"; }
[ "jimgeog15@gmail.com" ]
jimgeog15@gmail.com
1aa71340cd8b54fe94fa6f4a67d274ae258dec70
22212b6400346c5ec3f5927703ad912566d3474f
/src/Kernel/PoolAllocator.cpp
86dd136fe4b932f95e642dddd24798ab3903c801
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
irov/Mengine
673a9f35ab10ac93d42301bc34514a852c0f150d
8118e4a4a066ffba82bda1f668c1e7a528b6b717
refs/heads/master
2023-09-04T03:19:23.686213
2023-09-03T16:05:24
2023-09-03T16:05:24
41,422,567
46
17
MIT
2022-09-26T18:41:33
2015-08-26T11:44:35
C++
UTF-8
C++
false
false
861
cpp
#include "PoolAllocator.h" #include "Kernel/AllocatorHelper.h" namespace Mengine { ////////////////////////////////////////////////////////////////////////// void * PoolAllocator::malloc( size_t _size, const Char * _doc ) { void * p = Helper::allocateMemory( _size, _doc ); return p; } ////////////////////////////////////////////////////////////////////////// void * PoolAllocator::realloc( void * _mem, size_t _size, const Char * _doc ) { void * p = Helper::reallocateMemory( _mem, _size, _doc ); return p; } ////////////////////////////////////////////////////////////////////////// void PoolAllocator::free( void * _ptr, const Char * _doc ) { Helper::deallocateMemory( _ptr, _doc ); } ////////////////////////////////////////////////////////////////////////// }
[ "irov13@mail.ru" ]
irov13@mail.ru
9f6ada19d38c51d3e74898ce5f03572fa2d8a739
8413273bab84228dad6ff5247f6d581b7796d142
/kernel/yuza_core/ThreadContext.cpp
4554e8a8832306b623fb0b108f98360a99858727
[]
no_license
pdpdds/yuzaos
91b6f5bb51583da3827594489fc700821bc5cd6a
ce3b6d0907f7be470fcbc408382a20e2b75e9ef2
refs/heads/master
2023-05-01T09:51:21.007740
2023-04-27T08:37:42
2023-04-27T08:37:42
289,303,507
28
5
null
2021-03-20T14:58:37
2020-08-21T15:30:10
C
UTF-8
C++
false
false
7,046
cpp
// // Copyright 1998-2012 Jeff Bush // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #include <stringdef.h> #include "cpu_asm.h" #include "PhysicalMap.h" #include <stringdef.h> #include "ThreadContext.h" #include "memory.h" #include "Thread.h" #include "intrinsic.h" #include <SystemAPI.h> #define PUSH(stack, value) \ stack = (unsigned int)(stack) - 4; \ *(unsigned int*)(stack) = (unsigned int)(value); // One TSS is shared by all tasks. It is only referenced by the processor // during a switch from user to supervisor mode, in which case it is consulted // to find the kernel stack pointer and selector. It is not used for task switching, // as a software based mechanism is used. static Tss tss = { 0, 0, 0x10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; GdtEntry gdt[] = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, // Null segment 0x0 {0xffff, 0, 0, 0xa, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}, // OS Code 0x8 {0xffff, 0, 0, 0x2, 1, 0, 1, 0xf, 0, 0, 1, 1, 0}, // OS Data 0x10 {0xffff, 0, 0, 0xa, 1, 3, 1, 0xf, 0, 0, 1, 1, 0}, // User Code 0x1b {0xffff, 0, 0, 0x2, 1, 3, 1, 0xf, 0, 0, 1, 1, 0}, // User Data 0x23 {sizeof(tss), reinterpret_cast<unsigned int>(&tss) & 0xffff, // main TSS 0x28 (reinterpret_cast<unsigned int>(&tss) >> 16) & 0xff, 9, 0, 0, 1, 0, 0, 0, 1, 1, (reinterpret_cast<unsigned int>(&tss) >> 24) & 0xff} }; ThreadContext *ThreadContext::fCurrentTask = 0; ThreadContext *ThreadContext::fFpuOwner = 0; FpState ThreadContext::fDefaultFpState; // This is used to set up the first task. ThreadContext::ThreadContext() : fStackPointer(0), fPageDirectory(GetCurrentPageDir()), fKernelStackBottom(0), fKernelThread(true) { //fStackPointer = 0x40000; SaveFp(&fDefaultFpState); //LoadGdt(gdt, sizeof(gdt)); fCurrentTask = this; } ThreadContext::ThreadContext(const PhysicalMap *physicalMap) : fStackPointer(0), fPageDirectory(physicalMap->GetPageDir()), fKernelStackBottom(0), fKernelThread(physicalMap == PhysicalMap::GetKernelPhysicalMap()) { } ThreadContext::~ThreadContext() { int fl = DisableInterrupts(); if (fFpuOwner == this) fFpuOwner = 0; RestoreInterrupts(fl); } void ThreadContext::SetupThread(THREAD_START_ENTRY startAddress, void *param, unsigned int userStack, unsigned int kernelStack) { fKernelStackBottom = kernelStack; fStackPointer = kernelStack; memcpy(&fFpState, &fDefaultFpState, sizeof(FpState)); #if !SKY_EMULATOR if (fKernelThread) { // Set up call to kernel entry point PUSH(fStackPointer, param); // param PUSH(fStackPointer, kTerminateThread); // return address PUSH(fStackPointer, startAddress); // thread start address } else { // Set up call to UserThreadStart, passing user stack, entry point, and // desired parameters PUSH(fStackPointer, param); PUSH(fStackPointer, userStack) PUSH(fStackPointer, startAddress); PUSH(fStackPointer, 0); PUSH(fStackPointer, UserThreadStart); } /*int eflags = 0; __asm { push eax pushfd pop eax mov eflags, eax pop eax }*/ // State saved in SwitchTo. Note that interrupts start off for user threads // (as they call into the kernel function UserThreadStart and do some more // setup before jumping to user mode). PUSH(fStackPointer, fKernelThread ? (1 << 9) : 0); // eflags PUSH(fStackPointer, 0); // ebp PUSH(fStackPointer, 0); // esi PUSH(fStackPointer, 0); // edi PUSH(fStackPointer, 0); // ebx #endif } void ThreadContext::SwitchTo() { #if SKY_EMULATOR return; #endif ThreadContext *previousTask = fCurrentTask; fCurrentTask = this; tss.esp0 = fKernelStackBottom; // kernel stack for user threads if (fFpuOwner == this) ClearTrapOnFp(); // My data is still in the fpu else SetTrapOnFp(); // Another thread's data is in the fpu, trap if I need // to use it. // Note: the INVALID_PAGE will tell the context switching // code to *not* switch address spaces. ContextSwitch(&previousTask->fStackPointer, fCurrentTask->fStackPointer, fPageDirectory != previousTask->fPageDirectory && !fKernelThread ? fPageDirectory : INVALID_PAGE); } void ThreadContext::PrintStackTrace() const { /* unsigned int *bottom = reinterpret_cast<unsigned int*>(__builtin_frame_address(1)); kprintf("frame return addr\n"); for (const unsigned int *stackPtr = bottom; stackPtr < reinterpret_cast<unsigned int*>(fKernelStackBottom) && stackPtr >= bottom; stackPtr = reinterpret_cast<const unsigned int*>(*stackPtr)) kprintf("%08x %08x\n", *stackPtr, *(stackPtr + 1));*/ } void ThreadContext::SwitchFp() { ClearTrapOnFp(); if (fFpuOwner) SaveFp(&fFpuOwner->fFpState); RestoreFp(&fCurrentTask->fFpState); fFpuOwner = fCurrentTask; } //#include <SystemCall.h> void ThreadContext::UserThreadStart(unsigned int startAddress, unsigned int userStack, unsigned int param) { //ThreadParam* Param = (ThreadParam*)param; //kprintf("ThreadContext::userthreadStart %s %x %x\n", (char*)Param->param, Param->entryPoint, userStack); /*char* name = (char*)param; userStack = (userStack - strlen(name) - 1); memcpy(reinterpret_cast<void*>(userStack), name, strlen(name) + 1);*/ userStack = (userStack - sizeof(ThreadParam)); memcpy((ThreadParam*)(userStack), (ThreadParam*)param, sizeof(ThreadParam)); //memcpy((void*)userStack, Param, sizeof(ThreadParam)); //CopyUser((void*)userStack, (void*)param, sizeof(ThreadParam)); //Param = (ThreadParam*)userStack; //kprintf("ThreadContext::userthreadStart %s %x %x\n", (char*)Param->param, Param->entryPoint, userStack); // First, put a small amount of code on the stack that // invokes the system call thread_exit(). The return address // for the first function call points to this code. This allows // a user thread to simply return the entry function and self terminate // cleanly. // movl $3, %eax; int $50 /*const unsigned char kExitStub[] = { 0xb8, 19, 0, 0, 0, 0xcd, 0x32 }; userStack = (userStack - sizeof(kExitStub)); memcpy(reinterpret_cast<void*>(userStack), kExitStub, sizeof(kExitStub)); */ //PUSH(userStack, param); // Param for user start func //PUSH(userStack, userStack + 8); // Return address (the exit stub) //PUSH(userStack, argAddress); // Param for user start func //PUSH(userStack, userStack + 8); // Return address (the exit stub) SwitchToUserMode(startAddress, userStack); }
[ "juhang3@daum.net" ]
juhang3@daum.net
f32c2f83406092ed5ebb6665a5ee23c564221396
a3389210770761646974384abc5120248748205a
/src/libraries/TVout/video_gen.cpp
1769d7cb60f827e0313bd74b9349579d2474519e
[ "MIT" ]
permissive
night-ghost/rx5808-pro-diversity
50c7893cb9497d717899847893cd4c641207e09e
ee3025d7ad584096fbff00a7197ef3666d18b868
refs/heads/master
2021-01-17T18:28:48.527670
2016-08-09T06:33:23
2016-08-09T06:33:23
45,344,920
0
1
null
2015-11-01T15:05:34
2015-11-01T15:05:33
null
UTF-8
C++
false
false
12,741
cpp
/* Copyright (c) 2010 Myles Metzer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <avr/interrupt.h> #include <avr/io.h> #include "video_gen.h" #include "spec/video_properties.h" #include "spec/asm_macros.h" #include "spec/hardware_setup.h" //#define REMOVE6C //#define REMOVE5C //#define REMOVE4C //#define REMOVE3C int renderLine; TVout_vid display; void (*render_line)(); //remove me void (*line_handler)(); //remove me void (*hbi_hook)() = &empty; void (*vbi_hook)() = &empty; // sound properties volatile long remainingToneVsyncs; void empty() {} void render_setup(uint8_t mode, uint8_t x, uint8_t y, uint8_t *scrnptr) { display.screen = scrnptr; display.hres = x; display.vres = y; display.frames = 0; display.video_mode=mode; if (mode) display.vscale_const = _PAL_LINE_DISPLAY/display.vres - 1; else display.vscale_const = _NTSC_LINE_DISPLAY/display.vres - 1; display.vscale = display.vscale_const; //selects the widest render method that fits in 46us //as of 9/16/10 rendermode 3 will not work for resolutions lower than //192(display.hres lower than 24) unsigned char rmethod = (_TIME_ACTIVE*_CYCLES_PER_US)/(display.hres*8); switch(rmethod) { case 6: render_line = &render_line6c; break; case 5: render_line = &render_line5c; break; case 4: render_line = &render_line4c; break; case 3: render_line = &render_line3c; break; default: if (rmethod > 6) render_line = &render_line6c; else render_line = &render_line3c; } // Pin setup DDR_VID |= _BV(VID_PIN); DDR_SYNC |= _BV(SYNC_PIN); PORT_VID &= ~_BV(VID_PIN); PORT_SYNC |= _BV(SYNC_PIN); DDR_SND |= _BV(SND_PIN); // for tone generation. // vertical syn is not critical from timing // to have flexibilty in pin and IRQ usage, // this is passed to top application to provide // a call on vsync IRQ on falling edge. // simply by PCI lib // example: // PCintPort::attachInterrupt(vsync_in,display.vsync_handle ,FALLING); display.vsync_handle=&vertical_handle; // pass to external pin ISR // to full video clock setup start_internal_clock(); display.clock_source=CLOCK_INTERN; // current clock } void setup_video_timing() { if (display.video_mode) { display.start_render = _PAL_LINE_MID - ((display.vres * (display.vscale_const+1))/2); display.output_delay = _PAL_CYCLES_OUTPUT_START; display.vsync_end = _PAL_LINE_STOP_VSYNC; display.lines_frame = _PAL_LINE_FRAME; ICR1 = _PAL_CYCLES_SCANLINE; OCR1A = _CYCLES_HORZ_SYNC; } else { display.start_render = _NTSC_LINE_MID - ((display.vres * (display.vscale_const+1))/2) + 8; display.output_delay = _NTSC_CYCLES_OUTPUT_START; display.vsync_end = _NTSC_LINE_STOP_VSYNC; display.lines_frame = _NTSC_LINE_FRAME; ICR1 = _NTSC_CYCLES_SCANLINE; OCR1A = _CYCLES_HORZ_SYNC; } display.scanLine = display.lines_frame+1; line_handler = &vsync_line; } void start_internal_clock() { // inverted fast pwm mode on timer 1 TCCR1A = _BV(COM1A1) | _BV(COM1A0) | _BV(WGM11); TCCR1B = _BV(WGM13) | _BV(WGM12) | _BV(CS10); // all timing and video timing stuff setup_video_timing(); // start timer TIMSK1 = _BV(TOIE1); // set state display.clock_source=CLOCK_INTERN; } void start_external_clock() { // disable timer1 for free running video TCCR1A = 0; TIMSK1 = 0; // all timing and video timing stuff (Timer1 Stuff is not required) setup_video_timing(); // Enable high speed edge detect on Pin D8. //ICES0 is set to 0 for falling edge detection on input capture pin. TCCR1B = _BV(CS10); TIMSK1 = _BV(TOIE1); // Enable input capture interrupt TIMSK1 |= _BV(ICIE1); // set state display.clock_source=CLOCK_EXTERN; } // clock selector // MUST do full init of timing generator and video counters void select_clock(uint8_t mode) { cli(); if(mode != display.clock_source) // action only on demand { if(mode) { start_external_clock(); } else { start_internal_clock(); } } sei(); } // ISR function for vertical handline, only required for exernal vsync void vertical_handle() { if(display.clock_source) { // externa vsync ONLY if required display.scanLine = 0; } } // render a line based on timer (free running) ISR(TIMER1_OVF_vect) { // original TVOUT handler hbi_hook(); line_handler(); if(!display.clock_source) { } } // render a line based on external sync signal ISR(TIMER1_CAPT_vect) { TCNT1 -= ICR1; hbi_hook(); line_handler(); } // regular render code void blank_line() { if ( display.scanLine == display.start_render) { renderLine = 0; display.vscale = display.vscale_const; line_handler = &active_line; } else if (display.scanLine == display.lines_frame) { line_handler = &vsync_line; vbi_hook(); } display.scanLine++; } void active_line() { wait_until(display.output_delay); render_line(); if (!display.vscale) { display.vscale = display.vscale_const; renderLine += display.hres; } else display.vscale--; if ((display.scanLine + 1) == (int)(display.start_render + (display.vres*(display.vscale_const+1)))) line_handler = &blank_line; display.scanLine++; } void vsync_line() { if (display.scanLine >= display.lines_frame) { OCR1A = _CYCLES_VIRT_SYNC; display.scanLine = 0; display.frames++; if (remainingToneVsyncs != 0) { if (remainingToneVsyncs > 0) { remainingToneVsyncs--; } } else { TCCR2B = 0; //stop the tone PORTB &= ~(_BV(SND_PIN)); } } else if (display.scanLine == display.vsync_end) { OCR1A = _CYCLES_HORZ_SYNC; line_handler = &blank_line; } display.scanLine++; } void inline wait_until(uint8_t time) { __asm__ __volatile__ ( "subi %[time], 10\n" "sub %[time], %[tcnt1l]\n\t" "100:\n\t" "subi %[time], 3\n\t" "brcc 100b\n\t" "subi %[time], 0-3\n\t" "breq 101f\n\t" "dec %[time]\n\t" "breq 102f\n\t" "rjmp 102f\n" "101:\n\t" "nop\n" "102:\n" : : [time] "a" (time), [tcnt1l] "a" (TCNT1L) ); } void render_line6c() { #ifndef REMOVE6C __asm__ __volatile__ ( "ADD r26,r28\n\t" "ADC r27,r29\n\t" //save PORTB "svprt %[port]\n\t" "rjmp enter6\n" "loop6:\n\t" "bst __tmp_reg__,0\n\t" //8 "o1bs %[port]\n" "enter6:\n\t" "LD __tmp_reg__,X+\n\t" //1 "delay1\n\t" "bst __tmp_reg__,7\n\t" "o1bs %[port]\n\t" "delay3\n\t" //2 "bst __tmp_reg__,6\n\t" "o1bs %[port]\n\t" "delay3\n\t" //3 "bst __tmp_reg__,5\n\t" "o1bs %[port]\n\t" "delay3\n\t" //4 "bst __tmp_reg__,4\n\t" "o1bs %[port]\n\t" "delay3\n\t" //5 "bst __tmp_reg__,3\n\t" "o1bs %[port]\n\t" "delay3\n\t" //6 "bst __tmp_reg__,2\n\t" "o1bs %[port]\n\t" "delay3\n\t" //7 "bst __tmp_reg__,1\n\t" "o1bs %[port]\n\t" "dec %[hres]\n\t" "brne loop6\n\t" //go too loopsix "delay2\n\t" "bst __tmp_reg__,0\n\t" //8 "o1bs %[port]\n" "svprt %[port]\n\t" BST_HWS "o1bs %[port]\n\t" : : [port] "i" (_SFR_IO_ADDR(PORT_VID)), "x" (display.screen), "y" (renderLine), [hres] "d" (display.hres) : "r16" // try to remove this clobber later... ); #endif } void render_line5c() { #ifndef REMOVE5C __asm__ __volatile__ ( "ADD r26,r28\n\t" "ADC r27,r29\n\t" //save PORTB "svprt %[port]\n\t" "rjmp enter5\n" "loop5:\n\t" "bst __tmp_reg__,0\n\t" //8 "o1bs %[port]\n" "enter5:\n\t" "LD __tmp_reg__,X+\n\t" //1 "bst __tmp_reg__,7\n\t" "o1bs %[port]\n\t" "delay2\n\t" //2 "bst __tmp_reg__,6\n\t" "o1bs %[port]\n\t" "delay2\n\t" //3 "bst __tmp_reg__,5\n\t" "o1bs %[port]\n\t" "delay2\n\t" //4 "bst __tmp_reg__,4\n\t" "o1bs %[port]\n\t" "delay2\n\t" //5 "bst __tmp_reg__,3\n\t" "o1bs %[port]\n\t" "delay2\n\t" //6 "bst __tmp_reg__,2\n\t" "o1bs %[port]\n\t" "delay1\n\t" //7 "dec %[hres]\n\t" "bst __tmp_reg__,1\n\t" "o1bs %[port]\n\t" "brne loop5\n\t" //go too loop5 "delay1\n\t" "bst __tmp_reg__,0\n\t" //8 "o1bs %[port]\n" "svprt %[port]\n\t" BST_HWS "o1bs %[port]\n\t" : : [port] "i" (_SFR_IO_ADDR(PORT_VID)), "x" (display.screen), "y" (renderLine), [hres] "d" (display.hres) : "r16" // try to remove this clobber later... ); #endif } void render_line4c() { #ifndef REMOVE4C __asm__ __volatile__ ( "ADD r26,r28\n\t" "ADC r27,r29\n\t" "rjmp enter4\n" "loop4:\n\t" "lsl __tmp_reg__\n\t" //8 "out %[port],__tmp_reg__\n\t" "enter4:\n\t" "LD __tmp_reg__,X+\n\t" //1 "delay1\n\t" "out %[port],__tmp_reg__\n\t" "delay2\n\t" //2 "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" "delay2\n\t" //3 "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" "delay2\n\t" //4 "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" "delay2\n\t" //5 "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" "delay2\n\t" //6 "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" "delay1\n\t" //7 "lsl __tmp_reg__\n\t" "dec %[hres]\n\t" "out %[port],__tmp_reg__\n\t" "brne loop4\n\t" //go too loop4 "delay1\n\t" //8 "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" "delay3\n\t" "cbi %[port],7\n\t" : : [port] "i" (_SFR_IO_ADDR(PORT_VID)), "x" (display.screen), "y" (renderLine), [hres] "d" (display.hres) : "r16" // try to remove this clobber later... ); #endif } // only 16mhz right now!!! void render_line3c() { #ifndef REMOVE3C __asm__ __volatile__ ( ".macro byteshift\n\t" "LD __tmp_reg__,X+\n\t" "out %[port],__tmp_reg__\n\t" //0 "nop\n\t" "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" //1 "nop\n\t" "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" //2 "nop\n\t" "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" //3 "nop\n\t" "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" //4 "nop\n\t" "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" //5 "nop\n\t" "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" //6 "nop\n\t" "lsl __tmp_reg__\n\t" "out %[port],__tmp_reg__\n\t" //7 ".endm\n\t" "ADD r26,r28\n\t" "ADC r27,r29\n\t" "cpi %[hres],30\n\t" //615 "breq skip0\n\t" "cpi %[hres],29\n\t" "breq jumpto1\n\t" "cpi %[hres],28\n\t" "breq jumpto2\n\t" "cpi %[hres],27\n\t" "breq jumpto3\n\t" "cpi %[hres],26\n\t" "breq jumpto4\n\t" "cpi %[hres],25\n\t" "breq jumpto5\n\t" "cpi %[hres],24\n\t" "breq jumpto6\n\t" "jumpto1:\n\t" "rjmp skip1\n\t" "jumpto2:\n\t" "rjmp skip2\n\t" "jumpto3:\n\t" "rjmp skip3\n\t" "jumpto4:\n\t" "rjmp skip4\n\t" "jumpto5:\n\t" "rjmp skip5\n\t" "jumpto6:\n\t" "rjmp skip6\n\t" "skip0:\n\t" "byteshift\n\t" //1 \\643 "skip1:\n\t" "byteshift\n\t" //2 "skip2:\n\t" "byteshift\n\t" //3 "skip3:\n\t" "byteshift\n\t" //4 "skip4:\n\t" "byteshift\n\t" //5 "skip5:\n\t" "byteshift\n\t" //6 "skip6:\n\t" "byteshift\n\t" //7 "byteshift\n\t" //8 "byteshift\n\t" //9 "byteshift\n\t" //10 "byteshift\n\t" //11 "byteshift\n\t" //12 "byteshift\n\t" //13 "byteshift\n\t" //14 "byteshift\n\t" //15 "byteshift\n\t" //16 "byteshift\n\t" //17 "byteshift\n\t" //18 "byteshift\n\t" //19 "byteshift\n\t" //20 "byteshift\n\t" //21 "byteshift\n\t" //22 "byteshift\n\t" //23 "byteshift\n\t" //24 "byteshift\n\t" //25 "byteshift\n\t" //26 "byteshift\n\t" //27 "byteshift\n\t" //28 "byteshift\n\t" //29 "byteshift\n\t" //30 "delay2\n\t" "cbi %[port],7\n\t" : : [port] "i" (_SFR_IO_ADDR(PORT_VID)), "x" (display.screen), "y" (renderLine), [hres] "d" (display.hres) : "r16" // try to remove this clobber later... ); #endif }
[ "night_ghost@ykoctpa.ru" ]
night_ghost@ykoctpa.ru
cc5ac3f7415b74200f0e7b1365b958e5f617cae9
36bf908bb8423598bda91bd63c4bcbc02db67a9d
/Include/CPaintLib.h
12371931de4b91215b0ef83d8351b8a048d16b7c
[]
no_license
code4bones/crawlpaper
edbae18a8b099814a1eed5453607a2d66142b496
f218be1947a9791b2438b438362bc66c0a505f99
refs/heads/master
2021-01-10T13:11:23.176481
2011-04-14T11:04:17
2011-04-14T11:04:17
44,686,513
0
1
null
null
null
null
UTF-8
C++
false
false
2,358
h
/* CPaintLib.h Classe derivata per interfaccia con paintlib. Luca Piergentili, 01/09/00 lpiergentili@yahoo.com Ad memoriam - Nemo me impune lacessit. */ #ifndef _CPAINTLIB_H #define _CPAINTLIB_H 1 #include "window.h" #include "ImageConfig.h" #ifdef HAVE_PAINTLIB_LIBRARY #include "ImageLibraryName.h" #include "CImage.h" #include "CImageParams.h" #include "paintlib.h" /* CPaintLib */ class CPaintLib : public CImage { public: CPaintLib(); virtual ~CPaintLib() {} LPCSTR GetLibraryName (void); UINT GetWidth (void); UINT GetHeight (void); float GetXRes (void); float GetYRes (void); void SetXRes (float nXRes); void SetYRes (float nYRes); int GetURes (void); void SetURes (UINT); void GetDPI (float&,float&); int GetCompression (void); void SetCompression (int); UINT GetNumColors (void); UINT GetBPP (void); UINT ConvertToBPP (UINT nBitsPerPixel,UINT nFlags,RGBQUAD *pPalette,UINT nColors); COLORREF GetPixel (UINT x,UINT y); void SetPixel (UINT x,UINT y,COLORREF colorref); void* GetPixels (void); LPBITMAPINFO GetBMI (void); HBITMAP GetBitmap (void); UINT GetMemUsed (void); HDIB GetDIB (DIBINFO* pDibInfo = NULL); BOOL SetDIB (HDIB hDib,DIBINFO* pDibInfo = NULL); int GetDIBOrder (void); BOOL SetPalette (UINT nIndex,UINT nColors,RGBQUAD* pPalette); BOOL Create (BITMAPINFO* pBitmapInfo,void *pData = NULL); BOOL Load (LPCSTR lpcszFileName); BOOL Save (void); BOOL Save (LPCSTR lpcszFileName,LPCSTR lpcszFormat,DWORD dwFlags); BOOL Stretch (RECT& drawRect,BOOL bAspectRatio = TRUE); BOOL SetImageParamsDefaultValues(CImageParams*); BOOL SetImageParamsMinMax(CImageParams*); UINT Grayscale (CImageParams*); UINT Halftone (CImageParams*); UINT Invert (CImageParams*); UINT Rotate90Left (CImageParams*); UINT Rotate90Right (CImageParams*); UINT Rotate180 (CImageParams*); UINT Size (CImageParams*); protected: BOOL _Load (LPCSTR lpcszFileName); BOOL _Save (LPCSTR lpcszFileName,LPCSTR lpcszFormat,DWORD dwFlags); void Rotate (double); BOOL ConvertToBPP (UINT nBPP); CWinBmp m_Image; }; #endif // HAVE_PAINTLIB_LIBRARY #endif // _CPAINTLIB_H
[ "luca.pierge@gmail.com" ]
luca.pierge@gmail.com
5bd3bf2129bcd266a9944fed68b5d99448f3ef24
4700115f94bc2a8c83ca5349053e9684fc471c29
/src/System/TimeLinux.cpp
02ad6b9be47c9256e22baab1e6e93e693fd16aad
[ "Apache-2.0" ]
permissive
wangscript/RadonFramework
5ff29ad5f9a623cd3f4a2cb60ca8ae8fe669647c
7066779c1b88089d9ac220d21c1128c2cc2163a9
refs/heads/master
2020-12-28T23:45:46.151802
2015-07-03T18:42:29
2015-07-03T18:42:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
701
cpp
#include "RadonFramework/precompiled.hpp" #include "RadonFramework/System/Time.hpp" #include <time.h> #include <sys/time.h> #include <sys/timeb.h> #include <stdlib.h> RF_Type::UInt64 GetHighResolutionCounter() { timespec tmp; RF_Type::UInt64 result=0; if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &tmp) == 0) result=tmp.tv_sec*1000000000llu+tmp.tv_nsec; return result; } RF_Type::Bool IsHighResolutionCounterSupported() { timespec tmp; return clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&tmp)==0; } void Dispatch_Linux() { RFTIME::GetHighResolutionCounter = GetHighResolutionCounter; RFTIME::IsHighResolutionCounterSupported = IsHighResolutionCounterSupported; }
[ "thomas@ptscientists.com" ]
thomas@ptscientists.com
f8bf503b4d3b7be320fd4d6a26b5f015ac01aa15
27bb5ed9eb1011c581cdb76d96979a7a9acd63ba
/aws-cpp-sdk-inspector/source/model/DescribeFindingRequest.cpp
09893dc0d324343da790524c9779b67c2d052dd2
[ "Apache-2.0", "JSON", "MIT" ]
permissive
exoscale/aws-sdk-cpp
5394055f0876a0dafe3c49bf8e804d3ddf3ccc54
0876431920136cf638e1748d504d604c909bb596
refs/heads/master
2023-08-25T11:55:20.271984
2017-05-05T17:32:25
2017-05-05T17:32:25
90,744,509
0
0
null
2017-05-09T12:43:30
2017-05-09T12:43:30
null
UTF-8
C++
false
false
1,365
cpp
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ #include <aws/inspector/model/DescribeFindingRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Inspector::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DescribeFindingRequest::DescribeFindingRequest() : m_findingArnHasBeenSet(false) { } Aws::String DescribeFindingRequest::SerializePayload() const { JsonValue payload; if(m_findingArnHasBeenSet) { payload.WithString("findingArn", m_findingArn); } return payload.WriteReadable(); } Aws::Http::HeaderValueCollection DescribeFindingRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "InspectorService.DescribeFinding")); return headers; }
[ "henso@amazon.com" ]
henso@amazon.com
a26b7a23f567d963de9bd0cd4c2573d647709f9e
8b2ec0fef5a5b1d741eee794e8c39a937cc31063
/PieceT.h
2b6f0f5548decfe6500d09ff10a475b6ee014428
[]
no_license
Avival-Code/TetrisSFML
f219969adddb1ef1dfdd0fd2c678ad1125e61ad7
49ff5fc90ed94edecd4895a58a58949f37ac1f56
refs/heads/master
2020-04-30T19:03:24.593263
2019-03-21T21:44:22
2019-03-21T21:44:22
177,027,374
0
0
null
null
null
null
UTF-8
C++
false
false
352
h
#pragma once #include "Tetromino.h" class PieceT : public Tetromino { public: PieceT(Vef2& Start_Pos, sf::Texture& Texture); void ResetBlockPositions() override; void ArrangePieceBlocks() override; void RotatePieceLeft() override; void RotatePieceDown() override; void RotatePieceRight() override; void RotatePieceUp() override; };
[ "noreply@github.com" ]
Avival-Code.noreply@github.com
ed7e58b60a617dcbdcba129d5f0cfd10e0869c21
249b8ac66022cef45f1e5fd8d594b76ee0cb3ad4
/Working/ClusterResults/damBreak/damBreakFine/processor1/0.25/p_rgh
5ce8b3ee8ddbc25ab3d103c2e7796f793f893c7f
[]
no_license
Anthony-Gay/HPC_workspace
2a3da1d599a562f2820269cc36a997a2b16fcbb8
41ef65d7ed3977418f360a52c2d8ae681e1b3971
refs/heads/master
2021-07-13T17:36:50.352775
2021-02-08T05:59:49
2021-02-08T05:59:49
232,433,074
0
1
null
null
null
null
UTF-8
C++
false
false
20,354
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 7 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0.25"; object p_rgh; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField nonuniform List<scalar> 1915 ( 2914.18 2964.93 2894.37 2964.05 2941.35 3009.65 2989.7 3081.94 3016.45 3145.16 3006.24 3171.89 2945.15 3135.02 2817.96 3007.82 2605.85 2734.62 2288.37 2214.85 0.957976 0.948424 0.940213 0.931354 0.923644 0.917286 0.911532 0.906738 0.902507 0.898403 0.894112 0.889452 0.884336 0.878725 0.87264 0.866138 0.859347 0.8524 0.845367 0.838307 0.831337 0.824521 0.817925 0.8116 0.805617 0.799928 0.794514 0.789473 0.784821 0.780526 0.77657 0.772918 0.769578 0.766597 0.763997 0.761871 0.760238 0.759033 0.758254 0.757682 0.960449 0.95213 0.943977 0.934815 0.925484 0.917237 0.910736 0.905463 0.900828 0.896416 0.891923 0.887154 0.882019 0.876474 0.870504 0.864131 0.857442 0.850561 0.843664 0.836818 0.83001 0.823344 0.816899 0.810732 0.804865 0.799301 0.794053 0.789121 0.784548 0.780321 0.776412 0.772823 0.769543 0.766584 0.764019 0.76185 0.76011 0.758807 0.757918 0.757271 0.96278 0.953272 0.944309 0.93475 0.925296 0.916855 0.909935 0.904148 0.899077 0.894317 0.889556 0.884609 0.879385 0.873854 0.867968 0.861704 0.855118 0.848367 0.841627 0.834952 0.828346 0.821876 0.815621 0.809648 0.803971 0.798579 0.793432 0.788557 0.784002 0.779784 0.775901 0.77235 0.769105 0.766202 0.763643 0.761479 0.759699 0.758333 0.757387 0.756916 0.965054 0.953624 0.943132 0.933282 0.923871 0.915582 0.908628 0.902716 0.89746 0.892502 0.887539 0.882394 0.877018 0.871417 0.865548 0.859337 0.852802 0.846124 0.839509 0.833011 0.826619 0.820354 0.814295 0.808517 0.803019 0.797748 0.792652 0.787759 0.783143 0.778869 0.774973 0.771453 0.768281 0.76545 0.762951 0.760807 0.759023 0.757648 0.75666 0.756391 0.9661 0.952654 0.940118 0.930064 0.921009 0.913253 0.90672 0.901067 0.895922 0.890957 0.885898 0.88059 0.875027 0.869283 0.863361 0.857157 0.850648 0.844014 0.837501 0.831177 0.824992 0.818919 0.813024 0.807387 0.802003 0.796786 0.79167 0.786684 0.781941 0.777569 0.773645 0.770174 0.767108 0.764396 0.761999 0.759913 0.758159 0.756797 0.755875 0.755662 0.964312 0.948983 0.934173 0.924492 0.916375 0.909701 0.904083 0.899072 0.894299 0.8895 0.884454 0.879038 0.873286 0.867358 0.861345 0.85514 0.848666 0.842084 0.835662 0.829496 0.823492 0.81757 0.811773 0.806186 0.800814 0.795566 0.790368 0.785261 0.78039 0.775931 0.771996 0.768597 0.765662 0.763097 0.76083 0.758835 0.757139 0.755817 0.754972 0.754816 0.956686 0.940836 0.923658 0.9157 0.90954 0.904734 0.900617 0.896655 0.892516 0.888036 0.883099 0.877643 0.871738 0.865623 0.859496 0.853282 0.846848 0.840313 0.833957 0.827906 0.822039 0.816213 0.810436 0.804798 0.799332 0.793979 0.788677 0.783468 0.778515 0.774017 0.770109 0.766802 0.764007 0.761598 0.759471 0.757585 0.755965 0.754702 0.753933 0.753828 0.935893 0.924993 0.905766 0.902308 0.899926 0.89816 0.896288 0.893826 0.890596 0.886593 0.88186 0.876427 0.870405 0.86411 0.857843 0.851581 0.845148 0.838614 0.832266 0.826256 0.820454 0.814663 0.808843 0.803089 0.797476 0.791991 0.786597 0.78134 0.776378 0.771908 0.768063 0.764857 0.762195 0.75993 0.757937 0.75616 0.754626 0.753435 0.752739 0.752675 0.877014 0.893687 0.875823 0.882324 0.886869 0.88987 0.891169 0.890718 0.88867 0.885284 0.880826 0.875458 0.869338 0.862845 0.856381 0.850001 0.843496 0.83688 0.83044 0.824359 0.81852 0.812701 0.806822 0.800959 0.795213 0.78962 0.784183 0.77895 0.774056 0.769671 0.765918 0.762812 0.760259 0.758111 0.756232 0.754558 0.753115 0.752003 0.751374 0.751341 0.724098 0.824528 0.829013 0.853983 0.869954 0.879948 0.885494 0.887568 0.886925 0.884245 0.880084 0.87477 0.868535 0.861805 0.855073 0.84848 0.841813 0.835023 0.828372 0.822081 0.816089 0.810186 0.804255 0.798336 0.792533 0.786916 0.781516 0.776379 0.771613 0.767355 0.76371 0.760691 0.758216 0.756148 0.754356 0.752775 0.751422 0.750391 0.749827 0.74982 1842.22 1269.08 1504.16 1078.55 1315.23 1100.27 1172.42 1034.58 1049.67 937.088 954.719 868.331 887.231 827.43 843.997 805.887 822.98 803.335 834.231 820.917 864.69 820.984 690.091 215.452 -4.93616 -5.83182 -6.14465 -6.00481 -5.61777 -5.07986 -3.55598 -3.36273 -3.22018 -2.955 -2.6398 -2.29373 -1.93946 -1.58471 -1.30237 -1.08349 -0.915708 -0.788922 -0.692236 131.151 -7.73513 -1.26363 -1.26958 357.445 14.8947 -0.950311 0.133057 706.972 111.293 -0.313391 0.24906 800.29 446.776 38.2189 0.258279 803.713 696.454 160.449 2.81787 791.088 736.947 474.153 43.0316 783.112 762.223 754.477 177.371 780.94 778.158 787.966 393.123 790.54 797.199 817.73 641.189 815.832 825.553 850.569 862.998 855.872 865.174 890.17 933.35 910.431 914.303 936.39 976.852 972.716 967.46 989.179 1027.18 967.441 1025.73 1047.37 1082.5 887.976 1090.33 1109.5 1142.45 682.6 1154.4 1175.8 1207.22 525.625 1196.47 1245.62 1266.69 521.003 1222.61 1228.42 1116.35 623.818 1251.55 1232.69 480.141 630.704 1293.82 1294.79 369.152 298.412 1325.49 1351.69 1046.1 -4.53116 1212.36 1397.73 1382.77 -3.20303 510.761 1302.06 1356.56 -2.64025 3.7207 639.474 956.145 -1.96285 0.310587 32.3333 195.188 -0.918962 -0.104351 8.46562 20.0818 -1.26863 -0.146299 2.64456 6.20114 -1.30413 -0.508364 0.432731 1.70686 -1.04322 -0.646317 -0.110951 0.522078 -0.842117 -0.542868 -0.176576 0.219446 -0.699172 -0.451753 -0.172523 0.114669 -0.597524 -0.38888 -0.16492 0.0591081 -0.524946 -0.348048 -0.163522 0.0182275 0.263893 0.658875 0.761193 0.817249 0.849507 0.86884 0.879698 0.884707 0.885571 0.883574 0.879649 0.87432 0.867905 0.860873 0.853801 0.846901 0.839979 0.832937 0.825991 0.819384 0.813124 0.807066 0.801092 0.7952 0.789456 0.783924 0.778646 0.773669 0.769077 0.764973 0.761436 0.758482 0.756049 0.754023 0.752291 0.750788 0.749521 0.748574 0.748076 0.748094 0.390452 0.552677 0.695053 0.779399 0.828718 0.858033 0.874593 0.882596 0.884842 0.883348 0.879476 0.873986 0.867284 0.859866 0.852369 0.845072 0.837824 0.830501 0.823245 0.816277 0.80968 0.803412 0.797401 0.791605 0.786025 0.780681 0.775605 0.770842 0.766454 0.762511 0.759073 0.756159 0.753735 0.751719 0.750019 0.748578 0.747393 0.746529 0.746099 0.746147 0.406496 0.499905 0.643753 0.746319 0.810814 0.849518 0.871286 0.881803 0.884984 0.883609 0.879495 0.873629 0.866491 0.858592 0.850592 0.84282 0.835193 0.827589 0.820067 0.812784 0.805866 0.799383 0.793338 0.787675 0.782322 0.777238 0.772424 0.767908 0.763734 0.759947 0.756593 0.753701 0.751262 0.74923 0.747542 0.746148 0.745039 0.74426 0.743899 0.743978 0.477254 0.465954 0.605347 0.72328 0.800171 0.845915 0.871144 0.882961 0.886248 0.88441 0.879649 0.873137 0.865404 0.856952 0.848399 0.840085 0.832012 0.824112 0.816391 0.808903 0.80176 0.795112 0.789051 0.783533 0.778433 0.773639 0.769106 0.764842 0.760875 0.757233 0.753953 0.75107 0.748602 0.74654 0.744849 0.743493 0.742455 0.741759 0.741468 0.741584 0.413963 0.472967 0.610833 0.725229 0.804063 0.850839 0.875851 0.886763 0.888851 0.885767 0.879879 0.872436 0.863967 0.854929 0.845828 0.83695 0.828374 0.820144 0.812258 0.804662 0.797407 0.790681 0.784645 0.779281 0.774425 0.769906 0.765636 0.761606 0.757829 0.754321 0.751107 0.748227 0.745725 0.743628 0.741931 0.740608 0.739637 0.739023 0.738805 0.738961 1.5258 0.494511 0.692855 0.771394 0.83132 0.868087 0.886937 0.893689 0.892825 0.887558 0.880037 0.871389 0.862069 0.852454 0.842892 0.833538 0.82449 0.815911 0.807843 0.800173 0.792881 0.786148 0.780181 0.774971 0.770328 0.76604 0.761992 0.758161 0.75455 0.751161 0.748008 0.745134 0.742605 0.740478 0.738776 0.737486 0.73658 0.736047 0.735903 0.736106 3.92046 0.882888 0.79695 0.859914 0.886417 0.899908 0.905004 0.903597 0.897781 0.889371 0.879774 0.86971 0.859469 0.849327 0.839458 0.829825 0.82047 0.811621 0.803376 0.79562 0.788302 0.781594 0.775703 0.770623 0.766144 0.762027 0.758146 0.754468 0.750991 0.747704 0.744611 0.741754 0.739214 0.737072 0.735375 0.734122 0.733281 0.732829 0.732763 0.733017 16.5792 1.74741 0.985155 0.985256 0.967259 0.945478 0.929007 0.915361 0.902719 0.890426 0.878523 0.867005 0.855873 0.845277 0.835247 0.825567 0.816173 0.807267 0.798962 0.791152 0.7838 0.777096 0.77125 0.766249 0.761866 0.757851 0.75407 0.750493 0.747114 0.743914 0.740883 0.73806 0.735531 0.733395 0.731717 0.730508 0.729735 0.729366 0.72938 0.729689 68.7108 2.87026 1.30894 1.14516 1.06517 0.999861 0.955706 0.926624 0.905959 0.889588 0.875565 0.862858 0.85105 0.840132 0.830041 0.820482 0.811314 0.802642 0.794498 0.786757 0.77941 0.772695 0.766848 0.761858 0.757491 0.753495 0.749743 0.746212 0.742897 0.739769 0.736805 0.734032 0.731538 0.729431 0.727791 0.726638 0.725939 0.725654 0.725749 0.726118 154.891 4.03787 1.76844 1.33503 1.16604 1.05286 0.979187 0.933727 0.905206 0.885438 0.870062 0.856822 0.844832 0.833881 0.823858 0.814512 0.805726 0.797515 0.789766 0.782271 0.775038 0.768351 0.762483 0.757443 0.753007 0.748944 0.745148 0.741611 0.738329 0.735261 0.732368 0.729661 0.727225 0.725171 0.72359 0.722505 0.721885 0.721687 0.721867 0.722297 301.829 5.44025 2.249 1.52745 1.25581 1.08943 0.990466 0.932043 0.897867 0.876452 0.861137 0.848355 0.836959 0.826512 0.816841 0.807825 0.799482 0.79182 0.784598 0.777504 0.770518 0.763944 0.75808 0.752958 0.74839 0.744189 0.740286 0.736697 0.733418 0.730396 0.727572 0.724944 0.722585 0.720608 0.719104 0.718101 0.717568 0.717459 0.717725 0.718221 448.363 10.2546 2.56159 1.65857 1.31891 1.09738 0.981469 0.916835 0.88158 0.861433 0.847902 0.836945 0.827108 0.817866 0.809006 0.800556 0.792741 0.785642 0.778969 0.77234 0.765699 0.75933 0.753522 0.748323 0.743595 0.739213 0.735162 0.731483 0.72818 0.725187 0.722429 0.719886 0.71762 0.715737 0.714328 0.713419 0.712978 0.712962 0.713317 0.713882 561.024 17.1563 2.65021 1.67367 1.30378 1.06854 0.947458 0.885497 0.854943 0.839663 0.830248 0.822538 0.815188 0.807788 0.800214 0.792663 0.78555 0.779056 0.772916 0.766751 0.760494 0.754391 0.748694 0.743449 0.738566 0.733991 0.729772 0.725983 0.722636 0.719657 0.716956 0.714499 0.712334 0.710559 0.709257 0.708451 0.708108 0.708189 0.708636 0.70927 601.834 17.2578 2.49766 1.56647 1.21116 1.00367 0.888086 0.837905 0.818208 0.811614 0.808683 0.805638 0.801571 0.796455 0.790476 0.784087 0.77786 0.772047 0.766438 0.760719 0.754851 0.74905 0.743509 0.738256 0.733244 0.72849 0.724106 0.720204 0.716803 0.713828 0.711176 0.708799 0.706737 0.705074 0.703886 0.70319 0.702952 0.703132 0.703673 0.704378 607.271 15.8658 2.0842 1.3513 1.07339 0.915579 0.807732 0.777089 0.773373 0.778739 0.784308 0.787134 0.786987 0.784424 0.780151 0.774999 0.769715 0.764605 0.759515 0.754224 0.748743 0.743259 0.737903 0.732678 0.727573 0.722674 0.718151 0.71415 0.7107 0.707722 0.705107 0.702802 0.700836 0.699286 0.698215 0.697633 0.697502 0.697783 0.698418 0.699195 610.23 15.3664 1.86867 1.11952 0.925381 0.807735 0.715538 0.708955 0.724097 0.743357 0.758643 0.768066 0.772222 0.772347 0.76977 0.765778 0.761339 0.756836 0.752192 0.747283 0.742168 0.736996 0.731833 0.726661 0.721504 0.716508 0.711891 0.707822 0.704336 0.701352 0.698763 0.696517 0.694639 0.693197 0.692242 0.691775 0.691752 0.692135 0.692862 0.69371 589.654 12.8376 1.50843 0.908993 0.771992 0.682549 0.621891 0.640618 0.675161 0.70859 0.73364 0.749628 0.758031 0.760774 0.759791 0.75681 0.753025 0.748937 0.744589 0.739966 0.735158 0.730262 0.725278 0.720173 0.715003 0.709964 0.705307 0.701211 0.697709 0.694723 0.692153 0.689954 0.688154 0.686812 0.685968 0.685613 0.685695 0.686177 0.686996 0.687913 408.539 9.37253 1.09119 0.669821 0.591043 0.564505 0.542611 0.578888 0.63127 0.677726 0.711533 0.733227 0.745249 0.750202 0.750549 0.748355 0.744991 0.741091 0.736853 0.732381 0.727782 0.72309 0.718246 0.713204 0.708053 0.703023 0.698381 0.6943 0.690808 0.687829 0.685275 0.683115 0.681382 0.680131 0.67939 0.679141 0.679325 0.679902 0.680809 0.681793 52.9205 5.18939 0.846794 0.469931 0.450143 0.474276 0.481504 0.529762 0.596469 0.65356 0.694336 0.720263 0.734772 0.741164 0.742339 0.740578 0.73735 0.733404 0.729093 0.724628 0.720116 0.71553 0.71076 0.70576 0.700646 0.69567 0.691094 0.687072 0.683618 0.680658 0.678123 0.675998 0.674323 0.673152 0.672506 0.672355 0.672634 0.673301 0.674292 0.67534 14.659 3.83196 1.04608 0.482928 0.410545 0.418371 0.4388 0.496641 0.573653 0.638331 0.683671 0.711885 0.727388 0.734159 0.735438 0.733606 0.730156 0.725918 0.721364 0.71677 0.712221 0.707627 0.70285 0.697856 0.692786 0.687898 0.683431 0.679507 0.676119 0.673195 0.670685 0.668593 0.666969 0.66587 0.66531 0.665249 0.665615 0.666365 0.667434 0.668541 169.588 7.84156 1.58843 0.485851 0.340391 0.361408 0.405754 0.48053 0.565073 0.634105 0.680951 0.708973 0.723635 0.729503 0.730005 0.72749 0.72341 0.718628 0.713674 0.708828 0.70412 0.699406 0.694538 0.689508 0.684481 0.679705 0.675382 0.671587 0.668289 0.665418 0.66294 0.660883 0.659309 0.658277 0.657795 0.657815 0.65826 0.659085 0.660225 0.661387 1016.44 360.151 33.4769 0.907772 0.258527 0.293755 0.379621 0.483783 0.574999 0.643449 0.687464 0.712107 0.723719 0.727218 0.725969 0.722128 0.717017 0.711463 0.705976 0.70077 0.695794 0.690858 0.685826 0.680726 0.675741 0.671096 0.66694 0.663296 0.660104 0.657299 0.654866 0.652851 0.65133 0.650363 0.649954 0.650047 0.650561 0.651453 0.652657 0.653869 1271.79 1051.16 345.869 5.48196 0.727884 0.315086 0.403951 0.52103 0.609361 0.668592 0.70378 0.721198 0.72734 0.72695 0.722992 0.717233 0.710757 0.704265 0.698153 0.692508 0.687177 0.681943 0.676698 0.671513 0.666577 0.662077 0.658099 0.654614 0.65154 0.648814 0.646439 0.644478 0.643018 0.642119 0.641779 0.641938 0.642511 0.643462 0.644722 0.645978 901.479 779.877 401.539 59.4314 1.93597 0.52278 0.496187 0.599888 0.669563 0.708876 0.728506 0.734864 0.733371 0.727835 0.720419 0.712321 0.704285 0.696785 0.690014 0.683889 0.678158 0.672593 0.667126 0.661865 0.656993 0.652647 0.648849 0.645526 0.642575 0.63994 0.637638 0.635747 0.63436 0.633534 0.633262 0.63348 0.634106 0.635107 0.636415 0.637708 157.592 95.6359 123.837 71.4251 11.2844 0.945955 0.687227 0.721541 0.750556 0.7591 0.757489 0.750031 0.739665 0.728399 0.71725 0.706726 0.697154 0.688705 0.681319 0.674729 0.668604 0.662724 0.657068 0.651766 0.646983 0.642799 0.639181 0.636015 0.63319 0.630657 0.628446 0.626644 0.625344 0.624599 0.624395 0.624667 0.625339 0.626383 0.627731 0.629053 18.8631 13.4334 8.19445 15.0074 8.42965 2.11392 0.942571 0.865998 0.834474 0.807303 0.783376 0.762223 0.743447 0.726899 0.712385 0.69975 0.688905 0.679697 0.671813 0.664829 0.65837 0.652245 0.646473 0.641192 0.636534 0.632524 0.629081 0.626067 0.62337 0.62095 0.618849 0.617155 0.61596 0.615304 0.615171 0.615496 0.616209 0.617287 0.618666 0.620009 6.51414 4.96233 3.22369 2.19074 2.08145 1.5992 1.11228 0.961318 0.888087 0.836849 0.797628 0.766855 0.742085 0.721749 0.704851 0.690781 0.679124 0.669451 0.661249 0.653998 0.647321 0.641069 0.63529 0.630114 0.625627 0.621806 0.618535 0.615669 0.613103 0.610809 0.608836 0.607273 0.606197 0.605642 0.605585 0.605962 0.606711 0.607817 0.609217 0.610573 2.25237 2.06699 1.70676 1.48637 1.36238 1.23162 1.08331 0.972128 0.896897 0.840084 0.7959 0.761365 0.733988 0.711938 0.694002 0.679389 0.667493 0.657709 0.649415 0.642073 0.635345 0.629127 0.62348 0.618505 0.61424 0.610625 0.607528 0.604808 0.602378 0.600225 0.598402 0.59699 0.596053 0.59561 0.595634 0.596064 0.596845 0.59797 0.599382 0.600744 0.954587 1.11546 1.14504 1.15209 1.13877 1.08623 1.00956 0.935188 0.872659 0.821077 0.779271 0.745781 0.718904 0.697196 0.679608 0.665372 0.65382 0.644291 0.636162 0.628945 0.622373 0.616377 0.611013 0.606339 0.602351 0.598962 0.596042 0.593473 0.59119 0.589197 0.587548 0.586309 0.585527 0.585208 0.585318 0.585801 0.58661 0.587749 0.589164 0.590524 0.55031 0.760943 0.879806 0.948451 0.976348 0.96398 0.923749 0.874935 0.827952 0.786275 0.750904 0.721602 0.697548 0.677864 0.661809 0.648743 0.638048 0.629119 0.621422 0.614576 0.608387 0.602812 0.597877 0.593599 0.589935 0.586793 0.584062 0.581656 0.57954 0.577732 0.576281 0.575236 0.574625 0.574439 0.574639 0.575175 0.57601 0.577156 0.578568 0.579919 0.376878 0.575645 0.708903 0.793585 0.838186 0.847086 0.830943 0.802853 0.771537 0.741346 0.714259 0.690893 0.671151 0.654664 0.640998 0.629685 0.620247 0.612219 0.605222 0.598997 0.593419 0.588449 0.584076 0.580272 0.576976 0.574105 0.571581 0.56936 0.567438 0.565842 0.564614 0.563783 0.563355 0.563309 0.563604 0.564194 0.565052 0.566201 0.567601 0.568935 0.271326 0.446107 0.573873 0.661149 0.713604 0.736688 0.738208 0.727021 0.70987 0.690929 0.672531 0.655797 0.641111 0.628472 0.617693 0.608502 0.600607 0.593739 0.587688 0.582317 0.577547 0.57333 0.569616 0.566347 0.563457 0.560888 0.558605 0.556605 0.554911 0.553556 0.552571 0.551966 0.551729 0.551828 0.552219 0.552863 0.553743 0.55489 0.556271 0.557579 0.193112 0.344216 0.461206 0.546473 0.60339 0.636243 0.650635 0.652665 0.647439 0.638579 0.628406 0.61825 0.608757 0.600157 0.59246 0.585589 0.579448 0.573959 0.569067 0.564727 0.560894 0.557509 0.554501 0.551802 0.549358 0.547141 0.545157 0.543434 0.542013 0.540927 0.540196 0.539817 0.539766 0.540003 0.540485 0.541181 0.542082 0.543225 0.544583 0.545861 ) ; boundaryField { leftWall { type fixedFluxPressure; gradient nonuniform 0(); value nonuniform 0(); } rightWall { type fixedFluxPressure; gradient uniform 0; value nonuniform List<scalar> 43 ( 0.757682 0.757271 0.756916 0.756391 0.755662 0.754816 0.753828 0.752675 0.751341 0.74982 0.748094 0.746147 0.743978 0.741584 0.738961 0.736106 0.733017 0.729689 0.726118 0.722297 0.718221 0.713882 0.70927 0.704378 0.699195 0.69371 0.687913 0.681793 0.67534 0.668541 0.661387 0.653869 0.645978 0.637708 0.629053 0.620009 0.610573 0.600744 0.590524 0.579919 0.568935 0.557579 0.545861 ) ; } lowerWall { type fixedFluxPressure; gradient uniform 0; value nonuniform List<scalar> 66 ( 2914.18 2964.93 2964.93 2964.05 3009.65 3081.94 3145.16 3171.89 3135.02 3007.82 2734.62 2214.85 131.151 -7.73513 -1.26363 -1.26958 0.957976 0.960449 0.96278 0.965054 0.9661 0.964312 0.956686 0.935893 0.877014 0.724098 0.957976 0.948424 0.940213 0.931354 0.923644 0.917286 0.911532 0.906738 0.902507 0.898403 0.894112 0.889452 0.884336 0.878725 0.87264 0.866138 0.859347 0.8524 0.845367 0.838307 0.831337 0.824521 0.817925 0.8116 0.805617 0.799928 0.794514 0.789473 0.784821 0.780526 0.77657 0.772918 0.769578 0.766597 0.763997 0.761871 0.760238 0.759033 0.758254 0.757682 ) ; } atmosphere { type totalPressure; rho rho; psi none; gamma 1; p0 nonuniform 0(); value nonuniform 0(); } defaultFaces { type empty; } procBoundary1to0 { type processor; value nonuniform List<scalar> 44 ( 2891.53 2903.84 2923.63 2931.92 2918.41 2874.74 2791.62 2659.91 2471.23 2224.14 1932.93 1664.3 1462.38 1300.12 1159.3 1042.11 951.601 886.339 847.334 777 770.765 770.765 174.702 -0.526148 -3.08224 -4.61156 -5.0326 -5.06027 -4.88409 -4.65447 -4.38657 -3.97938 -3.62568 -3.32591 -3.00406 -2.68919 -2.38349 -2.06511 -1.75939 -1.49305 -1.27432 -1.09846 -0.95767 -0.844584 ) ; } procBoundary1to3 { type processor; value nonuniform List<scalar> 45 ( -0.616927 -0.471539 -0.321047 -0.16675 -0.015797 0.130885 0.261785 0.367677 0.449143 0.508013 0.547255 0.570758 0.582779 0.58714 0.586831 0.583951 0.57983 0.575222 0.570509 0.565869 0.561397 0.557164 0.553232 0.549653 0.546446 0.543597 0.541054 0.538754 0.53664 0.534683 0.532884 0.531274 0.5299 0.528805 0.528018 0.52755 0.527389 0.527505 0.52786 0.528418 0.529155 0.530071 0.531209 0.532544 0.53379 ) ; } } // ************************************************************************* //
[ "anthonygay1812@yahoo.com" ]
anthonygay1812@yahoo.com
cbcc113aedda9d9b89db36a5be2134a56f3fc100
5cd88ef8b7b43b3039bad7c8cf9423c257b0b512
/Penguin/src/VertexArray.h
0bfb051958fe4f2ed18598ac54f9858628de2dbb
[]
no_license
David-DiGioia/penguin-graphics
d8fa5eb25be4af8842a6082f068d650240547548
a02ec7c5a398d8827d39efc9d6fb1e77a3808c59
refs/heads/master
2020-06-10T02:10:14.118262
2019-09-15T23:07:49
2019-09-15T23:07:49
193,552,694
1
0
null
null
null
null
UTF-8
C++
false
false
284
h
#pragma once #include "VertexBufferLayout.h" #include "VertexBuffer.h" class VertexArray { public: VertexArray(); ~VertexArray(); void bind() const; void unbind() const; void addBuffer(const VertexBuffer& vbo, const VertexBufferLayout& layout); private: unsigned int m_id; };
[ "davidofjoy@gmail.com" ]
davidofjoy@gmail.com
baf356d2051b9d1885b481dbe612ba3e582839b3
e9cfe0a6d4c3930341860d86b17f62b402bd7981
/ciencia_5/ciencia_5.ino
b9836fca0bd12663746895d1d998cf68f60ceef6
[]
no_license
joaopaulo-cerquinhocajueiro/aulasArduino
e921ed9ad6e2e3a271fafab2206b53f27fd8f366
a2d1cc655d5a8162fc20989301c4e067f9376182
refs/heads/master
2021-01-22T05:37:35.749663
2017-02-20T14:04:41
2017-02-20T14:04:41
81,679,510
0
0
null
null
null
null
UTF-8
C++
false
false
1,236
ino
//Variação do Hue de um led RGB /* O potenciômetro define o hue interpolando entre estes pontos: 0 - red = 255, green = 0, blue = 0 341(1024/3) - red = 0, green = 255, blue = 0 683(2*1024/3) - - red = 0, green = 0, blue = 255 1024 - mesmo que 0 */ const int buttonPin = 4; const int r = 3; const int g = 5; const int b = 6; const int potPin = A4; int potValue; int buttonValue; int lastValue; int rval,gval,bval; void setup(){ pinMode(r,OUTPUT); pinMode(g,OUTPUT); pinMode(b,OUTPUT); pinMode(buttonPin,INPUT); } void loop(){ buttonValue = digitalRead(buttonPin); if (buttonValue == HIGH){ potValue = analogRead(potPin); if(potValue<=341){ gval = map(potValue,0,341,0,255); rval = 255 - gval; bval = 0; } else if(potValue<=683){ bval = map(potValue,342,683,0,255); gval = 255 - bval; rval = 0; } else { rval = map(potValue,684,1023,0,255); bval = 255 - rval; gval = 0; } analogWrite(r,rval*0.3); analogWrite(g,gval*0.3); analogWrite(b,bval*0.3); } else if(buttonValue == LOW && lastValue == HIGH){ digitalWrite(r,LOW); digitalWrite(g,LOW); digitalWrite(b,LOW); } delay(10); lastValue = buttonValue; }
[ "João Paulo Cerquinho Cajueiro" ]
João Paulo Cerquinho Cajueiro
a5ccfebc0d1f9f4f0de9647a10bfed86f82d7c4c
e25dccfacf52ad29aeec362ac1ffb2b616020c10
/MayaGameplay3D/MayaAPI/include/tbb/tbb_profiling.h
456f979ecf773026576c4f97730fb006f4d708e3
[ "MIT" ]
permissive
marredal/MayaGameplay3D
958adc1f293aae4cdcb5b7cf8f7aa8f2fa533838
3b57068ba82b3d3601147c9ea40448dba7c400fb
refs/heads/master
2021-07-12T22:01:58.958734
2017-10-18T07:52:39
2017-10-18T07:52:39
106,654,361
2
1
null
null
null
null
UTF-8
C++
false
false
13,353
h
/* Copyright 2005-2015 Intel Corporation. All Rights Reserved. The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and licensors. The Material is protected by worldwide copyright laws and treaty provisions. No part of the Material may be used, copied, reproduced, modified, published, uploaded, posted, transmitted, distributed, or disclosed in any way without Intel's prior express written permission. No license under any patent, copyright, trade secret or other intellectual property right is granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, by implication, inducement, estoppel or otherwise. Any license under such intellectual property rights must be express and approved by Intel in writing. */ #ifndef __TBB_profiling_H #define __TBB_profiling_H namespace tbb { namespace internal { // // This is not under __TBB_ITT_STRUCTURE_API because these values are used directly in flow_graph.h. // // include list of index names #define TBB_STRING_RESOURCE(index_name,str) index_name, enum string_index { #include "internal/_tbb_strings.h" NUM_STRINGS }; #undef TBB_STRING_RESOURCE enum itt_relation { __itt_relation_is_unknown = 0, __itt_relation_is_dependent_on, /**< "A is dependent on B" means that A cannot start until B completes */ __itt_relation_is_sibling_of, /**< "A is sibling of B" means that A and B were created as a group */ __itt_relation_is_parent_of, /**< "A is parent of B" means that A created B */ __itt_relation_is_continuation_of, /**< "A is continuation of B" means that A assumes the dependencies of B */ __itt_relation_is_child_of, /**< "A is child of B" means that A was created by B (inverse of is_parent_of) */ __itt_relation_is_continued_by, /**< "A is continued by B" means that B assumes the dependencies of A (inverse of is_continuation_of) */ __itt_relation_is_predecessor_to /**< "A is predecessor to B" means that B cannot start until A completes (inverse of is_dependent_on) */ }; } } // Check if the tools support is enabled #if (_WIN32||_WIN64||__linux__) && !__MINGW32__ && TBB_USE_THREADING_TOOLS #if _WIN32||_WIN64 #include <stdlib.h> /* mbstowcs_s */ #endif #include "tbb_stddef.h" namespace tbb { namespace internal { #if _WIN32||_WIN64 void __TBB_EXPORTED_FUNC itt_set_sync_name_v3( void *obj, const wchar_t* name ); inline size_t multibyte_to_widechar( wchar_t* wcs, const char* mbs, size_t bufsize) { #if _MSC_VER>=1400 size_t len; mbstowcs_s( &len, wcs, bufsize, mbs, _TRUNCATE ); return len; // mbstowcs_s counts null terminator #else size_t len = mbstowcs( wcs, mbs, bufsize ); if(wcs && len!=size_t(-1) ) wcs[len<bufsize-1? len: bufsize-1] = wchar_t('\0'); return len+1; // mbstowcs does not count null terminator #endif } #else void __TBB_EXPORTED_FUNC itt_set_sync_name_v3( void *obj, const char* name ); #endif } // namespace internal } // namespace tbb //! Macro __TBB_DEFINE_PROFILING_SET_NAME(T) defines "set_name" methods for sync objects of type T /** Should be used in the "tbb" namespace only. Don't place semicolon after it to avoid compiler warnings. **/ #if _WIN32||_WIN64 #define __TBB_DEFINE_PROFILING_SET_NAME(sync_object_type) \ namespace profiling { \ inline void set_name( sync_object_type& obj, const wchar_t* name ) { \ tbb::internal::itt_set_sync_name_v3( &obj, name ); \ } \ inline void set_name( sync_object_type& obj, const char* name ) { \ size_t len = tbb::internal::multibyte_to_widechar(NULL, name, 0); \ wchar_t *wname = new wchar_t[len]; \ tbb::internal::multibyte_to_widechar(wname, name, len); \ set_name( obj, wname ); \ delete[] wname; \ } \ } #else /* !WIN */ #define __TBB_DEFINE_PROFILING_SET_NAME(sync_object_type) \ namespace profiling { \ inline void set_name( sync_object_type& obj, const char* name ) { \ tbb::internal::itt_set_sync_name_v3( &obj, name ); \ } \ } #endif /* !WIN */ #else /* no tools support */ #if _WIN32||_WIN64 #define __TBB_DEFINE_PROFILING_SET_NAME(sync_object_type) \ namespace profiling { \ inline void set_name( sync_object_type&, const wchar_t* ) {} \ inline void set_name( sync_object_type&, const char* ) {} \ } #else /* !WIN */ #define __TBB_DEFINE_PROFILING_SET_NAME(sync_object_type) \ namespace profiling { \ inline void set_name( sync_object_type&, const char* ) {} \ } #endif /* !WIN */ #endif /* no tools support */ #include "atomic.h" // Need these to work regardless of tools support namespace tbb { namespace internal { enum notify_type {prepare=0, cancel, acquired, releasing}; const uintptr_t NUM_NOTIFY_TYPES = 4; // set to # elements in enum above void __TBB_EXPORTED_FUNC call_itt_notify_v5(int t, void *ptr); void __TBB_EXPORTED_FUNC itt_store_pointer_with_release_v3(void *dst, void *src); void* __TBB_EXPORTED_FUNC itt_load_pointer_with_acquire_v3(const void *src); void* __TBB_EXPORTED_FUNC itt_load_pointer_v3( const void* src ); #if __TBB_ITT_STRUCTURE_API enum itt_domain_enum { ITT_DOMAIN_FLOW=0 }; void __TBB_EXPORTED_FUNC itt_make_task_group_v7( itt_domain_enum domain, void *group, unsigned long long group_extra, void *parent, unsigned long long parent_extra, string_index name_index ); void __TBB_EXPORTED_FUNC itt_metadata_str_add_v7( itt_domain_enum domain, void *addr, unsigned long long addr_extra, string_index key, const char *value ); void __TBB_EXPORTED_FUNC itt_relation_add_v7( itt_domain_enum domain, void *addr0, unsigned long long addr0_extra, itt_relation relation, void *addr1, unsigned long long addr1_extra ); void __TBB_EXPORTED_FUNC itt_task_begin_v7( itt_domain_enum domain, void *task, unsigned long long task_extra, void *parent, unsigned long long parent_extra, string_index name_index ); void __TBB_EXPORTED_FUNC itt_task_end_v7( itt_domain_enum domain ); void __TBB_EXPORTED_FUNC itt_region_begin_v9( itt_domain_enum domain, void *region, unsigned long long region_extra, void *parent, unsigned long long parent_extra, string_index name_index ); void __TBB_EXPORTED_FUNC itt_region_end_v9( itt_domain_enum domain, void *region, unsigned long long region_extra ); #endif // __TBB_ITT_STRUCTURE_API // two template arguments are to workaround /Wp64 warning with tbb::atomic specialized for unsigned type template <typename T, typename U> inline void itt_store_word_with_release(tbb::atomic<T>& dst, U src) { #if TBB_USE_THREADING_TOOLS // This assertion should be replaced with static_assert __TBB_ASSERT(sizeof(T) == sizeof(void *), "Type must be word-sized."); itt_store_pointer_with_release_v3(&dst, (void *)uintptr_t(src)); #else dst = src; #endif // TBB_USE_THREADING_TOOLS } template <typename T> inline T itt_load_word_with_acquire(const tbb::atomic<T>& src) { #if TBB_USE_THREADING_TOOLS // This assertion should be replaced with static_assert __TBB_ASSERT(sizeof(T) == sizeof(void *), "Type must be word-sized."); #if defined(_MSC_VER) && !defined(__INTEL_COMPILER) // Workaround for overzealous compiler warnings #pragma warning (push) #pragma warning (disable: 4311) #endif T result = (T)itt_load_pointer_with_acquire_v3(&src); #if defined(_MSC_VER) && !defined(__INTEL_COMPILER) #pragma warning (pop) #endif return result; #else return src; #endif // TBB_USE_THREADING_TOOLS } template <typename T> inline void itt_store_word_with_release(T& dst, T src) { #if TBB_USE_THREADING_TOOLS // This assertion should be replaced with static_assert __TBB_ASSERT(sizeof(T) == sizeof(void *), "Type must be word-sized."); itt_store_pointer_with_release_v3(&dst, (void *)src); #else __TBB_store_with_release(dst, src); #endif // TBB_USE_THREADING_TOOLS } template <typename T> inline T itt_load_word_with_acquire(const T& src) { #if TBB_USE_THREADING_TOOLS // This assertion should be replaced with static_assert __TBB_ASSERT(sizeof(T) == sizeof(void *), "Type must be word-sized"); return (T)itt_load_pointer_with_acquire_v3(&src); #else return __TBB_load_with_acquire(src); #endif // TBB_USE_THREADING_TOOLS } template <typename T> inline void itt_hide_store_word(T& dst, T src) { #if TBB_USE_THREADING_TOOLS //TODO: This assertion should be replaced with static_assert __TBB_ASSERT(sizeof(T) == sizeof(void *), "Type must be word-sized"); itt_store_pointer_with_release_v3(&dst, (void *)src); #else dst = src; #endif } //TODO: rename to itt_hide_load_word_relaxed template <typename T> inline T itt_hide_load_word(const T& src) { #if TBB_USE_THREADING_TOOLS //TODO: This assertion should be replaced with static_assert __TBB_ASSERT(sizeof(T) == sizeof(void *), "Type must be word-sized."); return (T)itt_load_pointer_v3(&src); #else return src; #endif } #if TBB_USE_THREADING_TOOLS inline void call_itt_notify(notify_type t, void *ptr) { call_itt_notify_v5((int)t, ptr); } #else inline void call_itt_notify(notify_type /*t*/, void * /*ptr*/) {} #endif // TBB_USE_THREADING_TOOLS #if __TBB_ITT_STRUCTURE_API inline void itt_make_task_group( itt_domain_enum domain, void *group, unsigned long long group_extra, void *parent, unsigned long long parent_extra, string_index name_index ) { itt_make_task_group_v7( domain, group, group_extra, parent, parent_extra, name_index ); } inline void itt_metadata_str_add( itt_domain_enum domain, void *addr, unsigned long long addr_extra, string_index key, const char *value ) { itt_metadata_str_add_v7( domain, addr, addr_extra, key, value ); } inline void itt_relation_add( itt_domain_enum domain, void *addr0, unsigned long long addr0_extra, itt_relation relation, void *addr1, unsigned long long addr1_extra ) { itt_relation_add_v7( domain, addr0, addr0_extra, relation, addr1, addr1_extra ); } inline void itt_task_begin( itt_domain_enum domain, void *task, unsigned long long task_extra, void *parent, unsigned long long parent_extra, string_index name_index ) { itt_task_begin_v7( domain, task, task_extra, parent, parent_extra, name_index ); } inline void itt_task_end( itt_domain_enum domain ) { itt_task_end_v7( domain ); } inline void itt_region_begin( itt_domain_enum domain, void *region, unsigned long long region_extra, void *parent, unsigned long long parent_extra, string_index name_index ) { itt_region_begin_v9( domain, region, region_extra, parent, parent_extra, name_index ); } inline void itt_region_end( itt_domain_enum domain, void *region, unsigned long long region_extra ) { itt_region_end_v9( domain, region, region_extra ); } #endif // __TBB_ITT_STRUCTURE_API } // namespace internal } // namespace tbb #endif /* __TBB_profiling_H */
[ "aston_martin93@hotmail.com" ]
aston_martin93@hotmail.com
3179c71d8b4dfece943cc0e68ac2432c27b19ffe
2f78d6d5c92449acb0ade6f8e89ef40acc205f85
/HPC/hpc_2.cpp
e26e41b84a4dd97b14ae8bb990d0055860bfbe7f
[]
no_license
bhagyeshdholaria/mit_codes
e80a767de7841cdb1ca1f7487a69dc5b17236824
a1894b93bc749a43eaa8d7e49791346c033da2f8
refs/heads/master
2023-03-06T17:19:48.664264
2021-02-14T11:21:10
2021-02-14T11:21:10
231,590,299
0
0
null
null
null
null
UTF-8
C++
false
false
450
cpp
#include <stdio.h> #include <omp.h> int main(){ int steps; printf("Enter number of steps : "); scanf("%d", &steps); double width = (double) 1/steps; // the width of each section double pi = 0; double x; #pragma omp parallel for for(int i=1; i<steps; i++){ x = (double) i * width; // the value if x at the end of ith section pi += width * (4/(1+(0.25*x*x))); // add area of section to pi } printf("%f\n", pi); return 0; }
[ "bhagyeshdholaria@gmail.com" ]
bhagyeshdholaria@gmail.com
0172cfd88d596d94cdf478ce2ffffc6c725f44c6
b4cb38c956f17f8383a602f79734aec91b9a7904
/source/FAST/Algorithms/ImageCropper/Tests.cpp
c5e35732dcf338d7f51cce15fbdb062145a5b8c3
[ "Apache-2.0", "BSD-2-Clause", "LGPL-2.0-or-later", "MIT" ]
permissive
smistad/FAST
db47ca4378c77548600cbf0c404792d4330e6b22
73209765d7fedc1df7e3fd3cd5b7e8540eb0d74d
refs/heads/master
2023-08-16T01:39:23.106440
2023-08-15T11:21:47
2023-08-15T11:26:52
17,882,588
375
95
BSD-2-Clause
2023-03-08T12:34:38
2014-03-18T21:26:28
C++
UTF-8
C++
false
false
3,368
cpp
#include <FAST/Testing.hpp> #include "ImageCropper.hpp" #include <FAST/Importers/ImageFileImporter.hpp> #include <FAST/Data/Image.hpp> using namespace fast; TEST_CASE("ImageCropper 2D", "[fast][ImageCropper]") { auto importer = ImageFileImporter::create(Config::getTestDataPath() + "US/US-2D.png"); auto cropper = ImageCropper::create(Vector2i(32, 34), Vector2i(2, 4))->connect(importer); cropper->run(); auto image = cropper->getOutputData<Image>(); CHECK(image->getWidth() == 32); CHECK(image->getHeight() == 34); } TEST_CASE("ImageCropper 2D - No offset", "[fast][ImageCropper]") { auto importer = ImageFileImporter::create(Config::getTestDataPath() + "US/US-2D.png"); auto cropper = ImageCropper::create(Vector2i(32, 34))->connect(importer); cropper->run(); auto image = cropper->getOutputData<Image>(); CHECK(image->getWidth() == 32); CHECK(image->getHeight() == 34); } TEST_CASE("ImageCropper 2D - Crop Bottom", "[fast][ImageCropper]") { auto importer = ImageFileImporter::create(Config::getTestDataPath() + "US/US-2D.png"); auto cropper = ImageCropper::create(0.25)->connect(importer); cropper->run(); auto image = cropper->getOutputData<Image>(); CHECK(image->getWidth() == 512); CHECK(image->getHeight() == 128); } TEST_CASE("ImageCropper 2D - Crop Top", "[fast][ImageCropper]") { auto importer = ImageFileImporter::create(Config::getTestDataPath() + "US/US-2D.png"); auto cropper = ImageCropper::create(-1, 0.25)->connect(importer); cropper->run(); auto image = cropper->getOutputData<Image>(); CHECK(image->getWidth() == 512); CHECK(image->getHeight() == 128); } TEST_CASE("ImageCropper 3D", "[fast][ImageCropper]") { auto importer = ImageFileImporter::create(Config::getTestDataPath() + "CT/CT-Thorax.mhd"); auto cropper = ImageCropper::create(Vector3i(32, 34, 36), Vector3i(2, 4, 0))->connect(importer); cropper->run(); auto image = cropper->getOutputData<Image>(); CHECK(image->getWidth() == 32); CHECK(image->getHeight() == 34); CHECK(image->getDepth() == 36); } TEST_CASE("ImageCropper 3D - No Offset", "[fast][ImageCropper]") { auto importer = ImageFileImporter::create(Config::getTestDataPath() + "CT/CT-Thorax.mhd"); auto cropper = ImageCropper::create(Vector3i(32, 34, 36))->connect(importer); cropper->run(); auto image = cropper->getOutputData<Image>(); CHECK(image->getWidth() == 32); CHECK(image->getHeight() == 34); CHECK(image->getDepth() == 36); } TEST_CASE("ImageCropper 3D - Crop Bottom", "[fast][ImageCropper]") { auto importer = ImageFileImporter::create(Config::getTestDataPath() + "CT/CT-Thorax.mhd"); auto cropper = ImageCropper::create(0.25)->connect(importer); cropper->run(); auto image = cropper->getOutputData<Image>(); CHECK(image->getWidth() == 512); CHECK(image->getHeight() == 512); CHECK(image->getDepth() == 207); } TEST_CASE("ImageCropper 3D - Crop Top", "[fast][ImageCropper]") { auto importer = ImageFileImporter::create(Config::getTestDataPath() + "CT/CT-Thorax.mhd"); auto cropper = ImageCropper::create(-1, 0.25)->connect(importer); cropper->run(); auto image = cropper->getOutputData<Image>(); CHECK(image->getWidth() == 512); CHECK(image->getHeight() == 512); CHECK(image->getDepth() == 207); }
[ "ersmistad@gmail.com" ]
ersmistad@gmail.com
3e806ab81e25a6430e63aabf57196f9cec09eec9
3a5eb86d4605bef00f69daeedc476b025847c90b
/irq/irq_multi_handler.cpp
a8f8c1e6ac5a49f2db3ec507a9913fd69338bc15
[]
no_license
TheColonelYoung/ALOHAL
7e2732b0852a57a5ed3d3c90e3c3fe4dc52191ad
4f857f7092bd8d7435f3e28125e62f72d19c65bb
refs/heads/master
2023-04-05T05:14:49.615181
2021-06-16T17:00:50
2021-06-16T17:00:50
170,518,008
2
0
null
null
null
null
UTF-8
C++
false
false
33
cpp
#include "irq_multi_handler.hpp"
[ "Malanik.Petr.gm@gmail.com" ]
Malanik.Petr.gm@gmail.com
c6dc5dacd5e8eee57eb075d58a414ebd0212eddc
2e44a5e18c3f61f9ee2d6ebb0913c8b148673887
/Lesson_11.3/Lesson_11.3.cpp
02f78f19c523fb04b8d1a43e93ba0e09ee88ca94
[]
no_license
resyeg/Lesson_11.3
69229cc51c5e9ecf24e0ae7c64e85a9619d92e26
41a80b6860d582021e604404fc4a1360b879bb70
refs/heads/master
2023-08-16T19:21:15.594054
2021-09-16T19:02:46
2021-09-16T19:02:46
407,283,344
0
0
null
null
null
null
UTF-8
C++
false
false
1,746
cpp
// Lesson_11.3.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы. // #include <iostream> void print() { std::cout << "Hello Skillbox!\n"; } int main() { int x = 100; int y = x + 100; std::cout << "hello world!\n"; int mult = x * y; } // Запуск программы: CTRL+F5 или меню "Отладка" > "Запуск без отладки" // Отладка программы: F5 или меню "Отладка" > "Запустить отладку" // Советы по началу работы // 1. В окне обозревателя решений можно добавлять файлы и управлять ими. // 2. В окне Team Explorer можно подключиться к системе управления версиями. // 3. В окне "Выходные данные" можно просматривать выходные данные сборки и другие сообщения. // 4. В окне "Список ошибок" можно просматривать ошибки. // 5. Последовательно выберите пункты меню "Проект" > "Добавить новый элемент", чтобы создать файлы кода, или "Проект" > "Добавить существующий элемент", чтобы добавить в проект существующие файлы кода. // 6. Чтобы снова открыть этот проект позже, выберите пункты меню "Файл" > "Открыть" > "Проект" и выберите SLN-файл.
[ "rovdasergey@gmail.com" ]
rovdasergey@gmail.com
3fd727c81eef219efbc5d405d5e34c071ae46e46
01837a379a09f74f7ef43807533093fa716e71ac
/src/utils/xulrunner-sdk/nsIAutoCompleteResult.h
ac0097bda8b85baa1e19e0ae1827e0164232ec73
[]
no_license
lasuax/jorhy-prj
ba2061d3faf4768cf2e12ee2484f8db51003bd3e
d22ded7ece50fb36aa032dad2cc01deac457b37f
refs/heads/master
2021-05-05T08:06:01.954941
2014-01-13T14:03:30
2014-01-13T14:03:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,355
h
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-m-rel-xr_w32_bld-000000000/build/toolkit/components/autocomplete/nsIAutoCompleteResult.idl */ #ifndef __gen_nsIAutoCompleteResult_h__ #define __gen_nsIAutoCompleteResult_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif /* starting interface: nsIAutoCompleteResult */ #define NS_IAUTOCOMPLETERESULT_IID_STR "7b43fad1-c735-4b45-9383-c3f057fed20d" #define NS_IAUTOCOMPLETERESULT_IID \ {0x7b43fad1, 0xc735, 0x4b45, \ { 0x93, 0x83, 0xc3, 0xf0, 0x57, 0xfe, 0xd2, 0x0d }} class NS_NO_VTABLE nsIAutoCompleteResult : public nsISupports { public: NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAUTOCOMPLETERESULT_IID) enum { RESULT_IGNORED = 1U, RESULT_FAILURE = 2U, RESULT_NOMATCH = 3U, RESULT_SUCCESS = 4U, RESULT_NOMATCH_ONGOING = 5U, RESULT_SUCCESS_ONGOING = 6U }; /* readonly attribute AString searchString; */ NS_IMETHOD GetSearchString(nsAString & aSearchString) = 0; /* readonly attribute unsigned short searchResult; */ NS_IMETHOD GetSearchResult(uint16_t *aSearchResult) = 0; /* readonly attribute long defaultIndex; */ NS_IMETHOD GetDefaultIndex(int32_t *aDefaultIndex) = 0; /* readonly attribute AString errorDescription; */ NS_IMETHOD GetErrorDescription(nsAString & aErrorDescription) = 0; /* readonly attribute unsigned long matchCount; */ NS_IMETHOD GetMatchCount(uint32_t *aMatchCount) = 0; /* readonly attribute boolean typeAheadResult; */ NS_IMETHOD GetTypeAheadResult(bool *aTypeAheadResult) = 0; /* AString getValueAt (in long index); */ NS_IMETHOD GetValueAt(int32_t index, nsAString & _retval) = 0; /* AString getLabelAt (in long index); */ NS_IMETHOD GetLabelAt(int32_t index, nsAString & _retval) = 0; /* AString getCommentAt (in long index); */ NS_IMETHOD GetCommentAt(int32_t index, nsAString & _retval) = 0; /* AString getStyleAt (in long index); */ NS_IMETHOD GetStyleAt(int32_t index, nsAString & _retval) = 0; /* AString getImageAt (in long index); */ NS_IMETHOD GetImageAt(int32_t index, nsAString & _retval) = 0; /* void removeValueAt (in long rowIndex, in boolean removeFromDb); */ NS_IMETHOD RemoveValueAt(int32_t rowIndex, bool removeFromDb) = 0; }; NS_DEFINE_STATIC_IID_ACCESSOR(nsIAutoCompleteResult, NS_IAUTOCOMPLETERESULT_IID) /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIAUTOCOMPLETERESULT \ NS_IMETHOD GetSearchString(nsAString & aSearchString); \ NS_IMETHOD GetSearchResult(uint16_t *aSearchResult); \ NS_IMETHOD GetDefaultIndex(int32_t *aDefaultIndex); \ NS_IMETHOD GetErrorDescription(nsAString & aErrorDescription); \ NS_IMETHOD GetMatchCount(uint32_t *aMatchCount); \ NS_IMETHOD GetTypeAheadResult(bool *aTypeAheadResult); \ NS_IMETHOD GetValueAt(int32_t index, nsAString & _retval); \ NS_IMETHOD GetLabelAt(int32_t index, nsAString & _retval); \ NS_IMETHOD GetCommentAt(int32_t index, nsAString & _retval); \ NS_IMETHOD GetStyleAt(int32_t index, nsAString & _retval); \ NS_IMETHOD GetImageAt(int32_t index, nsAString & _retval); \ NS_IMETHOD RemoveValueAt(int32_t rowIndex, bool removeFromDb); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIAUTOCOMPLETERESULT(_to) \ NS_IMETHOD GetSearchString(nsAString & aSearchString) { return _to GetSearchString(aSearchString); } \ NS_IMETHOD GetSearchResult(uint16_t *aSearchResult) { return _to GetSearchResult(aSearchResult); } \ NS_IMETHOD GetDefaultIndex(int32_t *aDefaultIndex) { return _to GetDefaultIndex(aDefaultIndex); } \ NS_IMETHOD GetErrorDescription(nsAString & aErrorDescription) { return _to GetErrorDescription(aErrorDescription); } \ NS_IMETHOD GetMatchCount(uint32_t *aMatchCount) { return _to GetMatchCount(aMatchCount); } \ NS_IMETHOD GetTypeAheadResult(bool *aTypeAheadResult) { return _to GetTypeAheadResult(aTypeAheadResult); } \ NS_IMETHOD GetValueAt(int32_t index, nsAString & _retval) { return _to GetValueAt(index, _retval); } \ NS_IMETHOD GetLabelAt(int32_t index, nsAString & _retval) { return _to GetLabelAt(index, _retval); } \ NS_IMETHOD GetCommentAt(int32_t index, nsAString & _retval) { return _to GetCommentAt(index, _retval); } \ NS_IMETHOD GetStyleAt(int32_t index, nsAString & _retval) { return _to GetStyleAt(index, _retval); } \ NS_IMETHOD GetImageAt(int32_t index, nsAString & _retval) { return _to GetImageAt(index, _retval); } \ NS_IMETHOD RemoveValueAt(int32_t rowIndex, bool removeFromDb) { return _to RemoveValueAt(rowIndex, removeFromDb); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIAUTOCOMPLETERESULT(_to) \ NS_IMETHOD GetSearchString(nsAString & aSearchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchString(aSearchString); } \ NS_IMETHOD GetSearchResult(uint16_t *aSearchResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchResult(aSearchResult); } \ NS_IMETHOD GetDefaultIndex(int32_t *aDefaultIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultIndex(aDefaultIndex); } \ NS_IMETHOD GetErrorDescription(nsAString & aErrorDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetErrorDescription(aErrorDescription); } \ NS_IMETHOD GetMatchCount(uint32_t *aMatchCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchCount(aMatchCount); } \ NS_IMETHOD GetTypeAheadResult(bool *aTypeAheadResult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeAheadResult(aTypeAheadResult); } \ NS_IMETHOD GetValueAt(int32_t index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueAt(index, _retval); } \ NS_IMETHOD GetLabelAt(int32_t index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabelAt(index, _retval); } \ NS_IMETHOD GetCommentAt(int32_t index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommentAt(index, _retval); } \ NS_IMETHOD GetStyleAt(int32_t index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleAt(index, _retval); } \ NS_IMETHOD GetImageAt(int32_t index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageAt(index, _retval); } \ NS_IMETHOD RemoveValueAt(int32_t rowIndex, bool removeFromDb) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveValueAt(rowIndex, removeFromDb); } #if 0 /* Use the code below as a template for the implementation class for this interface. */ /* Header file */ class nsAutoCompleteResult : public nsIAutoCompleteResult { public: NS_DECL_ISUPPORTS NS_DECL_NSIAUTOCOMPLETERESULT nsAutoCompleteResult(); private: ~nsAutoCompleteResult(); protected: /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsAutoCompleteResult, nsIAutoCompleteResult) nsAutoCompleteResult::nsAutoCompleteResult() { /* member initializers and constructor code */ } nsAutoCompleteResult::~nsAutoCompleteResult() { /* destructor code */ } /* readonly attribute AString searchString; */ NS_IMETHODIMP nsAutoCompleteResult::GetSearchString(nsAString & aSearchString) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute unsigned short searchResult; */ NS_IMETHODIMP nsAutoCompleteResult::GetSearchResult(uint16_t *aSearchResult) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute long defaultIndex; */ NS_IMETHODIMP nsAutoCompleteResult::GetDefaultIndex(int32_t *aDefaultIndex) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute AString errorDescription; */ NS_IMETHODIMP nsAutoCompleteResult::GetErrorDescription(nsAString & aErrorDescription) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute unsigned long matchCount; */ NS_IMETHODIMP nsAutoCompleteResult::GetMatchCount(uint32_t *aMatchCount) { return NS_ERROR_NOT_IMPLEMENTED; } /* readonly attribute boolean typeAheadResult; */ NS_IMETHODIMP nsAutoCompleteResult::GetTypeAheadResult(bool *aTypeAheadResult) { return NS_ERROR_NOT_IMPLEMENTED; } /* AString getValueAt (in long index); */ NS_IMETHODIMP nsAutoCompleteResult::GetValueAt(int32_t index, nsAString & _retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* AString getLabelAt (in long index); */ NS_IMETHODIMP nsAutoCompleteResult::GetLabelAt(int32_t index, nsAString & _retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* AString getCommentAt (in long index); */ NS_IMETHODIMP nsAutoCompleteResult::GetCommentAt(int32_t index, nsAString & _retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* AString getStyleAt (in long index); */ NS_IMETHODIMP nsAutoCompleteResult::GetStyleAt(int32_t index, nsAString & _retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* AString getImageAt (in long index); */ NS_IMETHODIMP nsAutoCompleteResult::GetImageAt(int32_t index, nsAString & _retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* void removeValueAt (in long rowIndex, in boolean removeFromDb); */ NS_IMETHODIMP nsAutoCompleteResult::RemoveValueAt(int32_t rowIndex, bool removeFromDb) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif #endif /* __gen_nsIAutoCompleteResult_h__ */
[ "joorhy@gmail.com" ]
joorhy@gmail.com
ae342a44ce344270d59af653887a879fd6ff4190
5c20c8f9b17904365d0bcd69087acbefd2eeb380
/Mahjong/Mahjong/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp
e8f04df8c586b4723739e455ac4c16e6c7ecbd0f
[ "MIT" ]
permissive
PenpenLi/MobileGame
44f583297405320ea0fd7bfe7cb2f5e439808173
5ae7311f747a550404e4fdc071023b7f8fbd6ede
refs/heads/master
2021-09-21T08:02:14.311354
2018-08-07T18:05:55
2018-08-07T18:05:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,926,351
cpp
#include "scripting/lua-bindings/auto/lua_cocos2dx_auto.hpp" #include "cocos2d.h" #include "2d/CCProtectedNode.h" #include "base/CCAsyncTaskPool.h" #include "scripting/lua-bindings/manual/CCComponentLua.h" #include "scripting/lua-bindings/manual/tolua_fix.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" int lua_cocos2dx_Ref_release(lua_State* tolua_S) { int argc = 0; cocos2d::Ref* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ref_release'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ref_release'", nullptr); return 0; } cobj->release(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ref:release",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ref_release'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ref_retain(lua_State* tolua_S) { int argc = 0; cocos2d::Ref* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ref_retain'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ref_retain'", nullptr); return 0; } cobj->retain(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ref:retain",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ref_retain'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ref_getReferenceCount(lua_State* tolua_S) { int argc = 0; cocos2d::Ref* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ref_getReferenceCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ref_getReferenceCount'", nullptr); return 0; } unsigned int ret = cobj->getReferenceCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ref:getReferenceCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ref_getReferenceCount'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Ref_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Ref)"); return 0; } int lua_register_cocos2dx_Ref(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Ref"); tolua_cclass(tolua_S,"Ref","cc.Ref","",nullptr); tolua_beginmodule(tolua_S,"Ref"); tolua_function(tolua_S,"release",lua_cocos2dx_Ref_release); tolua_function(tolua_S,"retain",lua_cocos2dx_Ref_retain); tolua_function(tolua_S,"getReferenceCount",lua_cocos2dx_Ref_getReferenceCount); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Ref).name(); g_luaType[typeName] = "cc.Ref"; g_typeCast["Ref"] = "cc.Ref"; return 1; } int lua_cocos2dx_Console_addSubCommand(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_addSubCommand'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Console::Command arg0; #pragma warning NO CONVERSION TO NATIVE FOR Command ok = false; if (!ok) { break; } cocos2d::Console::Command arg1; #pragma warning NO CONVERSION TO NATIVE FOR Command ok = false; if (!ok) { break; } cobj->addSubCommand(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:addSubCommand"); if (!ok) { break; } cocos2d::Console::Command arg1; #pragma warning NO CONVERSION TO NATIVE FOR Command ok = false; if (!ok) { break; } cobj->addSubCommand(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:addSubCommand",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_addSubCommand'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_listenOnTCP'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Console:listenOnTCP"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_listenOnTCP'", nullptr); return 0; } bool ret = cobj->listenOnTCP(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:listenOnTCP",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_listenOnTCP'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Console_log(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_log'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Console:log"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_log'", nullptr); return 0; } cobj->log(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:log",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_log'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Console_getSubCommand(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_getSubCommand'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Console::Command arg0; #pragma warning NO CONVERSION TO NATIVE FOR Command ok = false; if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:getSubCommand"); if (!ok) { break; } const cocos2d::Console::Command* ret = cobj->getSubCommand(arg0, arg1); #pragma warning NO CONVERSION FROM NATIVE FOR Command*; return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:getSubCommand"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:getSubCommand"); if (!ok) { break; } const cocos2d::Console::Command* ret = cobj->getSubCommand(arg0, arg1); #pragma warning NO CONVERSION FROM NATIVE FOR Command*; return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:getSubCommand",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_getSubCommand'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Console_delCommand(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_delCommand'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:delCommand"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_delCommand'", nullptr); return 0; } cobj->delCommand(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:delCommand",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_delCommand'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Console_stop(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_stop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_stop'", nullptr); return 0; } cobj->stop(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:stop",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_stop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Console_getCommand(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_getCommand'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:getCommand"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_getCommand'", nullptr); return 0; } const cocos2d::Console::Command* ret = cobj->getCommand(arg0); #pragma warning NO CONVERSION FROM NATIVE FOR Command*; return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:getCommand",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_getCommand'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_listenOnFileDescriptor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Console:listenOnFileDescriptor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_listenOnFileDescriptor'", nullptr); return 0; } bool ret = cobj->listenOnFileDescriptor(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:listenOnFileDescriptor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_listenOnFileDescriptor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_setBindAddress'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:setBindAddress"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Console_setBindAddress'", nullptr); return 0; } cobj->setBindAddress(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:setBindAddress",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_setBindAddress'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Console_delSubCommand(lua_State* tolua_S) { int argc = 0; cocos2d::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Console_delSubCommand'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Console::Command arg0; #pragma warning NO CONVERSION TO NATIVE FOR Command ok = false; if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:delSubCommand"); if (!ok) { break; } cobj->delSubCommand(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Console:delSubCommand"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Console:delSubCommand"); if (!ok) { break; } cobj->delSubCommand(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Console:delSubCommand",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Console_delSubCommand'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Console_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Console)"); return 0; } int lua_register_cocos2dx_Console(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Console"); tolua_cclass(tolua_S,"Console","cc.Console","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Console"); tolua_function(tolua_S,"addSubCommand",lua_cocos2dx_Console_addSubCommand); tolua_function(tolua_S,"listenOnTCP",lua_cocos2dx_Console_listenOnTCP); tolua_function(tolua_S,"log",lua_cocos2dx_Console_log); tolua_function(tolua_S,"getSubCommand",lua_cocos2dx_Console_getSubCommand); tolua_function(tolua_S,"delCommand",lua_cocos2dx_Console_delCommand); tolua_function(tolua_S,"stop",lua_cocos2dx_Console_stop); tolua_function(tolua_S,"getCommand",lua_cocos2dx_Console_getCommand); tolua_function(tolua_S,"listenOnFileDescriptor",lua_cocos2dx_Console_listenOnFileDescriptor); tolua_function(tolua_S,"setBindAddress",lua_cocos2dx_Console_setBindAddress); tolua_function(tolua_S,"delSubCommand",lua_cocos2dx_Console_delSubCommand); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Console).name(); g_luaType[typeName] = "cc.Console"; g_typeCast["Console"] = "cc.Console"; return 1; } int lua_cocos2dx_Texture2D_getMaxT(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getMaxT'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getMaxT'", nullptr); return 0; } double ret = cobj->getMaxT(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getMaxT",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getMaxT'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_setAlphaTexture(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setAlphaTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Texture2D:setAlphaTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_setAlphaTexture'", nullptr); return 0; } cobj->setAlphaTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setAlphaTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setAlphaTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getStringForFormat'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getStringForFormat'", nullptr); return 0; } const char* ret = cobj->getStringForFormat(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getStringForFormat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getStringForFormat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_initWithImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Image* arg0; ok &= luaval_to_object<cocos2d::Image>(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:initWithImage"); if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Texture2D:initWithImage"); if (!ok) { break; } bool ret = cobj->initWithImage(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Image* arg0; ok &= luaval_to_object<cocos2d::Image>(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:initWithImage"); if (!ok) { break; } bool ret = cobj->initWithImage(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:initWithImage",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_initWithImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getMaxS'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getMaxS'", nullptr); return 0; } double ret = cobj->getMaxS(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getMaxS",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getMaxS'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_releaseGLTexture(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_releaseGLTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_releaseGLTexture'", nullptr); return 0; } cobj->releaseGLTexture(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:releaseGLTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_releaseGLTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_hasPremultipliedAlpha'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_hasPremultipliedAlpha'", nullptr); return 0; } bool ret = cobj->hasPremultipliedAlpha(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:hasPremultipliedAlpha",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_hasPremultipliedAlpha'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPixelsHigh'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getPixelsHigh'", nullptr); return 0; } int ret = cobj->getPixelsHigh(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPixelsHigh",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPixelsHigh'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getAlphaTextureName(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getAlphaTextureName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getAlphaTextureName'", nullptr); return 0; } unsigned int ret = cobj->getAlphaTextureName(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getAlphaTextureName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getAlphaTextureName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getBitsPerPixelForFormat'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { cocos2d::Texture2D::PixelFormat arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Texture2D:getBitsPerPixelForFormat"); if (!ok) { break; } unsigned int ret = cobj->getBitsPerPixelForFormat(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { unsigned int ret = cobj->getBitsPerPixelForFormat(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getBitsPerPixelForFormat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getBitsPerPixelForFormat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getName(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getName'", nullptr); return 0; } unsigned int ret = cobj->getName(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_initWithString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } cocos2d::FontDefinition arg1; ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1, "cc.Texture2D:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 5) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 6) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Texture2D:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 7) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Texture2D:initWithString"); if (!ok) { break; } bool arg6; ok &= luaval_to_boolean(tolua_S, 8,&arg6, "cc.Texture2D:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4, arg5, arg6); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 8) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Texture2D:initWithString"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); if (!ok) { break; } cocos2d::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Texture2D:initWithString"); if (!ok) { break; } bool arg6; ok &= luaval_to_boolean(tolua_S, 8,&arg6, "cc.Texture2D:initWithString"); if (!ok) { break; } int arg7; ok &= luaval_to_int32(tolua_S, 9,(int *)&arg7, "cc.Texture2D:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:initWithString",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_initWithString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setMaxT'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Texture2D:setMaxT"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_setMaxT'", nullptr); return 0; } cobj->setMaxT(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setMaxT",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setMaxT'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getPath(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getPath'", nullptr); return 0; } std::string ret = cobj->getPath(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPath",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_drawInRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Texture2D:drawInRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_drawInRect'", nullptr); return 0; } cobj->drawInRect(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:drawInRect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_drawInRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getContentSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getContentSize'", nullptr); return 0; } cocos2d::Size ret = cobj->getContentSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getContentSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getContentSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setAliasTexParameters'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_setAliasTexParameters'", nullptr); return 0; } cobj->setAliasTexParameters(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setAliasTexParameters",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setAliasTexParameters'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setAntiAliasTexParameters'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_setAntiAliasTexParameters'", nullptr); return 0; } cobj->setAntiAliasTexParameters(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setAntiAliasTexParameters",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setAntiAliasTexParameters'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_generateMipmap'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_generateMipmap'", nullptr); return 0; } cobj->generateMipmap(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:generateMipmap",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_generateMipmap'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getDescription(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getDescription'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getDescription'", nullptr); return 0; } std::string ret = cobj->getDescription(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getDescription",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getDescription'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPixelFormat'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getPixelFormat'", nullptr); return 0; } int ret = (int)cobj->getPixelFormat(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPixelFormat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPixelFormat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_setGLProgram(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setGLProgram'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::GLProgram* arg0; ok &= luaval_to_object<cocos2d::GLProgram>(tolua_S, 2, "cc.GLProgram",&arg0, "cc.Texture2D:setGLProgram"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_setGLProgram'", nullptr); return 0; } cobj->setGLProgram(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setGLProgram",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getContentSizeInPixels'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getContentSizeInPixels'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getContentSizeInPixels(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getContentSizeInPixels",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getContentSizeInPixels'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getPixelsWide'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getPixelsWide'", nullptr); return 0; } int ret = cobj->getPixelsWide(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getPixelsWide",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getPixelsWide'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_drawAtPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Texture2D:drawAtPoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_drawAtPoint'", nullptr); return 0; } cobj->drawAtPoint(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:drawAtPoint",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_drawAtPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getGLProgram(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_getGLProgram'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getGLProgram'", nullptr); return 0; } cocos2d::GLProgram* ret = cobj->getGLProgram(); object_to_luaval<cocos2d::GLProgram>(tolua_S, "cc.GLProgram",(cocos2d::GLProgram*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getGLProgram",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_hasMipmaps'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_hasMipmaps'", nullptr); return 0; } bool ret = cobj->hasMipmaps(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:hasMipmaps",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_hasMipmaps'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Texture2D_setMaxS'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Texture2D:setMaxS"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_setMaxS'", nullptr); return 0; } cobj->setMaxS(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:setMaxS",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setMaxS'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Texture2D::PixelFormat arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Texture2D:setDefaultAlphaPixelFormat"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat'", nullptr); return 0; } cocos2d::Texture2D::setDefaultAlphaPixelFormat(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Texture2D:setDefaultAlphaPixelFormat",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat'", nullptr); return 0; } int ret = (int)cocos2d::Texture2D::getDefaultAlphaPixelFormat(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Texture2D:getDefaultAlphaPixelFormat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Texture2D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_constructor'", nullptr); return 0; } cobj = new cocos2d::Texture2D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Texture2D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:Texture2D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Texture2D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Texture2D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Texture2D)"); return 0; } int lua_register_cocos2dx_Texture2D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Texture2D"); tolua_cclass(tolua_S,"Texture2D","cc.Texture2D","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Texture2D"); tolua_function(tolua_S,"new",lua_cocos2dx_Texture2D_constructor); tolua_function(tolua_S,"getMaxT",lua_cocos2dx_Texture2D_getMaxT); tolua_function(tolua_S,"setAlphaTexture",lua_cocos2dx_Texture2D_setAlphaTexture); tolua_function(tolua_S,"getStringForFormat",lua_cocos2dx_Texture2D_getStringForFormat); tolua_function(tolua_S,"initWithImage",lua_cocos2dx_Texture2D_initWithImage); tolua_function(tolua_S,"getMaxS",lua_cocos2dx_Texture2D_getMaxS); tolua_function(tolua_S,"releaseGLTexture",lua_cocos2dx_Texture2D_releaseGLTexture); tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Texture2D_hasPremultipliedAlpha); tolua_function(tolua_S,"getPixelsHigh",lua_cocos2dx_Texture2D_getPixelsHigh); tolua_function(tolua_S,"getAlphaTextureName",lua_cocos2dx_Texture2D_getAlphaTextureName); tolua_function(tolua_S,"getBitsPerPixelForFormat",lua_cocos2dx_Texture2D_getBitsPerPixelForFormat); tolua_function(tolua_S,"getName",lua_cocos2dx_Texture2D_getName); tolua_function(tolua_S,"initWithString",lua_cocos2dx_Texture2D_initWithString); tolua_function(tolua_S,"setMaxT",lua_cocos2dx_Texture2D_setMaxT); tolua_function(tolua_S,"getPath",lua_cocos2dx_Texture2D_getPath); tolua_function(tolua_S,"drawInRect",lua_cocos2dx_Texture2D_drawInRect); tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Texture2D_getContentSize); tolua_function(tolua_S,"setAliasTexParameters",lua_cocos2dx_Texture2D_setAliasTexParameters); tolua_function(tolua_S,"setAntiAliasTexParameters",lua_cocos2dx_Texture2D_setAntiAliasTexParameters); tolua_function(tolua_S,"generateMipmap",lua_cocos2dx_Texture2D_generateMipmap); tolua_function(tolua_S,"getDescription",lua_cocos2dx_Texture2D_getDescription); tolua_function(tolua_S,"getPixelFormat",lua_cocos2dx_Texture2D_getPixelFormat); tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Texture2D_setGLProgram); tolua_function(tolua_S,"getContentSizeInPixels",lua_cocos2dx_Texture2D_getContentSizeInPixels); tolua_function(tolua_S,"getPixelsWide",lua_cocos2dx_Texture2D_getPixelsWide); tolua_function(tolua_S,"drawAtPoint",lua_cocos2dx_Texture2D_drawAtPoint); tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Texture2D_getGLProgram); tolua_function(tolua_S,"hasMipmaps",lua_cocos2dx_Texture2D_hasMipmaps); tolua_function(tolua_S,"setMaxS",lua_cocos2dx_Texture2D_setMaxS); tolua_function(tolua_S,"setDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat); tolua_function(tolua_S,"getDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Texture2D).name(); g_luaType[typeName] = "cc.Texture2D"; g_typeCast["Texture2D"] = "cc.Texture2D"; return 1; } int lua_cocos2dx_Touch_getPreviousLocationInView(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getPreviousLocationInView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getPreviousLocationInView'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getPreviousLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getPreviousLocationInView",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getPreviousLocationInView'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getLocation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getLocation'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getLocation(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getLocation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getLocation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getDelta'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getDelta'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getDelta(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getDelta",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getDelta'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getStartLocationInView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getStartLocationInView'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getStartLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getStartLocationInView",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getStartLocationInView'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_getCurrentForce(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getCurrentForce'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getCurrentForce'", nullptr); return 0; } double ret = cobj->getCurrentForce(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getCurrentForce",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getCurrentForce'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getStartLocation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getStartLocation'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getStartLocation(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getStartLocation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getStartLocation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_getID(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getID'", nullptr); return 0; } int ret = cobj->getID(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getID",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getID'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_setTouchInfo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Touch:setTouchInfo"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Touch:setTouchInfo"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Touch:setTouchInfo"); if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Touch:setTouchInfo"); if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.Touch:setTouchInfo"); if (!ok) { break; } cobj->setTouchInfo(arg0, arg1, arg2, arg3, arg4); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Touch:setTouchInfo"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Touch:setTouchInfo"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Touch:setTouchInfo"); if (!ok) { break; } cobj->setTouchInfo(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:setTouchInfo",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_setTouchInfo'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_getMaxForce(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getMaxForce'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getMaxForce'", nullptr); return 0; } double ret = cobj->getMaxForce(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getMaxForce",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getMaxForce'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getLocationInView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getLocationInView'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getLocationInView",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getLocationInView'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Touch_getPreviousLocation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getPreviousLocation'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getPreviousLocation(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:getPreviousLocation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_getPreviousLocation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Touch_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_constructor'", nullptr); return 0; } cobj = new cocos2d::Touch(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Touch"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Touch:Touch",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Touch_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Touch_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Touch)"); return 0; } int lua_register_cocos2dx_Touch(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Touch"); tolua_cclass(tolua_S,"Touch","cc.Touch","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Touch"); tolua_function(tolua_S,"new",lua_cocos2dx_Touch_constructor); tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_Touch_getPreviousLocationInView); tolua_function(tolua_S,"getLocation",lua_cocos2dx_Touch_getLocation); tolua_function(tolua_S,"getDelta",lua_cocos2dx_Touch_getDelta); tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_Touch_getStartLocationInView); tolua_function(tolua_S,"getCurrentForce",lua_cocos2dx_Touch_getCurrentForce); tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_Touch_getStartLocation); tolua_function(tolua_S,"getId",lua_cocos2dx_Touch_getID); tolua_function(tolua_S,"setTouchInfo",lua_cocos2dx_Touch_setTouchInfo); tolua_function(tolua_S,"getMaxForce",lua_cocos2dx_Touch_getMaxForce); tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_Touch_getLocationInView); tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_Touch_getPreviousLocation); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Touch).name(); g_luaType[typeName] = "cc.Touch"; g_typeCast["Touch"] = "cc.Touch"; return 1; } int lua_cocos2dx_Event_isStopped(lua_State* tolua_S) { int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_isStopped'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Event_isStopped'", nullptr); return 0; } bool ret = cobj->isStopped(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:isStopped",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_isStopped'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Event_getType(lua_State* tolua_S) { int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_getType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Event_getType'", nullptr); return 0; } int ret = (int)cobj->getType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:getType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_getType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) { int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_getCurrentTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Event_getCurrentTarget'", nullptr); return 0; } cocos2d::Node* ret = cobj->getCurrentTarget(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:getCurrentTarget",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_getCurrentTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) { int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Event_stopPropagation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Event_stopPropagation'", nullptr); return 0; } cobj->stopPropagation(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:stopPropagation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_stopPropagation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Event_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Event::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Event:Event"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Event_constructor'", nullptr); return 0; } cobj = new cocos2d::Event(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Event"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:Event",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Event_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Event_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Event)"); return 0; } int lua_register_cocos2dx_Event(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Event"); tolua_cclass(tolua_S,"Event","cc.Event","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Event"); tolua_function(tolua_S,"new",lua_cocos2dx_Event_constructor); tolua_function(tolua_S,"isStopped",lua_cocos2dx_Event_isStopped); tolua_function(tolua_S,"getType",lua_cocos2dx_Event_getType); tolua_function(tolua_S,"getCurrentTarget",lua_cocos2dx_Event_getCurrentTarget); tolua_function(tolua_S,"stopPropagation",lua_cocos2dx_Event_stopPropagation); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Event).name(); g_luaType[typeName] = "cc.Event"; g_typeCast["Event"] = "cc.Event"; return 1; } int lua_cocos2dx_EventTouch_getEventCode(lua_State* tolua_S) { int argc = 0; cocos2d::EventTouch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventTouch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventTouch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventTouch_getEventCode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventTouch_getEventCode'", nullptr); return 0; } int ret = (int)cobj->getEventCode(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventTouch:getEventCode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventTouch_getEventCode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) { int argc = 0; cocos2d::EventTouch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventTouch",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventTouch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventTouch_setEventCode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::EventTouch::EventCode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventTouch:setEventCode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventTouch_setEventCode'", nullptr); return 0; } cobj->setEventCode(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventTouch:setEventCode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventTouch_setEventCode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventTouch_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventTouch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventTouch_constructor'", nullptr); return 0; } cobj = new cocos2d::EventTouch(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventTouch"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventTouch:EventTouch",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventTouch_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventTouch_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventTouch)"); return 0; } int lua_register_cocos2dx_EventTouch(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventTouch"); tolua_cclass(tolua_S,"EventTouch","cc.EventTouch","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventTouch"); tolua_function(tolua_S,"new",lua_cocos2dx_EventTouch_constructor); tolua_function(tolua_S,"getEventCode",lua_cocos2dx_EventTouch_getEventCode); tolua_function(tolua_S,"setEventCode",lua_cocos2dx_EventTouch_setEventCode); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventTouch).name(); g_luaType[typeName] = "cc.EventTouch"; g_typeCast["EventTouch"] = "cc.EventTouch"; return 1; } int lua_cocos2dx_EventKeyboard_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventKeyboard* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::EventKeyboard::KeyCode arg0; bool arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventKeyboard:EventKeyboard"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventKeyboard:EventKeyboard"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventKeyboard_constructor'", nullptr); return 0; } cobj = new cocos2d::EventKeyboard(arg0, arg1); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventKeyboard"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventKeyboard:EventKeyboard",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventKeyboard_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventKeyboard_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventKeyboard)"); return 0; } int lua_register_cocos2dx_EventKeyboard(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventKeyboard"); tolua_cclass(tolua_S,"EventKeyboard","cc.EventKeyboard","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventKeyboard"); tolua_function(tolua_S,"new",lua_cocos2dx_EventKeyboard_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventKeyboard).name(); g_luaType[typeName] = "cc.EventKeyboard"; g_typeCast["EventKeyboard"] = "cc.EventKeyboard"; return 1; } int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_setEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Component:setEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_setEnabled'", nullptr); return 0; } cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:setEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_setEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_onRemove(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_onRemove'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_onRemove'", nullptr); return 0; } cobj->onRemove(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:onRemove",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_onRemove'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_setName(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_setName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Component:setName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_setName'", nullptr); return 0; } cobj->setName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:setName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_setName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_isEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_isEnabled'", nullptr); return 0; } bool ret = cobj->isEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:isEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_isEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_update(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Component:update"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_update'", nullptr); return 0; } cobj->update(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:update",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_update'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_getOwner'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_getOwner'", nullptr); return 0; } cocos2d::Node* ret = cobj->getOwner(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:getOwner",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_getOwner'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_init(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_setOwner'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Component:setOwner"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_setOwner'", nullptr); return 0; } cobj->setOwner(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:setOwner",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_setOwner'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_getName(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_getName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_getName'", nullptr); return 0; } const std::string& ret = cobj->getName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_getName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_onAdd(lua_State* tolua_S) { int argc = 0; cocos2d::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Component_onAdd'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_onAdd'", nullptr); return 0; } cobj->onAdd(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:onAdd",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_onAdd'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Component_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_create'", nullptr); return 0; } cocos2d::Component* ret = cocos2d::Component::create(); object_to_luaval<cocos2d::Component>(tolua_S, "cc.Component",(cocos2d::Component*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Component:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Component_create'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Component_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Component)"); return 0; } int lua_register_cocos2dx_Component(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Component"); tolua_cclass(tolua_S,"Component","cc.Component","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Component"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Component_setEnabled); tolua_function(tolua_S,"onRemove",lua_cocos2dx_Component_onRemove); tolua_function(tolua_S,"setName",lua_cocos2dx_Component_setName); tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Component_isEnabled); tolua_function(tolua_S,"update",lua_cocos2dx_Component_update); tolua_function(tolua_S,"getOwner",lua_cocos2dx_Component_getOwner); tolua_function(tolua_S,"init",lua_cocos2dx_Component_init); tolua_function(tolua_S,"setOwner",lua_cocos2dx_Component_setOwner); tolua_function(tolua_S,"getName",lua_cocos2dx_Component_getName); tolua_function(tolua_S,"onAdd",lua_cocos2dx_Component_onAdd); tolua_function(tolua_S,"create", lua_cocos2dx_Component_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Component).name(); g_luaType[typeName] = "cc.Component"; g_typeCast["Component"] = "cc.Component"; return 1; } int lua_cocos2dx_Node_addChild(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_addChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:addChild"); if (!ok) { break; } cobj->addChild(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); if (!ok) { break; } cobj->addChild(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:addChild"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Node:addChild"); if (!ok) { break; } cobj->addChild(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:addChild"); if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.Node:addChild"); if (!ok) { break; } cobj->addChild(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:addChild",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_addChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeComponent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { cocos2d::Component* arg0; ok &= luaval_to_object<cocos2d::Component>(tolua_S, 2, "cc.Component",&arg0, "cc.Node:removeComponent"); if (!ok) { break; } bool ret = cobj->removeComponent(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:removeComponent"); if (!ok) { break; } bool ret = cobj->removeComponent(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeComponent",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeComponent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPhysicsBody'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::PhysicsBody* arg0; ok &= luaval_to_object<cocos2d::PhysicsBody>(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.Node:setPhysicsBody"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setPhysicsBody'", nullptr); return 0; } cobj->setPhysicsBody(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPhysicsBody",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPhysicsBody'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getDescription'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getDescription'", nullptr); return 0; } std::string ret = cobj->getDescription(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getDescription",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getDescription'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotationSkewY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setRotationSkewY"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setRotationSkewY'", nullptr); return 0; } cobj->setRotationSkewY(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotationSkewY",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotationSkewY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOpacityModifyRGB'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setOpacityModifyRGB"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setOpacityModifyRGB'", nullptr); return 0; } cobj->setOpacityModifyRGB(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOpacityModifyRGB",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOpacityModifyRGB'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setCascadeOpacityEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setCascadeOpacityEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setCascadeOpacityEnabled'", nullptr); return 0; } cobj->setCascadeOpacityEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setCascadeOpacityEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setCascadeOpacityEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildren'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { const cocos2d::Vector<cocos2d::Node *>& ret = cobj->getChildren(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { cocos2d::Vector<cocos2d::Node *>& ret = cobj->getChildren(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildren",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildren'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOnExitCallback'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function<void ()> arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setOnExitCallback'", nullptr); return 0; } cobj->setOnExitCallback(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOnExitCallback",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOnExitCallback'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_pause(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_pause'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_pause'", nullptr); return 0; } cobj->pause(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:pause",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_pause'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToWorldSpaceAR'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToWorldSpaceAR"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertToWorldSpaceAR'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertToWorldSpaceAR(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToWorldSpaceAR",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToWorldSpaceAR'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isIgnoreAnchorPointForPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_isIgnoreAnchorPointForPosition'", nullptr); return 0; } bool ret = cobj->isIgnoreAnchorPointForPosition(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isIgnoreAnchorPointForPosition",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isIgnoreAnchorPointForPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildByName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:getChildByName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getChildByName'", nullptr); return 0; } cocos2d::Node* ret = cobj->getChildByName(arg0); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildByName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildByName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateDisplayedOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { uint16_t arg0; ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.Node:updateDisplayedOpacity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_updateDisplayedOpacity'", nullptr); return 0; } cobj->updateDisplayedOpacity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateDisplayedOpacity",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateDisplayedOpacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_init(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getCameraMask'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getCameraMask'", nullptr); return 0; } unsigned short ret = cobj->getCameraMask(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getCameraMask",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getCameraMask'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setRotation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setRotation'", nullptr); return 0; } cobj->setRotation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScaleZ'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScaleZ"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setScaleZ'", nullptr); return 0; } cobj->setScaleZ(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScaleZ",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScaleZ'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScaleY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScaleY"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setScaleY'", nullptr); return 0; } cobj->setScaleY(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScaleY",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScaleY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScaleX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScaleX"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setScaleX'", nullptr); return 0; } cobj->setScaleX(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScaleX",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScaleX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotationSkewX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setRotationSkewX"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setRotationSkewX'", nullptr); return 0; } cobj->setRotationSkewX(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotationSkewX",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotationSkewX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function<void ()> arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback'", nullptr); return 0; } cobj->setonEnterTransitionDidFinishCallback(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setonEnterTransitionDidFinishCallback",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeAllComponents'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_removeAllComponents'", nullptr); return 0; } cobj->removeAllComponents(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeAllComponents",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeAllComponents'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getOpacity'", nullptr); return 0; } uint16_t ret = cobj->getOpacity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getOpacity",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getOpacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setCameraMask'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned short arg0; ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.Node:setCameraMask"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setCameraMask'", nullptr); return 0; } cobj->setCameraMask(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { unsigned short arg0; bool arg1; ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.Node:setCameraMask"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:setCameraMask"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setCameraMask'", nullptr); return 0; } cobj->setCameraMask(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setCameraMask",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setCameraMask'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getTag(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getTag'", nullptr); return 0; } int ret = cobj->getTag(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getTag",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getGLProgram(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getGLProgram'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getGLProgram'", nullptr); return 0; } cocos2d::GLProgram* ret = cobj->getGLProgram(); object_to_luaval<cocos2d::GLProgram>(tolua_S, "cc.GLProgram",(cocos2d::GLProgram*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getGLProgram",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToWorldTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getNodeToWorldTransform'", nullptr); return 0; } cocos2d::Mat4 ret = cobj->getNodeToWorldTransform(); mat4_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToWorldTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToWorldTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPosition3D'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getPosition3D'", nullptr); return 0; } cocos2d::Vec3 ret = cobj->getPosition3D(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPosition3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPosition3D'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:removeChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_removeChild'", nullptr); return 0; } cobj->removeChild(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { cocos2d::Node* arg0; bool arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:removeChild"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_removeChild'", nullptr); return 0; } cobj->removeChild(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeChild",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToWorldSpace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToWorldSpace"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertToWorldSpace'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertToWorldSpace(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToWorldSpace",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToWorldSpace'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getScene(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getScene'", nullptr); return 0; } cocos2d::Scene* ret = cobj->getScene(); object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScene",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getEventDispatcher'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getEventDispatcher'", nullptr); return 0; } cocos2d::EventDispatcher* ret = cobj->getEventDispatcher(); object_to_luaval<cocos2d::EventDispatcher>(tolua_S, "cc.EventDispatcher",(cocos2d::EventDispatcher*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getEventDispatcher",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getEventDispatcher'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setSkewX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setSkewX"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setSkewX'", nullptr); return 0; } cobj->setSkewX(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setSkewX",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setSkewX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setGLProgramState(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setGLProgramState'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::GLProgramState* arg0; ok &= luaval_to_object<cocos2d::GLProgramState>(tolua_S, 2, "cc.GLProgramState",&arg0, "cc.Node:setGLProgramState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setGLProgramState'", nullptr); return 0; } cobj->setGLProgramState(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setGLProgramState",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setGLProgramState'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOnEnterCallback'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function<void ()> arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setOnEnterCallback'", nullptr); return 0; } cobj->setOnEnterCallback(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOnEnterCallback",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOnEnterCallback'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_stopActionsByFlags(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopActionsByFlags'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Node:stopActionsByFlags"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_stopActionsByFlags'", nullptr); return 0; } cobj->stopActionsByFlags(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopActionsByFlags",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopActionsByFlags'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setNormalizedPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:setNormalizedPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setNormalizedPosition'", nullptr); return 0; } cobj->setNormalizedPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setNormalizedPosition",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setNormalizedPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setonExitTransitionDidStartCallback(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setonExitTransitionDidStartCallback'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function<void ()> arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setonExitTransitionDidStartCallback'", nullptr); return 0; } cobj->setonExitTransitionDidStartCallback(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setonExitTransitionDidStartCallback",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setonExitTransitionDidStartCallback'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertTouchToNodeSpace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Touch* arg0; ok &= luaval_to_object<cocos2d::Touch>(tolua_S, 2, "cc.Touch",&arg0, "cc.Node:convertTouchToNodeSpace"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertTouchToNodeSpace'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertTouchToNodeSpace(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertTouchToNodeSpace",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertTouchToNodeSpace'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:removeAllChildrenWithCleanup"); if (!ok) { break; } cobj->removeAllChildrenWithCleanup(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 0) { cobj->removeAllChildren(); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeAllChildren",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeAllChildrenWithCleanup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToParentAffineTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:getNodeToParentAffineTransform"); if (!ok) { break; } cocos2d::AffineTransform ret = cobj->getNodeToParentAffineTransform(arg0); affinetransform_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { cocos2d::AffineTransform ret = cobj->getNodeToParentAffineTransform(); affinetransform_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToParentAffineTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToParentAffineTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isCascadeOpacityEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_isCascadeOpacityEnabled'", nullptr); return 0; } bool ret = cobj->isCascadeOpacityEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isCascadeOpacityEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isCascadeOpacityEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setParent(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setParent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:setParent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setParent'", nullptr); return 0; } cobj->setParent(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setParent",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setParent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getName(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getName'", nullptr); return 0; } const std::string& ret = cobj->getName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_resume(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_resume'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_resume'", nullptr); return 0; } cobj->resume(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:resume",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_resume'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotation3D'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getRotation3D'", nullptr); return 0; } cocos2d::Vec3 ret = cobj->getRotation3D(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotation3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotation3D'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToParentTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:getNodeToParentTransform"); if (!ok) { break; } cocos2d::Mat4 ret = cobj->getNodeToParentTransform(arg0); mat4_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::Mat4& ret = cobj->getNodeToParentTransform(); mat4_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToParentTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToParentTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertTouchToNodeSpaceAR'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Touch* arg0; ok &= luaval_to_object<cocos2d::Touch>(tolua_S, 2, "cc.Touch",&arg0, "cc.Node:convertTouchToNodeSpaceAR"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertTouchToNodeSpaceAR'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertTouchToNodeSpaceAR(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertTouchToNodeSpaceAR",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertTouchToNodeSpaceAR'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToNodeSpace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToNodeSpace"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertToNodeSpace'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertToNodeSpace(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToNodeSpace",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToNodeSpace'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isOpacityModifyRGB'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_isOpacityModifyRGB'", nullptr); return 0; } bool ret = cobj->isOpacityModifyRGB(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isOpacityModifyRGB",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isOpacityModifyRGB'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPosition"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Node:setPosition"); if (!ok) { break; } cobj->setPosition(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:setPosition"); if (!ok) { break; } cobj->setPosition(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPosition",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopActionByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:stopActionByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_stopActionByTag'", nullptr); return 0; } cobj->stopActionByTag(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopActionByTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopActionByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_reorderChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Node* arg0; int arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Node:reorderChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:reorderChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_reorderChild'", nullptr); return 0; } cobj->reorderChild(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:reorderChild",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_reorderChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setSkewY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setSkewY"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setSkewY'", nullptr); return 0; } cobj->setSkewY(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setSkewY",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setSkewY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPositionZ'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPositionZ"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setPositionZ'", nullptr); return 0; } cobj->setPositionZ(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPositionZ",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPositionZ'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setRotation3D'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Node:setRotation3D"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setRotation3D'", nullptr); return 0; } cobj->setRotation3D(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setRotation3D",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setRotation3D'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPositionX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPositionX"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setPositionX'", nullptr); return 0; } cobj->setPositionX(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPositionX",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPositionX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setNodeToParentTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Node:setNodeToParentTransform"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setNodeToParentTransform'", nullptr); return 0; } cobj->setNodeToParentTransform(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setNodeToParentTransform",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setNodeToParentTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getAnchorPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getAnchorPoint'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getAnchorPoint(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getAnchorPoint",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getAnchorPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNumberOfRunningActions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getNumberOfRunningActions'", nullptr); return 0; } ssize_t ret = cobj->getNumberOfRunningActions(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNumberOfRunningActions",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNumberOfRunningActions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_updateTransform'", nullptr); return 0; } cobj->updateTransform(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setGLProgram(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setGLProgram'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::GLProgram* arg0; ok &= luaval_to_object<cocos2d::GLProgram>(tolua_S, 2, "cc.GLProgram",&arg0, "cc.Node:setGLProgram"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setGLProgram'", nullptr); return 0; } cobj->setGLProgram(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setGLProgram",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isVisible'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_isVisible'", nullptr); return 0; } bool ret = cobj->isVisible(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isVisible",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isVisible'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildrenCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getChildrenCount'", nullptr); return 0; } ssize_t ret = cobj->getChildrenCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildrenCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildrenCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_convertToNodeSpaceAR'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToNodeSpaceAR"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertToNodeSpaceAR'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertToNodeSpaceAR(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:convertToNodeSpaceAR",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_convertToNodeSpaceAR'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_addComponent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Component* arg0; ok &= luaval_to_object<cocos2d::Component>(tolua_S, 2, "cc.Component",&arg0, "cc.Node:addComponent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_addComponent'", nullptr); return 0; } bool ret = cobj->addComponent(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:addComponent",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_addComponent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_runAction(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_runAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Action* arg0; ok &= luaval_to_object<cocos2d::Action>(tolua_S, 2, "cc.Action",&arg0, "cc.Node:runAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_runAction'", nullptr); return 0; } cocos2d::Action* ret = cobj->runAction(arg0); object_to_luaval<cocos2d::Action>(tolua_S, "cc.Action",(cocos2d::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:runAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_runAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_visit(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_visit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cobj->visit(); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::Renderer* arg0; ok &= luaval_to_object<cocos2d::Renderer>(tolua_S, 2, "cc.Renderer",&arg0, "cc.Node:visit"); if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Node:visit"); if (!ok) { break; } unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Node:visit"); if (!ok) { break; } cobj->visit(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:visit",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_visit'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getRotation'", nullptr); return 0; } double ret = cobj->getRotation(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPhysicsBody'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getPhysicsBody'", nullptr); return 0; } cocos2d::PhysicsBody* ret = cobj->getPhysicsBody(); object_to_luaval<cocos2d::PhysicsBody>(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPhysicsBody",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPhysicsBody'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getAnchorPointInPoints'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getAnchorPointInPoints'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getAnchorPointInPoints(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getAnchorPointInPoints",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getAnchorPointInPoints'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeChildByName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:removeChildByName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_removeChildByName'", nullptr); return 0; } cobj->removeChildByName(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string arg0; bool arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:removeChildByName"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChildByName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_removeChildByName'", nullptr); return 0; } cobj->removeChildByName(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeChildByName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeChildByName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getGLProgramState(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getGLProgramState'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getGLProgramState'", nullptr); return 0; } cocos2d::GLProgramState* ret = cobj->getGLProgramState(); object_to_luaval<cocos2d::GLProgramState>(tolua_S, "cc.GLProgramState",(cocos2d::GLProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getGLProgramState",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getGLProgramState'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScheduler'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Scheduler* arg0; ok &= luaval_to_object<cocos2d::Scheduler>(tolua_S, 2, "cc.Scheduler",&arg0, "cc.Node:setScheduler"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setScheduler'", nullptr); return 0; } cobj->setScheduler(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScheduler",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScheduler'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopAllActions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_stopAllActions'", nullptr); return 0; } cobj->stopAllActions(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopAllActions",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopAllActions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getSkewX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getSkewX'", nullptr); return 0; } double ret = cobj->getSkewX(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getSkewX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getSkewX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getSkewY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getSkewY'", nullptr); return 0; } double ret = cobj->getSkewY(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getSkewY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getSkewY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getDisplayedColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getDisplayedColor'", nullptr); return 0; } const cocos2d::Color3B& ret = cobj->getDisplayedColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getDisplayedColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getDisplayedColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getActionByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:getActionByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getActionByTag'", nullptr); return 0; } cocos2d::Action* ret = cobj->getActionByTag(arg0); object_to_luaval<cocos2d::Action>(tolua_S, "cc.Action",(cocos2d::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getActionByTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getActionByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setName(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:setName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setName'", nullptr); return 0; } cobj->setName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getDisplayedOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getDisplayedOpacity'", nullptr); return 0; } uint16_t ret = cobj->getDisplayedOpacity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getDisplayedOpacity",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getDisplayedOpacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getLocalZOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getLocalZOrder'", nullptr); return 0; } int ret = cobj->getLocalZOrder(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getLocalZOrder",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getLocalZOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScheduler'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { const cocos2d::Scheduler* ret = cobj->getScheduler(); object_to_luaval<cocos2d::Scheduler>(tolua_S, "cc.Scheduler",(cocos2d::Scheduler*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { cocos2d::Scheduler* ret = cobj->getScheduler(); object_to_luaval<cocos2d::Scheduler>(tolua_S, "cc.Scheduler",(cocos2d::Scheduler*)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScheduler",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScheduler'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getParentToNodeAffineTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getParentToNodeAffineTransform'", nullptr); return 0; } cocos2d::AffineTransform ret = cobj->getParentToNodeAffineTransform(); affinetransform_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getParentToNodeAffineTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getParentToNodeAffineTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setActionManager'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionManager* arg0; ok &= luaval_to_object<cocos2d::ActionManager>(tolua_S, 2, "cc.ActionManager",&arg0, "cc.Node:setActionManager"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setActionManager'", nullptr); return 0; } cobj->setActionManager(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setActionManager",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setActionManager'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setColor(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.Node:setColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setColor'", nullptr); return 0; } cobj->setColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isRunning'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_isRunning'", nullptr); return 0; } bool ret = cobj->isRunning(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isRunning",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isRunning'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getParent(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getParent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { const cocos2d::Node* ret = cobj->getParent(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { cocos2d::Node* ret = cobj->getParent(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getParent",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getParent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPositionZ'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getPositionZ'", nullptr); return 0; } double ret = cobj->getPositionZ(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPositionZ",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPositionZ'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPositionY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getPositionY'", nullptr); return 0; } double ret = cobj->getPositionY(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPositionY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPositionY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getPositionX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getPositionX'", nullptr); return 0; } double ret = cobj->getPositionX(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPositionX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getPositionX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeChildByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:removeChildByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_removeChildByTag'", nullptr); return 0; } cobj->removeChildByTag(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { int arg0; bool arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:removeChildByTag"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChildByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_removeChildByTag'", nullptr); return 0; } cobj->removeChildByTag(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeChildByTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeChildByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPositionY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setPositionY"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setPositionY'", nullptr); return 0; } cobj->setPositionY(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPositionY",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPositionY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNodeToWorldAffineTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getNodeToWorldAffineTransform'", nullptr); return 0; } cocos2d::AffineTransform ret = cobj->getNodeToWorldAffineTransform(); affinetransform_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNodeToWorldAffineTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNodeToWorldAffineTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateDisplayedColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.Node:updateDisplayedColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_updateDisplayedColor'", nullptr); return 0; } cobj->updateDisplayedColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateDisplayedColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateDisplayedColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setVisible'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setVisible"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setVisible'", nullptr); return 0; } cobj->setVisible(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setVisible",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setVisible'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getParentToNodeTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getParentToNodeTransform'", nullptr); return 0; } const cocos2d::Mat4& ret = cobj->getParentToNodeTransform(); mat4_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getParentToNodeTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getParentToNodeTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isScheduled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:isScheduled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_isScheduled'", nullptr); return 0; } bool ret = cobj->isScheduled(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isScheduled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isScheduled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setGlobalZOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setGlobalZOrder"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setGlobalZOrder'", nullptr); return 0; } cobj->setGlobalZOrder(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setGlobalZOrder",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setGlobalZOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setScale(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScale"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Node:setScale"); if (!ok) { break; } cobj->setScale(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:setScale"); if (!ok) { break; } cobj->setScale(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setScale",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setScale'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getChildByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:getChildByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getChildByTag'", nullptr); return 0; } cocos2d::Node* ret = cobj->getChildByTag(arg0); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildByTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getChildByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScaleZ'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getScaleZ'", nullptr); return 0; } double ret = cobj->getScaleZ(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScaleZ",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScaleZ'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScaleY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getScaleY'", nullptr); return 0; } double ret = cobj->getScaleY(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScaleY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScaleY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScaleX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getScaleX'", nullptr); return 0; } double ret = cobj->getScaleX(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScaleX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScaleX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setLocalZOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:setLocalZOrder"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setLocalZOrder'", nullptr); return 0; } cobj->setLocalZOrder(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setLocalZOrder",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setLocalZOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getWorldToNodeAffineTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getWorldToNodeAffineTransform'", nullptr); return 0; } cocos2d::AffineTransform ret = cobj->getWorldToNodeAffineTransform(); affinetransform_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getWorldToNodeAffineTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getWorldToNodeAffineTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setCascadeColorEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setCascadeColorEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setCascadeColorEnabled'", nullptr); return 0; } cobj->setCascadeColorEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setCascadeColorEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setCascadeColorEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { uint16_t arg0; ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.Node:setOpacity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setOpacity'", nullptr); return 0; } cobj->setOpacity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setOpacity",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setOpacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_cleanup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_cleanup'", nullptr); return 0; } cobj->cleanup(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:cleanup",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_cleanup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getComponent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Node:getComponent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getComponent'", nullptr); return 0; } cocos2d::Component* ret = cobj->getComponent(arg0); object_to_luaval<cocos2d::Component>(tolua_S, "cc.Component",(cocos2d::Component*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getComponent",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getComponent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getContentSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getContentSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getContentSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getContentSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getContentSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopAllActionsByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:stopAllActionsByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_stopAllActionsByTag'", nullptr); return 0; } cobj->stopAllActionsByTag(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopAllActionsByTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopAllActionsByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getColor(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getColor'", nullptr); return 0; } const cocos2d::Color3B& ret = cobj->getColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getBoundingBox'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getBoundingBox'", nullptr); return 0; } cocos2d::Rect ret = cobj->getBoundingBox(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getBoundingBox",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getBoundingBox'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setIgnoreAnchorPointForPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setIgnoreAnchorPointForPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:setIgnoreAnchorPointForPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setIgnoreAnchorPointForPosition'", nullptr); return 0; } cobj->setIgnoreAnchorPointForPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setIgnoreAnchorPointForPosition",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setIgnoreAnchorPointForPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setEventDispatcher'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::EventDispatcher* arg0; ok &= luaval_to_object<cocos2d::EventDispatcher>(tolua_S, 2, "cc.EventDispatcher",&arg0, "cc.Node:setEventDispatcher"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setEventDispatcher'", nullptr); return 0; } cobj->setEventDispatcher(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setEventDispatcher",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setEventDispatcher'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getGlobalZOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getGlobalZOrder'", nullptr); return 0; } double ret = cobj->getGlobalZOrder(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getGlobalZOrder",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getGlobalZOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_draw(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_draw'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cobj->draw(); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::Renderer* arg0; ok &= luaval_to_object<cocos2d::Renderer>(tolua_S, 2, "cc.Renderer",&arg0, "cc.Node:draw"); if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Node:draw"); if (!ok) { break; } unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Node:draw"); if (!ok) { break; } cobj->draw(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:draw",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_draw'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setUserObject'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Ref* arg0; ok &= luaval_to_object<cocos2d::Ref>(tolua_S, 2, "cc.Ref",&arg0, "cc.Node:setUserObject"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setUserObject'", nullptr); return 0; } cobj->setUserObject(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setUserObject",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setUserObject'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_removeFromParentAndCleanup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Node:removeFromParentAndCleanup"); if (!ok) { break; } cobj->removeFromParentAndCleanup(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 0) { cobj->removeFromParent(); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:removeFromParent",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_removeFromParentAndCleanup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setPosition3D'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Node:setPosition3D"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setPosition3D'", nullptr); return 0; } cobj->setPosition3D(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setPosition3D",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setPosition3D'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_update(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Node:update"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_update'", nullptr); return 0; } cobj->update(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:update",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_update'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_sortAllChildren'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_sortAllChildren'", nullptr); return 0; } cobj->sortAllChildren(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:sortAllChildren",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_sortAllChildren'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getWorldToNodeTransform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getWorldToNodeTransform'", nullptr); return 0; } cocos2d::Mat4 ret = cobj->getWorldToNodeTransform(); mat4_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getWorldToNodeTransform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getWorldToNodeTransform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getScale(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getScale'", nullptr); return 0; } double ret = cobj->getScale(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScale",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getScale'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_updateOrderOfArrival(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_updateOrderOfArrival'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_updateOrderOfArrival'", nullptr); return 0; } cobj->updateOrderOfArrival(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:updateOrderOfArrival",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_updateOrderOfArrival'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getNormalizedPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getNormalizedPosition'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getNormalizedPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getNormalizedPosition",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getNormalizedPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotationSkewX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getRotationSkewX'", nullptr); return 0; } double ret = cobj->getRotationSkewX(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotationSkewX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotationSkewX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getRotationSkewY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getRotationSkewY'", nullptr); return 0; } double ret = cobj->getRotationSkewY(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getRotationSkewY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getRotationSkewY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_setTag(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_setTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Node:setTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setTag'", nullptr); return 0; } cobj->setTag(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:setTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_setTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_isCascadeColorEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_isCascadeColorEnabled'", nullptr); return 0; } bool ret = cobj->isCascadeColorEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:isCascadeColorEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_isCascadeColorEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_stopAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Action* arg0; ok &= luaval_to_object<cocos2d::Action>(tolua_S, 2, "cc.Action",&arg0, "cc.Node:stopAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_stopAction'", nullptr); return 0; } cobj->stopAction(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:stopAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_stopAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Node_getActionManager'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { const cocos2d::ActionManager* ret = cobj->getActionManager(); object_to_luaval<cocos2d::ActionManager>(tolua_S, "cc.ActionManager",(cocos2d::ActionManager*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { cocos2d::ActionManager* ret = cobj->getActionManager(); object_to_luaval<cocos2d::ActionManager>(tolua_S, "cc.ActionManager",(cocos2d::ActionManager*)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getActionManager",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_getActionManager'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_create'", nullptr); return 0; } cocos2d::Node* ret = cocos2d::Node::create(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Node:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Node_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_constructor'", nullptr); return 0; } cobj = new cocos2d::Node(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Node"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:Node",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Node_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Node_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Node)"); return 0; } int lua_register_cocos2dx_Node(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Node"); tolua_cclass(tolua_S,"Node","cc.Node","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Node"); tolua_function(tolua_S,"new",lua_cocos2dx_Node_constructor); tolua_function(tolua_S,"addChild",lua_cocos2dx_Node_addChild); tolua_function(tolua_S,"removeComponent",lua_cocos2dx_Node_removeComponent); tolua_function(tolua_S,"setPhysicsBody",lua_cocos2dx_Node_setPhysicsBody); tolua_function(tolua_S,"getDescription",lua_cocos2dx_Node_getDescription); tolua_function(tolua_S,"setRotationSkewY",lua_cocos2dx_Node_setRotationSkewY); tolua_function(tolua_S,"setOpacityModifyRGB",lua_cocos2dx_Node_setOpacityModifyRGB); tolua_function(tolua_S,"setCascadeOpacityEnabled",lua_cocos2dx_Node_setCascadeOpacityEnabled); tolua_function(tolua_S,"getChildren",lua_cocos2dx_Node_getChildren); tolua_function(tolua_S,"setOnExitCallback",lua_cocos2dx_Node_setOnExitCallback); tolua_function(tolua_S,"pause",lua_cocos2dx_Node_pause); tolua_function(tolua_S,"convertToWorldSpaceAR",lua_cocos2dx_Node_convertToWorldSpaceAR); tolua_function(tolua_S,"isIgnoreAnchorPointForPosition",lua_cocos2dx_Node_isIgnoreAnchorPointForPosition); tolua_function(tolua_S,"getChildByName",lua_cocos2dx_Node_getChildByName); tolua_function(tolua_S,"updateDisplayedOpacity",lua_cocos2dx_Node_updateDisplayedOpacity); tolua_function(tolua_S,"init",lua_cocos2dx_Node_init); tolua_function(tolua_S,"getCameraMask",lua_cocos2dx_Node_getCameraMask); tolua_function(tolua_S,"setRotation",lua_cocos2dx_Node_setRotation); tolua_function(tolua_S,"setScaleZ",lua_cocos2dx_Node_setScaleZ); tolua_function(tolua_S,"setScaleY",lua_cocos2dx_Node_setScaleY); tolua_function(tolua_S,"setScaleX",lua_cocos2dx_Node_setScaleX); tolua_function(tolua_S,"setRotationSkewX",lua_cocos2dx_Node_setRotationSkewX); tolua_function(tolua_S,"setonEnterTransitionDidFinishCallback",lua_cocos2dx_Node_setonEnterTransitionDidFinishCallback); tolua_function(tolua_S,"removeAllComponents",lua_cocos2dx_Node_removeAllComponents); tolua_function(tolua_S,"getOpacity",lua_cocos2dx_Node_getOpacity); tolua_function(tolua_S,"setCameraMask",lua_cocos2dx_Node_setCameraMask); tolua_function(tolua_S,"getTag",lua_cocos2dx_Node_getTag); tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_Node_getGLProgram); tolua_function(tolua_S,"getNodeToWorldTransform",lua_cocos2dx_Node_getNodeToWorldTransform); tolua_function(tolua_S,"getPosition3D",lua_cocos2dx_Node_getPosition3D); tolua_function(tolua_S,"removeChild",lua_cocos2dx_Node_removeChild); tolua_function(tolua_S,"convertToWorldSpace",lua_cocos2dx_Node_convertToWorldSpace); tolua_function(tolua_S,"getScene",lua_cocos2dx_Node_getScene); tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Node_getEventDispatcher); tolua_function(tolua_S,"setSkewX",lua_cocos2dx_Node_setSkewX); tolua_function(tolua_S,"setGLProgramState",lua_cocos2dx_Node_setGLProgramState); tolua_function(tolua_S,"setOnEnterCallback",lua_cocos2dx_Node_setOnEnterCallback); tolua_function(tolua_S,"stopActionsByFlags",lua_cocos2dx_Node_stopActionsByFlags); tolua_function(tolua_S,"setNormalizedPosition",lua_cocos2dx_Node_setNormalizedPosition); tolua_function(tolua_S,"setonExitTransitionDidStartCallback",lua_cocos2dx_Node_setonExitTransitionDidStartCallback); tolua_function(tolua_S,"convertTouchToNodeSpace",lua_cocos2dx_Node_convertTouchToNodeSpace); tolua_function(tolua_S,"removeAllChildren",lua_cocos2dx_Node_removeAllChildrenWithCleanup); tolua_function(tolua_S,"getNodeToParentAffineTransform",lua_cocos2dx_Node_getNodeToParentAffineTransform); tolua_function(tolua_S,"isCascadeOpacityEnabled",lua_cocos2dx_Node_isCascadeOpacityEnabled); tolua_function(tolua_S,"setParent",lua_cocos2dx_Node_setParent); tolua_function(tolua_S,"getName",lua_cocos2dx_Node_getName); tolua_function(tolua_S,"resume",lua_cocos2dx_Node_resume); tolua_function(tolua_S,"getRotation3D",lua_cocos2dx_Node_getRotation3D); tolua_function(tolua_S,"getNodeToParentTransform",lua_cocos2dx_Node_getNodeToParentTransform); tolua_function(tolua_S,"convertTouchToNodeSpaceAR",lua_cocos2dx_Node_convertTouchToNodeSpaceAR); tolua_function(tolua_S,"convertToNodeSpace",lua_cocos2dx_Node_convertToNodeSpace); tolua_function(tolua_S,"isOpacityModifyRGB",lua_cocos2dx_Node_isOpacityModifyRGB); tolua_function(tolua_S,"setPosition",lua_cocos2dx_Node_setPosition); tolua_function(tolua_S,"stopActionByTag",lua_cocos2dx_Node_stopActionByTag); tolua_function(tolua_S,"reorderChild",lua_cocos2dx_Node_reorderChild); tolua_function(tolua_S,"setSkewY",lua_cocos2dx_Node_setSkewY); tolua_function(tolua_S,"setPositionZ",lua_cocos2dx_Node_setPositionZ); tolua_function(tolua_S,"setRotation3D",lua_cocos2dx_Node_setRotation3D); tolua_function(tolua_S,"setPositionX",lua_cocos2dx_Node_setPositionX); tolua_function(tolua_S,"setNodeToParentTransform",lua_cocos2dx_Node_setNodeToParentTransform); tolua_function(tolua_S,"getAnchorPoint",lua_cocos2dx_Node_getAnchorPoint); tolua_function(tolua_S,"getNumberOfRunningActions",lua_cocos2dx_Node_getNumberOfRunningActions); tolua_function(tolua_S,"updateTransform",lua_cocos2dx_Node_updateTransform); tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_Node_setGLProgram); tolua_function(tolua_S,"isVisible",lua_cocos2dx_Node_isVisible); tolua_function(tolua_S,"getChildrenCount",lua_cocos2dx_Node_getChildrenCount); tolua_function(tolua_S,"convertToNodeSpaceAR",lua_cocos2dx_Node_convertToNodeSpaceAR); tolua_function(tolua_S,"addComponent",lua_cocos2dx_Node_addComponent); tolua_function(tolua_S,"runAction",lua_cocos2dx_Node_runAction); tolua_function(tolua_S,"visit",lua_cocos2dx_Node_visit); tolua_function(tolua_S,"getRotation",lua_cocos2dx_Node_getRotation); tolua_function(tolua_S,"getPhysicsBody",lua_cocos2dx_Node_getPhysicsBody); tolua_function(tolua_S,"getAnchorPointInPoints",lua_cocos2dx_Node_getAnchorPointInPoints); tolua_function(tolua_S,"removeChildByName",lua_cocos2dx_Node_removeChildByName); tolua_function(tolua_S,"getGLProgramState",lua_cocos2dx_Node_getGLProgramState); tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Node_setScheduler); tolua_function(tolua_S,"stopAllActions",lua_cocos2dx_Node_stopAllActions); tolua_function(tolua_S,"getSkewX",lua_cocos2dx_Node_getSkewX); tolua_function(tolua_S,"getSkewY",lua_cocos2dx_Node_getSkewY); tolua_function(tolua_S,"getDisplayedColor",lua_cocos2dx_Node_getDisplayedColor); tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_Node_getActionByTag); tolua_function(tolua_S,"setName",lua_cocos2dx_Node_setName); tolua_function(tolua_S,"getDisplayedOpacity",lua_cocos2dx_Node_getDisplayedOpacity); tolua_function(tolua_S,"getLocalZOrder",lua_cocos2dx_Node_getLocalZOrder); tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Node_getScheduler); tolua_function(tolua_S,"getParentToNodeAffineTransform",lua_cocos2dx_Node_getParentToNodeAffineTransform); tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Node_setActionManager); tolua_function(tolua_S,"setColor",lua_cocos2dx_Node_setColor); tolua_function(tolua_S,"isRunning",lua_cocos2dx_Node_isRunning); tolua_function(tolua_S,"getParent",lua_cocos2dx_Node_getParent); tolua_function(tolua_S,"getPositionZ",lua_cocos2dx_Node_getPositionZ); tolua_function(tolua_S,"getPositionY",lua_cocos2dx_Node_getPositionY); tolua_function(tolua_S,"getPositionX",lua_cocos2dx_Node_getPositionX); tolua_function(tolua_S,"removeChildByTag",lua_cocos2dx_Node_removeChildByTag); tolua_function(tolua_S,"setPositionY",lua_cocos2dx_Node_setPositionY); tolua_function(tolua_S,"getNodeToWorldAffineTransform",lua_cocos2dx_Node_getNodeToWorldAffineTransform); tolua_function(tolua_S,"updateDisplayedColor",lua_cocos2dx_Node_updateDisplayedColor); tolua_function(tolua_S,"setVisible",lua_cocos2dx_Node_setVisible); tolua_function(tolua_S,"getParentToNodeTransform",lua_cocos2dx_Node_getParentToNodeTransform); tolua_function(tolua_S,"isScheduled",lua_cocos2dx_Node_isScheduled); tolua_function(tolua_S,"setGlobalZOrder",lua_cocos2dx_Node_setGlobalZOrder); tolua_function(tolua_S,"setScale",lua_cocos2dx_Node_setScale); tolua_function(tolua_S,"getChildByTag",lua_cocos2dx_Node_getChildByTag); tolua_function(tolua_S,"getScaleZ",lua_cocos2dx_Node_getScaleZ); tolua_function(tolua_S,"getScaleY",lua_cocos2dx_Node_getScaleY); tolua_function(tolua_S,"getScaleX",lua_cocos2dx_Node_getScaleX); tolua_function(tolua_S,"setLocalZOrder",lua_cocos2dx_Node_setLocalZOrder); tolua_function(tolua_S,"getWorldToNodeAffineTransform",lua_cocos2dx_Node_getWorldToNodeAffineTransform); tolua_function(tolua_S,"setCascadeColorEnabled",lua_cocos2dx_Node_setCascadeColorEnabled); tolua_function(tolua_S,"setOpacity",lua_cocos2dx_Node_setOpacity); tolua_function(tolua_S,"cleanup",lua_cocos2dx_Node_cleanup); tolua_function(tolua_S,"getComponent",lua_cocos2dx_Node_getComponent); tolua_function(tolua_S,"getContentSize",lua_cocos2dx_Node_getContentSize); tolua_function(tolua_S,"stopAllActionsByTag",lua_cocos2dx_Node_stopAllActionsByTag); tolua_function(tolua_S,"getColor",lua_cocos2dx_Node_getColor); tolua_function(tolua_S,"getBoundingBox",lua_cocos2dx_Node_getBoundingBox); tolua_function(tolua_S,"setIgnoreAnchorPointForPosition",lua_cocos2dx_Node_setIgnoreAnchorPointForPosition); tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Node_setEventDispatcher); tolua_function(tolua_S,"getGlobalZOrder",lua_cocos2dx_Node_getGlobalZOrder); tolua_function(tolua_S,"draw",lua_cocos2dx_Node_draw); tolua_function(tolua_S,"setUserObject",lua_cocos2dx_Node_setUserObject); tolua_function(tolua_S,"removeFromParent",lua_cocos2dx_Node_removeFromParentAndCleanup); tolua_function(tolua_S,"setPosition3D",lua_cocos2dx_Node_setPosition3D); tolua_function(tolua_S,"update",lua_cocos2dx_Node_update); tolua_function(tolua_S,"sortAllChildren",lua_cocos2dx_Node_sortAllChildren); tolua_function(tolua_S,"getWorldToNodeTransform",lua_cocos2dx_Node_getWorldToNodeTransform); tolua_function(tolua_S,"getScale",lua_cocos2dx_Node_getScale); tolua_function(tolua_S,"updateOrderOfArrival",lua_cocos2dx_Node_updateOrderOfArrival); tolua_function(tolua_S,"getNormalizedPosition",lua_cocos2dx_Node_getNormalizedPosition); tolua_function(tolua_S,"getRotationSkewX",lua_cocos2dx_Node_getRotationSkewX); tolua_function(tolua_S,"getRotationSkewY",lua_cocos2dx_Node_getRotationSkewY); tolua_function(tolua_S,"setTag",lua_cocos2dx_Node_setTag); tolua_function(tolua_S,"isCascadeColorEnabled",lua_cocos2dx_Node_isCascadeColorEnabled); tolua_function(tolua_S,"stopAction",lua_cocos2dx_Node_stopAction); tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Node_getActionManager); tolua_function(tolua_S,"create", lua_cocos2dx_Node_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Node).name(); g_luaType[typeName] = "cc.Node"; g_typeCast["Node"] = "cc.Node"; return 1; } int lua_cocos2dx_Scene_initWithPhysics(lua_State* tolua_S) { int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_initWithPhysics'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_initWithPhysics'", nullptr); return 0; } bool ret = cobj->initWithPhysics(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:initWithPhysics",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_initWithPhysics'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_setCameraOrderDirty(lua_State* tolua_S) { int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_setCameraOrderDirty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_setCameraOrderDirty'", nullptr); return 0; } cobj->setCameraOrderDirty(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:setCameraOrderDirty",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_setCameraOrderDirty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_render(lua_State* tolua_S) { int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_render'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Renderer* arg0; cocos2d::Mat4 arg1; ok &= luaval_to_object<cocos2d::Renderer>(tolua_S, 2, "cc.Renderer",&arg0, "cc.Scene:render"); ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Scene:render"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_render'", nullptr); return 0; } cobj->render(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) { cocos2d::Renderer* arg0; cocos2d::Mat4 arg1; const cocos2d::Mat4* arg2; ok &= luaval_to_object<cocos2d::Renderer>(tolua_S, 2, "cc.Renderer",&arg0, "cc.Scene:render"); ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Scene:render"); ok &= luaval_to_object<const cocos2d::Mat4>(tolua_S, 4, "cc.Mat4",&arg2, "cc.Scene:render"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_render'", nullptr); return 0; } cobj->render(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:render",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_render'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_stepPhysicsAndNavigation(lua_State* tolua_S) { int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_stepPhysicsAndNavigation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Scene:stepPhysicsAndNavigation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_stepPhysicsAndNavigation'", nullptr); return 0; } cobj->stepPhysicsAndNavigation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:stepPhysicsAndNavigation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_stepPhysicsAndNavigation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_onProjectionChanged(lua_State* tolua_S) { int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_onProjectionChanged'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::EventCustom* arg0; ok &= luaval_to_object<cocos2d::EventCustom>(tolua_S, 2, "cc.EventCustom",&arg0, "cc.Scene:onProjectionChanged"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_onProjectionChanged'", nullptr); return 0; } cobj->onProjectionChanged(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:onProjectionChanged",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_onProjectionChanged'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S) { int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_getPhysicsWorld'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_getPhysicsWorld'", nullptr); return 0; } cocos2d::PhysicsWorld* ret = cobj->getPhysicsWorld(); object_to_luaval<cocos2d::PhysicsWorld>(tolua_S, "cc.PhysicsWorld",(cocos2d::PhysicsWorld*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:getPhysicsWorld",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_getPhysicsWorld'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_initWithSize(lua_State* tolua_S) { int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_initWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.Scene:initWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_initWithSize'", nullptr); return 0; } bool ret = cobj->initWithSize(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:initWithSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_initWithSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_getDefaultCamera(lua_State* tolua_S) { int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scene_getDefaultCamera'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_getDefaultCamera'", nullptr); return 0; } cocos2d::Camera* ret = cobj->getDefaultCamera(); object_to_luaval<cocos2d::Camera>(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:getDefaultCamera",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_getDefaultCamera'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_createWithSize(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.Scene:createWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_createWithSize'", nullptr); return 0; } cocos2d::Scene* ret = cocos2d::Scene::createWithSize(arg0); object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:createWithSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_create'", nullptr); return 0; } cocos2d::Scene* ret = cocos2d::Scene::create(); object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_createWithPhysics'", nullptr); return 0; } cocos2d::Scene* ret = cocos2d::Scene::createWithPhysics(); object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:createWithPhysics",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_createWithPhysics'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scene_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_constructor'", nullptr); return 0; } cobj = new cocos2d::Scene(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Scene"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:Scene",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scene_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Scene_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Scene)"); return 0; } int lua_register_cocos2dx_Scene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Scene"); tolua_cclass(tolua_S,"Scene","cc.Scene","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Scene"); tolua_function(tolua_S,"new",lua_cocos2dx_Scene_constructor); tolua_function(tolua_S,"initWithPhysics",lua_cocos2dx_Scene_initWithPhysics); tolua_function(tolua_S,"setCameraOrderDirty",lua_cocos2dx_Scene_setCameraOrderDirty); tolua_function(tolua_S,"render",lua_cocos2dx_Scene_render); tolua_function(tolua_S,"stepPhysicsAndNavigation",lua_cocos2dx_Scene_stepPhysicsAndNavigation); tolua_function(tolua_S,"onProjectionChanged",lua_cocos2dx_Scene_onProjectionChanged); tolua_function(tolua_S,"getPhysicsWorld",lua_cocos2dx_Scene_getPhysicsWorld); tolua_function(tolua_S,"initWithSize",lua_cocos2dx_Scene_initWithSize); tolua_function(tolua_S,"getDefaultCamera",lua_cocos2dx_Scene_getDefaultCamera); tolua_function(tolua_S,"createWithSize", lua_cocos2dx_Scene_createWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_Scene_create); tolua_function(tolua_S,"createWithPhysics", lua_cocos2dx_Scene_createWithPhysics); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Scene).name(); g_luaType[typeName] = "cc.Scene"; g_typeCast["Scene"] = "cc.Scene"; return 1; } int lua_cocos2dx_GLView_setFrameSize(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setFrameSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; double arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setFrameSize"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setFrameSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setFrameSize'", nullptr); return 0; } cobj->setFrameSize(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setFrameSize",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setFrameSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getViewPortRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getViewPortRect'", nullptr); return 0; } const cocos2d::Rect& ret = cobj->getViewPortRect(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getViewPortRect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getViewPortRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setContentScaleFactor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setContentScaleFactor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setContentScaleFactor'", nullptr); return 0; } bool ret = cobj->setContentScaleFactor(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setContentScaleFactor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setContentScaleFactor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getContentScaleFactor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getContentScaleFactor'", nullptr); return 0; } double ret = cobj->getContentScaleFactor(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getContentScaleFactor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getContentScaleFactor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setIMEKeyboardState'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GLView:setIMEKeyboardState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setIMEKeyboardState'", nullptr); return 0; } cobj->setIMEKeyboardState(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setIMEKeyboardState",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setIMEKeyboardState'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getVR(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVR'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getVR'", nullptr); return 0; } cocos2d::VRIRenderer* ret = cobj->getVR(); object_to_luaval<cocos2d::VRIRenderer>(tolua_S, "cc.VRIRenderer",(cocos2d::VRIRenderer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVR",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVR'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setScissorInPoints'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; double arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setScissorInPoints"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setScissorInPoints"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.GLView:setScissorInPoints"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.GLView:setScissorInPoints"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setScissorInPoints'", nullptr); return 0; } cobj->setScissorInPoints(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setScissorInPoints",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setScissorInPoints'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getViewName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getViewName'", nullptr); return 0; } const std::string& ret = cobj->getViewName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getViewName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getViewName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_isOpenGLReady'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_isOpenGLReady'", nullptr); return 0; } bool ret = cobj->isOpenGLReady(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:isOpenGLReady",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_isOpenGLReady'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setCursorVisible(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setCursorVisible'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GLView:setCursorVisible"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setCursorVisible'", nullptr); return 0; } cobj->setCursorVisible(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setCursorVisible",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setCursorVisible'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getFrameSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getFrameSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getFrameSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getFrameSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getFrameSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getScaleY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getScaleY'", nullptr); return 0; } double ret = cobj->getScaleY(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getScaleY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getScaleY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getScaleX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getScaleX'", nullptr); return 0; } double ret = cobj->getScaleX(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getScaleX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getScaleX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVisibleOrigin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getVisibleOrigin'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getVisibleOrigin(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVisibleOrigin",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVisibleOrigin'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setFrameZoomFactor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setFrameZoomFactor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setFrameZoomFactor'", nullptr); return 0; } cobj->setFrameZoomFactor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setFrameZoomFactor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setFrameZoomFactor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getFrameZoomFactor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getFrameZoomFactor'", nullptr); return 0; } double ret = cobj->getFrameZoomFactor(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getFrameZoomFactor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getFrameZoomFactor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getDesignResolutionSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getDesignResolutionSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getDesignResolutionSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getDesignResolutionSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getDesignResolutionSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_windowShouldClose'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_windowShouldClose'", nullptr); return 0; } bool ret = cobj->windowShouldClose(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:windowShouldClose",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_windowShouldClose'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_swapBuffers'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_swapBuffers'", nullptr); return 0; } cobj->swapBuffers(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:swapBuffers",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_swapBuffers'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setDesignResolutionSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; double arg1; ResolutionPolicy arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setDesignResolutionSize"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setDesignResolutionSize"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.GLView:setDesignResolutionSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setDesignResolutionSize'", nullptr); return 0; } cobj->setDesignResolutionSize(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setDesignResolutionSize",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setDesignResolutionSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getResolutionPolicy'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getResolutionPolicy'", nullptr); return 0; } int ret = (int)cobj->getResolutionPolicy(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getResolutionPolicy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getResolutionPolicy'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_end(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_end'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_end'", nullptr); return 0; } cobj->end(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:end",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_end'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_isRetinaDisplay'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_isRetinaDisplay'", nullptr); return 0; } bool ret = cobj->isRetinaDisplay(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:isRetinaDisplay",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_isRetinaDisplay'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_renderScene(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_renderScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Scene* arg0; cocos2d::Renderer* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 2, "cc.Scene",&arg0, "cc.GLView:renderScene"); ok &= luaval_to_object<cocos2d::Renderer>(tolua_S, 3, "cc.Renderer",&arg1, "cc.GLView:renderScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_renderScene'", nullptr); return 0; } cobj->renderScene(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:renderScene",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_renderScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setVR(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setVR'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::VRIRenderer* arg0; ok &= luaval_to_object<cocos2d::VRIRenderer>(tolua_S, 2, "cc.VRIRenderer",&arg0, "cc.GLView:setVR"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setVR'", nullptr); return 0; } cobj->setVR(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setVR",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setVR'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setViewPortInPoints'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; double arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GLView:setViewPortInPoints"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLView:setViewPortInPoints"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.GLView:setViewPortInPoints"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.GLView:setViewPortInPoints"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setViewPortInPoints'", nullptr); return 0; } cobj->setViewPortInPoints(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setViewPortInPoints",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setViewPortInPoints'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getScissorRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getScissorRect'", nullptr); return 0; } cocos2d::Rect ret = cobj->getScissorRect(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getScissorRect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getScissorRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getRetinaFactor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getRetinaFactor'", nullptr); return 0; } int ret = cobj->getRetinaFactor(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getRetinaFactor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getRetinaFactor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_setViewName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLView:setViewName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setViewName'", nullptr); return 0; } cobj->setViewName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:setViewName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setViewName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVisibleRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getVisibleRect'", nullptr); return 0; } cocos2d::Rect ret = cobj->getVisibleRect(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVisibleRect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVisibleRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_getVisibleSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getVisibleSize'", nullptr); return 0; } cocos2d::Size ret = cobj->getVisibleSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:getVisibleSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getVisibleSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_isScissorEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_isScissorEnabled'", nullptr); return 0; } bool ret = cobj->isScissorEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:isScissorEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_isScissorEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_pollEvents(lua_State* tolua_S) { int argc = 0; cocos2d::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLView_pollEvents'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_pollEvents'", nullptr); return 0; } cobj->pollEvents(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLView:pollEvents",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_pollEvents'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_setGLContextAttrs(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { GLContextAttrs arg0; #pragma warning NO CONVERSION TO NATIVE FOR GLContextAttrs ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setGLContextAttrs'", nullptr); return 0; } cocos2d::GLView::setGLContextAttrs(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLView:setGLContextAttrs",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_setGLContextAttrs'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLView_getGLContextAttrs(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getGLContextAttrs'", nullptr); return 0; } GLContextAttrs ret = cocos2d::GLView::getGLContextAttrs(); #pragma warning NO CONVERSION FROM NATIVE FOR GLContextAttrs; return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLView:getGLContextAttrs",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLView_getGLContextAttrs'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_GLView_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GLView)"); return 0; } int lua_register_cocos2dx_GLView(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLView"); tolua_cclass(tolua_S,"GLView","cc.GLView","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GLView"); tolua_function(tolua_S,"setFrameSize",lua_cocos2dx_GLView_setFrameSize); tolua_function(tolua_S,"getViewPortRect",lua_cocos2dx_GLView_getViewPortRect); tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_GLView_setContentScaleFactor); tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_GLView_getContentScaleFactor); tolua_function(tolua_S,"setIMEKeyboardState",lua_cocos2dx_GLView_setIMEKeyboardState); tolua_function(tolua_S,"getVR",lua_cocos2dx_GLView_getVR); tolua_function(tolua_S,"setScissorInPoints",lua_cocos2dx_GLView_setScissorInPoints); tolua_function(tolua_S,"getViewName",lua_cocos2dx_GLView_getViewName); tolua_function(tolua_S,"isOpenGLReady",lua_cocos2dx_GLView_isOpenGLReady); tolua_function(tolua_S,"setCursorVisible",lua_cocos2dx_GLView_setCursorVisible); tolua_function(tolua_S,"getFrameSize",lua_cocos2dx_GLView_getFrameSize); tolua_function(tolua_S,"getScaleY",lua_cocos2dx_GLView_getScaleY); tolua_function(tolua_S,"getScaleX",lua_cocos2dx_GLView_getScaleX); tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_GLView_getVisibleOrigin); tolua_function(tolua_S,"setFrameZoomFactor",lua_cocos2dx_GLView_setFrameZoomFactor); tolua_function(tolua_S,"getFrameZoomFactor",lua_cocos2dx_GLView_getFrameZoomFactor); tolua_function(tolua_S,"getDesignResolutionSize",lua_cocos2dx_GLView_getDesignResolutionSize); tolua_function(tolua_S,"windowShouldClose",lua_cocos2dx_GLView_windowShouldClose); tolua_function(tolua_S,"swapBuffers",lua_cocos2dx_GLView_swapBuffers); tolua_function(tolua_S,"setDesignResolutionSize",lua_cocos2dx_GLView_setDesignResolutionSize); tolua_function(tolua_S,"getResolutionPolicy",lua_cocos2dx_GLView_getResolutionPolicy); tolua_function(tolua_S,"endToLua",lua_cocos2dx_GLView_end); tolua_function(tolua_S,"isRetinaDisplay",lua_cocos2dx_GLView_isRetinaDisplay); tolua_function(tolua_S,"renderScene",lua_cocos2dx_GLView_renderScene); tolua_function(tolua_S,"setVR",lua_cocos2dx_GLView_setVR); tolua_function(tolua_S,"setViewPortInPoints",lua_cocos2dx_GLView_setViewPortInPoints); tolua_function(tolua_S,"getScissorRect",lua_cocos2dx_GLView_getScissorRect); tolua_function(tolua_S,"getRetinaFactor",lua_cocos2dx_GLView_getRetinaFactor); tolua_function(tolua_S,"setViewName",lua_cocos2dx_GLView_setViewName); tolua_function(tolua_S,"getVisibleRect",lua_cocos2dx_GLView_getVisibleRect); tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_GLView_getVisibleSize); tolua_function(tolua_S,"isScissorEnabled",lua_cocos2dx_GLView_isScissorEnabled); tolua_function(tolua_S,"pollEvents",lua_cocos2dx_GLView_pollEvents); tolua_function(tolua_S,"setGLContextAttrs", lua_cocos2dx_GLView_setGLContextAttrs); tolua_function(tolua_S,"getGLContextAttrs", lua_cocos2dx_GLView_getGLContextAttrs); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLView).name(); g_luaType[typeName] = "cc.GLView"; g_typeCast["GLView"] = "cc.GLView"; return 1; } int lua_cocos2dx_Director_pause(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_pause'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_pause'", nullptr); return 0; } cobj->pause(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:pause",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_pause'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setEventDispatcher'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::EventDispatcher* arg0; ok &= luaval_to_object<cocos2d::EventDispatcher>(tolua_S, 2, "cc.EventDispatcher",&arg0, "cc.Director:setEventDispatcher"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setEventDispatcher'", nullptr); return 0; } cobj->setEventDispatcher(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setEventDispatcher",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setEventDispatcher'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setContentScaleFactor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Director:setContentScaleFactor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setContentScaleFactor'", nullptr); return 0; } cobj->setContentScaleFactor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setContentScaleFactor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setContentScaleFactor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getContentScaleFactor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getContentScaleFactor'", nullptr); return 0; } double ret = cobj->getContentScaleFactor(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getContentScaleFactor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getContentScaleFactor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getWinSizeInPixels'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getWinSizeInPixels'", nullptr); return 0; } cocos2d::Size ret = cobj->getWinSizeInPixels(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getWinSizeInPixels",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getWinSizeInPixels'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getDeltaTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getDeltaTime'", nullptr); return 0; } double ret = cobj->getDeltaTime(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getDeltaTime",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getDeltaTime'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setGLDefaultValues'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setGLDefaultValues'", nullptr); return 0; } cobj->setGLDefaultValues(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setGLDefaultValues",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setGLDefaultValues'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setActionManager'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionManager* arg0; ok &= luaval_to_object<cocos2d::ActionManager>(tolua_S, 2, "cc.ActionManager",&arg0, "cc.Director:setActionManager"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setActionManager'", nullptr); return 0; } cobj->setActionManager(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setActionManager",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setActionManager'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setAlphaBlending(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setAlphaBlending'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setAlphaBlending"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setAlphaBlending'", nullptr); return 0; } cobj->setAlphaBlending(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setAlphaBlending",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setAlphaBlending'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popToRootScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_popToRootScene'", nullptr); return 0; } cobj->popToRootScene(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popToRootScene",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popToRootScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_loadMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::MATRIX_STACK_TYPE arg0; cocos2d::Mat4 arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:loadMatrix"); ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Director:loadMatrix"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_loadMatrix'", nullptr); return 0; } cobj->loadMatrix(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:loadMatrix",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_loadMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getNotificationNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getNotificationNode'", nullptr); return 0; } cocos2d::Node* ret = cobj->getNotificationNode(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getNotificationNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getNotificationNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getWinSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getWinSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getWinSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getWinSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getWinSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getTextureCache'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getTextureCache'", nullptr); return 0; } cocos2d::TextureCache* ret = cobj->getTextureCache(); object_to_luaval<cocos2d::TextureCache>(tolua_S, "cc.TextureCache",(cocos2d::TextureCache*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getTextureCache",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getTextureCache'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isSendCleanupToScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_isSendCleanupToScene'", nullptr); return 0; } bool ret = cobj->isSendCleanupToScene(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isSendCleanupToScene",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isSendCleanupToScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getVisibleOrigin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getVisibleOrigin'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getVisibleOrigin(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getVisibleOrigin",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getVisibleOrigin'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_mainLoop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_mainLoop'", nullptr); return 0; } cobj->mainLoop(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:mainLoop",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_mainLoop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setDepthTest(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setDepthTest'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setDepthTest"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setDepthTest'", nullptr); return 0; } cobj->setDepthTest(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setDepthTest",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setDepthTest'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getFrameRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getFrameRate'", nullptr); return 0; } double ret = cobj->getFrameRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getFrameRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getFrameRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getSecondsPerFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getSecondsPerFrame'", nullptr); return 0; } double ret = cobj->getSecondsPerFrame(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getSecondsPerFrame",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getSecondsPerFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_resetMatrixStack'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_resetMatrixStack'", nullptr); return 0; } cobj->resetMatrixStack(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:resetMatrixStack",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_resetMatrixStack'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_convertToUI'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Director:convertToUI"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_convertToUI'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertToUI(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:convertToUI",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_convertToUI'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_pushMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:pushMatrix"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_pushMatrix'", nullptr); return 0; } cobj->pushMatrix(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:pushMatrix",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_pushMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setDefaultValues'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setDefaultValues'", nullptr); return 0; } cobj->setDefaultValues(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setDefaultValues",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setDefaultValues'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_init(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setScheduler'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Scheduler* arg0; ok &= luaval_to_object<cocos2d::Scheduler>(tolua_S, 2, "cc.Scheduler",&arg0, "cc.Director:setScheduler"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setScheduler'", nullptr); return 0; } cobj->setScheduler(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setScheduler",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setScheduler'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:getMatrix"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getMatrix'", nullptr); return 0; } const cocos2d::Mat4& ret = cobj->getMatrix(arg0); mat4_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getMatrix",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_startAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_startAnimation'", nullptr); return 0; } cobj->startAnimation(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:startAnimation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_startAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getOpenGLView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getOpenGLView'", nullptr); return 0; } cocos2d::GLView* ret = cobj->getOpenGLView(); object_to_luaval<cocos2d::GLView>(tolua_S, "cc.GLView",(cocos2d::GLView*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getOpenGLView",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getOpenGLView'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getRunningScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getRunningScene'", nullptr); return 0; } cocos2d::Scene* ret = cobj->getRunningScene(); object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getRunningScene",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getRunningScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setViewport'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setViewport'", nullptr); return 0; } cobj->setViewport(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setViewport",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setViewport'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_stopAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_stopAnimation'", nullptr); return 0; } cobj->stopAnimation(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:stopAnimation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_stopAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popToSceneStackLevel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:popToSceneStackLevel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_popToSceneStackLevel'", nullptr); return 0; } cobj->popToSceneStackLevel(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popToSceneStackLevel",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popToSceneStackLevel'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_resume(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_resume'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_resume'", nullptr); return 0; } cobj->resume(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:resume",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_resume'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isNextDeltaTimeZero'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_isNextDeltaTimeZero'", nullptr); return 0; } bool ret = cobj->isNextDeltaTimeZero(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isNextDeltaTimeZero",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isNextDeltaTimeZero'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setClearColor(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setClearColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.Director:setClearColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setClearColor'", nullptr); return 0; } cobj->setClearColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setClearColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setClearColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_end(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_end'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_end'", nullptr); return 0; } cobj->end(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:end",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_end'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setOpenGLView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::GLView* arg0; ok &= luaval_to_object<cocos2d::GLView>(tolua_S, 2, "cc.GLView",&arg0, "cc.Director:setOpenGLView"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setOpenGLView'", nullptr); return 0; } cobj->setOpenGLView(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setOpenGLView",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setOpenGLView'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_convertToGL'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Director:convertToGL"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_convertToGL'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->convertToGL(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:convertToGL",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_convertToGL'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_purgeCachedData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_purgeCachedData'", nullptr); return 0; } cobj->purgeCachedData(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:purgeCachedData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_purgeCachedData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getTotalFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getTotalFrames'", nullptr); return 0; } unsigned int ret = cobj->getTotalFrames(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getTotalFrames",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getTotalFrames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_runWithScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Scene* arg0; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 2, "cc.Scene",&arg0, "cc.Director:runWithScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_runWithScene'", nullptr); return 0; } cobj->runWithScene(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:runWithScene",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_runWithScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setNotificationNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Director:setNotificationNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setNotificationNode'", nullptr); return 0; } cobj->setNotificationNode(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setNotificationNode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setNotificationNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_drawScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_drawScene'", nullptr); return 0; } cobj->drawScene(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:drawScene",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_drawScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_restart(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_restart'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_restart'", nullptr); return 0; } cobj->restart(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:restart",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_restart'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_popScene(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_popScene'", nullptr); return 0; } cobj->popScene(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popScene",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_loadIdentityMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:loadIdentityMatrix"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_loadIdentityMatrix'", nullptr); return 0; } cobj->loadIdentityMatrix(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:loadIdentityMatrix",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_loadIdentityMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_isDisplayStats(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isDisplayStats'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_isDisplayStats'", nullptr); return 0; } bool ret = cobj->isDisplayStats(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isDisplayStats",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isDisplayStats'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setProjection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Director::Projection arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:setProjection"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setProjection'", nullptr); return 0; } cobj->setProjection(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setProjection",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setProjection'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getConsole'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getConsole'", nullptr); return 0; } cocos2d::Console* ret = cobj->getConsole(); object_to_luaval<cocos2d::Console>(tolua_S, "cc.Console",(cocos2d::Console*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getConsole",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getConsole'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_multiplyMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::MATRIX_STACK_TYPE arg0; cocos2d::Mat4 arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:multiplyMatrix"); ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Director:multiplyMatrix"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_multiplyMatrix'", nullptr); return 0; } cobj->multiplyMatrix(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:multiplyMatrix",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_multiplyMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getZEye'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getZEye'", nullptr); return 0; } double ret = cobj->getZEye(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getZEye",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getZEye'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setNextDeltaTimeZero'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setNextDeltaTimeZero"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setNextDeltaTimeZero'", nullptr); return 0; } cobj->setNextDeltaTimeZero(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setNextDeltaTimeZero",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setNextDeltaTimeZero'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_popMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::MATRIX_STACK_TYPE arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:popMatrix"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_popMatrix'", nullptr); return 0; } cobj->popMatrix(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:popMatrix",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_popMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getVisibleSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getVisibleSize'", nullptr); return 0; } cocos2d::Size ret = cobj->getVisibleSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getVisibleSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getVisibleSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getScheduler'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getScheduler'", nullptr); return 0; } cocos2d::Scheduler* ret = cobj->getScheduler(); object_to_luaval<cocos2d::Scheduler>(tolua_S, "cc.Scheduler",(cocos2d::Scheduler*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getScheduler",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getScheduler'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_pushScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Scene* arg0; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 2, "cc.Scene",&arg0, "cc.Director:pushScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_pushScene'", nullptr); return 0; } cobj->pushScene(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:pushScene",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_pushScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getAnimationInterval'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getAnimationInterval'", nullptr); return 0; } double ret = cobj->getAnimationInterval(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getAnimationInterval",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getAnimationInterval'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_isPaused'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_isPaused'", nullptr); return 0; } bool ret = cobj->isPaused(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:isPaused",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_isPaused'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setDisplayStats(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setDisplayStats'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Director:setDisplayStats"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setDisplayStats'", nullptr); return 0; } cobj->setDisplayStats(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setDisplayStats",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setDisplayStats'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getEventDispatcher'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getEventDispatcher'", nullptr); return 0; } cocos2d::EventDispatcher* ret = cobj->getEventDispatcher(); object_to_luaval<cocos2d::EventDispatcher>(tolua_S, "cc.EventDispatcher",(cocos2d::EventDispatcher*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getEventDispatcher",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getEventDispatcher'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_replaceScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Scene* arg0; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 2, "cc.Scene",&arg0, "cc.Director:replaceScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_replaceScene'", nullptr); return 0; } cobj->replaceScene(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:replaceScene",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_replaceScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_setAnimationInterval'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Director:setAnimationInterval"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setAnimationInterval'", nullptr); return 0; } cobj->setAnimationInterval(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:setAnimationInterval",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_setAnimationInterval'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) { int argc = 0; cocos2d::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Director_getActionManager'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getActionManager'", nullptr); return 0; } cocos2d::ActionManager* ret = cobj->getActionManager(); object_to_luaval<cocos2d::ActionManager>(tolua_S, "cc.ActionManager",(cocos2d::ActionManager*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getActionManager",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getActionManager'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Director_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getInstance'", nullptr); return 0; } cocos2d::Director* ret = cocos2d::Director::getInstance(); object_to_luaval<cocos2d::Director>(tolua_S, "cc.Director",(cocos2d::Director*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Director:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Director_getInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Director_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Director)"); return 0; } int lua_register_cocos2dx_Director(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Director"); tolua_cclass(tolua_S,"Director","cc.Director","",nullptr); tolua_beginmodule(tolua_S,"Director"); tolua_function(tolua_S,"pause",lua_cocos2dx_Director_pause); tolua_function(tolua_S,"setEventDispatcher",lua_cocos2dx_Director_setEventDispatcher); tolua_function(tolua_S,"setContentScaleFactor",lua_cocos2dx_Director_setContentScaleFactor); tolua_function(tolua_S,"getContentScaleFactor",lua_cocos2dx_Director_getContentScaleFactor); tolua_function(tolua_S,"getWinSizeInPixels",lua_cocos2dx_Director_getWinSizeInPixels); tolua_function(tolua_S,"getDeltaTime",lua_cocos2dx_Director_getDeltaTime); tolua_function(tolua_S,"setGLDefaultValues",lua_cocos2dx_Director_setGLDefaultValues); tolua_function(tolua_S,"setActionManager",lua_cocos2dx_Director_setActionManager); tolua_function(tolua_S,"setAlphaBlending",lua_cocos2dx_Director_setAlphaBlending); tolua_function(tolua_S,"popToRootScene",lua_cocos2dx_Director_popToRootScene); tolua_function(tolua_S,"loadMatrix",lua_cocos2dx_Director_loadMatrix); tolua_function(tolua_S,"getNotificationNode",lua_cocos2dx_Director_getNotificationNode); tolua_function(tolua_S,"getWinSize",lua_cocos2dx_Director_getWinSize); tolua_function(tolua_S,"getTextureCache",lua_cocos2dx_Director_getTextureCache); tolua_function(tolua_S,"isSendCleanupToScene",lua_cocos2dx_Director_isSendCleanupToScene); tolua_function(tolua_S,"getVisibleOrigin",lua_cocos2dx_Director_getVisibleOrigin); tolua_function(tolua_S,"mainLoop",lua_cocos2dx_Director_mainLoop); tolua_function(tolua_S,"setDepthTest",lua_cocos2dx_Director_setDepthTest); tolua_function(tolua_S,"getFrameRate",lua_cocos2dx_Director_getFrameRate); tolua_function(tolua_S,"getSecondsPerFrame",lua_cocos2dx_Director_getSecondsPerFrame); tolua_function(tolua_S,"resetMatrixStack",lua_cocos2dx_Director_resetMatrixStack); tolua_function(tolua_S,"convertToUI",lua_cocos2dx_Director_convertToUI); tolua_function(tolua_S,"pushMatrix",lua_cocos2dx_Director_pushMatrix); tolua_function(tolua_S,"setDefaultValues",lua_cocos2dx_Director_setDefaultValues); tolua_function(tolua_S,"init",lua_cocos2dx_Director_init); tolua_function(tolua_S,"setScheduler",lua_cocos2dx_Director_setScheduler); tolua_function(tolua_S,"getMatrix",lua_cocos2dx_Director_getMatrix); tolua_function(tolua_S,"startAnimation",lua_cocos2dx_Director_startAnimation); tolua_function(tolua_S,"getOpenGLView",lua_cocos2dx_Director_getOpenGLView); tolua_function(tolua_S,"getRunningScene",lua_cocos2dx_Director_getRunningScene); tolua_function(tolua_S,"setViewport",lua_cocos2dx_Director_setViewport); tolua_function(tolua_S,"stopAnimation",lua_cocos2dx_Director_stopAnimation); tolua_function(tolua_S,"popToSceneStackLevel",lua_cocos2dx_Director_popToSceneStackLevel); tolua_function(tolua_S,"resume",lua_cocos2dx_Director_resume); tolua_function(tolua_S,"isNextDeltaTimeZero",lua_cocos2dx_Director_isNextDeltaTimeZero); tolua_function(tolua_S,"setClearColor",lua_cocos2dx_Director_setClearColor); tolua_function(tolua_S,"endToLua",lua_cocos2dx_Director_end); tolua_function(tolua_S,"setOpenGLView",lua_cocos2dx_Director_setOpenGLView); tolua_function(tolua_S,"convertToGL",lua_cocos2dx_Director_convertToGL); tolua_function(tolua_S,"purgeCachedData",lua_cocos2dx_Director_purgeCachedData); tolua_function(tolua_S,"getTotalFrames",lua_cocos2dx_Director_getTotalFrames); tolua_function(tolua_S,"runWithScene",lua_cocos2dx_Director_runWithScene); tolua_function(tolua_S,"setNotificationNode",lua_cocos2dx_Director_setNotificationNode); tolua_function(tolua_S,"drawScene",lua_cocos2dx_Director_drawScene); tolua_function(tolua_S,"restart",lua_cocos2dx_Director_restart); tolua_function(tolua_S,"popScene",lua_cocos2dx_Director_popScene); tolua_function(tolua_S,"loadIdentityMatrix",lua_cocos2dx_Director_loadIdentityMatrix); tolua_function(tolua_S,"isDisplayStats",lua_cocos2dx_Director_isDisplayStats); tolua_function(tolua_S,"setProjection",lua_cocos2dx_Director_setProjection); tolua_function(tolua_S,"getConsole",lua_cocos2dx_Director_getConsole); tolua_function(tolua_S,"multiplyMatrix",lua_cocos2dx_Director_multiplyMatrix); tolua_function(tolua_S,"getZEye",lua_cocos2dx_Director_getZEye); tolua_function(tolua_S,"setNextDeltaTimeZero",lua_cocos2dx_Director_setNextDeltaTimeZero); tolua_function(tolua_S,"popMatrix",lua_cocos2dx_Director_popMatrix); tolua_function(tolua_S,"getVisibleSize",lua_cocos2dx_Director_getVisibleSize); tolua_function(tolua_S,"getScheduler",lua_cocos2dx_Director_getScheduler); tolua_function(tolua_S,"pushScene",lua_cocos2dx_Director_pushScene); tolua_function(tolua_S,"getAnimationInterval",lua_cocos2dx_Director_getAnimationInterval); tolua_function(tolua_S,"isPaused",lua_cocos2dx_Director_isPaused); tolua_function(tolua_S,"setDisplayStats",lua_cocos2dx_Director_setDisplayStats); tolua_function(tolua_S,"getEventDispatcher",lua_cocos2dx_Director_getEventDispatcher); tolua_function(tolua_S,"replaceScene",lua_cocos2dx_Director_replaceScene); tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Director_setAnimationInterval); tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Director_getActionManager); tolua_function(tolua_S,"getInstance", lua_cocos2dx_Director_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Director).name(); g_luaType[typeName] = "cc.Director"; g_typeCast["Director"] = "cc.Director"; return 1; } int lua_cocos2dx_Timer_getInterval(lua_State* tolua_S) { int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_getInterval'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Timer_getInterval'", nullptr); return 0; } double ret = cobj->getInterval(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:getInterval",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_getInterval'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) { int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_setupTimerWithInterval'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; unsigned int arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:setupTimerWithInterval"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Timer:setupTimerWithInterval"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Timer:setupTimerWithInterval"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Timer_setupTimerWithInterval'", nullptr); return 0; } cobj->setupTimerWithInterval(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:setupTimerWithInterval",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_setupTimerWithInterval'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Timer_setInterval(lua_State* tolua_S) { int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_setInterval'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:setInterval"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Timer_setInterval'", nullptr); return 0; } cobj->setInterval(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:setInterval",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_setInterval'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Timer_update(lua_State* tolua_S) { int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:update"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Timer_update'", nullptr); return 0; } cobj->update(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:update",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_update'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) { int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_trigger'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Timer:trigger"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Timer_trigger'", nullptr); return 0; } cobj->trigger(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:trigger",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_trigger'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) { int argc = 0; cocos2d::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Timer_cancel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Timer_cancel'", nullptr); return 0; } cobj->cancel(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Timer:cancel",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Timer_cancel'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Timer_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Timer)"); return 0; } int lua_register_cocos2dx_Timer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Timer"); tolua_cclass(tolua_S,"Timer","cc.Timer","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Timer"); tolua_function(tolua_S,"getInterval",lua_cocos2dx_Timer_getInterval); tolua_function(tolua_S,"setupTimerWithInterval",lua_cocos2dx_Timer_setupTimerWithInterval); tolua_function(tolua_S,"setInterval",lua_cocos2dx_Timer_setInterval); tolua_function(tolua_S,"update",lua_cocos2dx_Timer_update); tolua_function(tolua_S,"trigger",lua_cocos2dx_Timer_trigger); tolua_function(tolua_S,"cancel",lua_cocos2dx_Timer_cancel); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Timer).name(); g_luaType[typeName] = "cc.Timer"; g_typeCast["Timer"] = "cc.Timer"; return 1; } int lua_cocos2dx_Scheduler_setTimeScale(lua_State* tolua_S) { int argc = 0; cocos2d::Scheduler* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scheduler",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scheduler*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scheduler_setTimeScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Scheduler:setTimeScale"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scheduler_setTimeScale'", nullptr); return 0; } cobj->setTimeScale(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scheduler:setTimeScale",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scheduler_setTimeScale'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) { int argc = 0; cocos2d::Scheduler* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Scheduler",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Scheduler*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Scheduler_getTimeScale'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scheduler_getTimeScale'", nullptr); return 0; } double ret = cobj->getTimeScale(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scheduler:getTimeScale",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scheduler_getTimeScale'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Scheduler_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Scheduler* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scheduler_constructor'", nullptr); return 0; } cobj = new cocos2d::Scheduler(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Scheduler"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scheduler:Scheduler",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Scheduler_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Scheduler_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Scheduler)"); return 0; } int lua_register_cocos2dx_Scheduler(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Scheduler"); tolua_cclass(tolua_S,"Scheduler","cc.Scheduler","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Scheduler"); tolua_function(tolua_S,"new",lua_cocos2dx_Scheduler_constructor); tolua_function(tolua_S,"setTimeScale",lua_cocos2dx_Scheduler_setTimeScale); tolua_function(tolua_S,"getTimeScale",lua_cocos2dx_Scheduler_getTimeScale); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Scheduler).name(); g_luaType[typeName] = "cc.Scheduler"; g_typeCast["Scheduler"] = "cc.Scheduler"; return 1; } int lua_cocos2dx_AsyncTaskPool_stopTasks(lua_State* tolua_S) { int argc = 0; cocos2d::AsyncTaskPool* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AsyncTaskPool",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AsyncTaskPool*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AsyncTaskPool_stopTasks'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::AsyncTaskPool::TaskType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.AsyncTaskPool:stopTasks"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AsyncTaskPool_stopTasks'", nullptr); return 0; } cobj->stopTasks(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AsyncTaskPool:stopTasks",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AsyncTaskPool_stopTasks'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AsyncTaskPool_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AsyncTaskPool",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AsyncTaskPool_destroyInstance'", nullptr); return 0; } cocos2d::AsyncTaskPool::destroyInstance(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AsyncTaskPool:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AsyncTaskPool_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AsyncTaskPool_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AsyncTaskPool",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AsyncTaskPool_getInstance'", nullptr); return 0; } cocos2d::AsyncTaskPool* ret = cocos2d::AsyncTaskPool::getInstance(); object_to_luaval<cocos2d::AsyncTaskPool>(tolua_S, "cc.AsyncTaskPool",(cocos2d::AsyncTaskPool*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AsyncTaskPool:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AsyncTaskPool_getInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AsyncTaskPool_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::AsyncTaskPool* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AsyncTaskPool_constructor'", nullptr); return 0; } cobj = new cocos2d::AsyncTaskPool(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.AsyncTaskPool"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AsyncTaskPool:AsyncTaskPool",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AsyncTaskPool_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_AsyncTaskPool_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AsyncTaskPool)"); return 0; } int lua_register_cocos2dx_AsyncTaskPool(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AsyncTaskPool"); tolua_cclass(tolua_S,"AsyncTaskPool","cc.AsyncTaskPool","",nullptr); tolua_beginmodule(tolua_S,"AsyncTaskPool"); tolua_function(tolua_S,"new",lua_cocos2dx_AsyncTaskPool_constructor); tolua_function(tolua_S,"stopTasks",lua_cocos2dx_AsyncTaskPool_stopTasks); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_AsyncTaskPool_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_AsyncTaskPool_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AsyncTaskPool).name(); g_luaType[typeName] = "cc.AsyncTaskPool"; g_typeCast["AsyncTaskPool"] = "cc.AsyncTaskPool"; return 1; } int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_startWithTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Action:startWithTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_startWithTarget'", nullptr); return 0; } cobj->startWithTarget(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:startWithTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_startWithTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setOriginalTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Action:setOriginalTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_setOriginalTarget'", nullptr); return 0; } cobj->setOriginalTarget(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setOriginalTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setOriginalTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_clone(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_clone'", nullptr); return 0; } cocos2d::Action* ret = cobj->clone(); object_to_luaval<cocos2d::Action>(tolua_S, "cc.Action",(cocos2d::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:clone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_clone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getOriginalTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_getOriginalTarget'", nullptr); return 0; } cocos2d::Node* ret = cobj->getOriginalTarget(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getOriginalTarget",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getOriginalTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_stop(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_stop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_stop'", nullptr); return 0; } cobj->stop(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:stop",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_stop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_update(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Action:update"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_update'", nullptr); return 0; } cobj->update(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:update",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_update'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_getTarget'", nullptr); return 0; } cocos2d::Node* ret = cobj->getTarget(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getTarget",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_getFlags(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getFlags'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_getFlags'", nullptr); return 0; } unsigned int ret = cobj->getFlags(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getFlags",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getFlags'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_step(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_step'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Action:step"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_step'", nullptr); return 0; } cobj->step(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:step",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_step'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_setTag(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Action:setTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_setTag'", nullptr); return 0; } cobj->setTag(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_setFlags(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setFlags'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Action:setFlags"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_setFlags'", nullptr); return 0; } cobj->setFlags(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setFlags",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setFlags'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_getTag(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_getTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_getTag'", nullptr); return 0; } int ret = cobj->getTag(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getTag",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_getTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_setTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Action:setTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_setTarget'", nullptr); return 0; } cobj->setTarget(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:setTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_setTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_isDone(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_isDone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_isDone'", nullptr); return 0; } bool ret = cobj->isDone(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:isDone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_isDone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Action_reverse(lua_State* tolua_S) { int argc = 0; cocos2d::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Action_reverse'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_reverse'", nullptr); return 0; } cocos2d::Action* ret = cobj->reverse(); object_to_luaval<cocos2d::Action>(tolua_S, "cc.Action",(cocos2d::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:reverse",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Action_reverse'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Action_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Action)"); return 0; } int lua_register_cocos2dx_Action(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Action"); tolua_cclass(tolua_S,"Action","cc.Action","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Action"); tolua_function(tolua_S,"startWithTarget",lua_cocos2dx_Action_startWithTarget); tolua_function(tolua_S,"setOriginalTarget",lua_cocos2dx_Action_setOriginalTarget); tolua_function(tolua_S,"clone",lua_cocos2dx_Action_clone); tolua_function(tolua_S,"getOriginalTarget",lua_cocos2dx_Action_getOriginalTarget); tolua_function(tolua_S,"stop",lua_cocos2dx_Action_stop); tolua_function(tolua_S,"update",lua_cocos2dx_Action_update); tolua_function(tolua_S,"getTarget",lua_cocos2dx_Action_getTarget); tolua_function(tolua_S,"getFlags",lua_cocos2dx_Action_getFlags); tolua_function(tolua_S,"step",lua_cocos2dx_Action_step); tolua_function(tolua_S,"setTag",lua_cocos2dx_Action_setTag); tolua_function(tolua_S,"setFlags",lua_cocos2dx_Action_setFlags); tolua_function(tolua_S,"getTag",lua_cocos2dx_Action_getTag); tolua_function(tolua_S,"setTarget",lua_cocos2dx_Action_setTarget); tolua_function(tolua_S,"isDone",lua_cocos2dx_Action_isDone); tolua_function(tolua_S,"reverse",lua_cocos2dx_Action_reverse); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Action).name(); g_luaType[typeName] = "cc.Action"; g_typeCast["Action"] = "cc.Action"; return 1; } int lua_cocos2dx_FiniteTimeAction_setDuration(lua_State* tolua_S) { int argc = 0; cocos2d::FiniteTimeAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FiniteTimeAction_setDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FiniteTimeAction:setDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FiniteTimeAction_setDuration'", nullptr); return 0; } cobj->setDuration(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FiniteTimeAction:setDuration",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FiniteTimeAction_setDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FiniteTimeAction_getDuration(lua_State* tolua_S) { int argc = 0; cocos2d::FiniteTimeAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FiniteTimeAction_getDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FiniteTimeAction_getDuration'", nullptr); return 0; } double ret = cobj->getDuration(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FiniteTimeAction:getDuration",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FiniteTimeAction_getDuration'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FiniteTimeAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FiniteTimeAction)"); return 0; } int lua_register_cocos2dx_FiniteTimeAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FiniteTimeAction"); tolua_cclass(tolua_S,"FiniteTimeAction","cc.FiniteTimeAction","cc.Action",nullptr); tolua_beginmodule(tolua_S,"FiniteTimeAction"); tolua_function(tolua_S,"setDuration",lua_cocos2dx_FiniteTimeAction_setDuration); tolua_function(tolua_S,"getDuration",lua_cocos2dx_FiniteTimeAction_getDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FiniteTimeAction).name(); g_luaType[typeName] = "cc.FiniteTimeAction"; g_typeCast["FiniteTimeAction"] = "cc.FiniteTimeAction"; return 1; } int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) { int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_setInnerAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.Speed:setInnerAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_setInnerAction'", nullptr); return 0; } cobj->setInnerAction(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:setInnerAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_setInnerAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) { int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_getSpeed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_getSpeed'", nullptr); return 0; } double ret = cobj->getSpeed(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:getSpeed",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_getSpeed'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) { int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_setSpeed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Speed:setSpeed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_setSpeed'", nullptr); return 0; } cobj->setSpeed(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:setSpeed",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_setSpeed'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Speed_initWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_initWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::ActionInterval* arg0; double arg1; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.Speed:initWithAction"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Speed:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_initWithAction'", nullptr); return 0; } bool ret = cobj->initWithAction(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:initWithAction",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_initWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) { int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Speed_getInnerAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_getInnerAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->getInnerAction(); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:getInnerAction",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_getInnerAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Speed_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::ActionInterval* arg0; double arg1; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.Speed:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Speed:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_create'", nullptr); return 0; } cocos2d::Speed* ret = cocos2d::Speed::create(arg0, arg1); object_to_luaval<cocos2d::Speed>(tolua_S, "cc.Speed",(cocos2d::Speed*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Speed:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Speed_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_constructor'", nullptr); return 0; } cobj = new cocos2d::Speed(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Speed"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:Speed",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Speed_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Speed_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Speed)"); return 0; } int lua_register_cocos2dx_Speed(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Speed"); tolua_cclass(tolua_S,"Speed","cc.Speed","cc.Action",nullptr); tolua_beginmodule(tolua_S,"Speed"); tolua_function(tolua_S,"new",lua_cocos2dx_Speed_constructor); tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Speed_setInnerAction); tolua_function(tolua_S,"getSpeed",lua_cocos2dx_Speed_getSpeed); tolua_function(tolua_S,"setSpeed",lua_cocos2dx_Speed_setSpeed); tolua_function(tolua_S,"initWithAction",lua_cocos2dx_Speed_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Speed_getInnerAction); tolua_function(tolua_S,"create", lua_cocos2dx_Speed_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Speed).name(); g_luaType[typeName] = "cc.Speed"; g_typeCast["Speed"] = "cc.Speed"; return 1; } int lua_cocos2dx_Follow_setBoundarySet(lua_State* tolua_S) { int argc = 0; cocos2d::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Follow_setBoundarySet'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Follow:setBoundarySet"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_setBoundarySet'", nullptr); return 0; } cobj->setBoundarySet(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:setBoundarySet",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_setBoundarySet'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Follow_initWithTarget(lua_State* tolua_S) { int argc = 0; cocos2d::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Follow_initWithTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_initWithTarget'", nullptr); return 0; } bool ret = cobj->initWithTarget(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { cocos2d::Node* arg0; cocos2d::Rect arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTarget"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Follow:initWithTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_initWithTarget'", nullptr); return 0; } bool ret = cobj->initWithTarget(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:initWithTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_initWithTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Follow_initWithTargetAndOffset(lua_State* tolua_S) { int argc = 0; cocos2d::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Follow_initWithTargetAndOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Node* arg0; double arg1; double arg2; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTargetAndOffset"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Follow:initWithTargetAndOffset"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Follow:initWithTargetAndOffset"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_initWithTargetAndOffset'", nullptr); return 0; } bool ret = cobj->initWithTargetAndOffset(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 4) { cocos2d::Node* arg0; double arg1; double arg2; cocos2d::Rect arg3; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTargetAndOffset"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Follow:initWithTargetAndOffset"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Follow:initWithTargetAndOffset"); ok &= luaval_to_rect(tolua_S, 5, &arg3, "cc.Follow:initWithTargetAndOffset"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_initWithTargetAndOffset'", nullptr); return 0; } bool ret = cobj->initWithTargetAndOffset(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:initWithTargetAndOffset",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_initWithTargetAndOffset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) { int argc = 0; cocos2d::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Follow_isBoundarySet'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_isBoundarySet'", nullptr); return 0; } bool ret = cobj->isBoundarySet(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:isBoundarySet",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_isBoundarySet'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Follow_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_create'", nullptr); return 0; } cocos2d::Follow* ret = cocos2d::Follow::create(arg0); object_to_luaval<cocos2d::Follow>(tolua_S, "cc.Follow",(cocos2d::Follow*)ret); return 1; } if (argc == 2) { cocos2d::Node* arg0; cocos2d::Rect arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:create"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Follow:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_create'", nullptr); return 0; } cocos2d::Follow* ret = cocos2d::Follow::create(arg0, arg1); object_to_luaval<cocos2d::Follow>(tolua_S, "cc.Follow",(cocos2d::Follow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Follow:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Follow_createWithOffset(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { cocos2d::Node* arg0; double arg1; double arg2; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:createWithOffset"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Follow:createWithOffset"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Follow:createWithOffset"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_createWithOffset'", nullptr); return 0; } cocos2d::Follow* ret = cocos2d::Follow::createWithOffset(arg0, arg1, arg2); object_to_luaval<cocos2d::Follow>(tolua_S, "cc.Follow",(cocos2d::Follow*)ret); return 1; } if (argc == 4) { cocos2d::Node* arg0; double arg1; double arg2; cocos2d::Rect arg3; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:createWithOffset"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Follow:createWithOffset"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Follow:createWithOffset"); ok &= luaval_to_rect(tolua_S, 5, &arg3, "cc.Follow:createWithOffset"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_createWithOffset'", nullptr); return 0; } cocos2d::Follow* ret = cocos2d::Follow::createWithOffset(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Follow>(tolua_S, "cc.Follow",(cocos2d::Follow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Follow:createWithOffset",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_createWithOffset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Follow_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_constructor'", nullptr); return 0; } cobj = new cocos2d::Follow(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Follow"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Follow:Follow",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Follow_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Follow_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Follow)"); return 0; } int lua_register_cocos2dx_Follow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Follow"); tolua_cclass(tolua_S,"Follow","cc.Follow","cc.Action",nullptr); tolua_beginmodule(tolua_S,"Follow"); tolua_function(tolua_S,"new",lua_cocos2dx_Follow_constructor); tolua_function(tolua_S,"setBoundarySet",lua_cocos2dx_Follow_setBoundarySet); tolua_function(tolua_S,"initWithTarget",lua_cocos2dx_Follow_initWithTarget); tolua_function(tolua_S,"initWithTargetAndOffset",lua_cocos2dx_Follow_initWithTargetAndOffset); tolua_function(tolua_S,"isBoundarySet",lua_cocos2dx_Follow_isBoundarySet); tolua_function(tolua_S,"create", lua_cocos2dx_Follow_create); tolua_function(tolua_S,"createWithOffset", lua_cocos2dx_Follow_createWithOffset); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Follow).name(); g_luaType[typeName] = "cc.Follow"; g_typeCast["Follow"] = "cc.Follow"; return 1; } int lua_cocos2dx_Image_hasPremultipliedAlpha(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_hasPremultipliedAlpha'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_hasPremultipliedAlpha'", nullptr); return 0; } bool ret = cobj->hasPremultipliedAlpha(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:hasPremultipliedAlpha",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_hasPremultipliedAlpha'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_saveToFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Image:saveToFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_saveToFile'", nullptr); return 0; } bool ret = cobj->saveToFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { std::string arg0; bool arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Image:saveToFile"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Image:saveToFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_saveToFile'", nullptr); return 0; } bool ret = cobj->saveToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:saveToFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_saveToFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_hasAlpha'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_hasAlpha'", nullptr); return 0; } bool ret = cobj->hasAlpha(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:hasAlpha",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_hasAlpha'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_isCompressed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_isCompressed'", nullptr); return 0; } bool ret = cobj->isCompressed(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:isCompressed",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_isCompressed'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_getHeight'", nullptr); return 0; } int ret = cobj->getHeight(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getHeight",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getHeight'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_initWithImageFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Image:initWithImageFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_initWithImageFile'", nullptr); return 0; } bool ret = cobj->initWithImageFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:initWithImageFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_initWithImageFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_getWidth'", nullptr); return 0; } int ret = cobj->getWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getWidth",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getWidth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getBitPerPixel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_getBitPerPixel'", nullptr); return 0; } int ret = cobj->getBitPerPixel(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getBitPerPixel",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getBitPerPixel'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getFileType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_getFileType'", nullptr); return 0; } int ret = (int)cobj->getFileType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getFileType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getFileType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_getFilePath(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getFilePath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_getFilePath'", nullptr); return 0; } std::string ret = cobj->getFilePath(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getFilePath",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getFilePath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getNumberOfMipmaps'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_getNumberOfMipmaps'", nullptr); return 0; } int ret = cobj->getNumberOfMipmaps(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getNumberOfMipmaps",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getNumberOfMipmaps'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_getRenderFormat(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Image_getRenderFormat'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_getRenderFormat'", nullptr); return 0; } int ret = (int)cobj->getRenderFormat(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:getRenderFormat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_getRenderFormat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Image:setPVRImagesHavePremultipliedAlpha"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha'", nullptr); return 0; } cocos2d::Image::setPVRImagesHavePremultipliedAlpha(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Image:setPVRImagesHavePremultipliedAlpha",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Image:setPNGPremultipliedAlphaEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled'", nullptr); return 0; } cocos2d::Image::setPNGPremultipliedAlphaEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Image:setPNGPremultipliedAlphaEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Image_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_constructor'", nullptr); return 0; } cobj = new cocos2d::Image(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Image"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Image:Image",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Image_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Image_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Image)"); return 0; } int lua_register_cocos2dx_Image(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Image"); tolua_cclass(tolua_S,"Image","cc.Image","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Image"); tolua_function(tolua_S,"new",lua_cocos2dx_Image_constructor); tolua_function(tolua_S,"hasPremultipliedAlpha",lua_cocos2dx_Image_hasPremultipliedAlpha); tolua_function(tolua_S,"saveToFile",lua_cocos2dx_Image_saveToFile); tolua_function(tolua_S,"hasAlpha",lua_cocos2dx_Image_hasAlpha); tolua_function(tolua_S,"isCompressed",lua_cocos2dx_Image_isCompressed); tolua_function(tolua_S,"getHeight",lua_cocos2dx_Image_getHeight); tolua_function(tolua_S,"initWithImageFile",lua_cocos2dx_Image_initWithImageFile); tolua_function(tolua_S,"getWidth",lua_cocos2dx_Image_getWidth); tolua_function(tolua_S,"getBitPerPixel",lua_cocos2dx_Image_getBitPerPixel); tolua_function(tolua_S,"getFileType",lua_cocos2dx_Image_getFileType); tolua_function(tolua_S,"getFilePath",lua_cocos2dx_Image_getFilePath); tolua_function(tolua_S,"getNumberOfMipmaps",lua_cocos2dx_Image_getNumberOfMipmaps); tolua_function(tolua_S,"getRenderFormat",lua_cocos2dx_Image_getRenderFormat); tolua_function(tolua_S,"setPVRImagesHavePremultipliedAlpha", lua_cocos2dx_Image_setPVRImagesHavePremultipliedAlpha); tolua_function(tolua_S,"setPNGPremultipliedAlphaEnabled", lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Image).name(); g_luaType[typeName] = "cc.Image"; g_typeCast["Image"] = "cc.Image"; return 1; } int lua_cocos2dx_GLProgramState_getVertexAttribsFlags(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getVertexAttribsFlags'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_getVertexAttribsFlags'", nullptr); return 0; } unsigned int ret = cobj->getVertexAttribsFlags(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getVertexAttribsFlags",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getVertexAttribsFlags'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformVec4(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformVec4'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec4"); if (!ok) { break; } cocos2d::Vec4 arg1; ok &= luaval_to_vec4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec4"); if (!ok) { break; } cobj->setUniformVec4(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec4"); if (!ok) { break; } cocos2d::Vec4 arg1; ok &= luaval_to_vec4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec4"); if (!ok) { break; } cobj->setUniformVec4(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec4",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec4'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_applyAutoBinding(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyAutoBinding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:applyAutoBinding"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgramState:applyAutoBinding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_applyAutoBinding'", nullptr); return 0; } cobj->applyAutoBinding(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyAutoBinding",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyAutoBinding'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformVec2(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformVec2'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec2"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec2"); if (!ok) { break; } cobj->setUniformVec2(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec2"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec2"); if (!ok) { break; } cobj->setUniformVec2(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec2",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec2'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformVec3(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformVec3'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec3"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec3"); if (!ok) { break; } cobj->setUniformVec3(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec3"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec3"); if (!ok) { break; } cobj->setUniformVec3(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec3",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec3'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_apply(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_apply'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.GLProgramState:apply"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_apply'", nullptr); return 0; } cobj->apply(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:apply",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_apply'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_getNodeBinding(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getNodeBinding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_getNodeBinding'", nullptr); return 0; } cocos2d::Node* ret = cobj->getNodeBinding(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getNodeBinding",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getNodeBinding'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformVec4v(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformVec4v'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec4v"); if (!ok) { break; } ssize_t arg1; ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec4v"); if (!ok) { break; } const cocos2d::Vec4* arg2; ok &= luaval_to_object<const cocos2d::Vec4>(tolua_S, 4, "cc.Vec4",&arg2, "cc.GLProgramState:setUniformVec4v"); if (!ok) { break; } cobj->setUniformVec4v(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec4v"); if (!ok) { break; } ssize_t arg1; ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec4v"); if (!ok) { break; } const cocos2d::Vec4* arg2; ok &= luaval_to_object<const cocos2d::Vec4>(tolua_S, 4, "cc.Vec4",&arg2, "cc.GLProgramState:setUniformVec4v"); if (!ok) { break; } cobj->setUniformVec4v(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec4v",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec4v'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_applyGLProgram(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyGLProgram'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.GLProgramState:applyGLProgram"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_applyGLProgram'", nullptr); return 0; } cobj->applyGLProgram(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyGLProgram",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setNodeBinding(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setNodeBinding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.GLProgramState:setNodeBinding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_setNodeBinding'", nullptr); return 0; } cobj->setNodeBinding(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setNodeBinding",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setNodeBinding'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformInt(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformInt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformInt"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.GLProgramState:setUniformInt"); if (!ok) { break; } cobj->setUniformInt(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformInt"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.GLProgramState:setUniformInt"); if (!ok) { break; } cobj->setUniformInt(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformInt",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformInt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setParameterAutoBinding(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setParameterAutoBinding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setParameterAutoBinding"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgramState:setParameterAutoBinding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_setParameterAutoBinding'", nullptr); return 0; } cobj->setParameterAutoBinding(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setParameterAutoBinding",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setParameterAutoBinding'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformVec2v(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformVec2v'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec2v"); if (!ok) { break; } ssize_t arg1; ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec2v"); if (!ok) { break; } const cocos2d::Vec2* arg2; ok &= luaval_to_object<const cocos2d::Vec2>(tolua_S, 4, "cc.Vec2",&arg2, "cc.GLProgramState:setUniformVec2v"); if (!ok) { break; } cobj->setUniformVec2v(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec2v"); if (!ok) { break; } ssize_t arg1; ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec2v"); if (!ok) { break; } const cocos2d::Vec2* arg2; ok &= luaval_to_object<const cocos2d::Vec2>(tolua_S, 4, "cc.Vec2",&arg2, "cc.GLProgramState:setUniformVec2v"); if (!ok) { break; } cobj->setUniformVec2v(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec2v",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec2v'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_getUniformCount(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getUniformCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_getUniformCount'", nullptr); return 0; } ssize_t ret = cobj->getUniformCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getUniformCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getUniformCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_applyAttributes(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyAttributes'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_applyAttributes'", nullptr); return 0; } cobj->applyAttributes(); lua_settop(tolua_S, 1); return 1; } if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GLProgramState:applyAttributes"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_applyAttributes'", nullptr); return 0; } cobj->applyAttributes(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyAttributes",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyAttributes'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_clone(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_clone'", nullptr); return 0; } cocos2d::GLProgramState* ret = cobj->clone(); object_to_luaval<cocos2d::GLProgramState>(tolua_S, "cc.GLProgramState",(cocos2d::GLProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:clone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_clone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setGLProgram(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setGLProgram'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::GLProgram* arg0; ok &= luaval_to_object<cocos2d::GLProgram>(tolua_S, 2, "cc.GLProgram",&arg0, "cc.GLProgramState:setGLProgram"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_setGLProgram'", nullptr); return 0; } cobj->setGLProgram(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setGLProgram",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformFloatv(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformFloatv'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformFloatv"); if (!ok) { break; } ssize_t arg1; ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformFloatv"); if (!ok) { break; } const float* arg2; #pragma warning NO CONVERSION TO NATIVE FOR float* ok = false; if (!ok) { break; } cobj->setUniformFloatv(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformFloatv"); if (!ok) { break; } ssize_t arg1; ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformFloatv"); if (!ok) { break; } const float* arg2; #pragma warning NO CONVERSION TO NATIVE FOR float* ok = false; if (!ok) { break; } cobj->setUniformFloatv(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformFloatv",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformFloatv'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_getGLProgram(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getGLProgram'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_getGLProgram'", nullptr); return 0; } cocos2d::GLProgram* ret = cobj->getGLProgram(); object_to_luaval<cocos2d::GLProgram>(tolua_S, "cc.GLProgram",(cocos2d::GLProgram*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getGLProgram",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformTexture(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformTexture"); if (!ok) { break; } unsigned int arg1; ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformTexture"); if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformTexture"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GLProgramState:setUniformTexture"); if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformTexture"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GLProgramState:setUniformTexture"); if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformTexture"); if (!ok) { break; } unsigned int arg1; ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformTexture"); if (!ok) { break; } cobj->setUniformTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformTexture",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_applyUniforms(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_applyUniforms'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_applyUniforms'", nullptr); return 0; } cobj->applyUniforms(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:applyUniforms",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_applyUniforms'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformFloat(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformFloat'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformFloat"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformFloat"); if (!ok) { break; } cobj->setUniformFloat(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformFloat"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.GLProgramState:setUniformFloat"); if (!ok) { break; } cobj->setUniformFloat(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformFloat",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformFloat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformMat4(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformMat4'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformMat4"); if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformMat4"); if (!ok) { break; } cobj->setUniformMat4(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformMat4"); if (!ok) { break; } cocos2d::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformMat4"); if (!ok) { break; } cobj->setUniformMat4(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformMat4",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformMat4'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_setUniformVec3v(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_setUniformVec3v'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgramState:setUniformVec3v"); if (!ok) { break; } ssize_t arg1; ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec3v"); if (!ok) { break; } const cocos2d::Vec3* arg2; ok &= luaval_to_object<const cocos2d::Vec3>(tolua_S, 4, "cc.Vec3",&arg2, "cc.GLProgramState:setUniformVec3v"); if (!ok) { break; } cobj->setUniformVec3v(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:setUniformVec3v"); if (!ok) { break; } ssize_t arg1; ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.GLProgramState:setUniformVec3v"); if (!ok) { break; } const cocos2d::Vec3* arg2; ok &= luaval_to_object<const cocos2d::Vec3>(tolua_S, 4, "cc.Vec3",&arg2, "cc.GLProgramState:setUniformVec3v"); if (!ok) { break; } cobj->setUniformVec3v(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:setUniformVec3v",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_setUniformVec3v'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_getVertexAttribCount(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramState_getVertexAttribCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_getVertexAttribCount'", nullptr); return 0; } ssize_t ret = cobj->getVertexAttribCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramState:getVertexAttribCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getVertexAttribCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::GLProgram* arg0; ok &= luaval_to_object<cocos2d::GLProgram>(tolua_S, 2, "cc.GLProgram",&arg0, "cc.GLProgramState:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_create'", nullptr); return 0; } cocos2d::GLProgramState* ret = cocos2d::GLProgramState::create(arg0); object_to_luaval<cocos2d::GLProgramState>(tolua_S, "cc.GLProgramState",(cocos2d::GLProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramState:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:getOrCreateWithGLProgramName"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GLProgramState:getOrCreateWithGLProgramName"); if (!ok) { break; } cocos2d::GLProgramState* ret = cocos2d::GLProgramState::getOrCreateWithGLProgramName(arg0, arg1); object_to_luaval<cocos2d::GLProgramState>(tolua_S, "cc.GLProgramState",(cocos2d::GLProgramState*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:getOrCreateWithGLProgramName"); if (!ok) { break; } cocos2d::GLProgramState* ret = cocos2d::GLProgramState::getOrCreateWithGLProgramName(arg0); object_to_luaval<cocos2d::GLProgramState>(tolua_S, "cc.GLProgramState",(cocos2d::GLProgramState*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.GLProgramState:getOrCreateWithGLProgramName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::GLProgram* arg0; ok &= luaval_to_object<cocos2d::GLProgram>(tolua_S, 2, "cc.GLProgram",&arg0, "cc.GLProgramState:getOrCreateWithGLProgram"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram'", nullptr); return 0; } cocos2d::GLProgramState* ret = cocos2d::GLProgramState::getOrCreateWithGLProgram(arg0); object_to_luaval<cocos2d::GLProgramState>(tolua_S, "cc.GLProgramState",(cocos2d::GLProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramState:getOrCreateWithGLProgram",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramState_getOrCreateWithShaders(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramState",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { std::string arg0; std::string arg1; std::string arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramState:getOrCreateWithShaders"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgramState:getOrCreateWithShaders"); ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.GLProgramState:getOrCreateWithShaders"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramState_getOrCreateWithShaders'", nullptr); return 0; } cocos2d::GLProgramState* ret = cocos2d::GLProgramState::getOrCreateWithShaders(arg0, arg1, arg2); object_to_luaval<cocos2d::GLProgramState>(tolua_S, "cc.GLProgramState",(cocos2d::GLProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramState:getOrCreateWithShaders",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramState_getOrCreateWithShaders'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_GLProgramState_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GLProgramState)"); return 0; } int lua_register_cocos2dx_GLProgramState(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgramState"); tolua_cclass(tolua_S,"GLProgramState","cc.GLProgramState","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GLProgramState"); tolua_function(tolua_S,"getVertexAttribsFlags",lua_cocos2dx_GLProgramState_getVertexAttribsFlags); tolua_function(tolua_S,"setUniformVec4",lua_cocos2dx_GLProgramState_setUniformVec4); tolua_function(tolua_S,"applyAutoBinding",lua_cocos2dx_GLProgramState_applyAutoBinding); tolua_function(tolua_S,"setUniformVec2",lua_cocos2dx_GLProgramState_setUniformVec2); tolua_function(tolua_S,"setUniformVec3",lua_cocos2dx_GLProgramState_setUniformVec3); tolua_function(tolua_S,"apply",lua_cocos2dx_GLProgramState_apply); tolua_function(tolua_S,"getNodeBinding",lua_cocos2dx_GLProgramState_getNodeBinding); tolua_function(tolua_S,"setUniformVec4v",lua_cocos2dx_GLProgramState_setUniformVec4v); tolua_function(tolua_S,"applyGLProgram",lua_cocos2dx_GLProgramState_applyGLProgram); tolua_function(tolua_S,"setNodeBinding",lua_cocos2dx_GLProgramState_setNodeBinding); tolua_function(tolua_S,"setUniformInt",lua_cocos2dx_GLProgramState_setUniformInt); tolua_function(tolua_S,"setParameterAutoBinding",lua_cocos2dx_GLProgramState_setParameterAutoBinding); tolua_function(tolua_S,"setUniformVec2v",lua_cocos2dx_GLProgramState_setUniformVec2v); tolua_function(tolua_S,"getUniformCount",lua_cocos2dx_GLProgramState_getUniformCount); tolua_function(tolua_S,"applyAttributes",lua_cocos2dx_GLProgramState_applyAttributes); tolua_function(tolua_S,"clone",lua_cocos2dx_GLProgramState_clone); tolua_function(tolua_S,"setGLProgram",lua_cocos2dx_GLProgramState_setGLProgram); tolua_function(tolua_S,"setUniformFloatv",lua_cocos2dx_GLProgramState_setUniformFloatv); tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramState_getGLProgram); tolua_function(tolua_S,"setUniformTexture",lua_cocos2dx_GLProgramState_setUniformTexture); tolua_function(tolua_S,"applyUniforms",lua_cocos2dx_GLProgramState_applyUniforms); tolua_function(tolua_S,"setUniformFloat",lua_cocos2dx_GLProgramState_setUniformFloat); tolua_function(tolua_S,"setUniformMat4",lua_cocos2dx_GLProgramState_setUniformMat4); tolua_function(tolua_S,"setUniformVec3v",lua_cocos2dx_GLProgramState_setUniformVec3v); tolua_function(tolua_S,"getVertexAttribCount",lua_cocos2dx_GLProgramState_getVertexAttribCount); tolua_function(tolua_S,"create", lua_cocos2dx_GLProgramState_create); tolua_function(tolua_S,"getOrCreateWithGLProgramName", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgramName); tolua_function(tolua_S,"getOrCreateWithGLProgram", lua_cocos2dx_GLProgramState_getOrCreateWithGLProgram); tolua_function(tolua_S,"getOrCreateWithShaders", lua_cocos2dx_GLProgramState_getOrCreateWithShaders); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLProgramState).name(); g_luaType[typeName] = "cc.GLProgramState"; g_typeCast["GLProgramState"] = "cc.GLProgramState"; return 1; } int lua_cocos2dx_PolygonInfo_getArea(lua_State* tolua_S) { int argc = 0; cocos2d::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PolygonInfo_getArea'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PolygonInfo_getArea'", nullptr); return 0; } double ret = cobj->getArea(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PolygonInfo:getArea",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PolygonInfo_getArea'.",&tolua_err); #endif return 0; } int lua_cocos2dx_PolygonInfo_getVertCount(lua_State* tolua_S) { int argc = 0; cocos2d::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PolygonInfo_getVertCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PolygonInfo_getVertCount'", nullptr); return 0; } unsigned int ret = cobj->getVertCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PolygonInfo:getVertCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PolygonInfo_getVertCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_PolygonInfo_getTrianglesCount(lua_State* tolua_S) { int argc = 0; cocos2d::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PolygonInfo_getTrianglesCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PolygonInfo_getTrianglesCount'", nullptr); return 0; } unsigned int ret = cobj->getTrianglesCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PolygonInfo:getTrianglesCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PolygonInfo_getTrianglesCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_PolygonInfo_setQuad(lua_State* tolua_S) { int argc = 0; cocos2d::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PolygonInfo_setQuad'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::V3F_C4B_T2F_Quad* arg0; #pragma warning NO CONVERSION TO NATIVE FOR V3F_C4B_T2F_Quad* ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PolygonInfo_setQuad'", nullptr); return 0; } cobj->setQuad(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PolygonInfo:setQuad",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PolygonInfo_setQuad'.",&tolua_err); #endif return 0; } int lua_cocos2dx_PolygonInfo_setTriangles(lua_State* tolua_S) { int argc = 0; cocos2d::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PolygonInfo_setTriangles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TrianglesCommand::Triangles arg0; #pragma warning NO CONVERSION TO NATIVE FOR Triangles ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PolygonInfo_setTriangles'", nullptr); return 0; } cobj->setTriangles(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PolygonInfo:setTriangles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PolygonInfo_setTriangles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_PolygonInfo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PolygonInfo_constructor'", nullptr); return 0; } cobj = new cocos2d::PolygonInfo(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.PolygonInfo"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PolygonInfo:PolygonInfo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PolygonInfo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_PolygonInfo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PolygonInfo)"); return 0; } int lua_register_cocos2dx_PolygonInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PolygonInfo"); tolua_cclass(tolua_S,"PolygonInfo","cc.PolygonInfo","",nullptr); tolua_beginmodule(tolua_S,"PolygonInfo"); tolua_function(tolua_S,"new",lua_cocos2dx_PolygonInfo_constructor); tolua_function(tolua_S,"getArea",lua_cocos2dx_PolygonInfo_getArea); tolua_function(tolua_S,"getVertCount",lua_cocos2dx_PolygonInfo_getVertCount); tolua_function(tolua_S,"getTrianglesCount",lua_cocos2dx_PolygonInfo_getTrianglesCount); tolua_function(tolua_S,"setQuad",lua_cocos2dx_PolygonInfo_setQuad); tolua_function(tolua_S,"setTriangles",lua_cocos2dx_PolygonInfo_setTriangles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::PolygonInfo).name(); g_luaType[typeName] = "cc.PolygonInfo"; g_typeCast["PolygonInfo"] = "cc.PolygonInfo"; return 1; } int lua_cocos2dx_AutoPolygon_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::AutoPolygon* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AutoPolygon:AutoPolygon"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AutoPolygon_constructor'", nullptr); return 0; } cobj = new cocos2d::AutoPolygon(arg0); tolua_pushusertype(tolua_S,(void*)cobj,"cc.AutoPolygon"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AutoPolygon:AutoPolygon",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AutoPolygon_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_AutoPolygon_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AutoPolygon)"); return 0; } int lua_register_cocos2dx_AutoPolygon(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AutoPolygon"); tolua_cclass(tolua_S,"AutoPolygon","cc.AutoPolygon","",nullptr); tolua_beginmodule(tolua_S,"AutoPolygon"); tolua_function(tolua_S,"new",lua_cocos2dx_AutoPolygon_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AutoPolygon).name(); g_luaType[typeName] = "cc.AutoPolygon"; g_typeCast["AutoPolygon"] = "cc.AutoPolygon"; return 1; } int lua_cocos2dx_SpriteFrame_setAnchorPoint(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setAnchorPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setAnchorPoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setAnchorPoint'", nullptr); return 0; } cobj->setAnchorPoint(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setAnchorPoint",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setAnchorPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setTexture'", nullptr); return 0; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getTexture'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTexture(); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOffsetInPixels'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOffsetInPixels"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setOffsetInPixels'", nullptr); return 0; } cobj->setOffsetInPixels(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOffsetInPixels",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOffsetInPixels'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getOriginalSizeInPixels(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOriginalSizeInPixels",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOriginalSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.SpriteFrame:setOriginalSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setOriginalSize'", nullptr); return 0; } cobj->setOriginalSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOriginalSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOriginalSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setRectInPixels'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.SpriteFrame:setRectInPixels"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setRectInPixels'", nullptr); return 0; } cobj->setRectInPixels(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setRectInPixels",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setRectInPixels'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getRect'", nullptr); return 0; } const cocos2d::Rect& ret = cobj->getRect(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getRect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOffset"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setOffset'", nullptr); return 0; } cobj->setOffset(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOffset",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOffset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_initWithTextureFilename(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_initWithTextureFilename'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } cocos2d::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } cocos2d::Size arg4; ok &= luaval_to_size(tolua_S, 6, &arg4, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } bool ret = cobj->initWithTextureFilename(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } bool ret = cobj->initWithTextureFilename(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:initWithTextureFilename",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_initWithTextureFilename'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.SpriteFrame:setRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setRect'", nullptr); return 0; } cobj->setRect(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setRect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_initWithTexture(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_initWithTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } cocos2d::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } cocos2d::Size arg4; ok &= luaval_to_size(tolua_S, 6, &arg4, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } bool ret = cobj->initWithTexture(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } bool ret = cobj->initWithTexture(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:initWithTexture",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_initWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOriginalSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getOriginalSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getOriginalSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOriginalSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOriginalSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_clone(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_clone'", nullptr); return 0; } cocos2d::SpriteFrame* ret = cobj->clone(); object_to_luaval<cocos2d::SpriteFrame>(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:clone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_clone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getRectInPixels'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getRectInPixels'", nullptr); return 0; } const cocos2d::Rect& ret = cobj->getRectInPixels(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getRectInPixels",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getRectInPixels'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_isRotated'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_isRotated'", nullptr); return 0; } bool ret = cobj->isRotated(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:isRotated",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_isRotated'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setRotated'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteFrame:setRotated"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setRotated'", nullptr); return 0; } cobj->setRotated(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setRotated",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setRotated'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getOffset'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getOffset(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOffset",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOffset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.SpriteFrame:setOriginalSizeInPixels"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels'", nullptr); return 0; } cobj->setOriginalSizeInPixels(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:setOriginalSizeInPixels",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_getAnchorPoint(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getAnchorPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getAnchorPoint'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getAnchorPoint(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getAnchorPoint",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getAnchorPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_hasAnchorPoint(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_hasAnchorPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_hasAnchorPoint'", nullptr); return 0; } bool ret = cobj->hasAnchorPoint(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:hasAnchorPoint",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_hasAnchorPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrame_getOffsetInPixels'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getOffsetInPixels'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getOffsetInPixels(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getOffsetInPixels",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_getOffsetInPixels'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrame:create"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:create"); if (!ok) { break; } cocos2d::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:create"); if (!ok) { break; } cocos2d::Size arg4; ok &= luaval_to_size(tolua_S, 6, &arg4, "cc.SpriteFrame:create"); if (!ok) { break; } cocos2d::SpriteFrame* ret = cocos2d::SpriteFrame::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::SpriteFrame>(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrame:create"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:create"); if (!ok) { break; } cocos2d::SpriteFrame* ret = cocos2d::SpriteFrame::create(arg0, arg1); object_to_luaval<cocos2d::SpriteFrame>(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.SpriteFrame:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 5) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } cocos2d::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } cocos2d::Size arg4; ok &= luaval_to_size(tolua_S, 6, &arg4, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } cocos2d::SpriteFrame* ret = cocos2d::SpriteFrame::createWithTexture(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::SpriteFrame>(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } cocos2d::SpriteFrame* ret = cocos2d::SpriteFrame::createWithTexture(arg0, arg1); object_to_luaval<cocos2d::SpriteFrame>(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.SpriteFrame:createWithTexture",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_createWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrame_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_constructor'", nullptr); return 0; } cobj = new cocos2d::SpriteFrame(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SpriteFrame"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:SpriteFrame",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrame_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_SpriteFrame_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SpriteFrame)"); return 0; } int lua_register_cocos2dx_SpriteFrame(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteFrame"); tolua_cclass(tolua_S,"SpriteFrame","cc.SpriteFrame","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"SpriteFrame"); tolua_function(tolua_S,"new",lua_cocos2dx_SpriteFrame_constructor); tolua_function(tolua_S,"setAnchorPoint",lua_cocos2dx_SpriteFrame_setAnchorPoint); tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteFrame_setTexture); tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteFrame_getTexture); tolua_function(tolua_S,"setOffsetInPixels",lua_cocos2dx_SpriteFrame_setOffsetInPixels); tolua_function(tolua_S,"getOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels); tolua_function(tolua_S,"setOriginalSize",lua_cocos2dx_SpriteFrame_setOriginalSize); tolua_function(tolua_S,"setRectInPixels",lua_cocos2dx_SpriteFrame_setRectInPixels); tolua_function(tolua_S,"getRect",lua_cocos2dx_SpriteFrame_getRect); tolua_function(tolua_S,"setOffset",lua_cocos2dx_SpriteFrame_setOffset); tolua_function(tolua_S,"initWithTextureFilename",lua_cocos2dx_SpriteFrame_initWithTextureFilename); tolua_function(tolua_S,"setRect",lua_cocos2dx_SpriteFrame_setRect); tolua_function(tolua_S,"initWithTexture",lua_cocos2dx_SpriteFrame_initWithTexture); tolua_function(tolua_S,"getOriginalSize",lua_cocos2dx_SpriteFrame_getOriginalSize); tolua_function(tolua_S,"clone",lua_cocos2dx_SpriteFrame_clone); tolua_function(tolua_S,"getRectInPixels",lua_cocos2dx_SpriteFrame_getRectInPixels); tolua_function(tolua_S,"isRotated",lua_cocos2dx_SpriteFrame_isRotated); tolua_function(tolua_S,"setRotated",lua_cocos2dx_SpriteFrame_setRotated); tolua_function(tolua_S,"getOffset",lua_cocos2dx_SpriteFrame_getOffset); tolua_function(tolua_S,"setOriginalSizeInPixels",lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels); tolua_function(tolua_S,"getAnchorPoint",lua_cocos2dx_SpriteFrame_getAnchorPoint); tolua_function(tolua_S,"hasAnchorPoint",lua_cocos2dx_SpriteFrame_hasAnchorPoint); tolua_function(tolua_S,"getOffsetInPixels",lua_cocos2dx_SpriteFrame_getOffsetInPixels); tolua_function(tolua_S,"create", lua_cocos2dx_SpriteFrame_create); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteFrame_createWithTexture); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpriteFrame).name(); g_luaType[typeName] = "cc.SpriteFrame"; g_typeCast["SpriteFrame"] = "cc.SpriteFrame"; return 1; } int lua_cocos2dx_AnimationFrame_setSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_setSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.AnimationFrame:setSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_setSpriteFrame'", nullptr); return 0; } cobj->setSpriteFrame(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:setSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_setSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_getUserInfo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::ValueMap& ret = cobj->getUserInfo(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::ValueMap& ret = cobj->getUserInfo(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getUserInfo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_getUserInfo'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_setDelayUnits'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.AnimationFrame:setDelayUnits"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_setDelayUnits'", nullptr); return 0; } cobj->setDelayUnits(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:setDelayUnits",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_setDelayUnits'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_clone'", nullptr); return 0; } cocos2d::AnimationFrame* ret = cobj->clone(); object_to_luaval<cocos2d::AnimationFrame>(tolua_S, "cc.AnimationFrame",(cocos2d::AnimationFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:clone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_clone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_getSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_getSpriteFrame'", nullptr); return 0; } cocos2d::SpriteFrame* ret = cobj->getSpriteFrame(); object_to_luaval<cocos2d::SpriteFrame>(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getSpriteFrame",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_getSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_getDelayUnits'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_getDelayUnits'", nullptr); return 0; } double ret = cobj->getDelayUnits(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getDelayUnits",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_getDelayUnits'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_setUserInfo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.AnimationFrame:setUserInfo"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_setUserInfo'", nullptr); return 0; } cobj->setUserInfo(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:setUserInfo",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_setUserInfo'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationFrame_initWithSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationFrame_initWithSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::SpriteFrame* arg0; double arg1; cocos2d::ValueMap arg2; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.AnimationFrame:initWithSpriteFrame"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.AnimationFrame:initWithSpriteFrame"); ok &= luaval_to_ccvaluemap(tolua_S, 4, &arg2, "cc.AnimationFrame:initWithSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_initWithSpriteFrame'", nullptr); return 0; } bool ret = cobj->initWithSpriteFrame(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:initWithSpriteFrame",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_initWithSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { cocos2d::SpriteFrame* arg0; double arg1; cocos2d::ValueMap arg2; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.AnimationFrame:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.AnimationFrame:create"); ok &= luaval_to_ccvaluemap(tolua_S, 4, &arg2, "cc.AnimationFrame:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_create'", nullptr); return 0; } cocos2d::AnimationFrame* ret = cocos2d::AnimationFrame::create(arg0, arg1, arg2); object_to_luaval<cocos2d::AnimationFrame>(tolua_S, "cc.AnimationFrame",(cocos2d::AnimationFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationFrame:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationFrame_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_constructor'", nullptr); return 0; } cobj = new cocos2d::AnimationFrame(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.AnimationFrame"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:AnimationFrame",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationFrame_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_AnimationFrame_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AnimationFrame)"); return 0; } int lua_register_cocos2dx_AnimationFrame(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AnimationFrame"); tolua_cclass(tolua_S,"AnimationFrame","cc.AnimationFrame","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"AnimationFrame"); tolua_function(tolua_S,"new",lua_cocos2dx_AnimationFrame_constructor); tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_AnimationFrame_setSpriteFrame); tolua_function(tolua_S,"getUserInfo",lua_cocos2dx_AnimationFrame_getUserInfo); tolua_function(tolua_S,"setDelayUnits",lua_cocos2dx_AnimationFrame_setDelayUnits); tolua_function(tolua_S,"clone",lua_cocos2dx_AnimationFrame_clone); tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_AnimationFrame_getSpriteFrame); tolua_function(tolua_S,"getDelayUnits",lua_cocos2dx_AnimationFrame_getDelayUnits); tolua_function(tolua_S,"setUserInfo",lua_cocos2dx_AnimationFrame_setUserInfo); tolua_function(tolua_S,"initWithSpriteFrame",lua_cocos2dx_AnimationFrame_initWithSpriteFrame); tolua_function(tolua_S,"create", lua_cocos2dx_AnimationFrame_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AnimationFrame).name(); g_luaType[typeName] = "cc.AnimationFrame"; g_typeCast["AnimationFrame"] = "cc.AnimationFrame"; return 1; } int lua_cocos2dx_Animation_getLoops(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getLoops'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_getLoops'", nullptr); return 0; } unsigned int ret = cobj->getLoops(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getLoops",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getLoops'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_addSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Animation:addSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_addSpriteFrame'", nullptr); return 0; } cobj->addSpriteFrame(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:addSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_addSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setRestoreOriginalFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Animation:setRestoreOriginalFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_setRestoreOriginalFrame'", nullptr); return 0; } cobj->setRestoreOriginalFrame(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setRestoreOriginalFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setRestoreOriginalFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_clone(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_clone'", nullptr); return 0; } cocos2d::Animation* ret = cobj->clone(); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:clone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_clone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_getDuration'", nullptr); return 0; } double ret = cobj->getDuration(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getDuration",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_initWithAnimationFrames(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_initWithAnimationFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Vector<cocos2d::AnimationFrame *> arg0; double arg1; unsigned int arg2; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithAnimationFrames"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:initWithAnimationFrames"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Animation:initWithAnimationFrames"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_initWithAnimationFrames'", nullptr); return 0; } bool ret = cobj->initWithAnimationFrames(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:initWithAnimationFrames",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_initWithAnimationFrames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_init(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::AnimationFrame *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:setFrames"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_setFrames'", nullptr); return 0; } cobj->setFrames(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setFrames",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setFrames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_getFrames'", nullptr); return 0; } const cocos2d::Vector<cocos2d::AnimationFrame *>& ret = cobj->getFrames(); ccvector_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getFrames",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getFrames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setLoops'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Animation:setLoops"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_setLoops'", nullptr); return 0; } cobj->setLoops(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setLoops",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setLoops'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_setDelayPerUnit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Animation:setDelayPerUnit"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_setDelayPerUnit'", nullptr); return 0; } cobj->setDelayPerUnit(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:setDelayPerUnit",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_setDelayPerUnit'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_addSpriteFrameWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Animation:addSpriteFrameWithFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_addSpriteFrameWithFile'", nullptr); return 0; } cobj->addSpriteFrameWithFile(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:addSpriteFrameWithFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_addSpriteFrameWithFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getTotalDelayUnits'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_getTotalDelayUnits'", nullptr); return 0; } double ret = cobj->getTotalDelayUnits(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getTotalDelayUnits",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getTotalDelayUnits'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getDelayPerUnit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_getDelayPerUnit'", nullptr); return 0; } double ret = cobj->getDelayPerUnit(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getDelayPerUnit",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getDelayPerUnit'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_initWithSpriteFrames(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_initWithSpriteFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::SpriteFrame *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithSpriteFrames"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_initWithSpriteFrames'", nullptr); return 0; } bool ret = cobj->initWithSpriteFrames(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { cocos2d::Vector<cocos2d::SpriteFrame *> arg0; double arg1; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithSpriteFrames"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:initWithSpriteFrames"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_initWithSpriteFrames'", nullptr); return 0; } bool ret = cobj->initWithSpriteFrames(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 3) { cocos2d::Vector<cocos2d::SpriteFrame *> arg0; double arg1; unsigned int arg2; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithSpriteFrames"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:initWithSpriteFrames"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Animation:initWithSpriteFrames"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_initWithSpriteFrames'", nullptr); return 0; } bool ret = cobj->initWithSpriteFrames(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:initWithSpriteFrames",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_initWithSpriteFrames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_getRestoreOriginalFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_getRestoreOriginalFrame'", nullptr); return 0; } bool ret = cobj->getRestoreOriginalFrame(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:getRestoreOriginalFrame",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_getRestoreOriginalFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animation_addSpriteFrameWithTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Texture2D* arg0; cocos2d::Rect arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Animation:addSpriteFrameWithTexture"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Animation:addSpriteFrameWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_addSpriteFrameWithTexture'", nullptr); return 0; } cobj->addSpriteFrameWithTexture(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:addSpriteFrameWithTexture",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_addSpriteFrameWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { cocos2d::Vector<cocos2d::AnimationFrame *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:create"); if (!ok) { break; } cocos2d::Animation* ret = cocos2d::Animation::create(arg0, arg1); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { cocos2d::Vector<cocos2d::AnimationFrame *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:create"); if (!ok) { break; } unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Animation:create"); if (!ok) { break; } cocos2d::Animation* ret = cocos2d::Animation::create(arg0, arg1, arg2); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocos2d::Animation* ret = cocos2d::Animation::create(); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Animation:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Vector<cocos2d::SpriteFrame *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:createWithSpriteFrames"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_createWithSpriteFrames'", nullptr); return 0; } cocos2d::Animation* ret = cocos2d::Animation::createWithSpriteFrames(arg0); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } if (argc == 2) { cocos2d::Vector<cocos2d::SpriteFrame *> arg0; double arg1; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:createWithSpriteFrames"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:createWithSpriteFrames"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_createWithSpriteFrames'", nullptr); return 0; } cocos2d::Animation* ret = cocos2d::Animation::createWithSpriteFrames(arg0, arg1); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } if (argc == 3) { cocos2d::Vector<cocos2d::SpriteFrame *> arg0; double arg1; unsigned int arg2; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:createWithSpriteFrames"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:createWithSpriteFrames"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Animation:createWithSpriteFrames"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_createWithSpriteFrames'", nullptr); return 0; } cocos2d::Animation* ret = cocos2d::Animation::createWithSpriteFrames(arg0, arg1, arg2); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animation:createWithSpriteFrames",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_createWithSpriteFrames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animation_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_constructor'", nullptr); return 0; } cobj = new cocos2d::Animation(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Animation"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:Animation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animation_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Animation_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Animation)"); return 0; } int lua_register_cocos2dx_Animation(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animation"); tolua_cclass(tolua_S,"Animation","cc.Animation","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"Animation"); tolua_function(tolua_S,"new",lua_cocos2dx_Animation_constructor); tolua_function(tolua_S,"getLoops",lua_cocos2dx_Animation_getLoops); tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_Animation_addSpriteFrame); tolua_function(tolua_S,"setRestoreOriginalFrame",lua_cocos2dx_Animation_setRestoreOriginalFrame); tolua_function(tolua_S,"clone",lua_cocos2dx_Animation_clone); tolua_function(tolua_S,"getDuration",lua_cocos2dx_Animation_getDuration); tolua_function(tolua_S,"initWithAnimationFrames",lua_cocos2dx_Animation_initWithAnimationFrames); tolua_function(tolua_S,"init",lua_cocos2dx_Animation_init); tolua_function(tolua_S,"setFrames",lua_cocos2dx_Animation_setFrames); tolua_function(tolua_S,"getFrames",lua_cocos2dx_Animation_getFrames); tolua_function(tolua_S,"setLoops",lua_cocos2dx_Animation_setLoops); tolua_function(tolua_S,"setDelayPerUnit",lua_cocos2dx_Animation_setDelayPerUnit); tolua_function(tolua_S,"addSpriteFrameWithFile",lua_cocos2dx_Animation_addSpriteFrameWithFile); tolua_function(tolua_S,"getTotalDelayUnits",lua_cocos2dx_Animation_getTotalDelayUnits); tolua_function(tolua_S,"getDelayPerUnit",lua_cocos2dx_Animation_getDelayPerUnit); tolua_function(tolua_S,"initWithSpriteFrames",lua_cocos2dx_Animation_initWithSpriteFrames); tolua_function(tolua_S,"getRestoreOriginalFrame",lua_cocos2dx_Animation_getRestoreOriginalFrame); tolua_function(tolua_S,"addSpriteFrameWithTexture",lua_cocos2dx_Animation_addSpriteFrameWithTexture); tolua_function(tolua_S,"create", lua_cocos2dx_Animation_create); tolua_function(tolua_S,"createWithSpriteFrames", lua_cocos2dx_Animation_createWithSpriteFrames); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Animation).name(); g_luaType[typeName] = "cc.Animation"; g_typeCast["Animation"] = "cc.Animation"; return 1; } int lua_cocos2dx_ActionInterval_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_getAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionInterval_getAmplitudeRate'", nullptr); return 0; } double ret = cobj->getAmplitudeRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:getAmplitudeRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_getAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionInterval_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionInterval:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionInterval_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:initWithDuration",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_setAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionInterval:setAmplitudeRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionInterval_setAmplitudeRate'", nullptr); return 0; } cobj->setAmplitudeRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:setAmplitudeRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_setAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionInterval_getElapsed(lua_State* tolua_S) { int argc = 0; cocos2d::ActionInterval* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionInterval_getElapsed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionInterval_getElapsed'", nullptr); return 0; } double ret = cobj->getElapsed(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionInterval:getElapsed",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionInterval_getElapsed'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ActionInterval_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionInterval)"); return 0; } int lua_register_cocos2dx_ActionInterval(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionInterval"); tolua_cclass(tolua_S,"ActionInterval","cc.ActionInterval","cc.FiniteTimeAction",nullptr); tolua_beginmodule(tolua_S,"ActionInterval"); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_ActionInterval_getAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ActionInterval_initWithDuration); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_ActionInterval_setAmplitudeRate); tolua_function(tolua_S,"getElapsed",lua_cocos2dx_ActionInterval_getElapsed); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionInterval).name(); g_luaType[typeName] = "cc.ActionInterval"; g_typeCast["ActionInterval"] = "cc.ActionInterval"; return 1; } int lua_cocos2dx_Sequence_init(lua_State* tolua_S) { int argc = 0; cocos2d::Sequence* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sequence",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sequence*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sequence_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::FiniteTimeAction *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Sequence:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sequence_init'", nullptr); return 0; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sequence:init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sequence_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sequence_initWithTwoActions(lua_State* tolua_S) { int argc = 0; cocos2d::Sequence* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sequence",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sequence*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sequence_initWithTwoActions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::FiniteTimeAction* arg0; cocos2d::FiniteTimeAction* arg1; ok &= luaval_to_object<cocos2d::FiniteTimeAction>(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Sequence:initWithTwoActions"); ok &= luaval_to_object<cocos2d::FiniteTimeAction>(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.Sequence:initWithTwoActions"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sequence_initWithTwoActions'", nullptr); return 0; } bool ret = cobj->initWithTwoActions(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sequence:initWithTwoActions",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sequence_initWithTwoActions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sequence_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Sequence* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sequence_constructor'", nullptr); return 0; } cobj = new cocos2d::Sequence(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Sequence"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sequence:Sequence",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sequence_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Sequence_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Sequence)"); return 0; } int lua_register_cocos2dx_Sequence(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Sequence"); tolua_cclass(tolua_S,"Sequence","cc.Sequence","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Sequence"); tolua_function(tolua_S,"new",lua_cocos2dx_Sequence_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_Sequence_init); tolua_function(tolua_S,"initWithTwoActions",lua_cocos2dx_Sequence_initWithTwoActions); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Sequence).name(); g_luaType[typeName] = "cc.Sequence"; g_typeCast["Sequence"] = "cc.Sequence"; return 1; } int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) { int argc = 0; cocos2d::Repeat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Repeat_setInnerAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::FiniteTimeAction* arg0; ok &= luaval_to_object<cocos2d::FiniteTimeAction>(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Repeat:setInnerAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_setInnerAction'", nullptr); return 0; } cobj->setInnerAction(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:setInnerAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_setInnerAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Repeat_initWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::Repeat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Repeat_initWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::FiniteTimeAction* arg0; unsigned int arg1; ok &= luaval_to_object<cocos2d::FiniteTimeAction>(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Repeat:initWithAction"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Repeat:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_initWithAction'", nullptr); return 0; } bool ret = cobj->initWithAction(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:initWithAction",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_initWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) { int argc = 0; cocos2d::Repeat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Repeat_getInnerAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_getInnerAction'", nullptr); return 0; } cocos2d::FiniteTimeAction* ret = cobj->getInnerAction(); object_to_luaval<cocos2d::FiniteTimeAction>(tolua_S, "cc.FiniteTimeAction",(cocos2d::FiniteTimeAction*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:getInnerAction",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_getInnerAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Repeat_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::FiniteTimeAction* arg0; unsigned int arg1; ok &= luaval_to_object<cocos2d::FiniteTimeAction>(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Repeat:create"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Repeat:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_create'", nullptr); return 0; } cocos2d::Repeat* ret = cocos2d::Repeat::create(arg0, arg1); object_to_luaval<cocos2d::Repeat>(tolua_S, "cc.Repeat",(cocos2d::Repeat*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Repeat:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Repeat_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Repeat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_constructor'", nullptr); return 0; } cobj = new cocos2d::Repeat(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Repeat"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:Repeat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Repeat_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Repeat_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Repeat)"); return 0; } int lua_register_cocos2dx_Repeat(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Repeat"); tolua_cclass(tolua_S,"Repeat","cc.Repeat","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Repeat"); tolua_function(tolua_S,"new",lua_cocos2dx_Repeat_constructor); tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_Repeat_setInnerAction); tolua_function(tolua_S,"initWithAction",lua_cocos2dx_Repeat_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Repeat_getInnerAction); tolua_function(tolua_S,"create", lua_cocos2dx_Repeat_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Repeat).name(); g_luaType[typeName] = "cc.Repeat"; g_typeCast["Repeat"] = "cc.Repeat"; return 1; } int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) { int argc = 0; cocos2d::RepeatForever* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RepeatForever_setInnerAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.RepeatForever:setInnerAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_setInnerAction'", nullptr); return 0; } cobj->setInnerAction(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:setInnerAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_setInnerAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RepeatForever_initWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::RepeatForever* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RepeatForever_initWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.RepeatForever:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_initWithAction'", nullptr); return 0; } bool ret = cobj->initWithAction(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:initWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_initWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) { int argc = 0; cocos2d::RepeatForever* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RepeatForever_getInnerAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_getInnerAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->getInnerAction(); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:getInnerAction",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_getInnerAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RepeatForever_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.RepeatForever:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_create'", nullptr); return 0; } cocos2d::RepeatForever* ret = cocos2d::RepeatForever::create(arg0); object_to_luaval<cocos2d::RepeatForever>(tolua_S, "cc.RepeatForever",(cocos2d::RepeatForever*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.RepeatForever:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RepeatForever_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::RepeatForever* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_constructor'", nullptr); return 0; } cobj = new cocos2d::RepeatForever(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.RepeatForever"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:RepeatForever",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RepeatForever_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_RepeatForever_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RepeatForever)"); return 0; } int lua_register_cocos2dx_RepeatForever(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RepeatForever"); tolua_cclass(tolua_S,"RepeatForever","cc.RepeatForever","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"RepeatForever"); tolua_function(tolua_S,"new",lua_cocos2dx_RepeatForever_constructor); tolua_function(tolua_S,"setInnerAction",lua_cocos2dx_RepeatForever_setInnerAction); tolua_function(tolua_S,"initWithAction",lua_cocos2dx_RepeatForever_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_RepeatForever_getInnerAction); tolua_function(tolua_S,"create", lua_cocos2dx_RepeatForever_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RepeatForever).name(); g_luaType[typeName] = "cc.RepeatForever"; g_typeCast["RepeatForever"] = "cc.RepeatForever"; return 1; } int lua_cocos2dx_Spawn_init(lua_State* tolua_S) { int argc = 0; cocos2d::Spawn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Spawn",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Spawn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Spawn_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::FiniteTimeAction *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Spawn:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Spawn_init'", nullptr); return 0; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Spawn:init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Spawn_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Spawn_initWithTwoActions(lua_State* tolua_S) { int argc = 0; cocos2d::Spawn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Spawn",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Spawn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Spawn_initWithTwoActions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::FiniteTimeAction* arg0; cocos2d::FiniteTimeAction* arg1; ok &= luaval_to_object<cocos2d::FiniteTimeAction>(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Spawn:initWithTwoActions"); ok &= luaval_to_object<cocos2d::FiniteTimeAction>(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.Spawn:initWithTwoActions"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Spawn_initWithTwoActions'", nullptr); return 0; } bool ret = cobj->initWithTwoActions(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Spawn:initWithTwoActions",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Spawn_initWithTwoActions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Spawn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Spawn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Spawn_constructor'", nullptr); return 0; } cobj = new cocos2d::Spawn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Spawn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Spawn:Spawn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Spawn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Spawn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Spawn)"); return 0; } int lua_register_cocos2dx_Spawn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Spawn"); tolua_cclass(tolua_S,"Spawn","cc.Spawn","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Spawn"); tolua_function(tolua_S,"new",lua_cocos2dx_Spawn_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_Spawn_init); tolua_function(tolua_S,"initWithTwoActions",lua_cocos2dx_Spawn_initWithTwoActions); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Spawn).name(); g_luaType[typeName] = "cc.Spawn"; g_typeCast["Spawn"] = "cc.Spawn"; return 1; } int lua_cocos2dx_RotateTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::RotateTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RotateTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RotateTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RotateTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateTo:initWithDuration"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateTo:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateTo:initWithDuration"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateTo:initWithDuration"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RotateTo:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RotateTo:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RotateTo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateTo:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateTo:create"); if (!ok) { break; } cocos2d::RotateTo* ret = cocos2d::RotateTo::create(arg0, arg1); object_to_luaval<cocos2d::RotateTo>(tolua_S, "cc.RotateTo",(cocos2d::RotateTo*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateTo:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateTo:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RotateTo:create"); if (!ok) { break; } cocos2d::RotateTo* ret = cocos2d::RotateTo::create(arg0, arg1, arg2); object_to_luaval<cocos2d::RotateTo>(tolua_S, "cc.RotateTo",(cocos2d::RotateTo*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateTo:create"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateTo:create"); if (!ok) { break; } cocos2d::RotateTo* ret = cocos2d::RotateTo::create(arg0, arg1); object_to_luaval<cocos2d::RotateTo>(tolua_S, "cc.RotateTo",(cocos2d::RotateTo*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.RotateTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateTo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RotateTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::RotateTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RotateTo_constructor'", nullptr); return 0; } cobj = new cocos2d::RotateTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.RotateTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RotateTo:RotateTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_RotateTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RotateTo)"); return 0; } int lua_register_cocos2dx_RotateTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RotateTo"); tolua_cclass(tolua_S,"RotateTo","cc.RotateTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"RotateTo"); tolua_function(tolua_S,"new",lua_cocos2dx_RotateTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_RotateTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_RotateTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RotateTo).name(); g_luaType[typeName] = "cc.RotateTo"; g_typeCast["RotateTo"] = "cc.RotateTo"; return 1; } int lua_cocos2dx_RotateBy_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::RotateBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RotateBy",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RotateBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RotateBy_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:initWithDuration"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateBy:initWithDuration"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RotateBy:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:initWithDuration"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateBy:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:initWithDuration"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateBy:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RotateBy:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateBy_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RotateBy",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateBy:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RotateBy:create"); if (!ok) { break; } cocos2d::RotateBy* ret = cocos2d::RotateBy::create(arg0, arg1, arg2); object_to_luaval<cocos2d::RotateBy>(tolua_S, "cc.RotateBy",(cocos2d::RotateBy*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateBy:create"); if (!ok) { break; } cocos2d::RotateBy* ret = cocos2d::RotateBy::create(arg0, arg1); object_to_luaval<cocos2d::RotateBy>(tolua_S, "cc.RotateBy",(cocos2d::RotateBy*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:create"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateBy:create"); if (!ok) { break; } cocos2d::RotateBy* ret = cocos2d::RotateBy::create(arg0, arg1); object_to_luaval<cocos2d::RotateBy>(tolua_S, "cc.RotateBy",(cocos2d::RotateBy*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.RotateBy:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateBy_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RotateBy_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::RotateBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RotateBy_constructor'", nullptr); return 0; } cobj = new cocos2d::RotateBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.RotateBy"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RotateBy:RotateBy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RotateBy_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_RotateBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RotateBy)"); return 0; } int lua_register_cocos2dx_RotateBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RotateBy"); tolua_cclass(tolua_S,"RotateBy","cc.RotateBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"RotateBy"); tolua_function(tolua_S,"new",lua_cocos2dx_RotateBy_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_RotateBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_RotateBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RotateBy).name(); g_luaType[typeName] = "cc.RotateBy"; g_typeCast["RotateBy"] = "cc.RotateBy"; return 1; } int lua_cocos2dx_MoveBy_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::MoveBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MoveBy",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MoveBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MoveBy_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:initWithDuration"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveBy:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:initWithDuration"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveBy:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MoveBy:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveBy_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MoveBy",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:create"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveBy:create"); if (!ok) { break; } cocos2d::MoveBy* ret = cocos2d::MoveBy::create(arg0, arg1); object_to_luaval<cocos2d::MoveBy>(tolua_S, "cc.MoveBy",(cocos2d::MoveBy*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:create"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveBy:create"); if (!ok) { break; } cocos2d::MoveBy* ret = cocos2d::MoveBy::create(arg0, arg1); object_to_luaval<cocos2d::MoveBy>(tolua_S, "cc.MoveBy",(cocos2d::MoveBy*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.MoveBy:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveBy_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MoveBy_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MoveBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MoveBy_constructor'", nullptr); return 0; } cobj = new cocos2d::MoveBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MoveBy"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MoveBy:MoveBy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveBy_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MoveBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MoveBy)"); return 0; } int lua_register_cocos2dx_MoveBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MoveBy"); tolua_cclass(tolua_S,"MoveBy","cc.MoveBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"MoveBy"); tolua_function(tolua_S,"new",lua_cocos2dx_MoveBy_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_MoveBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_MoveBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MoveBy).name(); g_luaType[typeName] = "cc.MoveBy"; g_typeCast["MoveBy"] = "cc.MoveBy"; return 1; } int lua_cocos2dx_MoveTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::MoveTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MoveTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MoveTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MoveTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:initWithDuration"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveTo:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:initWithDuration"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveTo:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MoveTo:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MoveTo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:create"); if (!ok) { break; } cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveTo:create"); if (!ok) { break; } cocos2d::MoveTo* ret = cocos2d::MoveTo::create(arg0, arg1); object_to_luaval<cocos2d::MoveTo>(tolua_S, "cc.MoveTo",(cocos2d::MoveTo*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:create"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveTo:create"); if (!ok) { break; } cocos2d::MoveTo* ret = cocos2d::MoveTo::create(arg0, arg1); object_to_luaval<cocos2d::MoveTo>(tolua_S, "cc.MoveTo",(cocos2d::MoveTo*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.MoveTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveTo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MoveTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MoveTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MoveTo_constructor'", nullptr); return 0; } cobj = new cocos2d::MoveTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MoveTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MoveTo:MoveTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MoveTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MoveTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MoveTo)"); return 0; } int lua_register_cocos2dx_MoveTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MoveTo"); tolua_cclass(tolua_S,"MoveTo","cc.MoveTo","cc.MoveBy",nullptr); tolua_beginmodule(tolua_S,"MoveTo"); tolua_function(tolua_S,"new",lua_cocos2dx_MoveTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_MoveTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_MoveTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MoveTo).name(); g_luaType[typeName] = "cc.MoveTo"; g_typeCast["MoveTo"] = "cc.MoveTo"; return 1; } int lua_cocos2dx_SkewTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::SkewTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SkewTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SkewTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SkewTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; double arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SkewTo:initWithDuration"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.SkewTo:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.SkewTo:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewTo_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SkewTo:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SkewTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SkewTo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { double arg0; double arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SkewTo:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.SkewTo:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.SkewTo:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewTo_create'", nullptr); return 0; } cocos2d::SkewTo* ret = cocos2d::SkewTo::create(arg0, arg1, arg2); object_to_luaval<cocos2d::SkewTo>(tolua_S, "cc.SkewTo",(cocos2d::SkewTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SkewTo:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewTo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SkewTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::SkewTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewTo_constructor'", nullptr); return 0; } cobj = new cocos2d::SkewTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SkewTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SkewTo:SkewTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_SkewTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SkewTo)"); return 0; } int lua_register_cocos2dx_SkewTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SkewTo"); tolua_cclass(tolua_S,"SkewTo","cc.SkewTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"SkewTo"); tolua_function(tolua_S,"new",lua_cocos2dx_SkewTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SkewTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SkewTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SkewTo).name(); g_luaType[typeName] = "cc.SkewTo"; g_typeCast["SkewTo"] = "cc.SkewTo"; return 1; } int lua_cocos2dx_SkewBy_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::SkewBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SkewBy",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SkewBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SkewBy_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; double arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SkewBy:initWithDuration"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.SkewBy:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.SkewBy:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewBy_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SkewBy:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewBy_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SkewBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SkewBy",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { double arg0; double arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SkewBy:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.SkewBy:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.SkewBy:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewBy_create'", nullptr); return 0; } cocos2d::SkewBy* ret = cocos2d::SkewBy::create(arg0, arg1, arg2); object_to_luaval<cocos2d::SkewBy>(tolua_S, "cc.SkewBy",(cocos2d::SkewBy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SkewBy:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewBy_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SkewBy_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::SkewBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewBy_constructor'", nullptr); return 0; } cobj = new cocos2d::SkewBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SkewBy"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SkewBy:SkewBy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SkewBy_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_SkewBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SkewBy)"); return 0; } int lua_register_cocos2dx_SkewBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SkewBy"); tolua_cclass(tolua_S,"SkewBy","cc.SkewBy","cc.SkewTo",nullptr); tolua_beginmodule(tolua_S,"SkewBy"); tolua_function(tolua_S,"new",lua_cocos2dx_SkewBy_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SkewBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SkewBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SkewBy).name(); g_luaType[typeName] = "cc.SkewBy"; g_typeCast["SkewBy"] = "cc.SkewBy"; return 1; } int lua_cocos2dx_JumpBy_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::JumpBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpBy",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::JumpBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpBy_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Vec2 arg1; double arg2; int arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpBy:initWithDuration"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.JumpBy:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.JumpBy:initWithDuration"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.JumpBy:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpBy_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpBy:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpBy_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.JumpBy",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Vec2 arg1; double arg2; int arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpBy:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.JumpBy:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.JumpBy:create"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.JumpBy:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpBy_create'", nullptr); return 0; } cocos2d::JumpBy* ret = cocos2d::JumpBy::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::JumpBy>(tolua_S, "cc.JumpBy",(cocos2d::JumpBy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpBy:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpBy_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpBy_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::JumpBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpBy_constructor'", nullptr); return 0; } cobj = new cocos2d::JumpBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.JumpBy"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpBy:JumpBy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpBy_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_JumpBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (JumpBy)"); return 0; } int lua_register_cocos2dx_JumpBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpBy"); tolua_cclass(tolua_S,"JumpBy","cc.JumpBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"JumpBy"); tolua_function(tolua_S,"new",lua_cocos2dx_JumpBy_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_JumpBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_JumpBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpBy).name(); g_luaType[typeName] = "cc.JumpBy"; g_typeCast["JumpBy"] = "cc.JumpBy"; return 1; } int lua_cocos2dx_JumpTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::JumpTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::JumpTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Vec2 arg1; double arg2; int arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTo:initWithDuration"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.JumpTo:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.JumpTo:initWithDuration"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.JumpTo:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTo_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTo:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.JumpTo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Vec2 arg1; double arg2; int arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTo:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.JumpTo:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.JumpTo:create"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.JumpTo:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTo_create'", nullptr); return 0; } cocos2d::JumpTo* ret = cocos2d::JumpTo::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::JumpTo>(tolua_S, "cc.JumpTo",(cocos2d::JumpTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpTo:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::JumpTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTo_constructor'", nullptr); return 0; } cobj = new cocos2d::JumpTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.JumpTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTo:JumpTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_JumpTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (JumpTo)"); return 0; } int lua_register_cocos2dx_JumpTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpTo"); tolua_cclass(tolua_S,"JumpTo","cc.JumpTo","cc.JumpBy",nullptr); tolua_beginmodule(tolua_S,"JumpTo"); tolua_function(tolua_S,"new",lua_cocos2dx_JumpTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_JumpTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_JumpTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpTo).name(); g_luaType[typeName] = "cc.JumpTo"; g_typeCast["JumpTo"] = "cc.JumpTo"; return 1; } int lua_cocos2dx_BezierBy_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::BezierBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BezierBy",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::BezierBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BezierBy_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; cocos2d::_ccBezierConfig arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.BezierBy:initWithDuration"); #pragma warning NO CONVERSION TO NATIVE FOR _ccBezierConfig ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierBy_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BezierBy:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BezierBy_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_BezierBy_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::BezierBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierBy_constructor'", nullptr); return 0; } cobj = new cocos2d::BezierBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.BezierBy"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BezierBy:BezierBy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BezierBy_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_BezierBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BezierBy)"); return 0; } int lua_register_cocos2dx_BezierBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BezierBy"); tolua_cclass(tolua_S,"BezierBy","cc.BezierBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"BezierBy"); tolua_function(tolua_S,"new",lua_cocos2dx_BezierBy_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_BezierBy_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BezierBy).name(); g_luaType[typeName] = "cc.BezierBy"; g_typeCast["BezierBy"] = "cc.BezierBy"; return 1; } int lua_cocos2dx_BezierTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::BezierTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BezierTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::BezierTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BezierTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; cocos2d::_ccBezierConfig arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.BezierTo:initWithDuration"); #pragma warning NO CONVERSION TO NATIVE FOR _ccBezierConfig ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierTo_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BezierTo:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BezierTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_BezierTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::BezierTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierTo_constructor'", nullptr); return 0; } cobj = new cocos2d::BezierTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.BezierTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BezierTo:BezierTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BezierTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_BezierTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BezierTo)"); return 0; } int lua_register_cocos2dx_BezierTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BezierTo"); tolua_cclass(tolua_S,"BezierTo","cc.BezierTo","cc.BezierBy",nullptr); tolua_beginmodule(tolua_S,"BezierTo"); tolua_function(tolua_S,"new",lua_cocos2dx_BezierTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_BezierTo_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BezierTo).name(); g_luaType[typeName] = "cc.BezierTo"; g_typeCast["BezierTo"] = "cc.BezierTo"; return 1; } int lua_cocos2dx_ScaleTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ScaleTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ScaleTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ScaleTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ScaleTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleTo:initWithDuration"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:initWithDuration"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleTo:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleTo:initWithDuration"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleTo:initWithDuration"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:initWithDuration"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleTo:initWithDuration"); if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.ScaleTo:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScaleTo:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ScaleTo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleTo:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleTo:create"); if (!ok) { break; } cocos2d::ScaleTo* ret = cocos2d::ScaleTo::create(arg0, arg1, arg2); object_to_luaval<cocos2d::ScaleTo>(tolua_S, "cc.ScaleTo",(cocos2d::ScaleTo*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleTo:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:create"); if (!ok) { break; } cocos2d::ScaleTo* ret = cocos2d::ScaleTo::create(arg0, arg1); object_to_luaval<cocos2d::ScaleTo>(tolua_S, "cc.ScaleTo",(cocos2d::ScaleTo*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleTo:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleTo:create"); if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.ScaleTo:create"); if (!ok) { break; } cocos2d::ScaleTo* ret = cocos2d::ScaleTo::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::ScaleTo>(tolua_S, "cc.ScaleTo",(cocos2d::ScaleTo*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ScaleTo:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleTo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ScaleTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ScaleTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ScaleTo_constructor'", nullptr); return 0; } cobj = new cocos2d::ScaleTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ScaleTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScaleTo:ScaleTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ScaleTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ScaleTo)"); return 0; } int lua_register_cocos2dx_ScaleTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ScaleTo"); tolua_cclass(tolua_S,"ScaleTo","cc.ScaleTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ScaleTo"); tolua_function(tolua_S,"new",lua_cocos2dx_ScaleTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ScaleTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ScaleTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ScaleTo).name(); g_luaType[typeName] = "cc.ScaleTo"; g_typeCast["ScaleTo"] = "cc.ScaleTo"; return 1; } int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ScaleBy",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleBy:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleBy:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleBy:create"); if (!ok) { break; } cocos2d::ScaleBy* ret = cocos2d::ScaleBy::create(arg0, arg1, arg2); object_to_luaval<cocos2d::ScaleBy>(tolua_S, "cc.ScaleBy",(cocos2d::ScaleBy*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleBy:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleBy:create"); if (!ok) { break; } cocos2d::ScaleBy* ret = cocos2d::ScaleBy::create(arg0, arg1); object_to_luaval<cocos2d::ScaleBy>(tolua_S, "cc.ScaleBy",(cocos2d::ScaleBy*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ScaleBy:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleBy:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleBy:create"); if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.ScaleBy:create"); if (!ok) { break; } cocos2d::ScaleBy* ret = cocos2d::ScaleBy::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::ScaleBy>(tolua_S, "cc.ScaleBy",(cocos2d::ScaleBy*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ScaleBy:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleBy_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ScaleBy_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ScaleBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ScaleBy_constructor'", nullptr); return 0; } cobj = new cocos2d::ScaleBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ScaleBy"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ScaleBy:ScaleBy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ScaleBy_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ScaleBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ScaleBy)"); return 0; } int lua_register_cocos2dx_ScaleBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ScaleBy"); tolua_cclass(tolua_S,"ScaleBy","cc.ScaleBy","cc.ScaleTo",nullptr); tolua_beginmodule(tolua_S,"ScaleBy"); tolua_function(tolua_S,"new",lua_cocos2dx_ScaleBy_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_ScaleBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ScaleBy).name(); g_luaType[typeName] = "cc.ScaleBy"; g_typeCast["ScaleBy"] = "cc.ScaleBy"; return 1; } int lua_cocos2dx_Blink_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::Blink* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Blink",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Blink*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Blink_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; int arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Blink:initWithDuration"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Blink:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Blink_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Blink:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Blink_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Blink_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Blink",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; int arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Blink:create"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Blink:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Blink_create'", nullptr); return 0; } cocos2d::Blink* ret = cocos2d::Blink::create(arg0, arg1); object_to_luaval<cocos2d::Blink>(tolua_S, "cc.Blink",(cocos2d::Blink*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Blink:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Blink_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Blink_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Blink* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Blink_constructor'", nullptr); return 0; } cobj = new cocos2d::Blink(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Blink"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Blink:Blink",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Blink_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Blink_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Blink)"); return 0; } int lua_register_cocos2dx_Blink(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Blink"); tolua_cclass(tolua_S,"Blink","cc.Blink","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Blink"); tolua_function(tolua_S,"new",lua_cocos2dx_Blink_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Blink_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_Blink_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Blink).name(); g_luaType[typeName] = "cc.Blink"; g_typeCast["Blink"] = "cc.Blink"; return 1; } int lua_cocos2dx_FadeTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::FadeTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FadeTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; uint16_t arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeTo:initWithDuration"); ok &= luaval_to_uint16(tolua_S, 3,&arg1, "cc.FadeTo:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeTo_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeTo:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeTo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; uint16_t arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeTo:create"); ok &= luaval_to_uint16(tolua_S, 3,&arg1, "cc.FadeTo:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeTo_create'", nullptr); return 0; } cocos2d::FadeTo* ret = cocos2d::FadeTo::create(arg0, arg1); object_to_luaval<cocos2d::FadeTo>(tolua_S, "cc.FadeTo",(cocos2d::FadeTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeTo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FadeTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeTo_constructor'", nullptr); return 0; } cobj = new cocos2d::FadeTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeTo:FadeTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FadeTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeTo)"); return 0; } int lua_register_cocos2dx_FadeTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeTo"); tolua_cclass(tolua_S,"FadeTo","cc.FadeTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"FadeTo"); tolua_function(tolua_S,"new",lua_cocos2dx_FadeTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_FadeTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_FadeTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeTo).name(); g_luaType[typeName] = "cc.FadeTo"; g_typeCast["FadeTo"] = "cc.FadeTo"; return 1; } int lua_cocos2dx_FadeIn_setReverseAction(lua_State* tolua_S) { int argc = 0; cocos2d::FadeIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeIn",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FadeIn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeIn_setReverseAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::FadeTo* arg0; ok &= luaval_to_object<cocos2d::FadeTo>(tolua_S, 2, "cc.FadeTo",&arg0, "cc.FadeIn:setReverseAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeIn_setReverseAction'", nullptr); return 0; } cobj->setReverseAction(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeIn:setReverseAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeIn_setReverseAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeIn_create'", nullptr); return 0; } cocos2d::FadeIn* ret = cocos2d::FadeIn::create(arg0); object_to_luaval<cocos2d::FadeIn>(tolua_S, "cc.FadeIn",(cocos2d::FadeIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FadeIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeIn_constructor'", nullptr); return 0; } cobj = new cocos2d::FadeIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeIn:FadeIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FadeIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeIn)"); return 0; } int lua_register_cocos2dx_FadeIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeIn"); tolua_cclass(tolua_S,"FadeIn","cc.FadeIn","cc.FadeTo",nullptr); tolua_beginmodule(tolua_S,"FadeIn"); tolua_function(tolua_S,"new",lua_cocos2dx_FadeIn_constructor); tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeIn_setReverseAction); tolua_function(tolua_S,"create", lua_cocos2dx_FadeIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeIn).name(); g_luaType[typeName] = "cc.FadeIn"; g_typeCast["FadeIn"] = "cc.FadeIn"; return 1; } int lua_cocos2dx_FadeOut_setReverseAction(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOut",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FadeOut*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOut_setReverseAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::FadeTo* arg0; ok &= luaval_to_object<cocos2d::FadeTo>(tolua_S, 2, "cc.FadeTo",&arg0, "cc.FadeOut:setReverseAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOut_setReverseAction'", nullptr); return 0; } cobj->setReverseAction(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOut:setReverseAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOut_setReverseAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOut_create'", nullptr); return 0; } cocos2d::FadeOut* ret = cocos2d::FadeOut::create(arg0); object_to_luaval<cocos2d::FadeOut>(tolua_S, "cc.FadeOut",(cocos2d::FadeOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOut_constructor'", nullptr); return 0; } cobj = new cocos2d::FadeOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOut:FadeOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FadeOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOut)"); return 0; } int lua_register_cocos2dx_FadeOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOut"); tolua_cclass(tolua_S,"FadeOut","cc.FadeOut","cc.FadeTo",nullptr); tolua_beginmodule(tolua_S,"FadeOut"); tolua_function(tolua_S,"new",lua_cocos2dx_FadeOut_constructor); tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeOut_setReverseAction); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOut).name(); g_luaType[typeName] = "cc.FadeOut"; g_typeCast["FadeOut"] = "cc.FadeOut"; return 1; } int lua_cocos2dx_TintTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::TintTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TintTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TintTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TintTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; uint16_t arg1; uint16_t arg2; uint16_t arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TintTo:initWithDuration"); ok &= luaval_to_uint16(tolua_S, 3,&arg1, "cc.TintTo:initWithDuration"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "cc.TintTo:initWithDuration"); ok &= luaval_to_uint16(tolua_S, 5,&arg3, "cc.TintTo:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintTo_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TintTo:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TintTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TintTo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TintTo:create"); if (!ok) { break; } cocos2d::Color3B arg1; ok &= luaval_to_color3b(tolua_S, 3, &arg1, "cc.TintTo:create"); if (!ok) { break; } cocos2d::TintTo* ret = cocos2d::TintTo::create(arg0, arg1); object_to_luaval<cocos2d::TintTo>(tolua_S, "cc.TintTo",(cocos2d::TintTo*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TintTo:create"); if (!ok) { break; } uint16_t arg1; ok &= luaval_to_uint16(tolua_S, 3,&arg1, "cc.TintTo:create"); if (!ok) { break; } uint16_t arg2; ok &= luaval_to_uint16(tolua_S, 4,&arg2, "cc.TintTo:create"); if (!ok) { break; } uint16_t arg3; ok &= luaval_to_uint16(tolua_S, 5,&arg3, "cc.TintTo:create"); if (!ok) { break; } cocos2d::TintTo* ret = cocos2d::TintTo::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::TintTo>(tolua_S, "cc.TintTo",(cocos2d::TintTo*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TintTo:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintTo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TintTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TintTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintTo_constructor'", nullptr); return 0; } cobj = new cocos2d::TintTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TintTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TintTo:TintTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TintTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TintTo)"); return 0; } int lua_register_cocos2dx_TintTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TintTo"); tolua_cclass(tolua_S,"TintTo","cc.TintTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"TintTo"); tolua_function(tolua_S,"new",lua_cocos2dx_TintTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TintTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TintTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TintTo).name(); g_luaType[typeName] = "cc.TintTo"; g_typeCast["TintTo"] = "cc.TintTo"; return 1; } int lua_cocos2dx_TintBy_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::TintBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TintBy",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TintBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TintBy_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; int32_t arg1; int32_t arg2; int32_t arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TintBy:initWithDuration"); ok &= luaval_to_int32(tolua_S, 3,&arg1, "cc.TintBy:initWithDuration"); ok &= luaval_to_int32(tolua_S, 4,&arg2, "cc.TintBy:initWithDuration"); ok &= luaval_to_int32(tolua_S, 5,&arg3, "cc.TintBy:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintBy_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TintBy:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintBy_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TintBy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TintBy",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; int32_t arg1; int32_t arg2; int32_t arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TintBy:create"); ok &= luaval_to_int32(tolua_S, 3,&arg1, "cc.TintBy:create"); ok &= luaval_to_int32(tolua_S, 4,&arg2, "cc.TintBy:create"); ok &= luaval_to_int32(tolua_S, 5,&arg3, "cc.TintBy:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintBy_create'", nullptr); return 0; } cocos2d::TintBy* ret = cocos2d::TintBy::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::TintBy>(tolua_S, "cc.TintBy",(cocos2d::TintBy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TintBy:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintBy_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TintBy_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TintBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintBy_constructor'", nullptr); return 0; } cobj = new cocos2d::TintBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TintBy"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TintBy:TintBy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TintBy_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TintBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TintBy)"); return 0; } int lua_register_cocos2dx_TintBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TintBy"); tolua_cclass(tolua_S,"TintBy","cc.TintBy","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"TintBy"); tolua_function(tolua_S,"new",lua_cocos2dx_TintBy_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TintBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TintBy_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TintBy).name(); g_luaType[typeName] = "cc.TintBy"; g_typeCast["TintBy"] = "cc.TintBy"; return 1; } int lua_cocos2dx_DelayTime_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.DelayTime",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.DelayTime:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DelayTime_create'", nullptr); return 0; } cocos2d::DelayTime* ret = cocos2d::DelayTime::create(arg0); object_to_luaval<cocos2d::DelayTime>(tolua_S, "cc.DelayTime",(cocos2d::DelayTime*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DelayTime:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DelayTime_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DelayTime_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::DelayTime* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DelayTime_constructor'", nullptr); return 0; } cobj = new cocos2d::DelayTime(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.DelayTime"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DelayTime:DelayTime",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DelayTime_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_DelayTime_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (DelayTime)"); return 0; } int lua_register_cocos2dx_DelayTime(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DelayTime"); tolua_cclass(tolua_S,"DelayTime","cc.DelayTime","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"DelayTime"); tolua_function(tolua_S,"new",lua_cocos2dx_DelayTime_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_DelayTime_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DelayTime).name(); g_luaType[typeName] = "cc.DelayTime"; g_typeCast["DelayTime"] = "cc.DelayTime"; return 1; } int lua_cocos2dx_Animate_initWithAnimation(lua_State* tolua_S) { int argc = 0; cocos2d::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animate_initWithAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Animation* arg0; ok &= luaval_to_object<cocos2d::Animation>(tolua_S, 2, "cc.Animation",&arg0, "cc.Animate:initWithAnimation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_initWithAnimation'", nullptr); return 0; } bool ret = cobj->initWithAnimation(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:initWithAnimation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_initWithAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) { int argc = 0; cocos2d::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animate_getAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { const cocos2d::Animation* ret = cobj->getAnimation(); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { cocos2d::Animation* ret = cobj->getAnimation(); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:getAnimation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_getAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animate_getCurrentFrameIndex(lua_State* tolua_S) { int argc = 0; cocos2d::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animate_getCurrentFrameIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_getCurrentFrameIndex'", nullptr); return 0; } int ret = cobj->getCurrentFrameIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:getCurrentFrameIndex",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_getCurrentFrameIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) { int argc = 0; cocos2d::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Animate_setAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Animation* arg0; ok &= luaval_to_object<cocos2d::Animation>(tolua_S, 2, "cc.Animation",&arg0, "cc.Animate:setAnimation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_setAnimation'", nullptr); return 0; } cobj->setAnimation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:setAnimation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_setAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animate_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Animation* arg0; ok &= luaval_to_object<cocos2d::Animation>(tolua_S, 2, "cc.Animation",&arg0, "cc.Animate:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_create'", nullptr); return 0; } cocos2d::Animate* ret = cocos2d::Animate::create(arg0); object_to_luaval<cocos2d::Animate>(tolua_S, "cc.Animate",(cocos2d::Animate*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animate:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Animate_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_constructor'", nullptr); return 0; } cobj = new cocos2d::Animate(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Animate"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animate:Animate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Animate_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Animate_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Animate)"); return 0; } int lua_register_cocos2dx_Animate(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Animate"); tolua_cclass(tolua_S,"Animate","cc.Animate","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"Animate"); tolua_function(tolua_S,"new",lua_cocos2dx_Animate_constructor); tolua_function(tolua_S,"initWithAnimation",lua_cocos2dx_Animate_initWithAnimation); tolua_function(tolua_S,"getAnimation",lua_cocos2dx_Animate_getAnimation); tolua_function(tolua_S,"getCurrentFrameIndex",lua_cocos2dx_Animate_getCurrentFrameIndex); tolua_function(tolua_S,"setAnimation",lua_cocos2dx_Animate_setAnimation); tolua_function(tolua_S,"create", lua_cocos2dx_Animate_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Animate).name(); g_luaType[typeName] = "cc.Animate"; g_typeCast["Animate"] = "cc.Animate"; return 1; } int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) { int argc = 0; cocos2d::TargetedAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TargetedAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TargetedAction_getForcedTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { const cocos2d::Node* ret = cobj->getForcedTarget(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { cocos2d::Node* ret = cobj->getForcedTarget(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:getForcedTarget",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_getForcedTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TargetedAction_initWithTarget(lua_State* tolua_S) { int argc = 0; cocos2d::TargetedAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TargetedAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TargetedAction_initWithTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Node* arg0; cocos2d::FiniteTimeAction* arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.TargetedAction:initWithTarget"); ok &= luaval_to_object<cocos2d::FiniteTimeAction>(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.TargetedAction:initWithTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_initWithTarget'", nullptr); return 0; } bool ret = cobj->initWithTarget(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:initWithTarget",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_initWithTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) { int argc = 0; cocos2d::TargetedAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TargetedAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TargetedAction_setForcedTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.TargetedAction:setForcedTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_setForcedTarget'", nullptr); return 0; } cobj->setForcedTarget(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:setForcedTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_setForcedTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TargetedAction_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::Node* arg0; cocos2d::FiniteTimeAction* arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.TargetedAction:create"); ok &= luaval_to_object<cocos2d::FiniteTimeAction>(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.TargetedAction:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_create'", nullptr); return 0; } cocos2d::TargetedAction* ret = cocos2d::TargetedAction::create(arg0, arg1); object_to_luaval<cocos2d::TargetedAction>(tolua_S, "cc.TargetedAction",(cocos2d::TargetedAction*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TargetedAction:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TargetedAction_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TargetedAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_constructor'", nullptr); return 0; } cobj = new cocos2d::TargetedAction(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TargetedAction"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TargetedAction:TargetedAction",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TargetedAction_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TargetedAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TargetedAction)"); return 0; } int lua_register_cocos2dx_TargetedAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TargetedAction"); tolua_cclass(tolua_S,"TargetedAction","cc.TargetedAction","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"TargetedAction"); tolua_function(tolua_S,"new",lua_cocos2dx_TargetedAction_constructor); tolua_function(tolua_S,"getForcedTarget",lua_cocos2dx_TargetedAction_getForcedTarget); tolua_function(tolua_S,"initWithTarget",lua_cocos2dx_TargetedAction_initWithTarget); tolua_function(tolua_S,"setForcedTarget",lua_cocos2dx_TargetedAction_setForcedTarget); tolua_function(tolua_S,"create", lua_cocos2dx_TargetedAction_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TargetedAction).name(); g_luaType[typeName] = "cc.TargetedAction"; g_typeCast["TargetedAction"] = "cc.TargetedAction"; return 1; } int lua_cocos2dx_ActionFloat_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ActionFloat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionFloat",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionFloat*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionFloat_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; double arg1; double arg2; std::function<void (float)> arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionFloat:initWithDuration"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ActionFloat:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ActionFloat:initWithDuration"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionFloat_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionFloat:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionFloat_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionFloat_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ActionFloat",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; double arg1; double arg2; std::function<void (float)> arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionFloat:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ActionFloat:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ActionFloat:create"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionFloat_create'", nullptr); return 0; } cocos2d::ActionFloat* ret = cocos2d::ActionFloat::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::ActionFloat>(tolua_S, "cc.ActionFloat",(cocos2d::ActionFloat*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ActionFloat:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionFloat_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionFloat_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ActionFloat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionFloat_constructor'", nullptr); return 0; } cobj = new cocos2d::ActionFloat(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ActionFloat"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionFloat:ActionFloat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionFloat_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ActionFloat_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionFloat)"); return 0; } int lua_register_cocos2dx_ActionFloat(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionFloat"); tolua_cclass(tolua_S,"ActionFloat","cc.ActionFloat","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionFloat"); tolua_function(tolua_S,"new",lua_cocos2dx_ActionFloat_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ActionFloat_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ActionFloat_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionFloat).name(); g_luaType[typeName] = "cc.ActionFloat"; g_typeCast["ActionFloat"] = "cc.ActionFloat"; return 1; } int lua_cocos2dx_Properties_getVariable(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getVariable'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getVariable"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getVariable'", nullptr); return 0; } const char* ret = cobj->getVariable(arg0); tolua_pushstring(tolua_S,(const char*)ret); return 1; } if (argc == 2) { const char* arg0; const char* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getVariable"); arg0 = arg0_tmp.c_str(); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.Properties:getVariable"); arg1 = arg1_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getVariable'", nullptr); return 0; } const char* ret = cobj->getVariable(arg0, arg1); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getVariable",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getVariable'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getString(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getString'", nullptr); return 0; } const char* ret = cobj->getString(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getString"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getString'", nullptr); return 0; } const char* ret = cobj->getString(arg0); tolua_pushstring(tolua_S,(const char*)ret); return 1; } if (argc == 2) { const char* arg0; const char* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getString"); arg0 = arg0_tmp.c_str(); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.Properties:getString"); arg1 = arg1_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getString'", nullptr); return 0; } const char* ret = cobj->getString(arg0, arg1); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getString",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getLong(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getLong'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getLong'", nullptr); return 0; } long ret = cobj->getLong(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getLong"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getLong'", nullptr); return 0; } long ret = cobj->getLong(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getLong",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getLong'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getNamespace(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getNamespace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { const char* ret = cobj->getNamespace(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getNamespace"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } cocos2d::Properties* ret = cobj->getNamespace(arg0); object_to_luaval<cocos2d::Properties>(tolua_S, "cc.Properties",(cocos2d::Properties*)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getNamespace"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Properties:getNamespace"); if (!ok) { break; } cocos2d::Properties* ret = cobj->getNamespace(arg0, arg1); object_to_luaval<cocos2d::Properties>(tolua_S, "cc.Properties",(cocos2d::Properties*)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getNamespace"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Properties:getNamespace"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Properties:getNamespace"); if (!ok) { break; } cocos2d::Properties* ret = cobj->getNamespace(arg0, arg1, arg2); object_to_luaval<cocos2d::Properties>(tolua_S, "cc.Properties",(cocos2d::Properties*)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getNamespace",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getNamespace'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getPath(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getPath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; std::string* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getPath"); arg0 = arg0_tmp.c_str(); #pragma warning NO CONVERSION TO NATIVE FOR std::string* ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getPath'", nullptr); return 0; } bool ret = cobj->getPath(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getPath",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getPath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getMat4(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getMat4'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; cocos2d::Mat4* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getMat4"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_object<cocos2d::Mat4>(tolua_S, 3, "cc.Mat4",&arg1, "cc.Properties:getMat4"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getMat4'", nullptr); return 0; } bool ret = cobj->getMat4(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getMat4",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getMat4'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_exists(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_exists'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:exists"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_exists'", nullptr); return 0; } bool ret = cobj->exists(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:exists",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_exists'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_setString(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_setString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; const char* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:setString"); arg0 = arg0_tmp.c_str(); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.Properties:setString"); arg1 = arg1_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_setString'", nullptr); return 0; } bool ret = cobj->setString(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:setString",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_setString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getId(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getId'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getId'", nullptr); return 0; } const char* ret = cobj->getId(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getId",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getId'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_rewind(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_rewind'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_rewind'", nullptr); return 0; } cobj->rewind(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:rewind",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_rewind'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_setVariable(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_setVariable'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; const char* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:setVariable"); arg0 = arg0_tmp.c_str(); std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.Properties:setVariable"); arg1 = arg1_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_setVariable'", nullptr); return 0; } cobj->setVariable(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:setVariable",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_setVariable'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getBool(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getBool'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getBool'", nullptr); return 0; } bool ret = cobj->getBool(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getBool"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getBool'", nullptr); return 0; } bool ret = cobj->getBool(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { const char* arg0; bool arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getBool"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Properties:getBool"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getBool'", nullptr); return 0; } bool ret = cobj->getBool(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getBool",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getBool'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getColor(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getColor"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } cocos2d::Vec4* arg1; ok &= luaval_to_object<cocos2d::Vec4>(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:getColor"); if (!ok) { break; } bool ret = cobj->getColor(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getColor"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } cocos2d::Vec3* arg1; ok &= luaval_to_object<cocos2d::Vec3>(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:getColor"); if (!ok) { break; } bool ret = cobj->getColor(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getColor",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getType(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getType'", nullptr); return 0; } int ret = (int)cobj->getType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getType"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getType'", nullptr); return 0; } int ret = (int)cobj->getType(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getNextNamespace(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getNextNamespace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getNextNamespace'", nullptr); return 0; } cocos2d::Properties* ret = cobj->getNextNamespace(); object_to_luaval<cocos2d::Properties>(tolua_S, "cc.Properties",(cocos2d::Properties*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getNextNamespace",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getNextNamespace'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getInt(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getInt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getInt'", nullptr); return 0; } int ret = cobj->getInt(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getInt"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getInt'", nullptr); return 0; } int ret = cobj->getInt(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getInt",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getInt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getVec3(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getVec3'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; cocos2d::Vec3* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getVec3"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_object<cocos2d::Vec3>(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:getVec3"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getVec3'", nullptr); return 0; } bool ret = cobj->getVec3(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getVec3",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getVec3'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getVec2(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getVec2'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; cocos2d::Vec2* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getVec2"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_object<cocos2d::Vec2>(tolua_S, 3, "cc.Vec2",&arg1, "cc.Properties:getVec2"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getVec2'", nullptr); return 0; } bool ret = cobj->getVec2(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getVec2",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getVec2'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getVec4(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getVec4'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; cocos2d::Vec4* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getVec4"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_object<cocos2d::Vec4>(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:getVec4"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getVec4'", nullptr); return 0; } bool ret = cobj->getVec4(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getVec4",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getVec4'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getNextProperty(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getNextProperty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getNextProperty'", nullptr); return 0; } const char* ret = cobj->getNextProperty(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getNextProperty",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getNextProperty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getFloat(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getFloat'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getFloat'", nullptr); return 0; } double ret = cobj->getFloat(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getFloat"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getFloat'", nullptr); return 0; } double ret = cobj->getFloat(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getFloat",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getFloat'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_getQuaternionFromAxisAngle(lua_State* tolua_S) { int argc = 0; cocos2d::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Properties_getQuaternionFromAxisAngle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; cocos2d::Quaternion* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getQuaternionFromAxisAngle"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_object<cocos2d::Quaternion>(tolua_S, 3, "cc.Quaternion",&arg1, "cc.Properties:getQuaternionFromAxisAngle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getQuaternionFromAxisAngle'", nullptr); return 0; } bool ret = cobj->getQuaternionFromAxisAngle(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getQuaternionFromAxisAngle",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_getQuaternionFromAxisAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_parseColor(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseColor"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } cocos2d::Vec4* arg1; ok &= luaval_to_object<cocos2d::Vec4>(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:parseColor"); if (!ok) { break; } bool ret = cocos2d::Properties::parseColor(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseColor"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } cocos2d::Vec3* arg1; ok &= luaval_to_object<cocos2d::Vec3>(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:parseColor"); if (!ok) { break; } bool ret = cocos2d::Properties::parseColor(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Properties:parseColor",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_parseColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_parseVec3(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { const char* arg0; cocos2d::Vec3* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseVec3"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_object<cocos2d::Vec3>(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:parseVec3"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_parseVec3'", nullptr); return 0; } bool ret = cocos2d::Properties::parseVec3(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Properties:parseVec3",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_parseVec3'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_parseAxisAngle(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { const char* arg0; cocos2d::Quaternion* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseAxisAngle"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_object<cocos2d::Quaternion>(tolua_S, 3, "cc.Quaternion",&arg1, "cc.Properties:parseAxisAngle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_parseAxisAngle'", nullptr); return 0; } bool ret = cocos2d::Properties::parseAxisAngle(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Properties:parseAxisAngle",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_parseAxisAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_parseVec2(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { const char* arg0; cocos2d::Vec2* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseVec2"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_object<cocos2d::Vec2>(tolua_S, 3, "cc.Vec2",&arg1, "cc.Properties:parseVec2"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_parseVec2'", nullptr); return 0; } bool ret = cocos2d::Properties::parseVec2(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Properties:parseVec2",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_parseVec2'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Properties_parseVec4(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { const char* arg0; cocos2d::Vec4* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseVec4"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_object<cocos2d::Vec4>(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:parseVec4"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_parseVec4'", nullptr); return 0; } bool ret = cocos2d::Properties::parseVec4(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Properties:parseVec4",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Properties_parseVec4'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Properties_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Properties)"); return 0; } int lua_register_cocos2dx_Properties(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Properties"); tolua_cclass(tolua_S,"Properties","cc.Properties","",nullptr); tolua_beginmodule(tolua_S,"Properties"); tolua_function(tolua_S,"getVariable",lua_cocos2dx_Properties_getVariable); tolua_function(tolua_S,"getString",lua_cocos2dx_Properties_getString); tolua_function(tolua_S,"getLong",lua_cocos2dx_Properties_getLong); tolua_function(tolua_S,"getNamespace",lua_cocos2dx_Properties_getNamespace); tolua_function(tolua_S,"getPath",lua_cocos2dx_Properties_getPath); tolua_function(tolua_S,"getMat4",lua_cocos2dx_Properties_getMat4); tolua_function(tolua_S,"exists",lua_cocos2dx_Properties_exists); tolua_function(tolua_S,"setString",lua_cocos2dx_Properties_setString); tolua_function(tolua_S,"getId",lua_cocos2dx_Properties_getId); tolua_function(tolua_S,"rewind",lua_cocos2dx_Properties_rewind); tolua_function(tolua_S,"setVariable",lua_cocos2dx_Properties_setVariable); tolua_function(tolua_S,"getBool",lua_cocos2dx_Properties_getBool); tolua_function(tolua_S,"getColor",lua_cocos2dx_Properties_getColor); tolua_function(tolua_S,"getType",lua_cocos2dx_Properties_getType); tolua_function(tolua_S,"getNextNamespace",lua_cocos2dx_Properties_getNextNamespace); tolua_function(tolua_S,"getInt",lua_cocos2dx_Properties_getInt); tolua_function(tolua_S,"getVec3",lua_cocos2dx_Properties_getVec3); tolua_function(tolua_S,"getVec2",lua_cocos2dx_Properties_getVec2); tolua_function(tolua_S,"getVec4",lua_cocos2dx_Properties_getVec4); tolua_function(tolua_S,"getNextProperty",lua_cocos2dx_Properties_getNextProperty); tolua_function(tolua_S,"getFloat",lua_cocos2dx_Properties_getFloat); tolua_function(tolua_S,"getQuaternionFromAxisAngle",lua_cocos2dx_Properties_getQuaternionFromAxisAngle); tolua_function(tolua_S,"parseColor", lua_cocos2dx_Properties_parseColor); tolua_function(tolua_S,"parseVec3", lua_cocos2dx_Properties_parseVec3); tolua_function(tolua_S,"parseAxisAngle", lua_cocos2dx_Properties_parseAxisAngle); tolua_function(tolua_S,"parseVec2", lua_cocos2dx_Properties_parseVec2); tolua_function(tolua_S,"parseVec4", lua_cocos2dx_Properties_parseVec4); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Properties).name(); g_luaType[typeName] = "cc.Properties"; g_typeCast["Properties"] = "cc.Properties"; return 1; } int lua_cocos2dx_UserDefault_setIntegerForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setIntegerForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; int arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setIntegerForKey"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.UserDefault:setIntegerForKey"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_setIntegerForKey'", nullptr); return 0; } cobj->setIntegerForKey(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setIntegerForKey",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setIntegerForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_deleteValueForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_deleteValueForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:deleteValueForKey"); arg0 = arg0_tmp.c_str(); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_deleteValueForKey'", nullptr); return 0; } cobj->deleteValueForKey(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:deleteValueForKey",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_deleteValueForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_getFloatForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:getFloatForKey"); if (!ok) { break; } double ret = cobj->getFloatForKey(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getFloatForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } double ret = cobj->getFloatForKey(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getFloatForKey",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getFloatForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_getBoolForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.UserDefault:getBoolForKey"); if (!ok) { break; } bool ret = cobj->getBoolForKey(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getBoolForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } bool ret = cobj->getBoolForKey(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getBoolForKey",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getBoolForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setDoubleForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; double arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setDoubleForKey"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:setDoubleForKey"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_setDoubleForKey'", nullptr); return 0; } cobj->setDoubleForKey(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setDoubleForKey",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setDoubleForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setFloatForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; double arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setFloatForKey"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:setFloatForKey"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_setFloatForKey'", nullptr); return 0; } cobj->setFloatForKey(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setFloatForKey",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setFloatForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_getStringForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.UserDefault:getStringForKey"); if (!ok) { break; } std::string ret = cobj->getStringForKey(arg0, arg1); tolua_pushcppstring(tolua_S,ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getStringForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } std::string ret = cobj->getStringForKey(arg0); tolua_pushcppstring(tolua_S,ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getStringForKey",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getStringForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setStringForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; std::string arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setStringForKey"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.UserDefault:setStringForKey"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_setStringForKey'", nullptr); return 0; } cobj->setStringForKey(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setStringForKey",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setStringForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_flush'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_flush'", nullptr); return 0; } cobj->flush(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:flush",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_flush'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_getIntegerForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.UserDefault:getIntegerForKey"); if (!ok) { break; } int ret = cobj->getIntegerForKey(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getIntegerForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } int ret = cobj->getIntegerForKey(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getIntegerForKey",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getIntegerForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_getDoubleForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.UserDefault:getDoubleForKey"); if (!ok) { break; } double ret = cobj->getDoubleForKey(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:getDoubleForKey"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } double ret = cobj->getDoubleForKey(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:getDoubleForKey",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getDoubleForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_setBoolForKey(lua_State* tolua_S) { int argc = 0; cocos2d::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_UserDefault_setBoolForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; bool arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.UserDefault:setBoolForKey"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.UserDefault:setBoolForKey"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_setBoolForKey'", nullptr); return 0; } cobj->setBoolForKey(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.UserDefault:setBoolForKey",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_setBoolForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_destroyInstance'", nullptr); return 0; } cocos2d::UserDefault::destroyInstance(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.UserDefault:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_getXMLFilePath(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_getXMLFilePath'", nullptr); return 0; } const std::string& ret = cocos2d::UserDefault::getXMLFilePath(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.UserDefault:getXMLFilePath",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_getXMLFilePath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_UserDefault_isXMLFileExist(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_isXMLFileExist'", nullptr); return 0; } bool ret = cocos2d::UserDefault::isXMLFileExist(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.UserDefault:isXMLFileExist",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_UserDefault_isXMLFileExist'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_UserDefault_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (UserDefault)"); return 0; } int lua_register_cocos2dx_UserDefault(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.UserDefault"); tolua_cclass(tolua_S,"UserDefault","cc.UserDefault","",nullptr); tolua_beginmodule(tolua_S,"UserDefault"); tolua_function(tolua_S,"setIntegerForKey",lua_cocos2dx_UserDefault_setIntegerForKey); tolua_function(tolua_S,"deleteValueForKey",lua_cocos2dx_UserDefault_deleteValueForKey); tolua_function(tolua_S,"getFloatForKey",lua_cocos2dx_UserDefault_getFloatForKey); tolua_function(tolua_S,"getBoolForKey",lua_cocos2dx_UserDefault_getBoolForKey); tolua_function(tolua_S,"setDoubleForKey",lua_cocos2dx_UserDefault_setDoubleForKey); tolua_function(tolua_S,"setFloatForKey",lua_cocos2dx_UserDefault_setFloatForKey); tolua_function(tolua_S,"getStringForKey",lua_cocos2dx_UserDefault_getStringForKey); tolua_function(tolua_S,"setStringForKey",lua_cocos2dx_UserDefault_setStringForKey); tolua_function(tolua_S,"flush",lua_cocos2dx_UserDefault_flush); tolua_function(tolua_S,"getIntegerForKey",lua_cocos2dx_UserDefault_getIntegerForKey); tolua_function(tolua_S,"getDoubleForKey",lua_cocos2dx_UserDefault_getDoubleForKey); tolua_function(tolua_S,"setBoolForKey",lua_cocos2dx_UserDefault_setBoolForKey); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_UserDefault_destroyInstance); tolua_function(tolua_S,"getXMLFilePath", lua_cocos2dx_UserDefault_getXMLFilePath); tolua_function(tolua_S,"isXMLFileExist", lua_cocos2dx_UserDefault_isXMLFileExist); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::UserDefault).name(); g_luaType[typeName] = "cc.UserDefault"; g_typeCast["UserDefault"] = "cc.UserDefault"; return 1; } int lua_cocos2dx_FileUtils_fullPathForFilename(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_fullPathForFilename'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:fullPathForFilename"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_fullPathForFilename'", nullptr); return 0; } std::string ret = cobj->fullPathForFilename(arg0); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:fullPathForFilename",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_fullPathForFilename'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getStringFromFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getStringFromFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getStringFromFile'", nullptr); return 0; } std::string ret = cobj->getStringFromFile(arg0); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getStringFromFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getStringFromFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_setFilenameLookupDictionary(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setFilenameLookupDictionary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:setFilenameLookupDictionary"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_setFilenameLookupDictionary'", nullptr); return 0; } cobj->setFilenameLookupDictionary(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setFilenameLookupDictionary",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setFilenameLookupDictionary'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_removeFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:removeFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_removeFile'", nullptr); return 0; } bool ret = cobj->removeFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:removeFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_removeFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isAbsolutePath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:isAbsolutePath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_isAbsolutePath'", nullptr); return 0; } bool ret = cobj->isAbsolutePath(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isAbsolutePath",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isAbsolutePath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_renameFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:renameFile"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:renameFile"); if (!ok) { break; } bool ret = cobj->renameFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:renameFile"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:renameFile"); if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.FileUtils:renameFile"); if (!ok) { break; } bool ret = cobj->renameFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:renameFile",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_renameFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:loadFilenameLookupDictionaryFromFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile'", nullptr); return 0; } cobj->loadFilenameLookupDictionaryFromFile(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:loadFilenameLookupDictionaryFromFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isPopupNotify'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_isPopupNotify'", nullptr); return 0; } bool ret = cobj->isPopupNotify(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isPopupNotify",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isPopupNotify'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getValueVectorFromFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getValueVectorFromFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getValueVectorFromFile'", nullptr); return 0; } cocos2d::ValueVector ret = cobj->getValueVectorFromFile(arg0); ccvaluevector_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getValueVectorFromFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getValueVectorFromFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getSearchPaths'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getSearchPaths'", nullptr); return 0; } const std::vector<std::string>& ret = cobj->getSearchPaths(); ccvector_std_string_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getSearchPaths",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getSearchPaths'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_writeToFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::ValueMap arg0; std::string arg1; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:writeToFile"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:writeToFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_writeToFile'", nullptr); return 0; } bool ret = cobj->writeToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:writeToFile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_writeToFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getValueMapFromFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getValueMapFromFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getValueMapFromFile'", nullptr); return 0; } cocos2d::ValueMap ret = cobj->getValueMapFromFile(arg0); ccvaluemap_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getValueMapFromFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getValueMapFromFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getFileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getFileSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getFileSize'", nullptr); return 0; } long ret = cobj->getFileSize(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getFileSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getFileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getValueMapFromData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { const char* arg0; int arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.FileUtils:getValueMapFromData"); arg0 = arg0_tmp.c_str(); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.FileUtils:getValueMapFromData"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getValueMapFromData'", nullptr); return 0; } cocos2d::ValueMap ret = cobj->getValueMapFromData(arg0, arg1); ccvaluemap_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getValueMapFromData",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getValueMapFromData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_removeDirectory'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:removeDirectory"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_removeDirectory'", nullptr); return 0; } bool ret = cobj->removeDirectory(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:removeDirectory",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_removeDirectory'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setSearchPaths'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::vector<std::string> arg0; ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0, "cc.FileUtils:setSearchPaths"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_setSearchPaths'", nullptr); return 0; } cobj->setSearchPaths(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setSearchPaths",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setSearchPaths'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_writeStringToFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_writeStringToFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:writeStringToFile"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:writeStringToFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_writeStringToFile'", nullptr); return 0; } bool ret = cobj->writeStringToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:writeStringToFile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_writeStringToFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setSearchResolutionsOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::vector<std::string> arg0; ok &= luaval_to_std_vector_string(tolua_S, 2, &arg0, "cc.FileUtils:setSearchResolutionsOrder"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_setSearchResolutionsOrder'", nullptr); return 0; } cobj->setSearchResolutionsOrder(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setSearchResolutionsOrder",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setSearchResolutionsOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_addSearchResolutionsOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchResolutionsOrder"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_addSearchResolutionsOrder'", nullptr); return 0; } cobj->addSearchResolutionsOrder(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string arg0; bool arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchResolutionsOrder"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.FileUtils:addSearchResolutionsOrder"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_addSearchResolutionsOrder'", nullptr); return 0; } cobj->addSearchResolutionsOrder(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:addSearchResolutionsOrder",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_addSearchResolutionsOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_addSearchPath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchPath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_addSearchPath'", nullptr); return 0; } cobj->addSearchPath(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string arg0; bool arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:addSearchPath"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.FileUtils:addSearchPath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_addSearchPath'", nullptr); return 0; } cobj->addSearchPath(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:addSearchPath",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_addSearchPath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_writeValueVectorToFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_writeValueVectorToFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::ValueVector arg0; std::string arg1; ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "cc.FileUtils:writeValueVectorToFile"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:writeValueVectorToFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_writeValueVectorToFile'", nullptr); return 0; } bool ret = cobj->writeValueVectorToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:writeValueVectorToFile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_writeValueVectorToFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isFileExist'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:isFileExist"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_isFileExist'", nullptr); return 0; } bool ret = cobj->isFileExist(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isFileExist",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isFileExist'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_purgeCachedEntries'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_purgeCachedEntries'", nullptr); return 0; } cobj->purgeCachedEntries(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:purgeCachedEntries",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_purgeCachedEntries'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_fullPathFromRelativeFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:fullPathFromRelativeFile"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:fullPathFromRelativeFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_fullPathFromRelativeFile'", nullptr); return 0; } std::string ret = cobj->fullPathFromRelativeFile(arg0, arg1); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:fullPathFromRelativeFile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_fullPathFromRelativeFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getSuitableFOpen(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getSuitableFOpen'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getSuitableFOpen"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getSuitableFOpen'", nullptr); return 0; } std::string ret = cobj->getSuitableFOpen(arg0); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getSuitableFOpen",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getSuitableFOpen'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_writeValueMapToFile(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_writeValueMapToFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::ValueMap arg0; std::string arg1; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:writeValueMapToFile"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.FileUtils:writeValueMapToFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_writeValueMapToFile'", nullptr); return 0; } bool ret = cobj->writeValueMapToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:writeValueMapToFile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_writeValueMapToFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getFileExtension(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getFileExtension'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:getFileExtension"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getFileExtension'", nullptr); return 0; } std::string ret = cobj->getFileExtension(arg0); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getFileExtension",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getFileExtension'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_setWritablePath(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setWritablePath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:setWritablePath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_setWritablePath'", nullptr); return 0; } cobj->setWritablePath(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setWritablePath",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setWritablePath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setPopupNotify'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.FileUtils:setPopupNotify"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_setPopupNotify'", nullptr); return 0; } cobj->setPopupNotify(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setPopupNotify",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setPopupNotify'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_isDirectoryExist'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:isDirectoryExist"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_isDirectoryExist'", nullptr); return 0; } bool ret = cobj->isDirectoryExist(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:isDirectoryExist",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_isDirectoryExist'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_setDefaultResourceRootPath(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_setDefaultResourceRootPath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:setDefaultResourceRootPath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_setDefaultResourceRootPath'", nullptr); return 0; } cobj->setDefaultResourceRootPath(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:setDefaultResourceRootPath",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_setDefaultResourceRootPath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getSearchResolutionsOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getSearchResolutionsOrder'", nullptr); return 0; } const std::vector<std::string>& ret = cobj->getSearchResolutionsOrder(); ccvector_std_string_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getSearchResolutionsOrder",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getSearchResolutionsOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_createDirectory'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.FileUtils:createDirectory"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_createDirectory'", nullptr); return 0; } bool ret = cobj->createDirectory(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:createDirectory",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_createDirectory'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) { int argc = 0; cocos2d::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FileUtils_getWritablePath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getWritablePath'", nullptr); return 0; } std::string ret = cobj->getWritablePath(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getWritablePath",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getWritablePath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_destroyInstance'", nullptr); return 0; } cocos2d::FileUtils::destroyInstance(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FileUtils:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FileUtils_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getInstance'", nullptr); return 0; } cocos2d::FileUtils* ret = cocos2d::FileUtils::getInstance(); object_to_luaval<cocos2d::FileUtils>(tolua_S, "cc.FileUtils",(cocos2d::FileUtils*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FileUtils:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FileUtils_getInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FileUtils_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FileUtils)"); return 0; } int lua_register_cocos2dx_FileUtils(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FileUtils"); tolua_cclass(tolua_S,"FileUtils","cc.FileUtils","",nullptr); tolua_beginmodule(tolua_S,"FileUtils"); tolua_function(tolua_S,"fullPathForFilename",lua_cocos2dx_FileUtils_fullPathForFilename); tolua_function(tolua_S,"getStringFromFile",lua_cocos2dx_FileUtils_getStringFromFile); tolua_function(tolua_S,"setFilenameLookupDictionary",lua_cocos2dx_FileUtils_setFilenameLookupDictionary); tolua_function(tolua_S,"removeFile",lua_cocos2dx_FileUtils_removeFile); tolua_function(tolua_S,"isAbsolutePath",lua_cocos2dx_FileUtils_isAbsolutePath); tolua_function(tolua_S,"renameFile",lua_cocos2dx_FileUtils_renameFile); tolua_function(tolua_S,"loadFilenameLookup",lua_cocos2dx_FileUtils_loadFilenameLookupDictionaryFromFile); tolua_function(tolua_S,"isPopupNotify",lua_cocos2dx_FileUtils_isPopupNotify); tolua_function(tolua_S,"getValueVectorFromFile",lua_cocos2dx_FileUtils_getValueVectorFromFile); tolua_function(tolua_S,"getSearchPaths",lua_cocos2dx_FileUtils_getSearchPaths); tolua_function(tolua_S,"writeToFile",lua_cocos2dx_FileUtils_writeToFile); tolua_function(tolua_S,"getValueMapFromFile",lua_cocos2dx_FileUtils_getValueMapFromFile); tolua_function(tolua_S,"getFileSize",lua_cocos2dx_FileUtils_getFileSize); tolua_function(tolua_S,"getValueMapFromData",lua_cocos2dx_FileUtils_getValueMapFromData); tolua_function(tolua_S,"removeDirectory",lua_cocos2dx_FileUtils_removeDirectory); tolua_function(tolua_S,"setSearchPaths",lua_cocos2dx_FileUtils_setSearchPaths); tolua_function(tolua_S,"writeStringToFile",lua_cocos2dx_FileUtils_writeStringToFile); tolua_function(tolua_S,"setSearchResolutionsOrder",lua_cocos2dx_FileUtils_setSearchResolutionsOrder); tolua_function(tolua_S,"addSearchResolutionsOrder",lua_cocos2dx_FileUtils_addSearchResolutionsOrder); tolua_function(tolua_S,"addSearchPath",lua_cocos2dx_FileUtils_addSearchPath); tolua_function(tolua_S,"writeValueVectorToFile",lua_cocos2dx_FileUtils_writeValueVectorToFile); tolua_function(tolua_S,"isFileExist",lua_cocos2dx_FileUtils_isFileExist); tolua_function(tolua_S,"purgeCachedEntries",lua_cocos2dx_FileUtils_purgeCachedEntries); tolua_function(tolua_S,"fullPathFromRelativeFile",lua_cocos2dx_FileUtils_fullPathFromRelativeFile); tolua_function(tolua_S,"getSuitableFOpen",lua_cocos2dx_FileUtils_getSuitableFOpen); tolua_function(tolua_S,"writeValueMapToFile",lua_cocos2dx_FileUtils_writeValueMapToFile); tolua_function(tolua_S,"getFileExtension",lua_cocos2dx_FileUtils_getFileExtension); tolua_function(tolua_S,"setWritablePath",lua_cocos2dx_FileUtils_setWritablePath); tolua_function(tolua_S,"setPopupNotify",lua_cocos2dx_FileUtils_setPopupNotify); tolua_function(tolua_S,"isDirectoryExist",lua_cocos2dx_FileUtils_isDirectoryExist); tolua_function(tolua_S,"setDefaultResourceRootPath",lua_cocos2dx_FileUtils_setDefaultResourceRootPath); tolua_function(tolua_S,"getSearchResolutionsOrder",lua_cocos2dx_FileUtils_getSearchResolutionsOrder); tolua_function(tolua_S,"createDirectory",lua_cocos2dx_FileUtils_createDirectory); tolua_function(tolua_S,"getWritablePath",lua_cocos2dx_FileUtils_getWritablePath); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_FileUtils_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_FileUtils_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FileUtils).name(); g_luaType[typeName] = "cc.FileUtils"; g_typeCast["FileUtils"] = "cc.FileUtils"; return 1; } static int lua_cocos2dx_EventAcceleration_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventAcceleration)"); return 0; } int lua_register_cocos2dx_EventAcceleration(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventAcceleration"); tolua_cclass(tolua_S,"EventAcceleration","cc.EventAcceleration","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventAcceleration"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventAcceleration).name(); g_luaType[typeName] = "cc.EventAcceleration"; g_typeCast["EventAcceleration"] = "cc.EventAcceleration"; return 1; } int lua_cocos2dx_EventCustom_getEventName(lua_State* tolua_S) { int argc = 0; cocos2d::EventCustom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventCustom",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventCustom*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventCustom_getEventName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventCustom_getEventName'", nullptr); return 0; } const std::string& ret = cobj->getEventName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventCustom:getEventName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventCustom_getEventName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventCustom_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventCustom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventCustom:EventCustom"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventCustom_constructor'", nullptr); return 0; } cobj = new cocos2d::EventCustom(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventCustom"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventCustom:EventCustom",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventCustom_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventCustom_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventCustom)"); return 0; } int lua_register_cocos2dx_EventCustom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventCustom"); tolua_cclass(tolua_S,"EventCustom","cc.EventCustom","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventCustom"); tolua_function(tolua_S,"new",lua_cocos2dx_EventCustom_constructor); tolua_function(tolua_S,"getEventName",lua_cocos2dx_EventCustom_getEventName); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventCustom).name(); g_luaType[typeName] = "cc.EventCustom"; g_typeCast["EventCustom"] = "cc.EventCustom"; return 1; } int lua_cocos2dx_EventListener_setEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_setEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.EventListener:setEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListener_setEnabled'", nullptr); return 0; } cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:setEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_setEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_isEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListener_isEnabled'", nullptr); return 0; } bool ret = cobj->isEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:isEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_isEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) { int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListener_clone'", nullptr); return 0; } cocos2d::EventListener* ret = cobj->clone(); object_to_luaval<cocos2d::EventListener>(tolua_S, "cc.EventListener",(cocos2d::EventListener*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:clone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_clone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) { int argc = 0; cocos2d::EventListener* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListener_checkAvailable'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListener_checkAvailable'", nullptr); return 0; } bool ret = cobj->checkAvailable(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:checkAvailable",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListener_checkAvailable'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventListener_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListener)"); return 0; } int lua_register_cocos2dx_EventListener(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListener"); tolua_cclass(tolua_S,"EventListener","cc.EventListener","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"EventListener"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventListener_setEnabled); tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventListener_isEnabled); tolua_function(tolua_S,"clone",lua_cocos2dx_EventListener_clone); tolua_function(tolua_S,"checkAvailable",lua_cocos2dx_EventListener_checkAvailable); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListener).name(); g_luaType[typeName] = "cc.EventListener"; g_typeCast["EventListener"] = "cc.EventListener"; return 1; } int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:pauseEventListenersForTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget'", nullptr); return 0; } cobj->pauseEventListenersForTarget(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { cocos2d::Node* arg0; bool arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:pauseEventListenersForTarget"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:pauseEventListenersForTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget'", nullptr); return 0; } cobj->pauseEventListenersForTarget(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:pauseEventListenersForTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::EventListener* arg0; cocos2d::Node* arg1; ok &= luaval_to_object<cocos2d::EventListener>(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:addEventListenerWithSceneGraphPriority"); ok &= luaval_to_object<cocos2d::Node>(tolua_S, 3, "cc.Node",&arg1, "cc.EventDispatcher:addEventListenerWithSceneGraphPriority"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority'", nullptr); return 0; } cobj->addEventListenerWithSceneGraphPriority(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addEventListenerWithSceneGraphPriority",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_setEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.EventDispatcher:setEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_setEnabled'", nullptr); return 0; } cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:setEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_setEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::EventListener* arg0; int arg1; ok &= luaval_to_object<cocos2d::EventListener>(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:addEventListenerWithFixedPriority"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.EventDispatcher:addEventListenerWithFixedPriority"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority'", nullptr); return 0; } cobj->addEventListenerWithFixedPriority(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addEventListenerWithFixedPriority",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::EventListener* arg0; ok &= luaval_to_object<cocos2d::EventListener>(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:removeEventListener"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_removeEventListener'", nullptr); return 0; } cobj->removeEventListener(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeEventListener",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeEventListener'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_dispatchCustomEvent(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_dispatchCustomEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventDispatcher:dispatchCustomEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_dispatchCustomEvent'", nullptr); return 0; } cobj->dispatchCustomEvent(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { std::string arg0; void* arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventDispatcher:dispatchCustomEvent"); #pragma warning NO CONVERSION TO NATIVE FOR void* ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_dispatchCustomEvent'", nullptr); return 0; } cobj->dispatchCustomEvent(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:dispatchCustomEvent",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_dispatchCustomEvent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:resumeEventListenersForTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget'", nullptr); return 0; } cobj->resumeEventListenersForTarget(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { cocos2d::Node* arg0; bool arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:resumeEventListenersForTarget"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:resumeEventListenersForTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget'", nullptr); return 0; } cobj->resumeEventListenersForTarget(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:resumeEventListenersForTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:removeEventListenersForTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForTarget'", nullptr); return 0; } cobj->removeEventListenersForTarget(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { cocos2d::Node* arg0; bool arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:removeEventListenersForTarget"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:removeEventListenersForTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForTarget'", nullptr); return 0; } cobj->removeEventListenersForTarget(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeEventListenersForTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_setPriority'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::EventListener* arg0; int arg1; ok &= luaval_to_object<cocos2d::EventListener>(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:setPriority"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.EventDispatcher:setPriority"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_setPriority'", nullptr); return 0; } cobj->setPriority(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:setPriority",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_setPriority'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::function<void (cocos2d::EventCustom *)> arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventDispatcher:addCustomEventListener"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'", nullptr); return 0; } cocos2d::EventListenerCustom* ret = cobj->addCustomEventListener(arg0, arg1); object_to_luaval<cocos2d::EventListenerCustom>(tolua_S, "cc.EventListenerCustom",(cocos2d::EventListenerCustom*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addCustomEventListener",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_dispatchEvent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Event* arg0; ok &= luaval_to_object<cocos2d::Event>(tolua_S, 2, "cc.Event",&arg0, "cc.EventDispatcher:dispatchEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_dispatchEvent'", nullptr); return 0; } cobj->dispatchEvent(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:dispatchEvent",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_dispatchEvent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeAllEventListeners'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_removeAllEventListeners'", nullptr); return 0; } cobj->removeAllEventListeners(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeAllEventListeners",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeAllEventListeners'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeCustomEventListeners'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.EventDispatcher:removeCustomEventListeners"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_removeCustomEventListeners'", nullptr); return 0; } cobj->removeCustomEventListeners(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeCustomEventListeners",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeCustomEventListeners'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_isEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_isEnabled'", nullptr); return 0; } bool ret = cobj->isEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:isEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_isEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::EventListener::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventDispatcher:removeEventListenersForType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForType'", nullptr); return 0; } cobj->removeEventListenersForType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:removeEventListenersForType",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventDispatcher_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_constructor'", nullptr); return 0; } cobj = new cocos2d::EventDispatcher(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventDispatcher"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:EventDispatcher",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventDispatcher_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventDispatcher_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventDispatcher)"); return 0; } int lua_register_cocos2dx_EventDispatcher(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventDispatcher"); tolua_cclass(tolua_S,"EventDispatcher","cc.EventDispatcher","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"EventDispatcher"); tolua_function(tolua_S,"new",lua_cocos2dx_EventDispatcher_constructor); tolua_function(tolua_S,"pauseEventListenersForTarget",lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget); tolua_function(tolua_S,"addEventListenerWithSceneGraphPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_EventDispatcher_setEnabled); tolua_function(tolua_S,"addEventListenerWithFixedPriority",lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority); tolua_function(tolua_S,"removeEventListener",lua_cocos2dx_EventDispatcher_removeEventListener); tolua_function(tolua_S,"dispatchCustomEvent",lua_cocos2dx_EventDispatcher_dispatchCustomEvent); tolua_function(tolua_S,"resumeEventListenersForTarget",lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget); tolua_function(tolua_S,"removeEventListenersForTarget",lua_cocos2dx_EventDispatcher_removeEventListenersForTarget); tolua_function(tolua_S,"setPriority",lua_cocos2dx_EventDispatcher_setPriority); tolua_function(tolua_S,"addCustomEventListener",lua_cocos2dx_EventDispatcher_addCustomEventListener); tolua_function(tolua_S,"dispatchEvent",lua_cocos2dx_EventDispatcher_dispatchEvent); tolua_function(tolua_S,"removeAllEventListeners",lua_cocos2dx_EventDispatcher_removeAllEventListeners); tolua_function(tolua_S,"removeCustomEventListeners",lua_cocos2dx_EventDispatcher_removeCustomEventListeners); tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventDispatcher_isEnabled); tolua_function(tolua_S,"removeEventListenersForType",lua_cocos2dx_EventDispatcher_removeEventListenersForType); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventDispatcher).name(); g_luaType[typeName] = "cc.EventDispatcher"; g_typeCast["EventDispatcher"] = "cc.EventDispatcher"; return 1; } int lua_cocos2dx_EventFocus_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventFocus* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::ui::Widget* arg0; cocos2d::ui::Widget* arg1; ok &= luaval_to_object<cocos2d::ui::Widget>(tolua_S, 2, "ccui.Widget",&arg0, "cc.EventFocus:EventFocus"); ok &= luaval_to_object<cocos2d::ui::Widget>(tolua_S, 3, "ccui.Widget",&arg1, "cc.EventFocus:EventFocus"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventFocus_constructor'", nullptr); return 0; } cobj = new cocos2d::EventFocus(arg0, arg1); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventFocus"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventFocus:EventFocus",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventFocus_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventFocus_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventFocus)"); return 0; } int lua_register_cocos2dx_EventFocus(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventFocus"); tolua_cclass(tolua_S,"EventFocus","cc.EventFocus","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventFocus"); tolua_function(tolua_S,"new",lua_cocos2dx_EventFocus_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventFocus).name(); g_luaType[typeName] = "cc.EventFocus"; g_typeCast["EventFocus"] = "cc.EventFocus"; return 1; } int lua_cocos2dx_EventListenerAcceleration_init(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerAcceleration* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerAcceleration",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListenerAcceleration*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerAcceleration_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::function<void (cocos2d::Acceleration *, cocos2d::Event *)> arg0; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerAcceleration_init'", nullptr); return 0; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerAcceleration:init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerAcceleration_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListenerAcceleration_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerAcceleration* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerAcceleration_constructor'", nullptr); return 0; } cobj = new cocos2d::EventListenerAcceleration(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerAcceleration"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerAcceleration:EventListenerAcceleration",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerAcceleration_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventListenerAcceleration_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerAcceleration)"); return 0; } int lua_register_cocos2dx_EventListenerAcceleration(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerAcceleration"); tolua_cclass(tolua_S,"EventListenerAcceleration","cc.EventListenerAcceleration","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerAcceleration"); tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerAcceleration_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerAcceleration_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerAcceleration).name(); g_luaType[typeName] = "cc.EventListenerAcceleration"; g_typeCast["EventListenerAcceleration"] = "cc.EventListenerAcceleration"; return 1; } int lua_cocos2dx_EventListenerCustom_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerCustom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerCustom_constructor'", nullptr); return 0; } cobj = new cocos2d::EventListenerCustom(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerCustom"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerCustom:EventListenerCustom",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerCustom_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventListenerCustom_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerCustom)"); return 0; } int lua_register_cocos2dx_EventListenerCustom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerCustom"); tolua_cclass(tolua_S,"EventListenerCustom","cc.EventListenerCustom","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerCustom"); tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerCustom_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerCustom).name(); g_luaType[typeName] = "cc.EventListenerCustom"; g_typeCast["EventListenerCustom"] = "cc.EventListenerCustom"; return 1; } int lua_cocos2dx_EventListenerFocus_init(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerFocus* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerFocus",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListenerFocus*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerFocus_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerFocus_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerFocus:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerFocus_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListenerFocus_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerFocus* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerFocus_constructor'", nullptr); return 0; } cobj = new cocos2d::EventListenerFocus(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerFocus"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerFocus:EventListenerFocus",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerFocus_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventListenerFocus_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerFocus)"); return 0; } int lua_register_cocos2dx_EventListenerFocus(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerFocus"); tolua_cclass(tolua_S,"EventListenerFocus","cc.EventListenerFocus","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerFocus"); tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerFocus_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerFocus_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerFocus).name(); g_luaType[typeName] = "cc.EventListenerFocus"; g_typeCast["EventListenerFocus"] = "cc.EventListenerFocus"; return 1; } int lua_cocos2dx_EventListenerKeyboard_init(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerKeyboard* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerKeyboard",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListenerKeyboard*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerKeyboard_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerKeyboard_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerKeyboard:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerKeyboard_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListenerKeyboard_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerKeyboard* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerKeyboard_constructor'", nullptr); return 0; } cobj = new cocos2d::EventListenerKeyboard(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerKeyboard"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerKeyboard:EventListenerKeyboard",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerKeyboard_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventListenerKeyboard_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerKeyboard)"); return 0; } int lua_register_cocos2dx_EventListenerKeyboard(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerKeyboard"); tolua_cclass(tolua_S,"EventListenerKeyboard","cc.EventListenerKeyboard","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerKeyboard"); tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerKeyboard_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerKeyboard_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerKeyboard).name(); g_luaType[typeName] = "cc.EventListenerKeyboard"; g_typeCast["EventListenerKeyboard"] = "cc.EventListenerKeyboard"; return 1; } int lua_cocos2dx_EventMouse_getPreviousLocationInView(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getPreviousLocationInView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getPreviousLocationInView'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getPreviousLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getPreviousLocationInView",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getPreviousLocationInView'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getLocation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getLocation'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getLocation(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getLocation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getLocation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getMouseButton'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getMouseButton'", nullptr); return 0; } int ret = cobj->getMouseButton(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getMouseButton",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getMouseButton'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getPreviousLocation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getPreviousLocation'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getPreviousLocation(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getPreviousLocation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getPreviousLocation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getDelta'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getDelta'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getDelta(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getDelta",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getDelta'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_setScrollData'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; double arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EventMouse:setScrollData"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EventMouse:setScrollData"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_setScrollData'", nullptr); return 0; } cobj->setScrollData(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:setScrollData",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_setScrollData'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getStartLocationInView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getStartLocationInView'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getStartLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getStartLocationInView",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getStartLocationInView'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getStartLocation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getStartLocation'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getStartLocation(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getStartLocation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getStartLocation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_setMouseButton'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventMouse:setMouseButton"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_setMouseButton'", nullptr); return 0; } cobj->setMouseButton(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:setMouseButton",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_setMouseButton'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getLocationInView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getLocationInView'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getLocationInView",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getLocationInView'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getScrollY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getScrollY'", nullptr); return 0; } double ret = cobj->getScrollY(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getScrollY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getScrollY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getScrollX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getScrollX'", nullptr); return 0; } double ret = cobj->getScrollX(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getScrollX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getScrollX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getCursorX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getCursorX'", nullptr); return 0; } double ret = cobj->getCursorX(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getCursorX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getCursorX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_getCursorY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getCursorY'", nullptr); return 0; } double ret = cobj->getCursorY(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:getCursorY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_getCursorY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventMouse_setCursorPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; double arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EventMouse:setCursorPosition"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EventMouse:setCursorPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_setCursorPosition'", nullptr); return 0; } cobj->setCursorPosition(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:setCursorPosition",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_setCursorPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::EventMouse::MouseEventType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventMouse:EventMouse"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_constructor'", nullptr); return 0; } cobj = new cocos2d::EventMouse(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventMouse"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventMouse:EventMouse",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventMouse_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventMouse_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventMouse)"); return 0; } int lua_register_cocos2dx_EventMouse(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventMouse"); tolua_cclass(tolua_S,"EventMouse","cc.EventMouse","cc.Event",nullptr); tolua_beginmodule(tolua_S,"EventMouse"); tolua_function(tolua_S,"new",lua_cocos2dx_EventMouse_constructor); tolua_function(tolua_S,"getPreviousLocationInView",lua_cocos2dx_EventMouse_getPreviousLocationInView); tolua_function(tolua_S,"getLocation",lua_cocos2dx_EventMouse_getLocation); tolua_function(tolua_S,"getMouseButton",lua_cocos2dx_EventMouse_getMouseButton); tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_EventMouse_getPreviousLocation); tolua_function(tolua_S,"getDelta",lua_cocos2dx_EventMouse_getDelta); tolua_function(tolua_S,"setScrollData",lua_cocos2dx_EventMouse_setScrollData); tolua_function(tolua_S,"getStartLocationInView",lua_cocos2dx_EventMouse_getStartLocationInView); tolua_function(tolua_S,"getStartLocation",lua_cocos2dx_EventMouse_getStartLocation); tolua_function(tolua_S,"setMouseButton",lua_cocos2dx_EventMouse_setMouseButton); tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_EventMouse_getLocationInView); tolua_function(tolua_S,"getScrollY",lua_cocos2dx_EventMouse_getScrollY); tolua_function(tolua_S,"getScrollX",lua_cocos2dx_EventMouse_getScrollX); tolua_function(tolua_S,"getCursorX",lua_cocos2dx_EventMouse_getCursorX); tolua_function(tolua_S,"getCursorY",lua_cocos2dx_EventMouse_getCursorY); tolua_function(tolua_S,"setCursorPosition",lua_cocos2dx_EventMouse_setCursorPosition); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventMouse).name(); g_luaType[typeName] = "cc.EventMouse"; g_typeCast["EventMouse"] = "cc.EventMouse"; return 1; } int lua_cocos2dx_EventListenerMouse_init(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerMouse",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListenerMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerMouse_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerMouse_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerMouse:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerMouse_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListenerMouse_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerMouse_constructor'", nullptr); return 0; } cobj = new cocos2d::EventListenerMouse(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerMouse"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerMouse:EventListenerMouse",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerMouse_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventListenerMouse_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerMouse)"); return 0; } int lua_register_cocos2dx_EventListenerMouse(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerMouse"); tolua_cclass(tolua_S,"EventListenerMouse","cc.EventListenerMouse","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerMouse"); tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerMouse_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerMouse_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerMouse).name(); g_luaType[typeName] = "cc.EventListenerMouse"; g_typeCast["EventListenerMouse"] = "cc.EventListenerMouse"; return 1; } int lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches'", nullptr); return 0; } bool ret = cobj->isSwallowTouches(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:isSwallowTouches",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.EventListenerTouchOneByOne:setSwallowTouches"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches'", nullptr); return 0; } cobj->setSwallowTouches(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:setSwallowTouches",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListenerTouchOneByOne_init(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchOneByOne_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchOneByOne_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListenerTouchOneByOne_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchOneByOne_constructor'", nullptr); return 0; } cobj = new cocos2d::EventListenerTouchOneByOne(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerTouchOneByOne"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchOneByOne:EventListenerTouchOneByOne",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchOneByOne_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventListenerTouchOneByOne_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerTouchOneByOne)"); return 0; } int lua_register_cocos2dx_EventListenerTouchOneByOne(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerTouchOneByOne"); tolua_cclass(tolua_S,"EventListenerTouchOneByOne","cc.EventListenerTouchOneByOne","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerTouchOneByOne"); tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerTouchOneByOne_constructor); tolua_function(tolua_S,"isSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches); tolua_function(tolua_S,"setSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerTouchOneByOne_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerTouchOneByOne).name(); g_luaType[typeName] = "cc.EventListenerTouchOneByOne"; g_typeCast["EventListenerTouchOneByOne"] = "cc.EventListenerTouchOneByOne"; return 1; } int lua_cocos2dx_EventListenerTouchAllAtOnce_init(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerTouchAllAtOnce* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchAllAtOnce",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EventListenerTouchAllAtOnce*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchAllAtOnce:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EventListenerTouchAllAtOnce_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EventListenerTouchAllAtOnce* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_constructor'", nullptr); return 0; } cobj = new cocos2d::EventListenerTouchAllAtOnce(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EventListenerTouchAllAtOnce"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListenerTouchAllAtOnce:EventListenerTouchAllAtOnce",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EventListenerTouchAllAtOnce_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EventListenerTouchAllAtOnce)"); return 0; } int lua_register_cocos2dx_EventListenerTouchAllAtOnce(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EventListenerTouchAllAtOnce"); tolua_cclass(tolua_S,"EventListenerTouchAllAtOnce","cc.EventListenerTouchAllAtOnce","cc.EventListener",nullptr); tolua_beginmodule(tolua_S,"EventListenerTouchAllAtOnce"); tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerTouchAllAtOnce_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerTouchAllAtOnce_init); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EventListenerTouchAllAtOnce).name(); g_luaType[typeName] = "cc.EventListenerTouchAllAtOnce"; g_typeCast["EventListenerTouchAllAtOnce"] = "cc.EventListenerTouchAllAtOnce"; return 1; } int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) { int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_setEye'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionCamera:setEye"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ActionCamera:setEye"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ActionCamera:setEye"); if (!ok) { break; } cobj->setEye(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setEye"); if (!ok) { break; } cobj->setEye(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:setEye",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_setEye'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) { int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_getEye'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_getEye'", nullptr); return 0; } const cocos2d::Vec3& ret = cobj->getEye(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:getEye",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_getEye'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) { int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_setUp'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setUp"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_setUp'", nullptr); return 0; } cobj->setUp(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:setUp",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_setUp'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) { int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_getCenter'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_getCenter'", nullptr); return 0; } const cocos2d::Vec3& ret = cobj->getCenter(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:getCenter",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_getCenter'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) { int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_setCenter'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setCenter"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_setCenter'", nullptr); return 0; } cobj->setCenter(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:setCenter",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_setCenter'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) { int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionCamera_getUp'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_getUp'", nullptr); return 0; } const cocos2d::Vec3& ret = cobj->getUp(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:getUp",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_getUp'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionCamera_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_constructor'", nullptr); return 0; } cobj = new cocos2d::ActionCamera(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ActionCamera"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionCamera:ActionCamera",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionCamera_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ActionCamera_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionCamera)"); return 0; } int lua_register_cocos2dx_ActionCamera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionCamera"); tolua_cclass(tolua_S,"ActionCamera","cc.ActionCamera","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionCamera"); tolua_function(tolua_S,"new",lua_cocos2dx_ActionCamera_constructor); tolua_function(tolua_S,"setEye",lua_cocos2dx_ActionCamera_setEye); tolua_function(tolua_S,"getEye",lua_cocos2dx_ActionCamera_getEye); tolua_function(tolua_S,"setUp",lua_cocos2dx_ActionCamera_setUp); tolua_function(tolua_S,"getCenter",lua_cocos2dx_ActionCamera_getCenter); tolua_function(tolua_S,"setCenter",lua_cocos2dx_ActionCamera_setCenter); tolua_function(tolua_S,"getUp",lua_cocos2dx_ActionCamera_getUp); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionCamera).name(); g_luaType[typeName] = "cc.ActionCamera"; g_typeCast["ActionCamera"] = "cc.ActionCamera"; return 1; } int lua_cocos2dx_OrbitCamera_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::OrbitCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.OrbitCamera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::OrbitCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_OrbitCamera_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 7) { double arg0; double arg1; double arg2; double arg3; double arg4; double arg5; double arg6; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.OrbitCamera:initWithDuration"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.OrbitCamera:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.OrbitCamera:initWithDuration"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.OrbitCamera:initWithDuration"); ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.OrbitCamera:initWithDuration"); ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.OrbitCamera:initWithDuration"); ok &= luaval_to_number(tolua_S, 8,&arg6, "cc.OrbitCamera:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_OrbitCamera_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3, arg4, arg5, arg6); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.OrbitCamera:initWithDuration",argc, 7); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_OrbitCamera_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.OrbitCamera",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 7) { double arg0; double arg1; double arg2; double arg3; double arg4; double arg5; double arg6; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.OrbitCamera:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.OrbitCamera:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.OrbitCamera:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.OrbitCamera:create"); ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.OrbitCamera:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.OrbitCamera:create"); ok &= luaval_to_number(tolua_S, 8,&arg6, "cc.OrbitCamera:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_OrbitCamera_create'", nullptr); return 0; } cocos2d::OrbitCamera* ret = cocos2d::OrbitCamera::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); object_to_luaval<cocos2d::OrbitCamera>(tolua_S, "cc.OrbitCamera",(cocos2d::OrbitCamera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.OrbitCamera:create",argc, 7); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_OrbitCamera_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_OrbitCamera_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::OrbitCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_OrbitCamera_constructor'", nullptr); return 0; } cobj = new cocos2d::OrbitCamera(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.OrbitCamera"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.OrbitCamera:OrbitCamera",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_OrbitCamera_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_OrbitCamera_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (OrbitCamera)"); return 0; } int lua_register_cocos2dx_OrbitCamera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.OrbitCamera"); tolua_cclass(tolua_S,"OrbitCamera","cc.OrbitCamera","cc.ActionCamera",nullptr); tolua_beginmodule(tolua_S,"OrbitCamera"); tolua_function(tolua_S,"new",lua_cocos2dx_OrbitCamera_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_OrbitCamera_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_OrbitCamera_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::OrbitCamera).name(); g_luaType[typeName] = "cc.OrbitCamera"; g_typeCast["OrbitCamera"] = "cc.OrbitCamera"; return 1; } int lua_cocos2dx_CardinalSplineTo_getPoints(lua_State* tolua_S) { int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CardinalSplineTo_getPoints'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CardinalSplineTo_getPoints'", nullptr); return 0; } cocos2d::PointArray* ret = cobj->getPoints(); object_to_luaval<cocos2d::PointArray>(tolua_S, "cc.PointArray",(cocos2d::PointArray*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:getPoints",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_getPoints'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) { int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CardinalSplineTo_updatePosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.CardinalSplineTo:updatePosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CardinalSplineTo_updatePosition'", nullptr); return 0; } cobj->updatePosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:updatePosition",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_updatePosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CardinalSplineTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; cocos2d::PointArray* arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CardinalSplineTo:initWithDuration"); ok &= luaval_to_object<cocos2d::PointArray>(tolua_S, 3, "cc.PointArray",&arg1, "cc.CardinalSplineTo:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.CardinalSplineTo:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CardinalSplineTo_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CardinalSplineTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::CardinalSplineTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CardinalSplineTo_constructor'", nullptr); return 0; } cobj = new cocos2d::CardinalSplineTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.CardinalSplineTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:CardinalSplineTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_CardinalSplineTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CardinalSplineTo)"); return 0; } int lua_register_cocos2dx_CardinalSplineTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CardinalSplineTo"); tolua_cclass(tolua_S,"CardinalSplineTo","cc.CardinalSplineTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"CardinalSplineTo"); tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineTo_constructor); tolua_function(tolua_S,"getPoints",lua_cocos2dx_CardinalSplineTo_getPoints); tolua_function(tolua_S,"updatePosition",lua_cocos2dx_CardinalSplineTo_updatePosition); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CardinalSplineTo_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CardinalSplineTo).name(); g_luaType[typeName] = "cc.CardinalSplineTo"; g_typeCast["CardinalSplineTo"] = "cc.CardinalSplineTo"; return 1; } int lua_cocos2dx_CardinalSplineBy_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::CardinalSplineBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CardinalSplineBy_constructor'", nullptr); return 0; } cobj = new cocos2d::CardinalSplineBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.CardinalSplineBy"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineBy:CardinalSplineBy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CardinalSplineBy_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_CardinalSplineBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CardinalSplineBy)"); return 0; } int lua_register_cocos2dx_CardinalSplineBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CardinalSplineBy"); tolua_cclass(tolua_S,"CardinalSplineBy","cc.CardinalSplineBy","cc.CardinalSplineTo",nullptr); tolua_beginmodule(tolua_S,"CardinalSplineBy"); tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineBy_constructor); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CardinalSplineBy).name(); g_luaType[typeName] = "cc.CardinalSplineBy"; g_typeCast["CardinalSplineBy"] = "cc.CardinalSplineBy"; return 1; } int lua_cocos2dx_CatmullRomTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::CatmullRomTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CatmullRomTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CatmullRomTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CatmullRomTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; cocos2d::PointArray* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CatmullRomTo:initWithDuration"); ok &= luaval_to_object<cocos2d::PointArray>(tolua_S, 3, "cc.PointArray",&arg1, "cc.CatmullRomTo:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CatmullRomTo_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CatmullRomTo:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CatmullRomTo_initWithDuration'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_CatmullRomTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CatmullRomTo)"); return 0; } int lua_register_cocos2dx_CatmullRomTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CatmullRomTo"); tolua_cclass(tolua_S,"CatmullRomTo","cc.CatmullRomTo","cc.CardinalSplineTo",nullptr); tolua_beginmodule(tolua_S,"CatmullRomTo"); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomTo_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CatmullRomTo).name(); g_luaType[typeName] = "cc.CatmullRomTo"; g_typeCast["CatmullRomTo"] = "cc.CatmullRomTo"; return 1; } int lua_cocos2dx_CatmullRomBy_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::CatmullRomBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CatmullRomBy",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CatmullRomBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CatmullRomBy_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; cocos2d::PointArray* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CatmullRomBy:initWithDuration"); ok &= luaval_to_object<cocos2d::PointArray>(tolua_S, 3, "cc.PointArray",&arg1, "cc.CatmullRomBy:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CatmullRomBy_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CatmullRomBy:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CatmullRomBy_initWithDuration'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_CatmullRomBy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CatmullRomBy)"); return 0; } int lua_register_cocos2dx_CatmullRomBy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CatmullRomBy"); tolua_cclass(tolua_S,"CatmullRomBy","cc.CatmullRomBy","cc.CardinalSplineBy",nullptr); tolua_beginmodule(tolua_S,"CatmullRomBy"); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomBy_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CatmullRomBy).name(); g_luaType[typeName] = "cc.CatmullRomBy"; g_typeCast["CatmullRomBy"] = "cc.CatmullRomBy"; return 1; } int lua_cocos2dx_ActionEase_initWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::ActionEase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionEase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionEase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionEase_initWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.ActionEase:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionEase_initWithAction'", nullptr); return 0; } bool ret = cobj->initWithAction(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionEase:initWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionEase_initWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionEase_getInnerAction(lua_State* tolua_S) { int argc = 0; cocos2d::ActionEase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionEase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionEase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionEase_getInnerAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionEase_getInnerAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->getInnerAction(); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionEase:getInnerAction",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionEase_getInnerAction'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ActionEase_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionEase)"); return 0; } int lua_register_cocos2dx_ActionEase(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionEase"); tolua_cclass(tolua_S,"ActionEase","cc.ActionEase","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionEase"); tolua_function(tolua_S,"initWithAction",lua_cocos2dx_ActionEase_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_ActionEase_getInnerAction); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionEase).name(); g_luaType[typeName] = "cc.ActionEase"; g_typeCast["ActionEase"] = "cc.ActionEase"; return 1; } int lua_cocos2dx_EaseRateAction_setRate(lua_State* tolua_S) { int argc = 0; cocos2d::EaseRateAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseRateAction_setRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EaseRateAction:setRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseRateAction_setRate'", nullptr); return 0; } cobj->setRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseRateAction:setRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_setRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseRateAction_initWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::EaseRateAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseRateAction_initWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::ActionInterval* arg0; double arg1; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseRateAction:initWithAction"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseRateAction:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseRateAction_initWithAction'", nullptr); return 0; } bool ret = cobj->initWithAction(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseRateAction:initWithAction",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_initWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) { int argc = 0; cocos2d::EaseRateAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseRateAction_getRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseRateAction_getRate'", nullptr); return 0; } double ret = cobj->getRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseRateAction:getRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_getRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseRateAction_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::ActionInterval* arg0; double arg1; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseRateAction:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseRateAction:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseRateAction_create'", nullptr); return 0; } cocos2d::EaseRateAction* ret = cocos2d::EaseRateAction::create(arg0, arg1); object_to_luaval<cocos2d::EaseRateAction>(tolua_S, "cc.EaseRateAction",(cocos2d::EaseRateAction*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseRateAction:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseRateAction_create'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseRateAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseRateAction)"); return 0; } int lua_register_cocos2dx_EaseRateAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseRateAction"); tolua_cclass(tolua_S,"EaseRateAction","cc.EaseRateAction","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseRateAction"); tolua_function(tolua_S,"setRate",lua_cocos2dx_EaseRateAction_setRate); tolua_function(tolua_S,"initWithAction",lua_cocos2dx_EaseRateAction_initWithAction); tolua_function(tolua_S,"getRate",lua_cocos2dx_EaseRateAction_getRate); tolua_function(tolua_S,"create", lua_cocos2dx_EaseRateAction_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseRateAction).name(); g_luaType[typeName] = "cc.EaseRateAction"; g_typeCast["EaseRateAction"] = "cc.EaseRateAction"; return 1; } int lua_cocos2dx_EaseIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::ActionInterval* arg0; double arg1; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseIn:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseIn_create'", nullptr); return 0; } cocos2d::EaseIn* ret = cocos2d::EaseIn::create(arg0, arg1); object_to_luaval<cocos2d::EaseIn>(tolua_S, "cc.EaseIn",(cocos2d::EaseIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseIn:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseIn:EaseIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseIn)"); return 0; } int lua_register_cocos2dx_EaseIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseIn"); tolua_cclass(tolua_S,"EaseIn","cc.EaseIn","cc.EaseRateAction",nullptr); tolua_beginmodule(tolua_S,"EaseIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseIn).name(); g_luaType[typeName] = "cc.EaseIn"; g_typeCast["EaseIn"] = "cc.EaseIn"; return 1; } int lua_cocos2dx_EaseOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::ActionInterval* arg0; double arg1; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseOut:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseOut_create'", nullptr); return 0; } cocos2d::EaseOut* ret = cocos2d::EaseOut::create(arg0, arg1); object_to_luaval<cocos2d::EaseOut>(tolua_S, "cc.EaseOut",(cocos2d::EaseOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseOut:EaseOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseOut)"); return 0; } int lua_register_cocos2dx_EaseOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseOut"); tolua_cclass(tolua_S,"EaseOut","cc.EaseOut","cc.EaseRateAction",nullptr); tolua_beginmodule(tolua_S,"EaseOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseOut).name(); g_luaType[typeName] = "cc.EaseOut"; g_typeCast["EaseOut"] = "cc.EaseOut"; return 1; } int lua_cocos2dx_EaseInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::ActionInterval* arg0; double arg1; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseInOut:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseInOut_create'", nullptr); return 0; } cocos2d::EaseInOut* ret = cocos2d::EaseInOut::create(arg0, arg1); object_to_luaval<cocos2d::EaseInOut>(tolua_S, "cc.EaseInOut",(cocos2d::EaseInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseInOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseInOut:EaseInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseInOut)"); return 0; } int lua_register_cocos2dx_EaseInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseInOut"); tolua_cclass(tolua_S,"EaseInOut","cc.EaseInOut","cc.EaseRateAction",nullptr); tolua_beginmodule(tolua_S,"EaseInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseInOut).name(); g_luaType[typeName] = "cc.EaseInOut"; g_typeCast["EaseInOut"] = "cc.EaseInOut"; return 1; } int lua_cocos2dx_EaseExponentialIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseExponentialIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseExponentialIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialIn_create'", nullptr); return 0; } cocos2d::EaseExponentialIn* ret = cocos2d::EaseExponentialIn::create(arg0); object_to_luaval<cocos2d::EaseExponentialIn>(tolua_S, "cc.EaseExponentialIn",(cocos2d::EaseExponentialIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseExponentialIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseExponentialIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseExponentialIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseExponentialIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseExponentialIn:EaseExponentialIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseExponentialIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseExponentialIn)"); return 0; } int lua_register_cocos2dx_EaseExponentialIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialIn"); tolua_cclass(tolua_S,"EaseExponentialIn","cc.EaseExponentialIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseExponentialIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseExponentialIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialIn).name(); g_luaType[typeName] = "cc.EaseExponentialIn"; g_typeCast["EaseExponentialIn"] = "cc.EaseExponentialIn"; return 1; } int lua_cocos2dx_EaseExponentialOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseExponentialOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseExponentialOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialOut_create'", nullptr); return 0; } cocos2d::EaseExponentialOut* ret = cocos2d::EaseExponentialOut::create(arg0); object_to_luaval<cocos2d::EaseExponentialOut>(tolua_S, "cc.EaseExponentialOut",(cocos2d::EaseExponentialOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseExponentialOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseExponentialOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseExponentialOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseExponentialOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseExponentialOut:EaseExponentialOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseExponentialOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseExponentialOut)"); return 0; } int lua_register_cocos2dx_EaseExponentialOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialOut"); tolua_cclass(tolua_S,"EaseExponentialOut","cc.EaseExponentialOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseExponentialOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseExponentialOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialOut).name(); g_luaType[typeName] = "cc.EaseExponentialOut"; g_typeCast["EaseExponentialOut"] = "cc.EaseExponentialOut"; return 1; } int lua_cocos2dx_EaseExponentialInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseExponentialInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseExponentialInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialInOut_create'", nullptr); return 0; } cocos2d::EaseExponentialInOut* ret = cocos2d::EaseExponentialInOut::create(arg0); object_to_luaval<cocos2d::EaseExponentialInOut>(tolua_S, "cc.EaseExponentialInOut",(cocos2d::EaseExponentialInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseExponentialInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseExponentialInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseExponentialInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseExponentialInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseExponentialInOut:EaseExponentialInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseExponentialInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseExponentialInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseExponentialInOut)"); return 0; } int lua_register_cocos2dx_EaseExponentialInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseExponentialInOut"); tolua_cclass(tolua_S,"EaseExponentialInOut","cc.EaseExponentialInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseExponentialInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseExponentialInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseExponentialInOut).name(); g_luaType[typeName] = "cc.EaseExponentialInOut"; g_typeCast["EaseExponentialInOut"] = "cc.EaseExponentialInOut"; return 1; } int lua_cocos2dx_EaseSineIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseSineIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseSineIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineIn_create'", nullptr); return 0; } cocos2d::EaseSineIn* ret = cocos2d::EaseSineIn::create(arg0); object_to_luaval<cocos2d::EaseSineIn>(tolua_S, "cc.EaseSineIn",(cocos2d::EaseSineIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseSineIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseSineIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseSineIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseSineIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseSineIn:EaseSineIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseSineIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseSineIn)"); return 0; } int lua_register_cocos2dx_EaseSineIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineIn"); tolua_cclass(tolua_S,"EaseSineIn","cc.EaseSineIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseSineIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseSineIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineIn).name(); g_luaType[typeName] = "cc.EaseSineIn"; g_typeCast["EaseSineIn"] = "cc.EaseSineIn"; return 1; } int lua_cocos2dx_EaseSineOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseSineOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseSineOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineOut_create'", nullptr); return 0; } cocos2d::EaseSineOut* ret = cocos2d::EaseSineOut::create(arg0); object_to_luaval<cocos2d::EaseSineOut>(tolua_S, "cc.EaseSineOut",(cocos2d::EaseSineOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseSineOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseSineOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseSineOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseSineOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseSineOut:EaseSineOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseSineOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseSineOut)"); return 0; } int lua_register_cocos2dx_EaseSineOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineOut"); tolua_cclass(tolua_S,"EaseSineOut","cc.EaseSineOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseSineOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseSineOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineOut).name(); g_luaType[typeName] = "cc.EaseSineOut"; g_typeCast["EaseSineOut"] = "cc.EaseSineOut"; return 1; } int lua_cocos2dx_EaseSineInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseSineInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseSineInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineInOut_create'", nullptr); return 0; } cocos2d::EaseSineInOut* ret = cocos2d::EaseSineInOut::create(arg0); object_to_luaval<cocos2d::EaseSineInOut>(tolua_S, "cc.EaseSineInOut",(cocos2d::EaseSineInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseSineInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseSineInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseSineInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseSineInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseSineInOut:EaseSineInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseSineInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseSineInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseSineInOut)"); return 0; } int lua_register_cocos2dx_EaseSineInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseSineInOut"); tolua_cclass(tolua_S,"EaseSineInOut","cc.EaseSineInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseSineInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseSineInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseSineInOut).name(); g_luaType[typeName] = "cc.EaseSineInOut"; g_typeCast["EaseSineInOut"] = "cc.EaseSineInOut"; return 1; } int lua_cocos2dx_EaseElastic_setPeriod(lua_State* tolua_S) { int argc = 0; cocos2d::EaseElastic* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseElastic_setPeriod'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EaseElastic:setPeriod"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElastic_setPeriod'", nullptr); return 0; } cobj->setPeriod(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElastic:setPeriod",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElastic_setPeriod'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseElastic_initWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::EaseElastic* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseElastic_initWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElastic:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElastic_initWithAction'", nullptr); return 0; } bool ret = cobj->initWithAction(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { cocos2d::ActionInterval* arg0; double arg1; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElastic:initWithAction"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseElastic:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElastic_initWithAction'", nullptr); return 0; } bool ret = cobj->initWithAction(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElastic:initWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElastic_initWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) { int argc = 0; cocos2d::EaseElastic* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseElastic_getPeriod'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElastic_getPeriod'", nullptr); return 0; } double ret = cobj->getPeriod(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElastic:getPeriod",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElastic_getPeriod'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseElastic_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseElastic)"); return 0; } int lua_register_cocos2dx_EaseElastic(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElastic"); tolua_cclass(tolua_S,"EaseElastic","cc.EaseElastic","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseElastic"); tolua_function(tolua_S,"setPeriod",lua_cocos2dx_EaseElastic_setPeriod); tolua_function(tolua_S,"initWithAction",lua_cocos2dx_EaseElastic_initWithAction); tolua_function(tolua_S,"getPeriod",lua_cocos2dx_EaseElastic_getPeriod); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElastic).name(); g_luaType[typeName] = "cc.EaseElastic"; g_typeCast["EaseElastic"] = "cc.EaseElastic"; return 1; } int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseElasticIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticIn:create"); if (!ok) { break; } cocos2d::EaseElasticIn* ret = cocos2d::EaseElasticIn::create(arg0); object_to_luaval<cocos2d::EaseElasticIn>(tolua_S, "cc.EaseElasticIn",(cocos2d::EaseElasticIn*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticIn:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseElasticIn:create"); if (!ok) { break; } cocos2d::EaseElasticIn* ret = cocos2d::EaseElasticIn::create(arg0, arg1); object_to_luaval<cocos2d::EaseElasticIn>(tolua_S, "cc.EaseElasticIn",(cocos2d::EaseElasticIn*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.EaseElasticIn:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseElasticIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseElasticIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseElasticIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseElasticIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElasticIn:EaseElasticIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseElasticIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseElasticIn)"); return 0; } int lua_register_cocos2dx_EaseElasticIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticIn"); tolua_cclass(tolua_S,"EaseElasticIn","cc.EaseElasticIn","cc.EaseElastic",nullptr); tolua_beginmodule(tolua_S,"EaseElasticIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseElasticIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticIn).name(); g_luaType[typeName] = "cc.EaseElasticIn"; g_typeCast["EaseElasticIn"] = "cc.EaseElasticIn"; return 1; } int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseElasticOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticOut:create"); if (!ok) { break; } cocos2d::EaseElasticOut* ret = cocos2d::EaseElasticOut::create(arg0); object_to_luaval<cocos2d::EaseElasticOut>(tolua_S, "cc.EaseElasticOut",(cocos2d::EaseElasticOut*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticOut:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseElasticOut:create"); if (!ok) { break; } cocos2d::EaseElasticOut* ret = cocos2d::EaseElasticOut::create(arg0, arg1); object_to_luaval<cocos2d::EaseElasticOut>(tolua_S, "cc.EaseElasticOut",(cocos2d::EaseElasticOut*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.EaseElasticOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseElasticOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseElasticOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseElasticOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseElasticOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElasticOut:EaseElasticOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseElasticOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseElasticOut)"); return 0; } int lua_register_cocos2dx_EaseElasticOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticOut"); tolua_cclass(tolua_S,"EaseElasticOut","cc.EaseElasticOut","cc.EaseElastic",nullptr); tolua_beginmodule(tolua_S,"EaseElasticOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseElasticOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticOut).name(); g_luaType[typeName] = "cc.EaseElasticOut"; g_typeCast["EaseElasticOut"] = "cc.EaseElasticOut"; return 1; } int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseElasticInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticInOut:create"); if (!ok) { break; } cocos2d::EaseElasticInOut* ret = cocos2d::EaseElasticInOut::create(arg0); object_to_luaval<cocos2d::EaseElasticInOut>(tolua_S, "cc.EaseElasticInOut",(cocos2d::EaseElasticInOut*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticInOut:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseElasticInOut:create"); if (!ok) { break; } cocos2d::EaseElasticInOut* ret = cocos2d::EaseElasticInOut::create(arg0, arg1); object_to_luaval<cocos2d::EaseElasticInOut>(tolua_S, "cc.EaseElasticInOut",(cocos2d::EaseElasticInOut*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.EaseElasticInOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseElasticInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseElasticInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseElasticInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseElasticInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseElasticInOut:EaseElasticInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseElasticInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseElasticInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseElasticInOut)"); return 0; } int lua_register_cocos2dx_EaseElasticInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseElasticInOut"); tolua_cclass(tolua_S,"EaseElasticInOut","cc.EaseElasticInOut","cc.EaseElastic",nullptr); tolua_beginmodule(tolua_S,"EaseElasticInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseElasticInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseElasticInOut).name(); g_luaType[typeName] = "cc.EaseElasticInOut"; g_typeCast["EaseElasticInOut"] = "cc.EaseElasticInOut"; return 1; } static int lua_cocos2dx_EaseBounce_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBounce)"); return 0; } int lua_register_cocos2dx_EaseBounce(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounce"); tolua_cclass(tolua_S,"EaseBounce","cc.EaseBounce","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBounce"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounce).name(); g_luaType[typeName] = "cc.EaseBounce"; g_typeCast["EaseBounce"] = "cc.EaseBounce"; return 1; } int lua_cocos2dx_EaseBounceIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBounceIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBounceIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceIn_create'", nullptr); return 0; } cocos2d::EaseBounceIn* ret = cocos2d::EaseBounceIn::create(arg0); object_to_luaval<cocos2d::EaseBounceIn>(tolua_S, "cc.EaseBounceIn",(cocos2d::EaseBounceIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseBounceIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseBounceIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseBounceIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBounceIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBounceIn:EaseBounceIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseBounceIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBounceIn)"); return 0; } int lua_register_cocos2dx_EaseBounceIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceIn"); tolua_cclass(tolua_S,"EaseBounceIn","cc.EaseBounceIn","cc.EaseBounce",nullptr); tolua_beginmodule(tolua_S,"EaseBounceIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseBounceIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceIn).name(); g_luaType[typeName] = "cc.EaseBounceIn"; g_typeCast["EaseBounceIn"] = "cc.EaseBounceIn"; return 1; } int lua_cocos2dx_EaseBounceOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBounceOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBounceOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceOut_create'", nullptr); return 0; } cocos2d::EaseBounceOut* ret = cocos2d::EaseBounceOut::create(arg0); object_to_luaval<cocos2d::EaseBounceOut>(tolua_S, "cc.EaseBounceOut",(cocos2d::EaseBounceOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseBounceOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseBounceOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseBounceOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBounceOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBounceOut:EaseBounceOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseBounceOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBounceOut)"); return 0; } int lua_register_cocos2dx_EaseBounceOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceOut"); tolua_cclass(tolua_S,"EaseBounceOut","cc.EaseBounceOut","cc.EaseBounce",nullptr); tolua_beginmodule(tolua_S,"EaseBounceOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseBounceOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceOut).name(); g_luaType[typeName] = "cc.EaseBounceOut"; g_typeCast["EaseBounceOut"] = "cc.EaseBounceOut"; return 1; } int lua_cocos2dx_EaseBounceInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBounceInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBounceInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceInOut_create'", nullptr); return 0; } cocos2d::EaseBounceInOut* ret = cocos2d::EaseBounceInOut::create(arg0); object_to_luaval<cocos2d::EaseBounceInOut>(tolua_S, "cc.EaseBounceInOut",(cocos2d::EaseBounceInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseBounceInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseBounceInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseBounceInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBounceInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBounceInOut:EaseBounceInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBounceInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseBounceInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBounceInOut)"); return 0; } int lua_register_cocos2dx_EaseBounceInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBounceInOut"); tolua_cclass(tolua_S,"EaseBounceInOut","cc.EaseBounceInOut","cc.EaseBounce",nullptr); tolua_beginmodule(tolua_S,"EaseBounceInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseBounceInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBounceInOut).name(); g_luaType[typeName] = "cc.EaseBounceInOut"; g_typeCast["EaseBounceInOut"] = "cc.EaseBounceInOut"; return 1; } int lua_cocos2dx_EaseBackIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBackIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBackIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackIn_create'", nullptr); return 0; } cocos2d::EaseBackIn* ret = cocos2d::EaseBackIn::create(arg0); object_to_luaval<cocos2d::EaseBackIn>(tolua_S, "cc.EaseBackIn",(cocos2d::EaseBackIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseBackIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseBackIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseBackIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBackIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBackIn:EaseBackIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseBackIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBackIn)"); return 0; } int lua_register_cocos2dx_EaseBackIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackIn"); tolua_cclass(tolua_S,"EaseBackIn","cc.EaseBackIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBackIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseBackIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackIn).name(); g_luaType[typeName] = "cc.EaseBackIn"; g_typeCast["EaseBackIn"] = "cc.EaseBackIn"; return 1; } int lua_cocos2dx_EaseBackOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBackOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBackOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackOut_create'", nullptr); return 0; } cocos2d::EaseBackOut* ret = cocos2d::EaseBackOut::create(arg0); object_to_luaval<cocos2d::EaseBackOut>(tolua_S, "cc.EaseBackOut",(cocos2d::EaseBackOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseBackOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseBackOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseBackOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBackOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBackOut:EaseBackOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseBackOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBackOut)"); return 0; } int lua_register_cocos2dx_EaseBackOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackOut"); tolua_cclass(tolua_S,"EaseBackOut","cc.EaseBackOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBackOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseBackOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackOut).name(); g_luaType[typeName] = "cc.EaseBackOut"; g_typeCast["EaseBackOut"] = "cc.EaseBackOut"; return 1; } int lua_cocos2dx_EaseBackInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBackInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBackInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackInOut_create'", nullptr); return 0; } cocos2d::EaseBackInOut* ret = cocos2d::EaseBackInOut::create(arg0); object_to_luaval<cocos2d::EaseBackInOut>(tolua_S, "cc.EaseBackInOut",(cocos2d::EaseBackInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseBackInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseBackInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseBackInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBackInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBackInOut:EaseBackInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBackInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseBackInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBackInOut)"); return 0; } int lua_register_cocos2dx_EaseBackInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBackInOut"); tolua_cclass(tolua_S,"EaseBackInOut","cc.EaseBackInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBackInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseBackInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBackInOut).name(); g_luaType[typeName] = "cc.EaseBackInOut"; g_typeCast["EaseBackInOut"] = "cc.EaseBackInOut"; return 1; } int lua_cocos2dx_EaseBezierAction_setBezierParamer(lua_State* tolua_S) { int argc = 0; cocos2d::EaseBezierAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.EaseBezierAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::EaseBezierAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_EaseBezierAction_setBezierParamer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; double arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.EaseBezierAction:setBezierParamer"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseBezierAction:setBezierParamer"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.EaseBezierAction:setBezierParamer"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.EaseBezierAction:setBezierParamer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBezierAction_setBezierParamer'", nullptr); return 0; } cobj->setBezierParamer(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBezierAction:setBezierParamer",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBezierAction_setBezierParamer'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseBezierAction_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseBezierAction",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBezierAction:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBezierAction_create'", nullptr); return 0; } cocos2d::EaseBezierAction* ret = cocos2d::EaseBezierAction::create(arg0); object_to_luaval<cocos2d::EaseBezierAction>(tolua_S, "cc.EaseBezierAction",(cocos2d::EaseBezierAction*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBezierAction:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBezierAction_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseBezierAction_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseBezierAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBezierAction_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseBezierAction(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseBezierAction"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseBezierAction:EaseBezierAction",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseBezierAction_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseBezierAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseBezierAction)"); return 0; } int lua_register_cocos2dx_EaseBezierAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseBezierAction"); tolua_cclass(tolua_S,"EaseBezierAction","cc.EaseBezierAction","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseBezierAction"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseBezierAction_constructor); tolua_function(tolua_S,"setBezierParamer",lua_cocos2dx_EaseBezierAction_setBezierParamer); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBezierAction_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseBezierAction).name(); g_luaType[typeName] = "cc.EaseBezierAction"; g_typeCast["EaseBezierAction"] = "cc.EaseBezierAction"; return 1; } int lua_cocos2dx_EaseQuadraticActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuadraticActionIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuadraticActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionIn_create'", nullptr); return 0; } cocos2d::EaseQuadraticActionIn* ret = cocos2d::EaseQuadraticActionIn::create(arg0); object_to_luaval<cocos2d::EaseQuadraticActionIn>(tolua_S, "cc.EaseQuadraticActionIn",(cocos2d::EaseQuadraticActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseQuadraticActionIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseQuadraticActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseQuadraticActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuadraticActionIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuadraticActionIn:EaseQuadraticActionIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseQuadraticActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuadraticActionIn)"); return 0; } int lua_register_cocos2dx_EaseQuadraticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionIn"); tolua_cclass(tolua_S,"EaseQuadraticActionIn","cc.EaseQuadraticActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuadraticActionIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuadraticActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionIn).name(); g_luaType[typeName] = "cc.EaseQuadraticActionIn"; g_typeCast["EaseQuadraticActionIn"] = "cc.EaseQuadraticActionIn"; return 1; } int lua_cocos2dx_EaseQuadraticActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuadraticActionOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuadraticActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionOut_create'", nullptr); return 0; } cocos2d::EaseQuadraticActionOut* ret = cocos2d::EaseQuadraticActionOut::create(arg0); object_to_luaval<cocos2d::EaseQuadraticActionOut>(tolua_S, "cc.EaseQuadraticActionOut",(cocos2d::EaseQuadraticActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseQuadraticActionOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseQuadraticActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseQuadraticActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuadraticActionOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuadraticActionOut:EaseQuadraticActionOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseQuadraticActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuadraticActionOut)"); return 0; } int lua_register_cocos2dx_EaseQuadraticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionOut"); tolua_cclass(tolua_S,"EaseQuadraticActionOut","cc.EaseQuadraticActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuadraticActionOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuadraticActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionOut).name(); g_luaType[typeName] = "cc.EaseQuadraticActionOut"; g_typeCast["EaseQuadraticActionOut"] = "cc.EaseQuadraticActionOut"; return 1; } int lua_cocos2dx_EaseQuadraticActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuadraticActionInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuadraticActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionInOut_create'", nullptr); return 0; } cocos2d::EaseQuadraticActionInOut* ret = cocos2d::EaseQuadraticActionInOut::create(arg0); object_to_luaval<cocos2d::EaseQuadraticActionInOut>(tolua_S, "cc.EaseQuadraticActionInOut",(cocos2d::EaseQuadraticActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseQuadraticActionInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseQuadraticActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseQuadraticActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuadraticActionInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuadraticActionInOut:EaseQuadraticActionInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuadraticActionInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseQuadraticActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuadraticActionInOut)"); return 0; } int lua_register_cocos2dx_EaseQuadraticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuadraticActionInOut"); tolua_cclass(tolua_S,"EaseQuadraticActionInOut","cc.EaseQuadraticActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuadraticActionInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuadraticActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuadraticActionInOut).name(); g_luaType[typeName] = "cc.EaseQuadraticActionInOut"; g_typeCast["EaseQuadraticActionInOut"] = "cc.EaseQuadraticActionInOut"; return 1; } int lua_cocos2dx_EaseQuarticActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuarticActionIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuarticActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionIn_create'", nullptr); return 0; } cocos2d::EaseQuarticActionIn* ret = cocos2d::EaseQuarticActionIn::create(arg0); object_to_luaval<cocos2d::EaseQuarticActionIn>(tolua_S, "cc.EaseQuarticActionIn",(cocos2d::EaseQuarticActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseQuarticActionIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseQuarticActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseQuarticActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuarticActionIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuarticActionIn:EaseQuarticActionIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseQuarticActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuarticActionIn)"); return 0; } int lua_register_cocos2dx_EaseQuarticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionIn"); tolua_cclass(tolua_S,"EaseQuarticActionIn","cc.EaseQuarticActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuarticActionIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuarticActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionIn).name(); g_luaType[typeName] = "cc.EaseQuarticActionIn"; g_typeCast["EaseQuarticActionIn"] = "cc.EaseQuarticActionIn"; return 1; } int lua_cocos2dx_EaseQuarticActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuarticActionOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuarticActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionOut_create'", nullptr); return 0; } cocos2d::EaseQuarticActionOut* ret = cocos2d::EaseQuarticActionOut::create(arg0); object_to_luaval<cocos2d::EaseQuarticActionOut>(tolua_S, "cc.EaseQuarticActionOut",(cocos2d::EaseQuarticActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseQuarticActionOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseQuarticActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseQuarticActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuarticActionOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuarticActionOut:EaseQuarticActionOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseQuarticActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuarticActionOut)"); return 0; } int lua_register_cocos2dx_EaseQuarticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionOut"); tolua_cclass(tolua_S,"EaseQuarticActionOut","cc.EaseQuarticActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuarticActionOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuarticActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionOut).name(); g_luaType[typeName] = "cc.EaseQuarticActionOut"; g_typeCast["EaseQuarticActionOut"] = "cc.EaseQuarticActionOut"; return 1; } int lua_cocos2dx_EaseQuarticActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuarticActionInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuarticActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionInOut_create'", nullptr); return 0; } cocos2d::EaseQuarticActionInOut* ret = cocos2d::EaseQuarticActionInOut::create(arg0); object_to_luaval<cocos2d::EaseQuarticActionInOut>(tolua_S, "cc.EaseQuarticActionInOut",(cocos2d::EaseQuarticActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseQuarticActionInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseQuarticActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseQuarticActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuarticActionInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuarticActionInOut:EaseQuarticActionInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuarticActionInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseQuarticActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuarticActionInOut)"); return 0; } int lua_register_cocos2dx_EaseQuarticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuarticActionInOut"); tolua_cclass(tolua_S,"EaseQuarticActionInOut","cc.EaseQuarticActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuarticActionInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuarticActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuarticActionInOut).name(); g_luaType[typeName] = "cc.EaseQuarticActionInOut"; g_typeCast["EaseQuarticActionInOut"] = "cc.EaseQuarticActionInOut"; return 1; } int lua_cocos2dx_EaseQuinticActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuinticActionIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuinticActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionIn_create'", nullptr); return 0; } cocos2d::EaseQuinticActionIn* ret = cocos2d::EaseQuinticActionIn::create(arg0); object_to_luaval<cocos2d::EaseQuinticActionIn>(tolua_S, "cc.EaseQuinticActionIn",(cocos2d::EaseQuinticActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseQuinticActionIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseQuinticActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseQuinticActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuinticActionIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuinticActionIn:EaseQuinticActionIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseQuinticActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuinticActionIn)"); return 0; } int lua_register_cocos2dx_EaseQuinticActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionIn"); tolua_cclass(tolua_S,"EaseQuinticActionIn","cc.EaseQuinticActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuinticActionIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuinticActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionIn).name(); g_luaType[typeName] = "cc.EaseQuinticActionIn"; g_typeCast["EaseQuinticActionIn"] = "cc.EaseQuinticActionIn"; return 1; } int lua_cocos2dx_EaseQuinticActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuinticActionOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuinticActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionOut_create'", nullptr); return 0; } cocos2d::EaseQuinticActionOut* ret = cocos2d::EaseQuinticActionOut::create(arg0); object_to_luaval<cocos2d::EaseQuinticActionOut>(tolua_S, "cc.EaseQuinticActionOut",(cocos2d::EaseQuinticActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseQuinticActionOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseQuinticActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseQuinticActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuinticActionOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuinticActionOut:EaseQuinticActionOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseQuinticActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuinticActionOut)"); return 0; } int lua_register_cocos2dx_EaseQuinticActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionOut"); tolua_cclass(tolua_S,"EaseQuinticActionOut","cc.EaseQuinticActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuinticActionOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuinticActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionOut).name(); g_luaType[typeName] = "cc.EaseQuinticActionOut"; g_typeCast["EaseQuinticActionOut"] = "cc.EaseQuinticActionOut"; return 1; } int lua_cocos2dx_EaseQuinticActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseQuinticActionInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuinticActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionInOut_create'", nullptr); return 0; } cocos2d::EaseQuinticActionInOut* ret = cocos2d::EaseQuinticActionInOut::create(arg0); object_to_luaval<cocos2d::EaseQuinticActionInOut>(tolua_S, "cc.EaseQuinticActionInOut",(cocos2d::EaseQuinticActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseQuinticActionInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseQuinticActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseQuinticActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseQuinticActionInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseQuinticActionInOut:EaseQuinticActionInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseQuinticActionInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseQuinticActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseQuinticActionInOut)"); return 0; } int lua_register_cocos2dx_EaseQuinticActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseQuinticActionInOut"); tolua_cclass(tolua_S,"EaseQuinticActionInOut","cc.EaseQuinticActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseQuinticActionInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuinticActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseQuinticActionInOut).name(); g_luaType[typeName] = "cc.EaseQuinticActionInOut"; g_typeCast["EaseQuinticActionInOut"] = "cc.EaseQuinticActionInOut"; return 1; } int lua_cocos2dx_EaseCircleActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCircleActionIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCircleActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionIn_create'", nullptr); return 0; } cocos2d::EaseCircleActionIn* ret = cocos2d::EaseCircleActionIn::create(arg0); object_to_luaval<cocos2d::EaseCircleActionIn>(tolua_S, "cc.EaseCircleActionIn",(cocos2d::EaseCircleActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseCircleActionIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseCircleActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseCircleActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCircleActionIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCircleActionIn:EaseCircleActionIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseCircleActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCircleActionIn)"); return 0; } int lua_register_cocos2dx_EaseCircleActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionIn"); tolua_cclass(tolua_S,"EaseCircleActionIn","cc.EaseCircleActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCircleActionIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseCircleActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionIn).name(); g_luaType[typeName] = "cc.EaseCircleActionIn"; g_typeCast["EaseCircleActionIn"] = "cc.EaseCircleActionIn"; return 1; } int lua_cocos2dx_EaseCircleActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCircleActionOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCircleActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionOut_create'", nullptr); return 0; } cocos2d::EaseCircleActionOut* ret = cocos2d::EaseCircleActionOut::create(arg0); object_to_luaval<cocos2d::EaseCircleActionOut>(tolua_S, "cc.EaseCircleActionOut",(cocos2d::EaseCircleActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseCircleActionOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseCircleActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseCircleActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCircleActionOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCircleActionOut:EaseCircleActionOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseCircleActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCircleActionOut)"); return 0; } int lua_register_cocos2dx_EaseCircleActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionOut"); tolua_cclass(tolua_S,"EaseCircleActionOut","cc.EaseCircleActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCircleActionOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseCircleActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionOut).name(); g_luaType[typeName] = "cc.EaseCircleActionOut"; g_typeCast["EaseCircleActionOut"] = "cc.EaseCircleActionOut"; return 1; } int lua_cocos2dx_EaseCircleActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCircleActionInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCircleActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionInOut_create'", nullptr); return 0; } cocos2d::EaseCircleActionInOut* ret = cocos2d::EaseCircleActionInOut::create(arg0); object_to_luaval<cocos2d::EaseCircleActionInOut>(tolua_S, "cc.EaseCircleActionInOut",(cocos2d::EaseCircleActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseCircleActionInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseCircleActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseCircleActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCircleActionInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCircleActionInOut:EaseCircleActionInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCircleActionInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseCircleActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCircleActionInOut)"); return 0; } int lua_register_cocos2dx_EaseCircleActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCircleActionInOut"); tolua_cclass(tolua_S,"EaseCircleActionInOut","cc.EaseCircleActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCircleActionInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseCircleActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCircleActionInOut).name(); g_luaType[typeName] = "cc.EaseCircleActionInOut"; g_typeCast["EaseCircleActionInOut"] = "cc.EaseCircleActionInOut"; return 1; } int lua_cocos2dx_EaseCubicActionIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCubicActionIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCubicActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionIn_create'", nullptr); return 0; } cocos2d::EaseCubicActionIn* ret = cocos2d::EaseCubicActionIn::create(arg0); object_to_luaval<cocos2d::EaseCubicActionIn>(tolua_S, "cc.EaseCubicActionIn",(cocos2d::EaseCubicActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionIn:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseCubicActionIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseCubicActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionIn_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseCubicActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCubicActionIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCubicActionIn:EaseCubicActionIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseCubicActionIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCubicActionIn)"); return 0; } int lua_register_cocos2dx_EaseCubicActionIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionIn"); tolua_cclass(tolua_S,"EaseCubicActionIn","cc.EaseCubicActionIn","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCubicActionIn"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseCubicActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionIn).name(); g_luaType[typeName] = "cc.EaseCubicActionIn"; g_typeCast["EaseCubicActionIn"] = "cc.EaseCubicActionIn"; return 1; } int lua_cocos2dx_EaseCubicActionOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCubicActionOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCubicActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionOut_create'", nullptr); return 0; } cocos2d::EaseCubicActionOut* ret = cocos2d::EaseCubicActionOut::create(arg0); object_to_luaval<cocos2d::EaseCubicActionOut>(tolua_S, "cc.EaseCubicActionOut",(cocos2d::EaseCubicActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseCubicActionOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseCubicActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseCubicActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCubicActionOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCubicActionOut:EaseCubicActionOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseCubicActionOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCubicActionOut)"); return 0; } int lua_register_cocos2dx_EaseCubicActionOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionOut"); tolua_cclass(tolua_S,"EaseCubicActionOut","cc.EaseCubicActionOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCubicActionOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseCubicActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionOut).name(); g_luaType[typeName] = "cc.EaseCubicActionOut"; g_typeCast["EaseCubicActionOut"] = "cc.EaseCubicActionOut"; return 1; } int lua_cocos2dx_EaseCubicActionInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.EaseCubicActionInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCubicActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionInOut_create'", nullptr); return 0; } cocos2d::EaseCubicActionInOut* ret = cocos2d::EaseCubicActionInOut::create(arg0); object_to_luaval<cocos2d::EaseCubicActionInOut>(tolua_S, "cc.EaseCubicActionInOut",(cocos2d::EaseCubicActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionInOut:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_EaseCubicActionInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::EaseCubicActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::EaseCubicActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.EaseCubicActionInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EaseCubicActionInOut:EaseCubicActionInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_EaseCubicActionInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_EaseCubicActionInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (EaseCubicActionInOut)"); return 0; } int lua_register_cocos2dx_EaseCubicActionInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.EaseCubicActionInOut"); tolua_cclass(tolua_S,"EaseCubicActionInOut","cc.EaseCubicActionInOut","cc.ActionEase",nullptr); tolua_beginmodule(tolua_S,"EaseCubicActionInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_EaseCubicActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::EaseCubicActionInOut).name(); g_luaType[typeName] = "cc.EaseCubicActionInOut"; g_typeCast["EaseCubicActionInOut"] = "cc.EaseCubicActionInOut"; return 1; } static int lua_cocos2dx_ActionInstant_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionInstant)"); return 0; } int lua_register_cocos2dx_ActionInstant(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionInstant"); tolua_cclass(tolua_S,"ActionInstant","cc.ActionInstant","cc.FiniteTimeAction",nullptr); tolua_beginmodule(tolua_S,"ActionInstant"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionInstant).name(); g_luaType[typeName] = "cc.ActionInstant"; g_typeCast["ActionInstant"] = "cc.ActionInstant"; return 1; } int lua_cocos2dx_Show_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Show",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Show_create'", nullptr); return 0; } cocos2d::Show* ret = cocos2d::Show::create(); object_to_luaval<cocos2d::Show>(tolua_S, "cc.Show",(cocos2d::Show*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Show:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Show_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Show_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Show* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Show_constructor'", nullptr); return 0; } cobj = new cocos2d::Show(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Show"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Show:Show",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Show_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Show_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Show)"); return 0; } int lua_register_cocos2dx_Show(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Show"); tolua_cclass(tolua_S,"Show","cc.Show","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"Show"); tolua_function(tolua_S,"new",lua_cocos2dx_Show_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_Show_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Show).name(); g_luaType[typeName] = "cc.Show"; g_typeCast["Show"] = "cc.Show"; return 1; } int lua_cocos2dx_Hide_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Hide",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Hide_create'", nullptr); return 0; } cocos2d::Hide* ret = cocos2d::Hide::create(); object_to_luaval<cocos2d::Hide>(tolua_S, "cc.Hide",(cocos2d::Hide*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Hide:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Hide_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Hide_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Hide* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Hide_constructor'", nullptr); return 0; } cobj = new cocos2d::Hide(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Hide"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Hide:Hide",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Hide_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Hide_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Hide)"); return 0; } int lua_register_cocos2dx_Hide(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Hide"); tolua_cclass(tolua_S,"Hide","cc.Hide","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"Hide"); tolua_function(tolua_S,"new",lua_cocos2dx_Hide_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_Hide_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Hide).name(); g_luaType[typeName] = "cc.Hide"; g_typeCast["Hide"] = "cc.Hide"; return 1; } int lua_cocos2dx_ToggleVisibility_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ToggleVisibility",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ToggleVisibility_create'", nullptr); return 0; } cocos2d::ToggleVisibility* ret = cocos2d::ToggleVisibility::create(); object_to_luaval<cocos2d::ToggleVisibility>(tolua_S, "cc.ToggleVisibility",(cocos2d::ToggleVisibility*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ToggleVisibility:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ToggleVisibility_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ToggleVisibility_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ToggleVisibility* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ToggleVisibility_constructor'", nullptr); return 0; } cobj = new cocos2d::ToggleVisibility(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ToggleVisibility"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ToggleVisibility:ToggleVisibility",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ToggleVisibility_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ToggleVisibility_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ToggleVisibility)"); return 0; } int lua_register_cocos2dx_ToggleVisibility(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ToggleVisibility"); tolua_cclass(tolua_S,"ToggleVisibility","cc.ToggleVisibility","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"ToggleVisibility"); tolua_function(tolua_S,"new",lua_cocos2dx_ToggleVisibility_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_ToggleVisibility_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ToggleVisibility).name(); g_luaType[typeName] = "cc.ToggleVisibility"; g_typeCast["ToggleVisibility"] = "cc.ToggleVisibility"; return 1; } int lua_cocos2dx_RemoveSelf_init(lua_State* tolua_S) { int argc = 0; cocos2d::RemoveSelf* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RemoveSelf",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RemoveSelf*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RemoveSelf_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RemoveSelf:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RemoveSelf_init'", nullptr); return 0; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RemoveSelf:init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RemoveSelf_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RemoveSelf",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RemoveSelf_create'", nullptr); return 0; } cocos2d::RemoveSelf* ret = cocos2d::RemoveSelf::create(); object_to_luaval<cocos2d::RemoveSelf>(tolua_S, "cc.RemoveSelf",(cocos2d::RemoveSelf*)ret); return 1; } if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RemoveSelf:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RemoveSelf_create'", nullptr); return 0; } cocos2d::RemoveSelf* ret = cocos2d::RemoveSelf::create(arg0); object_to_luaval<cocos2d::RemoveSelf>(tolua_S, "cc.RemoveSelf",(cocos2d::RemoveSelf*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.RemoveSelf:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RemoveSelf_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RemoveSelf_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::RemoveSelf* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RemoveSelf_constructor'", nullptr); return 0; } cobj = new cocos2d::RemoveSelf(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.RemoveSelf"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RemoveSelf:RemoveSelf",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RemoveSelf_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_RemoveSelf_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RemoveSelf)"); return 0; } int lua_register_cocos2dx_RemoveSelf(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RemoveSelf"); tolua_cclass(tolua_S,"RemoveSelf","cc.RemoveSelf","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"RemoveSelf"); tolua_function(tolua_S,"new",lua_cocos2dx_RemoveSelf_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_RemoveSelf_init); tolua_function(tolua_S,"create", lua_cocos2dx_RemoveSelf_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RemoveSelf).name(); g_luaType[typeName] = "cc.RemoveSelf"; g_typeCast["RemoveSelf"] = "cc.RemoveSelf"; return 1; } int lua_cocos2dx_FlipX_initWithFlipX(lua_State* tolua_S) { int argc = 0; cocos2d::FlipX* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FlipX",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FlipX*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FlipX_initWithFlipX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.FlipX:initWithFlipX"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX_initWithFlipX'", nullptr); return 0; } bool ret = cobj->initWithFlipX(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipX:initWithFlipX",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX_initWithFlipX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FlipX_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipX",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.FlipX:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX_create'", nullptr); return 0; } cocos2d::FlipX* ret = cocos2d::FlipX::create(arg0); object_to_luaval<cocos2d::FlipX>(tolua_S, "cc.FlipX",(cocos2d::FlipX*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipX:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FlipX_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FlipX* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX_constructor'", nullptr); return 0; } cobj = new cocos2d::FlipX(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FlipX"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipX:FlipX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FlipX_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FlipX)"); return 0; } int lua_register_cocos2dx_FlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipX"); tolua_cclass(tolua_S,"FlipX","cc.FlipX","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"FlipX"); tolua_function(tolua_S,"new",lua_cocos2dx_FlipX_constructor); tolua_function(tolua_S,"initWithFlipX",lua_cocos2dx_FlipX_initWithFlipX); tolua_function(tolua_S,"create", lua_cocos2dx_FlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipX).name(); g_luaType[typeName] = "cc.FlipX"; g_typeCast["FlipX"] = "cc.FlipX"; return 1; } int lua_cocos2dx_FlipY_initWithFlipY(lua_State* tolua_S) { int argc = 0; cocos2d::FlipY* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FlipY",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FlipY*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FlipY_initWithFlipY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.FlipY:initWithFlipY"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY_initWithFlipY'", nullptr); return 0; } bool ret = cobj->initWithFlipY(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipY:initWithFlipY",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY_initWithFlipY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FlipY_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipY",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.FlipY:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY_create'", nullptr); return 0; } cocos2d::FlipY* ret = cocos2d::FlipY::create(arg0); object_to_luaval<cocos2d::FlipY>(tolua_S, "cc.FlipY",(cocos2d::FlipY*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipY:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FlipY_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FlipY* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY_constructor'", nullptr); return 0; } cobj = new cocos2d::FlipY(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FlipY"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipY:FlipY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FlipY_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FlipY)"); return 0; } int lua_register_cocos2dx_FlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipY"); tolua_cclass(tolua_S,"FlipY","cc.FlipY","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"FlipY"); tolua_function(tolua_S,"new",lua_cocos2dx_FlipY_constructor); tolua_function(tolua_S,"initWithFlipY",lua_cocos2dx_FlipY_initWithFlipY); tolua_function(tolua_S,"create", lua_cocos2dx_FlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipY).name(); g_luaType[typeName] = "cc.FlipY"; g_typeCast["FlipY"] = "cc.FlipY"; return 1; } int lua_cocos2dx_Place_initWithPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Place* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Place",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Place*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Place_initWithPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Place:initWithPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Place_initWithPosition'", nullptr); return 0; } bool ret = cobj->initWithPosition(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Place:initWithPosition",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Place_initWithPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Place_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Place",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Place:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Place_create'", nullptr); return 0; } cocos2d::Place* ret = cocos2d::Place::create(arg0); object_to_luaval<cocos2d::Place>(tolua_S, "cc.Place",(cocos2d::Place*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Place:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Place_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Place_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Place* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Place_constructor'", nullptr); return 0; } cobj = new cocos2d::Place(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Place"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Place:Place",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Place_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Place_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Place)"); return 0; } int lua_register_cocos2dx_Place(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Place"); tolua_cclass(tolua_S,"Place","cc.Place","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"Place"); tolua_function(tolua_S,"new",lua_cocos2dx_Place_constructor); tolua_function(tolua_S,"initWithPosition",lua_cocos2dx_Place_initWithPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Place_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Place).name(); g_luaType[typeName] = "cc.Place"; g_typeCast["Place"] = "cc.Place"; return 1; } int lua_cocos2dx_CallFunc_execute(lua_State* tolua_S) { int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CallFunc_execute'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CallFunc_execute'", nullptr); return 0; } cobj->execute(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:execute",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_execute'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CallFunc_getTargetCallback(lua_State* tolua_S) { int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CallFunc_getTargetCallback'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CallFunc_getTargetCallback'", nullptr); return 0; } cocos2d::Ref* ret = cobj->getTargetCallback(); object_to_luaval<cocos2d::Ref>(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:getTargetCallback",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_getTargetCallback'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CallFunc_setTargetCallback(lua_State* tolua_S) { int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CallFunc_setTargetCallback'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Ref* arg0; ok &= luaval_to_object<cocos2d::Ref>(tolua_S, 2, "cc.Ref",&arg0, "cc.CallFunc:setTargetCallback"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CallFunc_setTargetCallback'", nullptr); return 0; } cobj->setTargetCallback(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:setTargetCallback",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_setTargetCallback'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CallFunc_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::CallFunc* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CallFunc_constructor'", nullptr); return 0; } cobj = new cocos2d::CallFunc(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.CallFunc"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CallFunc:CallFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CallFunc_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_CallFunc_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CallFunc)"); return 0; } int lua_register_cocos2dx_CallFunc(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CallFunc"); tolua_cclass(tolua_S,"CallFunc","cc.CallFunc","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"CallFunc"); tolua_function(tolua_S,"new",lua_cocos2dx_CallFunc_constructor); tolua_function(tolua_S,"execute",lua_cocos2dx_CallFunc_execute); tolua_function(tolua_S,"getTargetCallback",lua_cocos2dx_CallFunc_getTargetCallback); tolua_function(tolua_S,"setTargetCallback",lua_cocos2dx_CallFunc_setTargetCallback); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CallFunc).name(); g_luaType[typeName] = "cc.CallFunc"; g_typeCast["CallFunc"] = "cc.CallFunc"; return 1; } int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) { int argc = 0; cocos2d::GridAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridAction_getGrid'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridAction_getGrid'", nullptr); return 0; } cocos2d::GridBase* ret = cobj->getGrid(); object_to_luaval<cocos2d::GridBase>(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridAction:getGrid",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridAction_getGrid'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridAction_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::GridAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridAction_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; cocos2d::Size arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GridAction:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.GridAction:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridAction_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridAction:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridAction_initWithDuration'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_GridAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GridAction)"); return 0; } int lua_register_cocos2dx_GridAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GridAction"); tolua_cclass(tolua_S,"GridAction","cc.GridAction","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"GridAction"); tolua_function(tolua_S,"getGrid",lua_cocos2dx_GridAction_getGrid); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_GridAction_initWithDuration); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GridAction).name(); g_luaType[typeName] = "cc.GridAction"; g_typeCast["GridAction"] = "cc.GridAction"; return 1; } int lua_cocos2dx_Grid3DAction_getGridRect(lua_State* tolua_S) { int argc = 0; cocos2d::Grid3DAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Grid3DAction",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Grid3DAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3DAction_getGridRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Grid3DAction_getGridRect'", nullptr); return 0; } cocos2d::Rect ret = cobj->getGridRect(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3DAction:getGridRect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3DAction_getGridRect'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Grid3DAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Grid3DAction)"); return 0; } int lua_register_cocos2dx_Grid3DAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Grid3DAction"); tolua_cclass(tolua_S,"Grid3DAction","cc.Grid3DAction","cc.GridAction",nullptr); tolua_beginmodule(tolua_S,"Grid3DAction"); tolua_function(tolua_S,"getGridRect",lua_cocos2dx_Grid3DAction_getGridRect); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Grid3DAction).name(); g_luaType[typeName] = "cc.Grid3DAction"; g_typeCast["Grid3DAction"] = "cc.Grid3DAction"; return 1; } static int lua_cocos2dx_TiledGrid3DAction_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TiledGrid3DAction)"); return 0; } int lua_register_cocos2dx_TiledGrid3DAction(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TiledGrid3DAction"); tolua_cclass(tolua_S,"TiledGrid3DAction","cc.TiledGrid3DAction","cc.GridAction",nullptr); tolua_beginmodule(tolua_S,"TiledGrid3DAction"); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TiledGrid3DAction).name(); g_luaType[typeName] = "cc.TiledGrid3DAction"; g_typeCast["TiledGrid3DAction"] = "cc.TiledGrid3DAction"; return 1; } int lua_cocos2dx_StopGrid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.StopGrid",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_StopGrid_create'", nullptr); return 0; } cocos2d::StopGrid* ret = cocos2d::StopGrid::create(); object_to_luaval<cocos2d::StopGrid>(tolua_S, "cc.StopGrid",(cocos2d::StopGrid*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.StopGrid:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_StopGrid_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_StopGrid_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::StopGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_StopGrid_constructor'", nullptr); return 0; } cobj = new cocos2d::StopGrid(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.StopGrid"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.StopGrid:StopGrid",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_StopGrid_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_StopGrid_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (StopGrid)"); return 0; } int lua_register_cocos2dx_StopGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.StopGrid"); tolua_cclass(tolua_S,"StopGrid","cc.StopGrid","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"StopGrid"); tolua_function(tolua_S,"new",lua_cocos2dx_StopGrid_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_StopGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::StopGrid).name(); g_luaType[typeName] = "cc.StopGrid"; g_typeCast["StopGrid"] = "cc.StopGrid"; return 1; } int lua_cocos2dx_ReuseGrid_initWithTimes(lua_State* tolua_S) { int argc = 0; cocos2d::ReuseGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ReuseGrid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ReuseGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ReuseGrid_initWithTimes'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ReuseGrid:initWithTimes"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ReuseGrid_initWithTimes'", nullptr); return 0; } bool ret = cobj->initWithTimes(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ReuseGrid:initWithTimes",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ReuseGrid_initWithTimes'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ReuseGrid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ReuseGrid",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ReuseGrid:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ReuseGrid_create'", nullptr); return 0; } cocos2d::ReuseGrid* ret = cocos2d::ReuseGrid::create(arg0); object_to_luaval<cocos2d::ReuseGrid>(tolua_S, "cc.ReuseGrid",(cocos2d::ReuseGrid*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ReuseGrid:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ReuseGrid_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ReuseGrid_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ReuseGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ReuseGrid_constructor'", nullptr); return 0; } cobj = new cocos2d::ReuseGrid(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ReuseGrid"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ReuseGrid:ReuseGrid",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ReuseGrid_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ReuseGrid_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ReuseGrid)"); return 0; } int lua_register_cocos2dx_ReuseGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ReuseGrid"); tolua_cclass(tolua_S,"ReuseGrid","cc.ReuseGrid","cc.ActionInstant",nullptr); tolua_beginmodule(tolua_S,"ReuseGrid"); tolua_function(tolua_S,"new",lua_cocos2dx_ReuseGrid_constructor); tolua_function(tolua_S,"initWithTimes",lua_cocos2dx_ReuseGrid_initWithTimes); tolua_function(tolua_S,"create", lua_cocos2dx_ReuseGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ReuseGrid).name(); g_luaType[typeName] = "cc.ReuseGrid"; g_typeCast["ReuseGrid"] = "cc.ReuseGrid"; return 1; } int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:setAmplitudeRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'", nullptr); return 0; } cobj->setAmplitudeRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:setAmplitudeRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_setAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves3D_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Waves3D:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Waves3D:initWithDuration"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Waves3D:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_getAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_getAmplitude'", nullptr); return 0; } double ret = cobj->getAmplitude(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:getAmplitude",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_getAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_getAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_getAmplitudeRate'", nullptr); return 0; } double ret = cobj->getAmplitudeRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:getAmplitudeRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_getAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves3D_setAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:setAmplitude"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_setAmplitude'", nullptr); return 0; } cobj->setAmplitude(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:setAmplitude",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_setAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Waves3D:create"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Waves3D:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Waves3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_create'", nullptr); return 0; } cocos2d::Waves3D* ret = cocos2d::Waves3D::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Waves3D>(tolua_S, "cc.Waves3D",(cocos2d::Waves3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Waves3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_constructor'", nullptr); return 0; } cobj = new cocos2d::Waves3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Waves3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves3D:Waves3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Waves3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Waves3D)"); return 0; } int lua_register_cocos2dx_Waves3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Waves3D"); tolua_cclass(tolua_S,"Waves3D","cc.Waves3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Waves3D"); tolua_function(tolua_S,"new",lua_cocos2dx_Waves3D_constructor); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves3D_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Waves3D_initWithDuration); tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves3D_getAmplitude); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves3D_getAmplitudeRate); tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves3D_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_Waves3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Waves3D).name(); g_luaType[typeName] = "cc.Waves3D"; g_typeCast["Waves3D"] = "cc.Waves3D"; return 1; } int lua_cocos2dx_FlipX3D_initWithSize(lua_State* tolua_S) { int argc = 0; cocos2d::FlipX3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FlipX3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FlipX3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FlipX3D_initWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Size arg0; double arg1; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.FlipX3D:initWithSize"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FlipX3D:initWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX3D_initWithSize'", nullptr); return 0; } bool ret = cobj->initWithSize(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipX3D:initWithSize",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX3D_initWithSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FlipX3D_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::FlipX3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FlipX3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FlipX3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FlipX3D_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FlipX3D:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX3D_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipX3D:initWithDuration",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX3D_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FlipX3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipX3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FlipX3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX3D_create'", nullptr); return 0; } cocos2d::FlipX3D* ret = cocos2d::FlipX3D::create(arg0); object_to_luaval<cocos2d::FlipX3D>(tolua_S, "cc.FlipX3D",(cocos2d::FlipX3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipX3D:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FlipX3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FlipX3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX3D_constructor'", nullptr); return 0; } cobj = new cocos2d::FlipX3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FlipX3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipX3D:FlipX3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipX3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FlipX3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FlipX3D)"); return 0; } int lua_register_cocos2dx_FlipX3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipX3D"); tolua_cclass(tolua_S,"FlipX3D","cc.FlipX3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"FlipX3D"); tolua_function(tolua_S,"new",lua_cocos2dx_FlipX3D_constructor); tolua_function(tolua_S,"initWithSize",lua_cocos2dx_FlipX3D_initWithSize); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_FlipX3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_FlipX3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipX3D).name(); g_luaType[typeName] = "cc.FlipX3D"; g_typeCast["FlipX3D"] = "cc.FlipX3D"; return 1; } int lua_cocos2dx_FlipY3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FlipY3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FlipY3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY3D_create'", nullptr); return 0; } cocos2d::FlipY3D* ret = cocos2d::FlipY3D::create(arg0); object_to_luaval<cocos2d::FlipY3D>(tolua_S, "cc.FlipY3D",(cocos2d::FlipY3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipY3D:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FlipY3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FlipY3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY3D_constructor'", nullptr); return 0; } cobj = new cocos2d::FlipY3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FlipY3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FlipY3D:FlipY3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FlipY3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FlipY3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FlipY3D)"); return 0; } int lua_register_cocos2dx_FlipY3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FlipY3D"); tolua_cclass(tolua_S,"FlipY3D","cc.FlipY3D","cc.FlipX3D",nullptr); tolua_beginmodule(tolua_S,"FlipY3D"); tolua_function(tolua_S,"new",lua_cocos2dx_FlipY3D_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FlipY3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FlipY3D).name(); g_luaType[typeName] = "cc.FlipY3D"; g_typeCast["FlipY3D"] = "cc.FlipY3D"; return 1; } int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) { int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_setConcave'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Lens3D:setConcave"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_setConcave'", nullptr); return 0; } cobj->setConcave(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:setConcave",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setConcave'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Lens3D_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Size arg1; cocos2d::Vec2 arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Lens3D:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Lens3D:initWithDuration"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Lens3D:initWithDuration"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Lens3D:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) { int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_setLensEffect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Lens3D:setLensEffect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_setLensEffect'", nullptr); return 0; } cobj->setLensEffect(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:setLensEffect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setLensEffect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) { int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_getLensEffect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_getLensEffect'", nullptr); return 0; } double ret = cobj->getLensEffect(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:getLensEffect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_getLensEffect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Lens3D_setPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_setPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Lens3D:setPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_setPosition'", nullptr); return 0; } cobj->setPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:setPosition",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_setPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Lens3D_getPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_getPosition'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:getPosition",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_getPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Size arg1; cocos2d::Vec2 arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Lens3D:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Lens3D:create"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Lens3D:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Lens3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_create'", nullptr); return 0; } cocos2d::Lens3D* ret = cocos2d::Lens3D::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Lens3D>(tolua_S, "cc.Lens3D",(cocos2d::Lens3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Lens3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Lens3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_constructor'", nullptr); return 0; } cobj = new cocos2d::Lens3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Lens3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Lens3D:Lens3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Lens3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Lens3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Lens3D)"); return 0; } int lua_register_cocos2dx_Lens3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Lens3D"); tolua_cclass(tolua_S,"Lens3D","cc.Lens3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Lens3D"); tolua_function(tolua_S,"new",lua_cocos2dx_Lens3D_constructor); tolua_function(tolua_S,"setConcave",lua_cocos2dx_Lens3D_setConcave); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Lens3D_initWithDuration); tolua_function(tolua_S,"setLensEffect",lua_cocos2dx_Lens3D_setLensEffect); tolua_function(tolua_S,"getLensEffect",lua_cocos2dx_Lens3D_getLensEffect); tolua_function(tolua_S,"setPosition",lua_cocos2dx_Lens3D_setPosition); tolua_function(tolua_S,"getPosition",lua_cocos2dx_Lens3D_getPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Lens3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Lens3D).name(); g_luaType[typeName] = "cc.Lens3D"; g_typeCast["Lens3D"] = "cc.Lens3D"; return 1; } int lua_cocos2dx_Ripple3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_setAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Ripple3D:setAmplitudeRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_setAmplitudeRate'", nullptr); return 0; } cobj->setAmplitudeRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:setAmplitudeRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_setAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ripple3D_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 6) { double arg0; cocos2d::Size arg1; cocos2d::Vec2 arg2; double arg3; unsigned int arg4; double arg5; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Ripple3D:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Ripple3D:initWithDuration"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Ripple3D:initWithDuration"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Ripple3D:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 6,&arg4, "cc.Ripple3D:initWithDuration"); ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.Ripple3D:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:initWithDuration",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_getAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_getAmplitudeRate'", nullptr); return 0; } double ret = cobj->getAmplitudeRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:getAmplitudeRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_getAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_setAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Ripple3D:setAmplitude"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_setAmplitude'", nullptr); return 0; } cobj->setAmplitude(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:setAmplitude",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_setAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_getAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_getAmplitude'", nullptr); return 0; } double ret = cobj->getAmplitude(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:getAmplitude",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_getAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_setPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Ripple3D:setPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_setPosition'", nullptr); return 0; } cobj->setPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:setPosition",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_setPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Ripple3D_getPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_getPosition'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:getPosition",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_getPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ripple3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 6) { double arg0; cocos2d::Size arg1; cocos2d::Vec2 arg2; double arg3; unsigned int arg4; double arg5; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Ripple3D:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Ripple3D:create"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Ripple3D:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Ripple3D:create"); ok &= luaval_to_uint32(tolua_S, 6,&arg4, "cc.Ripple3D:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.Ripple3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_create'", nullptr); return 0; } cocos2d::Ripple3D* ret = cocos2d::Ripple3D::create(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval<cocos2d::Ripple3D>(tolua_S, "cc.Ripple3D",(cocos2d::Ripple3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Ripple3D:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Ripple3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_constructor'", nullptr); return 0; } cobj = new cocos2d::Ripple3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Ripple3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Ripple3D:Ripple3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Ripple3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Ripple3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Ripple3D)"); return 0; } int lua_register_cocos2dx_Ripple3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Ripple3D"); tolua_cclass(tolua_S,"Ripple3D","cc.Ripple3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Ripple3D"); tolua_function(tolua_S,"new",lua_cocos2dx_Ripple3D_constructor); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Ripple3D_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Ripple3D_initWithDuration); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Ripple3D_getAmplitudeRate); tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Ripple3D_setAmplitude); tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Ripple3D_getAmplitude); tolua_function(tolua_S,"setPosition",lua_cocos2dx_Ripple3D_setPosition); tolua_function(tolua_S,"getPosition",lua_cocos2dx_Ripple3D_getPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Ripple3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Ripple3D).name(); g_luaType[typeName] = "cc.Ripple3D"; g_typeCast["Ripple3D"] = "cc.Ripple3D"; return 1; } int lua_cocos2dx_Shaky3D_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::Shaky3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Shaky3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Shaky3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Shaky3D_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Size arg1; int arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Shaky3D:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Shaky3D:initWithDuration"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Shaky3D:initWithDuration"); ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.Shaky3D:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Shaky3D_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Shaky3D:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Shaky3D_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Shaky3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Size arg1; int arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Shaky3D:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Shaky3D:create"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Shaky3D:create"); ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.Shaky3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Shaky3D_create'", nullptr); return 0; } cocos2d::Shaky3D* ret = cocos2d::Shaky3D::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Shaky3D>(tolua_S, "cc.Shaky3D",(cocos2d::Shaky3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Shaky3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Shaky3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Shaky3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Shaky3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Shaky3D_constructor'", nullptr); return 0; } cobj = new cocos2d::Shaky3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Shaky3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Shaky3D:Shaky3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Shaky3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Shaky3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Shaky3D)"); return 0; } int lua_register_cocos2dx_Shaky3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Shaky3D"); tolua_cclass(tolua_S,"Shaky3D","cc.Shaky3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Shaky3D"); tolua_function(tolua_S,"new",lua_cocos2dx_Shaky3D_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Shaky3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_Shaky3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Shaky3D).name(); g_luaType[typeName] = "cc.Shaky3D"; g_typeCast["Shaky3D"] = "cc.Shaky3D"; return 1; } int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_setAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:setAmplitudeRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_setAmplitudeRate'", nullptr); return 0; } cobj->setAmplitudeRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:setAmplitudeRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_setAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Liquid_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Liquid:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Liquid:initWithDuration"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Liquid:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_getAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_getAmplitude'", nullptr); return 0; } double ret = cobj->getAmplitude(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:getAmplitude",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_getAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Liquid_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_getAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_getAmplitudeRate'", nullptr); return 0; } double ret = cobj->getAmplitudeRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:getAmplitudeRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_getAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Liquid_setAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:setAmplitude"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_setAmplitude'", nullptr); return 0; } cobj->setAmplitude(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:setAmplitude",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_setAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Liquid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Liquid:create"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Liquid:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Liquid:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_create'", nullptr); return 0; } cocos2d::Liquid* ret = cocos2d::Liquid::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Liquid>(tolua_S, "cc.Liquid",(cocos2d::Liquid*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Liquid:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Liquid_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_constructor'", nullptr); return 0; } cobj = new cocos2d::Liquid(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Liquid"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Liquid:Liquid",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Liquid_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Liquid_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Liquid)"); return 0; } int lua_register_cocos2dx_Liquid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Liquid"); tolua_cclass(tolua_S,"Liquid","cc.Liquid","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Liquid"); tolua_function(tolua_S,"new",lua_cocos2dx_Liquid_constructor); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Liquid_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Liquid_initWithDuration); tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Liquid_getAmplitude); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Liquid_getAmplitudeRate); tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Liquid_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_Liquid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Liquid).name(); g_luaType[typeName] = "cc.Liquid"; g_typeCast["Liquid"] = "cc.Liquid"; return 1; } int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_setAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:setAmplitudeRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_setAmplitudeRate'", nullptr); return 0; } cobj->setAmplitudeRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:setAmplitudeRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_setAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 6) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; bool arg4; bool arg5; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Waves:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Waves:initWithDuration"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Waves:initWithDuration"); ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.Waves:initWithDuration"); ok &= luaval_to_boolean(tolua_S, 7,&arg5, "cc.Waves:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:initWithDuration",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_getAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_getAmplitude'", nullptr); return 0; } double ret = cobj->getAmplitude(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:getAmplitude",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_getAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_getAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_getAmplitudeRate'", nullptr); return 0; } double ret = cobj->getAmplitudeRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:getAmplitudeRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_getAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Waves_setAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:setAmplitude"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_setAmplitude'", nullptr); return 0; } cobj->setAmplitude(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:setAmplitude",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_setAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 6) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; bool arg4; bool arg5; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Waves:create"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Waves:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Waves:create"); ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.Waves:create"); ok &= luaval_to_boolean(tolua_S, 7,&arg5, "cc.Waves:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_create'", nullptr); return 0; } cocos2d::Waves* ret = cocos2d::Waves::create(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval<cocos2d::Waves>(tolua_S, "cc.Waves",(cocos2d::Waves*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Waves:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Waves_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_constructor'", nullptr); return 0; } cobj = new cocos2d::Waves(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Waves"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Waves:Waves",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Waves_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Waves_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Waves)"); return 0; } int lua_register_cocos2dx_Waves(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Waves"); tolua_cclass(tolua_S,"Waves","cc.Waves","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Waves"); tolua_function(tolua_S,"new",lua_cocos2dx_Waves_constructor); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Waves_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Waves_initWithDuration); tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Waves_getAmplitude); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Waves_getAmplitudeRate); tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_Waves_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Waves).name(); g_luaType[typeName] = "cc.Waves"; g_typeCast["Waves"] = "cc.Waves"; return 1; } int lua_cocos2dx_Twirl_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_setAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:setAmplitudeRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_setAmplitudeRate'", nullptr); return 0; } cobj->setAmplitudeRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:setAmplitudeRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_setAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Twirl_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 5) { double arg0; cocos2d::Size arg1; cocos2d::Vec2 arg2; unsigned int arg3; double arg4; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Twirl:initWithDuration"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Twirl:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.Twirl:initWithDuration"); ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.Twirl:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:initWithDuration",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_getAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_getAmplitudeRate'", nullptr); return 0; } double ret = cobj->getAmplitudeRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:getAmplitudeRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_getAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_setAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:setAmplitude"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_setAmplitude'", nullptr); return 0; } cobj->setAmplitude(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:setAmplitude",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_setAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_getAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_getAmplitude'", nullptr); return 0; } double ret = cobj->getAmplitude(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:getAmplitude",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_getAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_setPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Twirl:setPosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_setPosition'", nullptr); return 0; } cobj->setPosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:setPosition",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_setPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Twirl_getPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_getPosition'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:getPosition",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_getPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Twirl_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 5) { double arg0; cocos2d::Size arg1; cocos2d::Vec2 arg2; unsigned int arg3; double arg4; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Twirl:create"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Twirl:create"); ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.Twirl:create"); ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.Twirl:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_create'", nullptr); return 0; } cocos2d::Twirl* ret = cocos2d::Twirl::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::Twirl>(tolua_S, "cc.Twirl",(cocos2d::Twirl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Twirl:create",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Twirl_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_constructor'", nullptr); return 0; } cobj = new cocos2d::Twirl(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Twirl"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Twirl:Twirl",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Twirl_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Twirl_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Twirl)"); return 0; } int lua_register_cocos2dx_Twirl(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Twirl"); tolua_cclass(tolua_S,"Twirl","cc.Twirl","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"Twirl"); tolua_function(tolua_S,"new",lua_cocos2dx_Twirl_constructor); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_Twirl_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Twirl_initWithDuration); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_Twirl_getAmplitudeRate); tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Twirl_setAmplitude); tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_Twirl_getAmplitude); tolua_function(tolua_S,"setPosition",lua_cocos2dx_Twirl_setPosition); tolua_function(tolua_S,"getPosition",lua_cocos2dx_Twirl_getPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Twirl_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Twirl).name(); g_luaType[typeName] = "cc.Twirl"; g_typeCast["Twirl"] = "cc.Twirl"; return 1; } int lua_cocos2dx_ActionManager_getActionByTag(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_getActionByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; const cocos2d::Node* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:getActionByTag"); ok &= luaval_to_object<const cocos2d::Node>(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:getActionByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_getActionByTag'", nullptr); return 0; } cocos2d::Action* ret = cobj->getActionByTag(arg0, arg1); object_to_luaval<cocos2d::Action>(tolua_S, "cc.Action",(cocos2d::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:getActionByTag",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_getActionByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeActionByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; cocos2d::Node* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:removeActionByTag"); ok &= luaval_to_object<cocos2d::Node>(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:removeActionByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeActionByTag'", nullptr); return 0; } cobj->removeActionByTag(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeActionByTag",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeActionByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_removeActionsByFlags(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeActionsByFlags'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { unsigned int arg0; cocos2d::Node* arg1; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.ActionManager:removeActionsByFlags"); ok &= luaval_to_object<cocos2d::Node>(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:removeActionsByFlags"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeActionsByFlags'", nullptr); return 0; } cobj->removeActionsByFlags(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeActionsByFlags",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeActionsByFlags'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAllActions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeAllActions'", nullptr); return 0; } cobj->removeAllActions(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAllActions",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAllActions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_addAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Action* arg0; cocos2d::Node* arg1; bool arg2; ok &= luaval_to_object<cocos2d::Action>(tolua_S, 2, "cc.Action",&arg0, "cc.ActionManager:addAction"); ok &= luaval_to_object<cocos2d::Node>(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:addAction"); ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.ActionManager:addAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_addAction'", nullptr); return 0; } cobj->addAction(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:addAction",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_addAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_resumeTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:resumeTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_resumeTarget'", nullptr); return 0; } cobj->resumeTarget(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:resumeTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_resumeTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionManager:update"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_update'", nullptr); return 0; } cobj->update(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:update",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_update'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_pauseTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:pauseTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_pauseTarget'", nullptr); return 0; } cobj->pauseTarget(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:pauseTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_pauseTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const cocos2d::Node* arg0; ok &= luaval_to_object<const cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:getNumberOfRunningActionsInTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget'", nullptr); return 0; } ssize_t ret = cobj->getNumberOfRunningActionsInTarget(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:getNumberOfRunningActionsInTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAllActionsFromTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:removeAllActionsFromTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeAllActionsFromTarget'", nullptr); return 0; } cobj->removeAllActionsFromTarget(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAllActionsFromTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAllActionsFromTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_resumeTargets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::Node *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.ActionManager:resumeTargets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_resumeTargets'", nullptr); return 0; } cobj->resumeTargets(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:resumeTargets",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_resumeTargets'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Action* arg0; ok &= luaval_to_object<cocos2d::Action>(tolua_S, 2, "cc.Action",&arg0, "cc.ActionManager:removeAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeAction'", nullptr); return 0; } cobj->removeAction(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_removeAllActionsByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; cocos2d::Node* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:removeAllActionsByTag"); ok &= luaval_to_object<cocos2d::Node>(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:removeAllActionsByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeAllActionsByTag'", nullptr); return 0; } cobj->removeAllActionsByTag(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:removeAllActionsByTag",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_removeAllActionsByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionManager_pauseAllRunningActions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_pauseAllRunningActions'", nullptr); return 0; } cocos2d::Vector<cocos2d::Node *> ret = cobj->pauseAllRunningActions(); ccvector_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:pauseAllRunningActions",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_pauseAllRunningActions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionManager_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_constructor'", nullptr); return 0; } cobj = new cocos2d::ActionManager(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ActionManager"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:ActionManager",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionManager_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ActionManager_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionManager)"); return 0; } int lua_register_cocos2dx_ActionManager(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionManager"); tolua_cclass(tolua_S,"ActionManager","cc.ActionManager","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"ActionManager"); tolua_function(tolua_S,"new",lua_cocos2dx_ActionManager_constructor); tolua_function(tolua_S,"getActionByTag",lua_cocos2dx_ActionManager_getActionByTag); tolua_function(tolua_S,"removeActionByTag",lua_cocos2dx_ActionManager_removeActionByTag); tolua_function(tolua_S,"removeActionsByFlags",lua_cocos2dx_ActionManager_removeActionsByFlags); tolua_function(tolua_S,"removeAllActions",lua_cocos2dx_ActionManager_removeAllActions); tolua_function(tolua_S,"addAction",lua_cocos2dx_ActionManager_addAction); tolua_function(tolua_S,"resumeTarget",lua_cocos2dx_ActionManager_resumeTarget); tolua_function(tolua_S,"update",lua_cocos2dx_ActionManager_update); tolua_function(tolua_S,"pauseTarget",lua_cocos2dx_ActionManager_pauseTarget); tolua_function(tolua_S,"getNumberOfRunningActionsInTarget",lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget); tolua_function(tolua_S,"removeAllActionsFromTarget",lua_cocos2dx_ActionManager_removeAllActionsFromTarget); tolua_function(tolua_S,"resumeTargets",lua_cocos2dx_ActionManager_resumeTargets); tolua_function(tolua_S,"removeAction",lua_cocos2dx_ActionManager_removeAction); tolua_function(tolua_S,"removeAllActionsByTag",lua_cocos2dx_ActionManager_removeAllActionsByTag); tolua_function(tolua_S,"pauseAllRunningActions",lua_cocos2dx_ActionManager_pauseAllRunningActions); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionManager).name(); g_luaType[typeName] = "cc.ActionManager"; g_typeCast["ActionManager"] = "cc.ActionManager"; return 1; } int lua_cocos2dx_PageTurn3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.PageTurn3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Size arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PageTurn3D:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.PageTurn3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PageTurn3D_create'", nullptr); return 0; } cocos2d::PageTurn3D* ret = cocos2d::PageTurn3D::create(arg0, arg1); object_to_luaval<cocos2d::PageTurn3D>(tolua_S, "cc.PageTurn3D",(cocos2d::PageTurn3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PageTurn3D:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PageTurn3D_create'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_PageTurn3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PageTurn3D)"); return 0; } int lua_register_cocos2dx_PageTurn3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PageTurn3D"); tolua_cclass(tolua_S,"PageTurn3D","cc.PageTurn3D","cc.Grid3DAction",nullptr); tolua_beginmodule(tolua_S,"PageTurn3D"); tolua_function(tolua_S,"create", lua_cocos2dx_PageTurn3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::PageTurn3D).name(); g_luaType[typeName] = "cc.PageTurn3D"; g_typeCast["PageTurn3D"] = "cc.PageTurn3D"; return 1; } int lua_cocos2dx_ProgressTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; double arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ProgressTo:initWithDuration"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ProgressTo:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTo_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTo:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProgressTo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; double arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ProgressTo:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ProgressTo:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTo_create'", nullptr); return 0; } cocos2d::ProgressTo* ret = cocos2d::ProgressTo::create(arg0, arg1); object_to_luaval<cocos2d::ProgressTo>(tolua_S, "cc.ProgressTo",(cocos2d::ProgressTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressTo:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTo_constructor'", nullptr); return 0; } cobj = new cocos2d::ProgressTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ProgressTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTo:ProgressTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ProgressTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ProgressTo)"); return 0; } int lua_register_cocos2dx_ProgressTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressTo"); tolua_cclass(tolua_S,"ProgressTo","cc.ProgressTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ProgressTo"); tolua_function(tolua_S,"new",lua_cocos2dx_ProgressTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ProgressTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressTo).name(); g_luaType[typeName] = "cc.ProgressTo"; g_typeCast["ProgressTo"] = "cc.ProgressTo"; return 1; } int lua_cocos2dx_ProgressFromTo_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressFromTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressFromTo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressFromTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressFromTo_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; double arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ProgressFromTo:initWithDuration"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ProgressFromTo:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ProgressFromTo:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressFromTo_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressFromTo:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressFromTo_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressFromTo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProgressFromTo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { double arg0; double arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ProgressFromTo:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ProgressFromTo:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ProgressFromTo:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressFromTo_create'", nullptr); return 0; } cocos2d::ProgressFromTo* ret = cocos2d::ProgressFromTo::create(arg0, arg1, arg2); object_to_luaval<cocos2d::ProgressFromTo>(tolua_S, "cc.ProgressFromTo",(cocos2d::ProgressFromTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressFromTo:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressFromTo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressFromTo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressFromTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressFromTo_constructor'", nullptr); return 0; } cobj = new cocos2d::ProgressFromTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ProgressFromTo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressFromTo:ProgressFromTo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressFromTo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ProgressFromTo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ProgressFromTo)"); return 0; } int lua_register_cocos2dx_ProgressFromTo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressFromTo"); tolua_cclass(tolua_S,"ProgressFromTo","cc.ProgressFromTo","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ProgressFromTo"); tolua_function(tolua_S,"new",lua_cocos2dx_ProgressFromTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ProgressFromTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressFromTo_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressFromTo).name(); g_luaType[typeName] = "cc.ProgressFromTo"; g_typeCast["ProgressFromTo"] = "cc.ProgressFromTo"; return 1; } int lua_cocos2dx_ShakyTiles3D_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ShakyTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ShakyTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ShakyTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShakyTiles3D_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Size arg1; int arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShakyTiles3D:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ShakyTiles3D:initWithDuration"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.ShakyTiles3D:initWithDuration"); ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.ShakyTiles3D:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShakyTiles3D_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShakyTiles3D:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShakyTiles3D_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ShakyTiles3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Size arg1; int arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShakyTiles3D:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ShakyTiles3D:create"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.ShakyTiles3D:create"); ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.ShakyTiles3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShakyTiles3D_create'", nullptr); return 0; } cocos2d::ShakyTiles3D* ret = cocos2d::ShakyTiles3D::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::ShakyTiles3D>(tolua_S, "cc.ShakyTiles3D",(cocos2d::ShakyTiles3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShakyTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShakyTiles3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ShakyTiles3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ShakyTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShakyTiles3D_constructor'", nullptr); return 0; } cobj = new cocos2d::ShakyTiles3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ShakyTiles3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShakyTiles3D:ShakyTiles3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShakyTiles3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ShakyTiles3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ShakyTiles3D)"); return 0; } int lua_register_cocos2dx_ShakyTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShakyTiles3D"); tolua_cclass(tolua_S,"ShakyTiles3D","cc.ShakyTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShakyTiles3D"); tolua_function(tolua_S,"new",lua_cocos2dx_ShakyTiles3D_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ShakyTiles3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ShakyTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShakyTiles3D).name(); g_luaType[typeName] = "cc.ShakyTiles3D"; g_typeCast["ShakyTiles3D"] = "cc.ShakyTiles3D"; return 1; } int lua_cocos2dx_ShatteredTiles3D_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ShatteredTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ShatteredTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ShatteredTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShatteredTiles3D_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Size arg1; int arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShatteredTiles3D:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ShatteredTiles3D:initWithDuration"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.ShatteredTiles3D:initWithDuration"); ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.ShatteredTiles3D:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShatteredTiles3D_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShatteredTiles3D:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShatteredTiles3D_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ShatteredTiles3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Size arg1; int arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShatteredTiles3D:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ShatteredTiles3D:create"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.ShatteredTiles3D:create"); ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.ShatteredTiles3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShatteredTiles3D_create'", nullptr); return 0; } cocos2d::ShatteredTiles3D* ret = cocos2d::ShatteredTiles3D::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::ShatteredTiles3D>(tolua_S, "cc.ShatteredTiles3D",(cocos2d::ShatteredTiles3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShatteredTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShatteredTiles3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ShatteredTiles3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ShatteredTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShatteredTiles3D_constructor'", nullptr); return 0; } cobj = new cocos2d::ShatteredTiles3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ShatteredTiles3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShatteredTiles3D:ShatteredTiles3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShatteredTiles3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ShatteredTiles3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ShatteredTiles3D)"); return 0; } int lua_register_cocos2dx_ShatteredTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShatteredTiles3D"); tolua_cclass(tolua_S,"ShatteredTiles3D","cc.ShatteredTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShatteredTiles3D"); tolua_function(tolua_S,"new",lua_cocos2dx_ShatteredTiles3D_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ShatteredTiles3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ShatteredTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShatteredTiles3D).name(); g_luaType[typeName] = "cc.ShatteredTiles3D"; g_typeCast["ShatteredTiles3D"] = "cc.ShatteredTiles3D"; return 1; } int lua_cocos2dx_ShuffleTiles_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ShuffleTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShuffleTiles_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; cocos2d::Size arg1; unsigned int arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShuffleTiles:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ShuffleTiles:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.ShuffleTiles:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShuffleTiles_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShuffleTiles:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) { int argc = 0; cocos2d::ShuffleTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ShuffleTiles_getDelta'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.ShuffleTiles:getDelta"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShuffleTiles_getDelta'", nullptr); return 0; } cocos2d::Size ret = cobj->getDelta(arg0); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShuffleTiles:getDelta",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_getDelta'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ShuffleTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { double arg0; cocos2d::Size arg1; unsigned int arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShuffleTiles:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ShuffleTiles:create"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.ShuffleTiles:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShuffleTiles_create'", nullptr); return 0; } cocos2d::ShuffleTiles* ret = cocos2d::ShuffleTiles::create(arg0, arg1, arg2); object_to_luaval<cocos2d::ShuffleTiles>(tolua_S, "cc.ShuffleTiles",(cocos2d::ShuffleTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShuffleTiles:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ShuffleTiles_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ShuffleTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShuffleTiles_constructor'", nullptr); return 0; } cobj = new cocos2d::ShuffleTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ShuffleTiles"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ShuffleTiles:ShuffleTiles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ShuffleTiles_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ShuffleTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ShuffleTiles)"); return 0; } int lua_register_cocos2dx_ShuffleTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ShuffleTiles"); tolua_cclass(tolua_S,"ShuffleTiles","cc.ShuffleTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"ShuffleTiles"); tolua_function(tolua_S,"new",lua_cocos2dx_ShuffleTiles_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ShuffleTiles_initWithDuration); tolua_function(tolua_S,"getDelta",lua_cocos2dx_ShuffleTiles_getDelta); tolua_function(tolua_S,"create", lua_cocos2dx_ShuffleTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ShuffleTiles).name(); g_luaType[typeName] = "cc.ShuffleTiles"; g_typeCast["ShuffleTiles"] = "cc.ShuffleTiles"; return 1; } int lua_cocos2dx_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_turnOnTile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:turnOnTile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutTRTiles_turnOnTile'", nullptr); return 0; } cobj->turnOnTile(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:turnOnTile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_turnOnTile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_turnOffTile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:turnOffTile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutTRTiles_turnOffTile'", nullptr); return 0; } cobj->turnOffTile(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:turnOffTile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_turnOffTile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_transformTile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Vec2 arg0; double arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:transformTile"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FadeOutTRTiles:transformTile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutTRTiles_transformTile'", nullptr); return 0; } cobj->transformTile(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:transformTile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_transformTile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_FadeOutTRTiles_testFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Size arg0; double arg1; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:testFunc"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.FadeOutTRTiles:testFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutTRTiles_testFunc'", nullptr); return 0; } double ret = cobj->testFunc(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:testFunc",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_testFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOutTRTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Size arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeOutTRTiles:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.FadeOutTRTiles:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutTRTiles_create'", nullptr); return 0; } cocos2d::FadeOutTRTiles* ret = cocos2d::FadeOutTRTiles::create(arg0, arg1); object_to_luaval<cocos2d::FadeOutTRTiles>(tolua_S, "cc.FadeOutTRTiles",(cocos2d::FadeOutTRTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutTRTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOutTRTiles_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutTRTiles_constructor'", nullptr); return 0; } cobj = new cocos2d::FadeOutTRTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOutTRTiles"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutTRTiles:FadeOutTRTiles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutTRTiles_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FadeOutTRTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOutTRTiles)"); return 0; } int lua_register_cocos2dx_FadeOutTRTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutTRTiles"); tolua_cclass(tolua_S,"FadeOutTRTiles","cc.FadeOutTRTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"FadeOutTRTiles"); tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutTRTiles_constructor); tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_FadeOutTRTiles_turnOnTile); tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_FadeOutTRTiles_turnOffTile); tolua_function(tolua_S,"transformTile",lua_cocos2dx_FadeOutTRTiles_transformTile); tolua_function(tolua_S,"testFunc",lua_cocos2dx_FadeOutTRTiles_testFunc); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutTRTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutTRTiles).name(); g_luaType[typeName] = "cc.FadeOutTRTiles"; g_typeCast["FadeOutTRTiles"] = "cc.FadeOutTRTiles"; return 1; } int lua_cocos2dx_FadeOutBLTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutBLTiles",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Size arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeOutBLTiles:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.FadeOutBLTiles:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutBLTiles_create'", nullptr); return 0; } cocos2d::FadeOutBLTiles* ret = cocos2d::FadeOutBLTiles::create(arg0, arg1); object_to_luaval<cocos2d::FadeOutBLTiles>(tolua_S, "cc.FadeOutBLTiles",(cocos2d::FadeOutBLTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutBLTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutBLTiles_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOutBLTiles_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOutBLTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutBLTiles_constructor'", nullptr); return 0; } cobj = new cocos2d::FadeOutBLTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOutBLTiles"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutBLTiles:FadeOutBLTiles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutBLTiles_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FadeOutBLTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOutBLTiles)"); return 0; } int lua_register_cocos2dx_FadeOutBLTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutBLTiles"); tolua_cclass(tolua_S,"FadeOutBLTiles","cc.FadeOutBLTiles","cc.FadeOutTRTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutBLTiles"); tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutBLTiles_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutBLTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutBLTiles).name(); g_luaType[typeName] = "cc.FadeOutBLTiles"; g_typeCast["FadeOutBLTiles"] = "cc.FadeOutBLTiles"; return 1; } int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutUpTiles",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Size arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeOutUpTiles:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.FadeOutUpTiles:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutUpTiles_create'", nullptr); return 0; } cocos2d::FadeOutUpTiles* ret = cocos2d::FadeOutUpTiles::create(arg0, arg1); object_to_luaval<cocos2d::FadeOutUpTiles>(tolua_S, "cc.FadeOutUpTiles",(cocos2d::FadeOutUpTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutUpTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutUpTiles_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOutUpTiles_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOutUpTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutUpTiles_constructor'", nullptr); return 0; } cobj = new cocos2d::FadeOutUpTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOutUpTiles"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutUpTiles:FadeOutUpTiles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutUpTiles_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FadeOutUpTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOutUpTiles)"); return 0; } int lua_register_cocos2dx_FadeOutUpTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutUpTiles"); tolua_cclass(tolua_S,"FadeOutUpTiles","cc.FadeOutUpTiles","cc.FadeOutTRTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutUpTiles"); tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutUpTiles_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutUpTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutUpTiles).name(); g_luaType[typeName] = "cc.FadeOutUpTiles"; g_typeCast["FadeOutUpTiles"] = "cc.FadeOutUpTiles"; return 1; } int lua_cocos2dx_FadeOutDownTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.FadeOutDownTiles",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Size arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeOutDownTiles:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.FadeOutDownTiles:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutDownTiles_create'", nullptr); return 0; } cocos2d::FadeOutDownTiles* ret = cocos2d::FadeOutDownTiles::create(arg0, arg1); object_to_luaval<cocos2d::FadeOutDownTiles>(tolua_S, "cc.FadeOutDownTiles",(cocos2d::FadeOutDownTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutDownTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutDownTiles_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_FadeOutDownTiles_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::FadeOutDownTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutDownTiles_constructor'", nullptr); return 0; } cobj = new cocos2d::FadeOutDownTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.FadeOutDownTiles"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FadeOutDownTiles:FadeOutDownTiles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_FadeOutDownTiles_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_FadeOutDownTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (FadeOutDownTiles)"); return 0; } int lua_register_cocos2dx_FadeOutDownTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.FadeOutDownTiles"); tolua_cclass(tolua_S,"FadeOutDownTiles","cc.FadeOutDownTiles","cc.FadeOutUpTiles",nullptr); tolua_beginmodule(tolua_S,"FadeOutDownTiles"); tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutDownTiles_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutDownTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::FadeOutDownTiles).name(); g_luaType[typeName] = "cc.FadeOutDownTiles"; g_typeCast["FadeOutDownTiles"] = "cc.FadeOutDownTiles"; return 1; } int lua_cocos2dx_TurnOffTiles_turnOnTile(lua_State* tolua_S) { int argc = 0; cocos2d::TurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TurnOffTiles_turnOnTile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TurnOffTiles:turnOnTile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TurnOffTiles_turnOnTile'", nullptr); return 0; } cobj->turnOnTile(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:turnOnTile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_turnOnTile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) { int argc = 0; cocos2d::TurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TurnOffTiles_turnOffTile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TurnOffTiles:turnOffTile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TurnOffTiles_turnOffTile'", nullptr); return 0; } cobj->turnOffTile(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:turnOffTile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_turnOffTile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TurnOffTiles_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::TurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TurnOffTiles_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; cocos2d::Size arg1; unsigned int arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TurnOffTiles:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.TurnOffTiles:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.TurnOffTiles:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TurnOffTiles_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TurnOffTiles:create"); if (!ok) { break; } cocos2d::Size arg1; ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.TurnOffTiles:create"); if (!ok) { break; } unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.TurnOffTiles:create"); if (!ok) { break; } cocos2d::TurnOffTiles* ret = cocos2d::TurnOffTiles::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TurnOffTiles>(tolua_S, "cc.TurnOffTiles",(cocos2d::TurnOffTiles*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TurnOffTiles:create"); if (!ok) { break; } cocos2d::Size arg1; ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.TurnOffTiles:create"); if (!ok) { break; } cocos2d::TurnOffTiles* ret = cocos2d::TurnOffTiles::create(arg0, arg1); object_to_luaval<cocos2d::TurnOffTiles>(tolua_S, "cc.TurnOffTiles",(cocos2d::TurnOffTiles*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TurnOffTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TurnOffTiles_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TurnOffTiles_constructor'", nullptr); return 0; } cobj = new cocos2d::TurnOffTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TurnOffTiles"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TurnOffTiles:TurnOffTiles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TurnOffTiles_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TurnOffTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TurnOffTiles)"); return 0; } int lua_register_cocos2dx_TurnOffTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TurnOffTiles"); tolua_cclass(tolua_S,"TurnOffTiles","cc.TurnOffTiles","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"TurnOffTiles"); tolua_function(tolua_S,"new",lua_cocos2dx_TurnOffTiles_constructor); tolua_function(tolua_S,"turnOnTile",lua_cocos2dx_TurnOffTiles_turnOnTile); tolua_function(tolua_S,"turnOffTile",lua_cocos2dx_TurnOffTiles_turnOffTile); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TurnOffTiles_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TurnOffTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TurnOffTiles).name(); g_luaType[typeName] = "cc.TurnOffTiles"; g_typeCast["TurnOffTiles"] = "cc.TurnOffTiles"; return 1; } int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:setAmplitudeRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'", nullptr); return 0; } cobj->setAmplitudeRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:setAmplitudeRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_setAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_WavesTiles3D_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.WavesTiles3D:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.WavesTiles3D:initWithDuration"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.WavesTiles3D:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'", nullptr); return 0; } double ret = cobj->getAmplitude(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:getAmplitude",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_getAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_getAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_getAmplitudeRate'", nullptr); return 0; } double ret = cobj->getAmplitudeRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:getAmplitudeRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_getAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_WavesTiles3D_setAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:setAmplitude"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_setAmplitude'", nullptr); return 0; } cobj->setAmplitude(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:setAmplitude",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_setAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_WavesTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.WavesTiles3D:create"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.WavesTiles3D:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.WavesTiles3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_create'", nullptr); return 0; } cocos2d::WavesTiles3D* ret = cocos2d::WavesTiles3D::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::WavesTiles3D>(tolua_S, "cc.WavesTiles3D",(cocos2d::WavesTiles3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.WavesTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_WavesTiles3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_constructor'", nullptr); return 0; } cobj = new cocos2d::WavesTiles3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.WavesTiles3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.WavesTiles3D:WavesTiles3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_WavesTiles3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_WavesTiles3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (WavesTiles3D)"); return 0; } int lua_register_cocos2dx_WavesTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.WavesTiles3D"); tolua_cclass(tolua_S,"WavesTiles3D","cc.WavesTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"WavesTiles3D"); tolua_function(tolua_S,"new",lua_cocos2dx_WavesTiles3D_constructor); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_WavesTiles3D_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_WavesTiles3D_initWithDuration); tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_WavesTiles3D_getAmplitude); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_WavesTiles3D_getAmplitudeRate); tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_WavesTiles3D_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_WavesTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::WavesTiles3D).name(); g_luaType[typeName] = "cc.WavesTiles3D"; g_typeCast["WavesTiles3D"] = "cc.WavesTiles3D"; return 1; } int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:setAmplitudeRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'", nullptr); return 0; } cobj->setAmplitudeRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:setAmplitudeRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_setAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpTiles3D_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:initWithDuration"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.JumpTiles3D:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.JumpTiles3D:initWithDuration"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.JumpTiles3D:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'", nullptr); return 0; } double ret = cobj->getAmplitude(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:getAmplitude",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_getAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_getAmplitudeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_getAmplitudeRate'", nullptr); return 0; } double ret = cobj->getAmplitudeRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:getAmplitudeRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_getAmplitudeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) { int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_JumpTiles3D_setAmplitude'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:setAmplitude"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_setAmplitude'", nullptr); return 0; } cobj->setAmplitude(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:setAmplitude",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_setAmplitude'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpTiles3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; cocos2d::Size arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:create"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.JumpTiles3D:create"); ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.JumpTiles3D:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.JumpTiles3D:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_create'", nullptr); return 0; } cocos2d::JumpTiles3D* ret = cocos2d::JumpTiles3D::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::JumpTiles3D>(tolua_S, "cc.JumpTiles3D",(cocos2d::JumpTiles3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpTiles3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_JumpTiles3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_constructor'", nullptr); return 0; } cobj = new cocos2d::JumpTiles3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.JumpTiles3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.JumpTiles3D:JumpTiles3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_JumpTiles3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_JumpTiles3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (JumpTiles3D)"); return 0; } int lua_register_cocos2dx_JumpTiles3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.JumpTiles3D"); tolua_cclass(tolua_S,"JumpTiles3D","cc.JumpTiles3D","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"JumpTiles3D"); tolua_function(tolua_S,"new",lua_cocos2dx_JumpTiles3D_constructor); tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_JumpTiles3D_setAmplitudeRate); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_JumpTiles3D_initWithDuration); tolua_function(tolua_S,"getAmplitude",lua_cocos2dx_JumpTiles3D_getAmplitude); tolua_function(tolua_S,"getAmplitudeRate",lua_cocos2dx_JumpTiles3D_getAmplitudeRate); tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_JumpTiles3D_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_JumpTiles3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::JumpTiles3D).name(); g_luaType[typeName] = "cc.JumpTiles3D"; g_typeCast["JumpTiles3D"] = "cc.JumpTiles3D"; return 1; } int lua_cocos2dx_SplitRows_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::SplitRows* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SplitRows",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SplitRows*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SplitRows_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; unsigned int arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SplitRows:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.SplitRows:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitRows_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SplitRows:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitRows_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SplitRows_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SplitRows",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; unsigned int arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SplitRows:create"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.SplitRows:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitRows_create'", nullptr); return 0; } cocos2d::SplitRows* ret = cocos2d::SplitRows::create(arg0, arg1); object_to_luaval<cocos2d::SplitRows>(tolua_S, "cc.SplitRows",(cocos2d::SplitRows*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SplitRows:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitRows_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SplitRows_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::SplitRows* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitRows_constructor'", nullptr); return 0; } cobj = new cocos2d::SplitRows(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SplitRows"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SplitRows:SplitRows",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitRows_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_SplitRows_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SplitRows)"); return 0; } int lua_register_cocos2dx_SplitRows(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SplitRows"); tolua_cclass(tolua_S,"SplitRows","cc.SplitRows","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"SplitRows"); tolua_function(tolua_S,"new",lua_cocos2dx_SplitRows_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SplitRows_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SplitRows_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SplitRows).name(); g_luaType[typeName] = "cc.SplitRows"; g_typeCast["SplitRows"] = "cc.SplitRows"; return 1; } int lua_cocos2dx_SplitCols_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::SplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SplitCols",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SplitCols*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SplitCols_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; unsigned int arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SplitCols:initWithDuration"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.SplitCols:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitCols_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SplitCols:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitCols_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SplitCols_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SplitCols",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; unsigned int arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SplitCols:create"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.SplitCols:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitCols_create'", nullptr); return 0; } cocos2d::SplitCols* ret = cocos2d::SplitCols::create(arg0, arg1); object_to_luaval<cocos2d::SplitCols>(tolua_S, "cc.SplitCols",(cocos2d::SplitCols*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SplitCols:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitCols_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SplitCols_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::SplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitCols_constructor'", nullptr); return 0; } cobj = new cocos2d::SplitCols(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SplitCols"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SplitCols:SplitCols",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SplitCols_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_SplitCols_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SplitCols)"); return 0; } int lua_register_cocos2dx_SplitCols(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SplitCols"); tolua_cclass(tolua_S,"SplitCols","cc.SplitCols","cc.TiledGrid3DAction",nullptr); tolua_beginmodule(tolua_S,"SplitCols"); tolua_function(tolua_S,"new",lua_cocos2dx_SplitCols_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SplitCols_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SplitCols_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SplitCols).name(); g_luaType[typeName] = "cc.SplitCols"; g_typeCast["SplitCols"] = "cc.SplitCols"; return 1; } int lua_cocos2dx_ActionTween_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ActionTween* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionTween",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ActionTween*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ActionTween_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; std::string arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionTween:initWithDuration"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.ActionTween:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ActionTween:initWithDuration"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.ActionTween:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionTween_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionTween:initWithDuration",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionTween_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ActionTween_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ActionTween",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; std::string arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ActionTween:create"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.ActionTween:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ActionTween:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.ActionTween:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionTween_create'", nullptr); return 0; } cocos2d::ActionTween* ret = cocos2d::ActionTween::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::ActionTween>(tolua_S, "cc.ActionTween",(cocos2d::ActionTween*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ActionTween:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ActionTween_create'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ActionTween_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ActionTween)"); return 0; } int lua_register_cocos2dx_ActionTween(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ActionTween"); tolua_cclass(tolua_S,"ActionTween","cc.ActionTween","cc.ActionInterval",nullptr); tolua_beginmodule(tolua_S,"ActionTween"); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ActionTween_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ActionTween_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ActionTween).name(); g_luaType[typeName] = "cc.ActionTween"; g_typeCast["ActionTween"] = "cc.ActionTween"; return 1; } int lua_cocos2dx_AtlasNode_updateAtlasValues(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_updateAtlasValues'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_updateAtlasValues'", nullptr); return 0; } cobj->updateAtlasValues(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:updateAtlasValues",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_updateAtlasValues'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_initWithTileFile(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_initWithTileFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { std::string arg0; int arg1; int arg2; int arg3; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AtlasNode:initWithTileFile"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.AtlasNode:initWithTileFile"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.AtlasNode:initWithTileFile"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.AtlasNode:initWithTileFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_initWithTileFile'", nullptr); return 0; } bool ret = cobj->initWithTileFile(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:initWithTileFile",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_initWithTileFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_getTexture'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTexture(); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setTextureAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TextureAtlas* arg0; ok &= luaval_to_object<cocos2d::TextureAtlas>(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.AtlasNode:setTextureAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_setTextureAtlas'", nullptr); return 0; } cobj->setTextureAtlas(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setTextureAtlas",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setTextureAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.AtlasNode:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getTextureAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_getTextureAtlas'", nullptr); return 0; } cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); object_to_luaval<cocos2d::TextureAtlas>(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getTextureAtlas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getTextureAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_getQuadsToDraw'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_getQuadsToDraw'", nullptr); return 0; } ssize_t ret = cobj->getQuadsToDraw(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getQuadsToDraw",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_getQuadsToDraw'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.AtlasNode:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_setTexture'", nullptr); return 0; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_initWithTexture(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_initWithTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { cocos2d::Texture2D* arg0; int arg1; int arg2; int arg3; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.AtlasNode:initWithTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.AtlasNode:initWithTexture"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.AtlasNode:initWithTexture"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.AtlasNode:initWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_initWithTexture'", nullptr); return 0; } bool ret = cobj->initWithTexture(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:initWithTexture",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_initWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AtlasNode_setQuadsToDraw'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.AtlasNode:setQuadsToDraw"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_setQuadsToDraw'", nullptr); return 0; } cobj->setQuadsToDraw(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:setQuadsToDraw",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_setQuadsToDraw'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { std::string arg0; int arg1; int arg2; int arg3; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AtlasNode:create"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.AtlasNode:create"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.AtlasNode:create"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.AtlasNode:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_create'", nullptr); return 0; } cocos2d::AtlasNode* ret = cocos2d::AtlasNode::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::AtlasNode>(tolua_S, "cc.AtlasNode",(cocos2d::AtlasNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AtlasNode:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AtlasNode_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_constructor'", nullptr); return 0; } cobj = new cocos2d::AtlasNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.AtlasNode"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:AtlasNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AtlasNode_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_AtlasNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AtlasNode)"); return 0; } int lua_register_cocos2dx_AtlasNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AtlasNode"); tolua_cclass(tolua_S,"AtlasNode","cc.AtlasNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"AtlasNode"); tolua_function(tolua_S,"new",lua_cocos2dx_AtlasNode_constructor); tolua_function(tolua_S,"updateAtlasValues",lua_cocos2dx_AtlasNode_updateAtlasValues); tolua_function(tolua_S,"initWithTileFile",lua_cocos2dx_AtlasNode_initWithTileFile); tolua_function(tolua_S,"getTexture",lua_cocos2dx_AtlasNode_getTexture); tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_AtlasNode_setTextureAtlas); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_AtlasNode_setBlendFunc); tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_AtlasNode_getTextureAtlas); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_AtlasNode_getBlendFunc); tolua_function(tolua_S,"getQuadsToDraw",lua_cocos2dx_AtlasNode_getQuadsToDraw); tolua_function(tolua_S,"setTexture",lua_cocos2dx_AtlasNode_setTexture); tolua_function(tolua_S,"initWithTexture",lua_cocos2dx_AtlasNode_initWithTexture); tolua_function(tolua_S,"setQuadsToDraw",lua_cocos2dx_AtlasNode_setQuadsToDraw); tolua_function(tolua_S,"create", lua_cocos2dx_AtlasNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AtlasNode).name(); g_luaType[typeName] = "cc.AtlasNode"; g_typeCast["AtlasNode"] = "cc.AtlasNode"; return 1; } int lua_cocos2dx_ClippingNode_hasContent(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_hasContent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_hasContent'", nullptr); return 0; } bool ret = cobj->hasContent(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:hasContent",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_hasContent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_setInverted'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ClippingNode:setInverted"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_setInverted'", nullptr); return 0; } cobj->setInverted(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:setInverted",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_setInverted'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_setStencil'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ClippingNode:setStencil"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_setStencil'", nullptr); return 0; } cobj->setStencil(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:setStencil",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_setStencil'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_getAlphaThreshold'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_getAlphaThreshold'", nullptr); return 0; } double ret = cobj->getAlphaThreshold(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:getAlphaThreshold",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_getAlphaThreshold'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingNode_init(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ClippingNode:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_init'", nullptr); return 0; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_getStencil'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_getStencil'", nullptr); return 0; } cocos2d::Node* ret = cobj->getStencil(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:getStencil",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_getStencil'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_setAlphaThreshold'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ClippingNode:setAlphaThreshold"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_setAlphaThreshold'", nullptr); return 0; } cobj->setAlphaThreshold(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:setAlphaThreshold",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_setAlphaThreshold'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingNode_isInverted(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingNode_isInverted'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_isInverted'", nullptr); return 0; } bool ret = cobj->isInverted(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:isInverted",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_isInverted'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ClippingNode:create"); if (!ok) { break; } cocos2d::ClippingNode* ret = cocos2d::ClippingNode::create(arg0); object_to_luaval<cocos2d::ClippingNode>(tolua_S, "cc.ClippingNode",(cocos2d::ClippingNode*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocos2d::ClippingNode* ret = cocos2d::ClippingNode::create(); object_to_luaval<cocos2d::ClippingNode>(tolua_S, "cc.ClippingNode",(cocos2d::ClippingNode*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ClippingNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingNode_create'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ClippingNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ClippingNode)"); return 0; } int lua_register_cocos2dx_ClippingNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ClippingNode"); tolua_cclass(tolua_S,"ClippingNode","cc.ClippingNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ClippingNode"); tolua_function(tolua_S,"hasContent",lua_cocos2dx_ClippingNode_hasContent); tolua_function(tolua_S,"setInverted",lua_cocos2dx_ClippingNode_setInverted); tolua_function(tolua_S,"setStencil",lua_cocos2dx_ClippingNode_setStencil); tolua_function(tolua_S,"getAlphaThreshold",lua_cocos2dx_ClippingNode_getAlphaThreshold); tolua_function(tolua_S,"init",lua_cocos2dx_ClippingNode_init); tolua_function(tolua_S,"getStencil",lua_cocos2dx_ClippingNode_getStencil); tolua_function(tolua_S,"setAlphaThreshold",lua_cocos2dx_ClippingNode_setAlphaThreshold); tolua_function(tolua_S,"isInverted",lua_cocos2dx_ClippingNode_isInverted); tolua_function(tolua_S,"create", lua_cocos2dx_ClippingNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ClippingNode).name(); g_luaType[typeName] = "cc.ClippingNode"; g_typeCast["ClippingNode"] = "cc.ClippingNode"; return 1; } int lua_cocos2dx_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_isClippingEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingRectangleNode_isClippingEnabled'", nullptr); return 0; } bool ret = cobj->isClippingEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:isClippingEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_isClippingEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_setClippingEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ClippingRectangleNode:setClippingEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingRectangleNode_setClippingEnabled'", nullptr); return 0; } cobj->setClippingEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:setClippingEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_setClippingEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_getClippingRegion'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingRectangleNode_getClippingRegion'", nullptr); return 0; } const cocos2d::Rect& ret = cobj->getClippingRegion(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:getClippingRegion",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_getClippingRegion'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) { int argc = 0; cocos2d::ClippingRectangleNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ClippingRectangleNode_setClippingRegion'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.ClippingRectangleNode:setClippingRegion"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingRectangleNode_setClippingRegion'", nullptr); return 0; } cobj->setClippingRegion(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingRectangleNode:setClippingRegion",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_setClippingRegion'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 0) { cocos2d::ClippingRectangleNode* ret = cocos2d::ClippingRectangleNode::create(); object_to_luaval<cocos2d::ClippingRectangleNode>(tolua_S, "cc.ClippingRectangleNode",(cocos2d::ClippingRectangleNode*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.ClippingRectangleNode:create"); if (!ok) { break; } cocos2d::ClippingRectangleNode* ret = cocos2d::ClippingRectangleNode::create(arg0); object_to_luaval<cocos2d::ClippingRectangleNode>(tolua_S, "cc.ClippingRectangleNode",(cocos2d::ClippingRectangleNode*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ClippingRectangleNode:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ClippingRectangleNode_create'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ClippingRectangleNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ClippingRectangleNode)"); return 0; } int lua_register_cocos2dx_ClippingRectangleNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ClippingRectangleNode"); tolua_cclass(tolua_S,"ClippingRectangleNode","cc.ClippingRectangleNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ClippingRectangleNode"); tolua_function(tolua_S,"isClippingEnabled",lua_cocos2dx_ClippingRectangleNode_isClippingEnabled); tolua_function(tolua_S,"setClippingEnabled",lua_cocos2dx_ClippingRectangleNode_setClippingEnabled); tolua_function(tolua_S,"getClippingRegion",lua_cocos2dx_ClippingRectangleNode_getClippingRegion); tolua_function(tolua_S,"setClippingRegion",lua_cocos2dx_ClippingRectangleNode_setClippingRegion); tolua_function(tolua_S,"create", lua_cocos2dx_ClippingRectangleNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ClippingRectangleNode).name(); g_luaType[typeName] = "cc.ClippingRectangleNode"; g_typeCast["ClippingRectangleNode"] = "cc.ClippingRectangleNode"; return 1; } int lua_cocos2dx_DrawNode_drawLine(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawLine'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Color4F arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawLine"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawLine"); ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawLine"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_drawLine'", nullptr); return 0; } cobj->drawLine(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawLine",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawLine'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawRect"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawRect"); if (!ok) { break; } cocos2d::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawRect"); if (!ok) { break; } cocos2d::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.DrawNode:drawRect"); if (!ok) { break; } cocos2d::Color4F arg4; ok &=luaval_to_color4f(tolua_S, 6, &arg4, "cc.DrawNode:drawRect"); if (!ok) { break; } cobj->drawRect(arg0, arg1, arg2, arg3, arg4); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawRect"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawRect"); if (!ok) { break; } cocos2d::Color4F arg2; ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawRect"); if (!ok) { break; } cobj->drawRect(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawRect",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawSolidCircle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } cocos2d::Color4F arg4; ok &=luaval_to_color4f(tolua_S, 6, &arg4, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 7) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } double arg5; ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } cocos2d::Color4F arg6; ok &=luaval_to_color4f(tolua_S, 8, &arg6, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } cobj->drawSolidCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawSolidCircle",argc, 7); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawSolidCircle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_setLineWidth(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_setLineWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.DrawNode:setLineWidth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_setLineWidth'", nullptr); return 0; } cobj->setLineWidth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:setLineWidth",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_setLineWidth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_onDrawGLPoint(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_onDrawGLPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Mat4 arg0; unsigned int arg1; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.DrawNode:onDrawGLPoint"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.DrawNode:onDrawGLPoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_onDrawGLPoint'", nullptr); return 0; } cobj->onDrawGLPoint(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:onDrawGLPoint",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_onDrawGLPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawDot'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Vec2 arg0; double arg1; cocos2d::Color4F arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawDot"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawDot"); ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawDot"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_drawDot'", nullptr); return 0; } cobj->drawDot(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawDot",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawDot'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawSegment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; double arg2; cocos2d::Color4F arg3; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSegment"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawSegment"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawSegment"); ok &=luaval_to_color4f(tolua_S, 5, &arg3, "cc.DrawNode:drawSegment"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_drawSegment'", nullptr); return 0; } cobj->drawSegment(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawSegment",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawSegment'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_onDraw(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_onDraw'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Mat4 arg0; unsigned int arg1; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.DrawNode:onDraw"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.DrawNode:onDraw"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_onDraw'", nullptr); return 0; } cobj->onDraw(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:onDraw",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_onDraw'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawCircle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 6) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCircle"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawCircle"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawCircle"); if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawCircle"); if (!ok) { break; } bool arg4; ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.DrawNode:drawCircle"); if (!ok) { break; } cocos2d::Color4F arg5; ok &=luaval_to_color4f(tolua_S, 7, &arg5, "cc.DrawNode:drawCircle"); if (!ok) { break; } cobj->drawCircle(arg0, arg1, arg2, arg3, arg4, arg5); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 8) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCircle"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawCircle"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.DrawNode:drawCircle"); if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawCircle"); if (!ok) { break; } bool arg4; ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.DrawNode:drawCircle"); if (!ok) { break; } double arg5; ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.DrawNode:drawCircle"); if (!ok) { break; } double arg6; ok &= luaval_to_number(tolua_S, 8,&arg6, "cc.DrawNode:drawCircle"); if (!ok) { break; } cocos2d::Color4F arg7; ok &=luaval_to_color4f(tolua_S, 9, &arg7, "cc.DrawNode:drawCircle"); if (!ok) { break; } cobj->drawCircle(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawCircle",argc, 8); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawCircle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawQuadBezier'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 5) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Vec2 arg2; unsigned int arg3; cocos2d::Color4F arg4; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawQuadBezier"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawQuadBezier"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawQuadBezier"); ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawQuadBezier"); ok &=luaval_to_color4f(tolua_S, 6, &arg4, "cc.DrawNode:drawQuadBezier"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_drawQuadBezier'", nullptr); return 0; } cobj->drawQuadBezier(arg0, arg1, arg2, arg3, arg4); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawQuadBezier",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawQuadBezier'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_onDrawGLLine(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_onDrawGLLine'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Mat4 arg0; unsigned int arg1; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.DrawNode:onDrawGLLine"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.DrawNode:onDrawGLLine"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_onDrawGLLine'", nullptr); return 0; } cobj->onDrawGLLine(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:onDrawGLLine",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_onDrawGLLine'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawTriangle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Vec2 arg2; cocos2d::Color4F arg3; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawTriangle"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawTriangle"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawTriangle"); ok &=luaval_to_color4f(tolua_S, 5, &arg3, "cc.DrawNode:drawTriangle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_drawTriangle'", nullptr); return 0; } cobj->drawTriangle(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawTriangle",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawTriangle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.DrawNode:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_clear'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_clear'", nullptr); return 0; } cobj->clear(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:clear",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_clear'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawSolidRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Color4F arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidRect"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawSolidRect"); ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawSolidRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_drawSolidRect'", nullptr); return 0; } cobj->drawSolidRect(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawSolidRect",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawSolidRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_getLineWidth(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_getLineWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_getLineWidth'", nullptr); return 0; } double ret = cobj->getLineWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:getLineWidth",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_getLineWidth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawPoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Vec2 arg0; double arg1; cocos2d::Color4F arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawPoint"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.DrawNode:drawPoint"); ok &=luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawPoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_drawPoint'", nullptr); return 0; } cobj->drawPoint(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawPoint",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawPoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DrawNode_drawCubicBezier'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 6) { cocos2d::Vec2 arg0; cocos2d::Vec2 arg1; cocos2d::Vec2 arg2; cocos2d::Vec2 arg3; unsigned int arg4; cocos2d::Color4F arg5; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCubicBezier"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawCubicBezier"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawCubicBezier"); ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.DrawNode:drawCubicBezier"); ok &= luaval_to_uint32(tolua_S, 6,&arg4, "cc.DrawNode:drawCubicBezier"); ok &=luaval_to_color4f(tolua_S, 7, &arg5, "cc.DrawNode:drawCubicBezier"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_drawCubicBezier'", nullptr); return 0; } cobj->drawCubicBezier(arg0, arg1, arg2, arg3, arg4, arg5); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:drawCubicBezier",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_drawCubicBezier'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_create'", nullptr); return 0; } cocos2d::DrawNode* ret = cocos2d::DrawNode::create(); object_to_luaval<cocos2d::DrawNode>(tolua_S, "cc.DrawNode",(cocos2d::DrawNode*)ret); return 1; } if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.DrawNode:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_create'", nullptr); return 0; } cocos2d::DrawNode* ret = cocos2d::DrawNode::create(arg0); object_to_luaval<cocos2d::DrawNode>(tolua_S, "cc.DrawNode",(cocos2d::DrawNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DrawNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DrawNode_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_constructor'", nullptr); return 0; } cobj = new cocos2d::DrawNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.DrawNode"); return 1; } if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.DrawNode:DrawNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_constructor'", nullptr); return 0; } cobj = new cocos2d::DrawNode(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.DrawNode"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DrawNode:DrawNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DrawNode_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_DrawNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (DrawNode)"); return 0; } int lua_register_cocos2dx_DrawNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DrawNode"); tolua_cclass(tolua_S,"DrawNode","cc.DrawNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"DrawNode"); tolua_function(tolua_S,"new",lua_cocos2dx_DrawNode_constructor); tolua_function(tolua_S,"drawLine",lua_cocos2dx_DrawNode_drawLine); tolua_function(tolua_S,"drawRect",lua_cocos2dx_DrawNode_drawRect); tolua_function(tolua_S,"drawSolidCircle",lua_cocos2dx_DrawNode_drawSolidCircle); tolua_function(tolua_S,"setLineWidth",lua_cocos2dx_DrawNode_setLineWidth); tolua_function(tolua_S,"onDrawGLPoint",lua_cocos2dx_DrawNode_onDrawGLPoint); tolua_function(tolua_S,"drawDot",lua_cocos2dx_DrawNode_drawDot); tolua_function(tolua_S,"drawSegment",lua_cocos2dx_DrawNode_drawSegment); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_DrawNode_getBlendFunc); tolua_function(tolua_S,"onDraw",lua_cocos2dx_DrawNode_onDraw); tolua_function(tolua_S,"drawCircle",lua_cocos2dx_DrawNode_drawCircle); tolua_function(tolua_S,"drawQuadBezier",lua_cocos2dx_DrawNode_drawQuadBezier); tolua_function(tolua_S,"onDrawGLLine",lua_cocos2dx_DrawNode_onDrawGLLine); tolua_function(tolua_S,"drawTriangle",lua_cocos2dx_DrawNode_drawTriangle); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_DrawNode_setBlendFunc); tolua_function(tolua_S,"clear",lua_cocos2dx_DrawNode_clear); tolua_function(tolua_S,"drawSolidRect",lua_cocos2dx_DrawNode_drawSolidRect); tolua_function(tolua_S,"getLineWidth",lua_cocos2dx_DrawNode_getLineWidth); tolua_function(tolua_S,"drawPoint",lua_cocos2dx_DrawNode_drawPoint); tolua_function(tolua_S,"drawCubicBezier",lua_cocos2dx_DrawNode_drawCubicBezier); tolua_function(tolua_S,"create", lua_cocos2dx_DrawNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DrawNode).name(); g_luaType[typeName] = "cc.DrawNode"; g_typeCast["DrawNode"] = "cc.DrawNode"; return 1; } int lua_cocos2dx_Label_isClipMarginEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_isClipMarginEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_isClipMarginEnabled'", nullptr); return 0; } bool ret = cobj->isClipMarginEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:isClipMarginEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_isClipMarginEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableShadow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableShadow'", nullptr); return 0; } cobj->enableShadow(); lua_settop(tolua_S, 1); return 1; } if (argc == 1) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableShadow'", nullptr); return 0; } cobj->enableShadow(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { cocos2d::Color4B arg0; cocos2d::Size arg1; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Label:enableShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableShadow'", nullptr); return 0; } cobj->enableShadow(arg0, arg1); lua_settop(tolua_S, 1); return 1; } if (argc == 3) { cocos2d::Color4B arg0; cocos2d::Size arg1; int arg2; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.Label:enableShadow"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:enableShadow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableShadow'", nullptr); return 0; } cobj->enableShadow(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableShadow",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableShadow'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setDimensions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; double arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setDimensions"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Label:setDimensions"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setDimensions'", nullptr); return 0; } cobj->setDimensions(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setDimensions",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setDimensions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getWidth'", nullptr); return 0; } double ret = cobj->getWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getWidth",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getWidth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getString(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getString'", nullptr); return 0; } const std::string& ret = cobj->getString(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getString",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getHeight'", nullptr); return 0; } double ret = cobj->getHeight(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getHeight",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getHeight'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_disableEffect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { cocos2d::LabelEffect arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:disableEffect"); if (!ok) { break; } cobj->disableEffect(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 0) { cobj->disableEffect(); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:disableEffect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_disableEffect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setTTFConfig'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::_ttfConfig arg0; ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:setTTFConfig"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setTTFConfig'", nullptr); return 0; } bool ret = cobj->setTTFConfig(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setTTFConfig",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setTTFConfig'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getTextColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getTextColor'", nullptr); return 0; } const cocos2d::Color4B& ret = cobj->getTextColor(); color4b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getTextColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getTextColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_enableWrap(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableWrap'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Label:enableWrap"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableWrap'", nullptr); return 0; } cobj->enableWrap(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableWrap",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableWrap'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setWidth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setWidth'", nullptr); return 0; } cobj->setWidth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setWidth",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setWidth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getAdditionalKerning'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getAdditionalKerning'", nullptr); return 0; } double ret = cobj->getAdditionalKerning(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getAdditionalKerning",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getAdditionalKerning'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getBMFontSize(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getBMFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getBMFontSize'", nullptr); return 0; } double ret = cobj->getBMFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getBMFontSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getBMFontSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getMaxLineWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getMaxLineWidth'", nullptr); return 0; } double ret = cobj->getMaxLineWidth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getMaxLineWidth",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getMaxLineWidth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getHorizontalAlignment'", nullptr); return 0; } int ret = (int)cobj->getHorizontalAlignment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getHorizontalAlignment",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getShadowOffset(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getShadowOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getShadowOffset'", nullptr); return 0; } cocos2d::Size ret = cobj->getShadowOffset(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getShadowOffset",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getShadowOffset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getLineSpacing(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getLineSpacing'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getLineSpacing'", nullptr); return 0; } double ret = cobj->getLineSpacing(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getLineSpacing",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getLineSpacing'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setClipMarginEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Label:setClipMarginEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setClipMarginEnabled'", nullptr); return 0; } cobj->setClipMarginEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setClipMarginEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setClipMarginEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setString(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setString'", nullptr); return 0; } cobj->setString(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setString",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setSystemFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setSystemFontName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setSystemFontName'", nullptr); return 0; } cobj->setSystemFontName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setSystemFontName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setSystemFontName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_isWrapEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_isWrapEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_isWrapEnabled'", nullptr); return 0; } bool ret = cobj->isWrapEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:isWrapEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_isWrapEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getOutlineSize(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getOutlineSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getOutlineSize'", nullptr); return 0; } int ret = cobj->getOutlineSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getOutlineSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getOutlineSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setBMFontFilePath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setBMFontFilePath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setBMFontFilePath'", nullptr); return 0; } bool ret = cobj->setBMFontFilePath(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { std::string arg0; cocos2d::Vec2 arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setBMFontFilePath"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.Label:setBMFontFilePath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setBMFontFilePath'", nullptr); return 0; } bool ret = cobj->setBMFontFilePath(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 3) { std::string arg0; cocos2d::Vec2 arg1; double arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setBMFontFilePath"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.Label:setBMFontFilePath"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:setBMFontFilePath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setBMFontFilePath'", nullptr); return 0; } bool ret = cobj->setBMFontFilePath(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setBMFontFilePath",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setBMFontFilePath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_initWithTTF'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::_ttfConfig arg0; ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:initWithTTF"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:initWithTTF"); if (!ok) { break; } bool ret = cobj->initWithTTF(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::_ttfConfig arg0; ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:initWithTTF"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:initWithTTF"); if (!ok) { break; } cocos2d::TextHAlignment arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } bool ret = cobj->initWithTTF(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { cocos2d::_ttfConfig arg0; ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:initWithTTF"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:initWithTTF"); if (!ok) { break; } cocos2d::TextHAlignment arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:initWithTTF"); if (!ok) { break; } bool ret = cobj->initWithTTF(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:initWithTTF"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:initWithTTF"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } bool ret = cobj->initWithTTF(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:initWithTTF"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:initWithTTF"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Label:initWithTTF"); if (!ok) { break; } bool ret = cobj->initWithTTF(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:initWithTTF"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:initWithTTF"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Label:initWithTTF"); if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Label:initWithTTF"); if (!ok) { break; } bool ret = cobj->initWithTTF(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 6) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:initWithTTF"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:initWithTTF"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } cocos2d::Size arg3; ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Label:initWithTTF"); if (!ok) { break; } cocos2d::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Label:initWithTTF"); if (!ok) { break; } cocos2d::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Label:initWithTTF"); if (!ok) { break; } bool ret = cobj->initWithTTF(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:initWithTTF",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_initWithTTF'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getFontAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getFontAtlas'", nullptr); return 0; } cocos2d::FontAtlas* ret = cobj->getFontAtlas(); object_to_luaval<cocos2d::FontAtlas>(tolua_S, "cc.FontAtlas",(cocos2d::FontAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getFontAtlas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getFontAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setLineHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setLineHeight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setLineHeight'", nullptr); return 0; } cobj->setLineHeight(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setLineHeight",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setLineHeight'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setSystemFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setSystemFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setSystemFontSize'", nullptr); return 0; } cobj->setSystemFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setSystemFontSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setSystemFontSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setOverflow(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setOverflow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Label::Overflow arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setOverflow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setOverflow'", nullptr); return 0; } cobj->setOverflow(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setOverflow",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setOverflow'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_enableStrikethrough(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableStrikethrough'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableStrikethrough'", nullptr); return 0; } cobj->enableStrikethrough(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableStrikethrough",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableStrikethrough'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_updateContent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_updateContent'", nullptr); return 0; } cobj->updateContent(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:updateContent",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_updateContent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getStringLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getStringLength'", nullptr); return 0; } int ret = cobj->getStringLength(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getStringLength",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getStringLength'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setLineBreakWithoutSpace'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Label:setLineBreakWithoutSpace"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setLineBreakWithoutSpace'", nullptr); return 0; } cobj->setLineBreakWithoutSpace(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setLineBreakWithoutSpace",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setLineBreakWithoutSpace'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getStringNumLines'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getStringNumLines'", nullptr); return 0; } int ret = cobj->getStringNumLines(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getStringNumLines",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getStringNumLines'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableOutline'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableOutline"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableOutline'", nullptr); return 0; } cobj->enableOutline(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { cocos2d::Color4B arg0; int arg1; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableOutline"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:enableOutline"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableOutline'", nullptr); return 0; } cobj->enableOutline(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableOutline",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableOutline'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getShadowBlurRadius(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getShadowBlurRadius'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getShadowBlurRadius'", nullptr); return 0; } double ret = cobj->getShadowBlurRadius(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getShadowBlurRadius",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getShadowBlurRadius'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getEffectColor(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getEffectColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getEffectColor'", nullptr); return 0; } cocos2d::Color4F ret = cobj->getEffectColor(); color4f_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getEffectColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getEffectColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Label:removeAllChildrenWithCleanup"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_removeAllChildrenWithCleanup'", nullptr); return 0; } cobj->removeAllChildrenWithCleanup(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:removeAllChildrenWithCleanup",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_removeAllChildrenWithCleanup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setCharMap'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 4) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Label:setCharMap"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setCharMap"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:setCharMap"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:setCharMap"); if (!ok) { break; } bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setCharMap"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setCharMap"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:setCharMap"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:setCharMap"); if (!ok) { break; } bool ret = cobj->setCharMap(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:setCharMap"); if (!ok) { break; } bool ret = cobj->setCharMap(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setCharMap",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setCharMap'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getDimensions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getDimensions'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getDimensions(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getDimensions",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getDimensions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setMaxLineWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setMaxLineWidth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setMaxLineWidth'", nullptr); return 0; } cobj->setMaxLineWidth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setMaxLineWidth",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setMaxLineWidth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getSystemFontName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getSystemFontName'", nullptr); return 0; } const std::string& ret = cobj->getSystemFontName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getSystemFontName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getSystemFontName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setVerticalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TextVAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setVerticalAlignment"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setVerticalAlignment'", nullptr); return 0; } cobj->setVerticalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setVerticalAlignment",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setVerticalAlignment'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setLineSpacing(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setLineSpacing'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setLineSpacing"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setLineSpacing'", nullptr); return 0; } cobj->setLineSpacing(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setLineSpacing",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setLineSpacing'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getLineHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getLineHeight'", nullptr); return 0; } double ret = cobj->getLineHeight(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getLineHeight",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getLineHeight'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getShadowColor(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getShadowColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getShadowColor'", nullptr); return 0; } cocos2d::Color4F ret = cobj->getShadowColor(); color4f_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getShadowColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getShadowColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getTTFConfig'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getTTFConfig'", nullptr); return 0; } const cocos2d::_ttfConfig& ret = cobj->getTTFConfig(); ttfconfig_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getTTFConfig",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getTTFConfig'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_enableItalics(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableItalics'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableItalics'", nullptr); return 0; } cobj->enableItalics(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableItalics",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableItalics'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setTextColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:setTextColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setTextColor'", nullptr); return 0; } cobj->setTextColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setTextColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setTextColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getLetter'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:getLetter"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getLetter'", nullptr); return 0; } cocos2d::Sprite* ret = cobj->getLetter(arg0); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getLetter",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getLetter'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setHeight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setHeight'", nullptr); return 0; } cobj->setHeight(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setHeight",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setHeight'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_isShadowEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_isShadowEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_isShadowEnabled'", nullptr); return 0; } bool ret = cobj->isShadowEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:isShadowEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_isShadowEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableGlow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableGlow"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableGlow'", nullptr); return 0; } cobj->enableGlow(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableGlow",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableGlow'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getOverflow(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getOverflow'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getOverflow'", nullptr); return 0; } int ret = (int)cobj->getOverflow(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getOverflow",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getOverflow'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getVerticalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getVerticalAlignment'", nullptr); return 0; } int ret = (int)cobj->getVerticalAlignment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getVerticalAlignment",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getVerticalAlignment'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setAdditionalKerning'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setAdditionalKerning"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setAdditionalKerning'", nullptr); return 0; } cobj->setAdditionalKerning(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setAdditionalKerning",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setAdditionalKerning'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getSystemFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getSystemFontSize'", nullptr); return 0; } double ret = cobj->getSystemFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getSystemFontSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getSystemFontSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.Label:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getTextAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getTextAlignment'", nullptr); return 0; } int ret = (int)cobj->getTextAlignment(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getTextAlignment",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getTextAlignment'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getBMFontFilePath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getBMFontFilePath'", nullptr); return 0; } const std::string& ret = cobj->getBMFontFilePath(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getBMFontFilePath",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getBMFontFilePath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setHorizontalAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setHorizontalAlignment"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setHorizontalAlignment'", nullptr); return 0; } cobj->setHorizontalAlignment(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setHorizontalAlignment",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setHorizontalAlignment'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_enableBold(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableBold'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableBold'", nullptr); return 0; } cobj->enableBold(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableBold",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableBold'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_enableUnderline(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_enableUnderline'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_enableUnderline'", nullptr); return 0; } cobj->enableUnderline(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:enableUnderline",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_enableUnderline'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_getLabelEffectType(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_getLabelEffectType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getLabelEffectType'", nullptr); return 0; } int ret = (int)cobj->getLabelEffectType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getLabelEffectType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_getLabelEffectType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setAlignment'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setAlignment"); if (!ok) { break; } cocos2d::TextVAlignment arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setAlignment"); if (!ok) { break; } cobj->setAlignment(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setAlignment"); if (!ok) { break; } cobj->setAlignment(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setAlignment",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setAlignment'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_requestSystemFontRefresh'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_requestSystemFontRefresh'", nullptr); return 0; } cobj->requestSystemFontRefresh(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:requestSystemFontRefresh",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_requestSystemFontRefresh'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_setBMFontSize(lua_State* tolua_S) { int argc = 0; cocos2d::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Label_setBMFontSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Label:setBMFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_setBMFontSize'", nullptr); return 0; } cobj->setBMFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:setBMFontSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_setBMFontSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithBMFont"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:createWithBMFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithBMFont'", nullptr); return 0; } cocos2d::Label* ret = cocos2d::Label::createWithBMFont(arg0, arg1); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } if (argc == 3) { std::string arg0; std::string arg1; cocos2d::TextHAlignment arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithBMFont"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:createWithBMFont"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:createWithBMFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithBMFont'", nullptr); return 0; } cocos2d::Label* ret = cocos2d::Label::createWithBMFont(arg0, arg1, arg2); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } if (argc == 4) { std::string arg0; std::string arg1; cocos2d::TextHAlignment arg2; int arg3; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithBMFont"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:createWithBMFont"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:createWithBMFont"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:createWithBMFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithBMFont'", nullptr); return 0; } cocos2d::Label* ret = cocos2d::Label::createWithBMFont(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } if (argc == 5) { std::string arg0; std::string arg1; cocos2d::TextHAlignment arg2; int arg3; cocos2d::Vec2 arg4; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithBMFont"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:createWithBMFont"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:createWithBMFont"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:createWithBMFont"); ok &= luaval_to_vec2(tolua_S, 6, &arg4, "cc.Label:createWithBMFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithBMFont'", nullptr); return 0; } cocos2d::Label* ret = cocos2d::Label::createWithBMFont(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:createWithBMFont",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_createWithBMFont'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_create'", nullptr); return 0; } cocos2d::Label* ret = cocos2d::Label::create(); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 4) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Label:createWithCharMap"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:createWithCharMap"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:createWithCharMap"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:createWithCharMap"); if (!ok) { break; } cocos2d::Label* ret = cocos2d::Label::createWithCharMap(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithCharMap"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:createWithCharMap"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:createWithCharMap"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:createWithCharMap"); if (!ok) { break; } cocos2d::Label* ret = cocos2d::Label::createWithCharMap(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithCharMap"); if (!ok) { break; } cocos2d::Label* ret = cocos2d::Label::createWithCharMap(arg0); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Label:createWithCharMap",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_createWithCharMap'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { std::string arg0; std::string arg1; double arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithSystemFont"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:createWithSystemFont"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:createWithSystemFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithSystemFont'", nullptr); return 0; } cocos2d::Label* ret = cocos2d::Label::createWithSystemFont(arg0, arg1, arg2); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } if (argc == 4) { std::string arg0; std::string arg1; double arg2; cocos2d::Size arg3; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithSystemFont"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:createWithSystemFont"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:createWithSystemFont"); ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Label:createWithSystemFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithSystemFont'", nullptr); return 0; } cocos2d::Label* ret = cocos2d::Label::createWithSystemFont(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } if (argc == 5) { std::string arg0; std::string arg1; double arg2; cocos2d::Size arg3; cocos2d::TextHAlignment arg4; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithSystemFont"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:createWithSystemFont"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:createWithSystemFont"); ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Label:createWithSystemFont"); ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Label:createWithSystemFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithSystemFont'", nullptr); return 0; } cocos2d::Label* ret = cocos2d::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } if (argc == 6) { std::string arg0; std::string arg1; double arg2; cocos2d::Size arg3; cocos2d::TextHAlignment arg4; cocos2d::TextVAlignment arg5; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Label:createWithSystemFont"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.Label:createWithSystemFont"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:createWithSystemFont"); ok &= luaval_to_size(tolua_S, 5, &arg3, "cc.Label:createWithSystemFont"); ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Label:createWithSystemFont"); ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Label:createWithSystemFont"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithSystemFont'", nullptr); return 0; } cocos2d::Label* ret = cocos2d::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval<cocos2d::Label>(tolua_S, "cc.Label",(cocos2d::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:createWithSystemFont",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Label_createWithSystemFont'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Label_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Label)"); return 0; } int lua_register_cocos2dx_Label(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Label"); tolua_cclass(tolua_S,"Label","cc.Label","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Label"); tolua_function(tolua_S,"isClipMarginEnabled",lua_cocos2dx_Label_isClipMarginEnabled); tolua_function(tolua_S,"enableShadow",lua_cocos2dx_Label_enableShadow); tolua_function(tolua_S,"setDimensions",lua_cocos2dx_Label_setDimensions); tolua_function(tolua_S,"getWidth",lua_cocos2dx_Label_getWidth); tolua_function(tolua_S,"getString",lua_cocos2dx_Label_getString); tolua_function(tolua_S,"getHeight",lua_cocos2dx_Label_getHeight); tolua_function(tolua_S,"disableEffect",lua_cocos2dx_Label_disableEffect); tolua_function(tolua_S,"setTTFConfig",lua_cocos2dx_Label_setTTFConfig); tolua_function(tolua_S,"getTextColor",lua_cocos2dx_Label_getTextColor); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_Label_getBlendFunc); tolua_function(tolua_S,"enableWrap",lua_cocos2dx_Label_enableWrap); tolua_function(tolua_S,"setWidth",lua_cocos2dx_Label_setWidth); tolua_function(tolua_S,"getAdditionalKerning",lua_cocos2dx_Label_getAdditionalKerning); tolua_function(tolua_S,"getBMFontSize",lua_cocos2dx_Label_getBMFontSize); tolua_function(tolua_S,"getMaxLineWidth",lua_cocos2dx_Label_getMaxLineWidth); tolua_function(tolua_S,"getHorizontalAlignment",lua_cocos2dx_Label_getHorizontalAlignment); tolua_function(tolua_S,"getShadowOffset",lua_cocos2dx_Label_getShadowOffset); tolua_function(tolua_S,"getLineSpacing",lua_cocos2dx_Label_getLineSpacing); tolua_function(tolua_S,"setClipMarginEnabled",lua_cocos2dx_Label_setClipMarginEnabled); tolua_function(tolua_S,"setString",lua_cocos2dx_Label_setString); tolua_function(tolua_S,"setSystemFontName",lua_cocos2dx_Label_setSystemFontName); tolua_function(tolua_S,"isWrapEnabled",lua_cocos2dx_Label_isWrapEnabled); tolua_function(tolua_S,"getOutlineSize",lua_cocos2dx_Label_getOutlineSize); tolua_function(tolua_S,"setBMFontFilePath",lua_cocos2dx_Label_setBMFontFilePath); tolua_function(tolua_S,"initWithTTF",lua_cocos2dx_Label_initWithTTF); tolua_function(tolua_S,"getFontAtlas",lua_cocos2dx_Label_getFontAtlas); tolua_function(tolua_S,"setLineHeight",lua_cocos2dx_Label_setLineHeight); tolua_function(tolua_S,"setSystemFontSize",lua_cocos2dx_Label_setSystemFontSize); tolua_function(tolua_S,"setOverflow",lua_cocos2dx_Label_setOverflow); tolua_function(tolua_S,"enableStrikethrough",lua_cocos2dx_Label_enableStrikethrough); tolua_function(tolua_S,"updateContent",lua_cocos2dx_Label_updateContent); tolua_function(tolua_S,"getStringLength",lua_cocos2dx_Label_getStringLength); tolua_function(tolua_S,"setLineBreakWithoutSpace",lua_cocos2dx_Label_setLineBreakWithoutSpace); tolua_function(tolua_S,"getStringNumLines",lua_cocos2dx_Label_getStringNumLines); tolua_function(tolua_S,"enableOutline",lua_cocos2dx_Label_enableOutline); tolua_function(tolua_S,"getShadowBlurRadius",lua_cocos2dx_Label_getShadowBlurRadius); tolua_function(tolua_S,"getEffectColor",lua_cocos2dx_Label_getEffectColor); tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_Label_removeAllChildrenWithCleanup); tolua_function(tolua_S,"setCharMap",lua_cocos2dx_Label_setCharMap); tolua_function(tolua_S,"getDimensions",lua_cocos2dx_Label_getDimensions); tolua_function(tolua_S,"setMaxLineWidth",lua_cocos2dx_Label_setMaxLineWidth); tolua_function(tolua_S,"getSystemFontName",lua_cocos2dx_Label_getSystemFontName); tolua_function(tolua_S,"setVerticalAlignment",lua_cocos2dx_Label_setVerticalAlignment); tolua_function(tolua_S,"setLineSpacing",lua_cocos2dx_Label_setLineSpacing); tolua_function(tolua_S,"getLineHeight",lua_cocos2dx_Label_getLineHeight); tolua_function(tolua_S,"getShadowColor",lua_cocos2dx_Label_getShadowColor); tolua_function(tolua_S,"getTTFConfig",lua_cocos2dx_Label_getTTFConfig); tolua_function(tolua_S,"enableItalics",lua_cocos2dx_Label_enableItalics); tolua_function(tolua_S,"setTextColor",lua_cocos2dx_Label_setTextColor); tolua_function(tolua_S,"getLetter",lua_cocos2dx_Label_getLetter); tolua_function(tolua_S,"setHeight",lua_cocos2dx_Label_setHeight); tolua_function(tolua_S,"isShadowEnabled",lua_cocos2dx_Label_isShadowEnabled); tolua_function(tolua_S,"enableGlow",lua_cocos2dx_Label_enableGlow); tolua_function(tolua_S,"getOverflow",lua_cocos2dx_Label_getOverflow); tolua_function(tolua_S,"getVerticalAlignment",lua_cocos2dx_Label_getVerticalAlignment); tolua_function(tolua_S,"setAdditionalKerning",lua_cocos2dx_Label_setAdditionalKerning); tolua_function(tolua_S,"getSystemFontSize",lua_cocos2dx_Label_getSystemFontSize); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_Label_setBlendFunc); tolua_function(tolua_S,"getTextAlignment",lua_cocos2dx_Label_getTextAlignment); tolua_function(tolua_S,"getBMFontFilePath",lua_cocos2dx_Label_getBMFontFilePath); tolua_function(tolua_S,"setHorizontalAlignment",lua_cocos2dx_Label_setHorizontalAlignment); tolua_function(tolua_S,"enableBold",lua_cocos2dx_Label_enableBold); tolua_function(tolua_S,"enableUnderline",lua_cocos2dx_Label_enableUnderline); tolua_function(tolua_S,"getLabelEffectType",lua_cocos2dx_Label_getLabelEffectType); tolua_function(tolua_S,"setAlignment",lua_cocos2dx_Label_setAlignment); tolua_function(tolua_S,"requestSystemFontRefresh",lua_cocos2dx_Label_requestSystemFontRefresh); tolua_function(tolua_S,"setBMFontSize",lua_cocos2dx_Label_setBMFontSize); tolua_function(tolua_S,"createWithBMFont", lua_cocos2dx_Label_createWithBMFont); tolua_function(tolua_S,"create", lua_cocos2dx_Label_create); tolua_function(tolua_S,"createWithCharMap", lua_cocos2dx_Label_createWithCharMap); tolua_function(tolua_S,"createWithSystemFont", lua_cocos2dx_Label_createWithSystemFont); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Label).name(); g_luaType[typeName] = "cc.Label"; g_typeCast["Label"] = "cc.Label"; return 1; } int lua_cocos2dx_LabelAtlas_setString(lua_State* tolua_S) { int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_setString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:setString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LabelAtlas_setString'", nullptr); return 0; } cobj->setString(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:setString",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_setString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) { int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_initWithString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelAtlas:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelAtlas:initWithString"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.LabelAtlas:initWithString"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelAtlas:initWithString"); if (!ok) { break; } int arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelAtlas:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.LabelAtlas:initWithString"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.LabelAtlas:initWithString"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelAtlas:initWithString"); if (!ok) { break; } int arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelAtlas:initWithString"); if (!ok) { break; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:initWithString",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_initWithString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) { int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LabelAtlas_getString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LabelAtlas_getString'", nullptr); return 0; } const std::string& ret = cobj->getString(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:getString",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_getString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 5) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:create"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelAtlas:create"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.LabelAtlas:create"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.LabelAtlas:create"); if (!ok) { break; } int arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelAtlas:create"); if (!ok) { break; } cocos2d::LabelAtlas* ret = cocos2d::LabelAtlas::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::LabelAtlas>(tolua_S, "cc.LabelAtlas",(cocos2d::LabelAtlas*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocos2d::LabelAtlas* ret = cocos2d::LabelAtlas::create(); object_to_luaval<cocos2d::LabelAtlas>(tolua_S, "cc.LabelAtlas",(cocos2d::LabelAtlas*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.LabelAtlas:create"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.LabelAtlas:create"); if (!ok) { break; } cocos2d::LabelAtlas* ret = cocos2d::LabelAtlas::create(arg0, arg1); object_to_luaval<cocos2d::LabelAtlas>(tolua_S, "cc.LabelAtlas",(cocos2d::LabelAtlas*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.LabelAtlas:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LabelAtlas_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::LabelAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LabelAtlas_constructor'", nullptr); return 0; } cobj = new cocos2d::LabelAtlas(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LabelAtlas"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LabelAtlas:LabelAtlas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LabelAtlas_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_LabelAtlas_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LabelAtlas)"); return 0; } int lua_register_cocos2dx_LabelAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LabelAtlas"); tolua_cclass(tolua_S,"LabelAtlas","cc.LabelAtlas","cc.AtlasNode",nullptr); tolua_beginmodule(tolua_S,"LabelAtlas"); tolua_function(tolua_S,"new",lua_cocos2dx_LabelAtlas_constructor); tolua_function(tolua_S,"setString",lua_cocos2dx_LabelAtlas_setString); tolua_function(tolua_S,"initWithString",lua_cocos2dx_LabelAtlas_initWithString); tolua_function(tolua_S,"getString",lua_cocos2dx_LabelAtlas_getString); tolua_function(tolua_S,"_create", lua_cocos2dx_LabelAtlas_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LabelAtlas).name(); g_luaType[typeName] = "cc.LabelAtlas"; g_typeCast["LabelAtlas"] = "cc.LabelAtlas"; return 1; } int lua_cocos2dx_Layer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Layer",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Layer_create'", nullptr); return 0; } cocos2d::Layer* ret = cocos2d::Layer::create(); object_to_luaval<cocos2d::Layer>(tolua_S, "cc.Layer",(cocos2d::Layer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Layer:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Layer_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Layer_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Layer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Layer_constructor'", nullptr); return 0; } cobj = new cocos2d::Layer(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Layer"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Layer:Layer",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Layer_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Layer_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Layer)"); return 0; } int lua_register_cocos2dx_Layer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Layer"); tolua_cclass(tolua_S,"Layer","cc.Layer","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Layer"); tolua_function(tolua_S,"new",lua_cocos2dx_Layer_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_Layer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Layer).name(); g_luaType[typeName] = "cc.Layer"; g_typeCast["Layer"] = "cc.Layer"; return 1; } int lua_cocos2dx_LayerColor_changeWidthAndHeight(lua_State* tolua_S) { int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_changeWidthAndHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; double arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeWidthAndHeight"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LayerColor:changeWidthAndHeight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_changeWidthAndHeight'", nullptr); return 0; } cobj->changeWidthAndHeight(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:changeWidthAndHeight",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeWidthAndHeight'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerColor_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerColor_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.LayerColor:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) { int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_changeWidth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeWidth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_changeWidth'", nullptr); return 0; } cobj->changeWidth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:changeWidth",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeWidth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerColor_initWithColor(lua_State* tolua_S) { int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_initWithColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:initWithColor"); if (!ok) { break; } bool ret = cobj->initWithColor(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:initWithColor"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LayerColor:initWithColor"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LayerColor:initWithColor"); if (!ok) { break; } bool ret = cobj->initWithColor(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:initWithColor",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_initWithColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) { int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerColor_changeHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.LayerColor:changeHeight"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_changeHeight'", nullptr); return 0; } cobj->changeHeight(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:changeHeight",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_changeHeight'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.LayerColor:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LayerColor:create"); if (!ok) { break; } cocos2d::LayerColor* ret = cocos2d::LayerColor::create(arg0, arg1, arg2); object_to_luaval<cocos2d::LayerColor>(tolua_S, "cc.LayerColor",(cocos2d::LayerColor*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocos2d::LayerColor* ret = cocos2d::LayerColor::create(); object_to_luaval<cocos2d::LayerColor>(tolua_S, "cc.LayerColor",(cocos2d::LayerColor*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:create"); if (!ok) { break; } cocos2d::LayerColor* ret = cocos2d::LayerColor::create(arg0); object_to_luaval<cocos2d::LayerColor>(tolua_S, "cc.LayerColor",(cocos2d::LayerColor*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.LayerColor:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerColor_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_constructor'", nullptr); return 0; } cobj = new cocos2d::LayerColor(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LayerColor"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerColor:LayerColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerColor_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_LayerColor_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LayerColor)"); return 0; } int lua_register_cocos2dx_LayerColor(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerColor"); tolua_cclass(tolua_S,"LayerColor","cc.LayerColor","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"LayerColor"); tolua_function(tolua_S,"new",lua_cocos2dx_LayerColor_constructor); tolua_function(tolua_S,"changeWidthAndHeight",lua_cocos2dx_LayerColor_changeWidthAndHeight); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_LayerColor_getBlendFunc); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_LayerColor_setBlendFunc); tolua_function(tolua_S,"changeWidth",lua_cocos2dx_LayerColor_changeWidth); tolua_function(tolua_S,"initWithColor",lua_cocos2dx_LayerColor_initWithColor); tolua_function(tolua_S,"changeHeight",lua_cocos2dx_LayerColor_changeHeight); tolua_function(tolua_S,"create", lua_cocos2dx_LayerColor_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerColor).name(); g_luaType[typeName] = "cc.LayerColor"; g_typeCast["LayerColor"] = "cc.LayerColor"; return 1; } int lua_cocos2dx_LayerGradient_getStartColor(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getStartColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_getStartColor'", nullptr); return 0; } const cocos2d::Color3B& ret = cobj->getStartColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getStartColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getStartColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_isCompressedInterpolation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_isCompressedInterpolation'", nullptr); return 0; } bool ret = cobj->isCompressedInterpolation(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:isCompressedInterpolation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_isCompressedInterpolation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getStartOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_getStartOpacity'", nullptr); return 0; } uint16_t ret = cobj->getStartOpacity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getStartOpacity",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getStartOpacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setVector'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.LayerGradient:setVector"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_setVector'", nullptr); return 0; } cobj->setVector(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setVector",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setVector'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setStartOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { uint16_t arg0; ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.LayerGradient:setStartOpacity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_setStartOpacity'", nullptr); return 0; } cobj->setStartOpacity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setStartOpacity",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setStartOpacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setCompressedInterpolation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.LayerGradient:setCompressedInterpolation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_setCompressedInterpolation'", nullptr); return 0; } cobj->setCompressedInterpolation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setCompressedInterpolation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setCompressedInterpolation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setEndOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { uint16_t arg0; ok &= luaval_to_uint16(tolua_S, 2,&arg0, "cc.LayerGradient:setEndOpacity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_setEndOpacity'", nullptr); return 0; } cobj->setEndOpacity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setEndOpacity",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setEndOpacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getVector'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_getVector'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getVector(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getVector",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getVector'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setEndColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerGradient:setEndColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_setEndColor'", nullptr); return 0; } cobj->setEndColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setEndColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setEndColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_initWithColor(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_initWithColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:initWithColor"); if (!ok) { break; } cocos2d::Color4B arg1; ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:initWithColor"); if (!ok) { break; } cocos2d::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.LayerGradient:initWithColor"); if (!ok) { break; } bool ret = cobj->initWithColor(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:initWithColor"); if (!ok) { break; } cocos2d::Color4B arg1; ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:initWithColor"); if (!ok) { break; } bool ret = cobj->initWithColor(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:initWithColor",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_initWithColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getEndColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_getEndColor'", nullptr); return 0; } const cocos2d::Color3B& ret = cobj->getEndColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getEndColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getEndColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_getEndOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_getEndOpacity'", nullptr); return 0; } uint16_t ret = cobj->getEndOpacity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:getEndOpacity",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_getEndOpacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerGradient_setStartColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerGradient:setStartColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_setStartColor'", nullptr); return 0; } cobj->setStartColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:setStartColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_setStartColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:create"); if (!ok) { break; } cocos2d::Color4B arg1; ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:create"); if (!ok) { break; } cocos2d::LayerGradient* ret = cocos2d::LayerGradient::create(arg0, arg1); object_to_luaval<cocos2d::LayerGradient>(tolua_S, "cc.LayerGradient",(cocos2d::LayerGradient*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocos2d::LayerGradient* ret = cocos2d::LayerGradient::create(); object_to_luaval<cocos2d::LayerGradient>(tolua_S, "cc.LayerGradient",(cocos2d::LayerGradient*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { cocos2d::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:create"); if (!ok) { break; } cocos2d::Color4B arg1; ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:create"); if (!ok) { break; } cocos2d::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.LayerGradient:create"); if (!ok) { break; } cocos2d::LayerGradient* ret = cocos2d::LayerGradient::create(arg0, arg1, arg2); object_to_luaval<cocos2d::LayerGradient>(tolua_S, "cc.LayerGradient",(cocos2d::LayerGradient*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.LayerGradient:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerGradient_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_constructor'", nullptr); return 0; } cobj = new cocos2d::LayerGradient(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LayerGradient"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerGradient:LayerGradient",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerGradient_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_LayerGradient_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LayerGradient)"); return 0; } int lua_register_cocos2dx_LayerGradient(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerGradient"); tolua_cclass(tolua_S,"LayerGradient","cc.LayerGradient","cc.LayerColor",nullptr); tolua_beginmodule(tolua_S,"LayerGradient"); tolua_function(tolua_S,"new",lua_cocos2dx_LayerGradient_constructor); tolua_function(tolua_S,"getStartColor",lua_cocos2dx_LayerGradient_getStartColor); tolua_function(tolua_S,"isCompressedInterpolation",lua_cocos2dx_LayerGradient_isCompressedInterpolation); tolua_function(tolua_S,"getStartOpacity",lua_cocos2dx_LayerGradient_getStartOpacity); tolua_function(tolua_S,"setVector",lua_cocos2dx_LayerGradient_setVector); tolua_function(tolua_S,"setStartOpacity",lua_cocos2dx_LayerGradient_setStartOpacity); tolua_function(tolua_S,"setCompressedInterpolation",lua_cocos2dx_LayerGradient_setCompressedInterpolation); tolua_function(tolua_S,"setEndOpacity",lua_cocos2dx_LayerGradient_setEndOpacity); tolua_function(tolua_S,"getVector",lua_cocos2dx_LayerGradient_getVector); tolua_function(tolua_S,"setEndColor",lua_cocos2dx_LayerGradient_setEndColor); tolua_function(tolua_S,"initWithColor",lua_cocos2dx_LayerGradient_initWithColor); tolua_function(tolua_S,"getEndColor",lua_cocos2dx_LayerGradient_getEndColor); tolua_function(tolua_S,"getEndOpacity",lua_cocos2dx_LayerGradient_getEndOpacity); tolua_function(tolua_S,"setStartColor",lua_cocos2dx_LayerGradient_setStartColor); tolua_function(tolua_S,"create", lua_cocos2dx_LayerGradient_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerGradient).name(); g_luaType[typeName] = "cc.LayerGradient"; g_typeCast["LayerGradient"] = "cc.LayerGradient"; return 1; } int lua_cocos2dx_LayerMultiplex_initWithArray(lua_State* tolua_S) { int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_initWithArray'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::Layer *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.LayerMultiplex:initWithArray"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerMultiplex_initWithArray'", nullptr); return 0; } bool ret = cobj->initWithArray(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:initWithArray",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_initWithArray'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) { int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LayerMultiplex:switchToAndReleaseMe"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe'", nullptr); return 0; } cobj->switchToAndReleaseMe(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:switchToAndReleaseMe",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) { int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_addLayer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Layer* arg0; ok &= luaval_to_object<cocos2d::Layer>(tolua_S, 2, "cc.Layer",&arg0, "cc.LayerMultiplex:addLayer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerMultiplex_addLayer'", nullptr); return 0; } cobj->addLayer(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:addLayer",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_addLayer'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) { int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_LayerMultiplex_switchTo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.LayerMultiplex:switchTo"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerMultiplex_switchTo'", nullptr); return 0; } cobj->switchTo(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:switchTo",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_switchTo'.",&tolua_err); #endif return 0; } int lua_cocos2dx_LayerMultiplex_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerMultiplex_constructor'", nullptr); return 0; } cobj = new cocos2d::LayerMultiplex(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.LayerMultiplex"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.LayerMultiplex:LayerMultiplex",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_LayerMultiplex_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_LayerMultiplex_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (LayerMultiplex)"); return 0; } int lua_register_cocos2dx_LayerMultiplex(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.LayerMultiplex"); tolua_cclass(tolua_S,"LayerMultiplex","cc.LayerMultiplex","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"LayerMultiplex"); tolua_function(tolua_S,"new",lua_cocos2dx_LayerMultiplex_constructor); tolua_function(tolua_S,"initWithArray",lua_cocos2dx_LayerMultiplex_initWithArray); tolua_function(tolua_S,"switchToAndReleaseMe",lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe); tolua_function(tolua_S,"addLayer",lua_cocos2dx_LayerMultiplex_addLayer); tolua_function(tolua_S,"switchTo",lua_cocos2dx_LayerMultiplex_switchTo); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::LayerMultiplex).name(); g_luaType[typeName] = "cc.LayerMultiplex"; g_typeCast["LayerMultiplex"] = "cc.LayerMultiplex"; return 1; } int lua_cocos2dx_MenuItem_setEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_setEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MenuItem:setEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_setEnabled'", nullptr); return 0; } cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:setEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_setEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_activate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_activate'", nullptr); return 0; } cobj->activate(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:activate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_activate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_isEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_isEnabled'", nullptr); return 0; } bool ret = cobj->isEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:isEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_isEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_selected'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_selected'", nullptr); return 0; } cobj->selected(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:selected",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_selected'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_isSelected'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_isSelected'", nullptr); return 0; } bool ret = cobj->isSelected(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:isSelected",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_isSelected'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_unselected'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_unselected'", nullptr); return 0; } cobj->unselected(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:unselected",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_unselected'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItem_rect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_rect'", nullptr); return 0; } cocos2d::Rect ret = cobj->rect(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:rect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_rect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItem_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_constructor'", nullptr); return 0; } cobj = new cocos2d::MenuItem(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItem"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItem:MenuItem",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItem_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MenuItem_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItem)"); return 0; } int lua_register_cocos2dx_MenuItem(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItem"); tolua_cclass(tolua_S,"MenuItem","cc.MenuItem","cc.Node",nullptr); tolua_beginmodule(tolua_S,"MenuItem"); tolua_function(tolua_S,"new",lua_cocos2dx_MenuItem_constructor); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItem_setEnabled); tolua_function(tolua_S,"activate",lua_cocos2dx_MenuItem_activate); tolua_function(tolua_S,"isEnabled",lua_cocos2dx_MenuItem_isEnabled); tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItem_selected); tolua_function(tolua_S,"isSelected",lua_cocos2dx_MenuItem_isSelected); tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItem_unselected); tolua_function(tolua_S,"rect",lua_cocos2dx_MenuItem_rect); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItem).name(); g_luaType[typeName] = "cc.MenuItem"; g_typeCast["MenuItem"] = "cc.MenuItem"; return 1; } int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setLabel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemLabel:setLabel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_setLabel'", nullptr); return 0; } cobj->setLabel(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setLabel",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setLabel'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemLabel_getString(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_getString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_getString'", nullptr); return 0; } std::string ret = cobj->getString(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:getString",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_getString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_getDisabledColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_getDisabledColor'", nullptr); return 0; } const cocos2d::Color3B& ret = cobj->getDisabledColor(); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:getDisabledColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_getDisabledColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemLabel:setString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_setString'", nullptr); return 0; } cobj->setString(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setString",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemLabel_initWithLabel(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_initWithLabel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Node* arg0; std::function<void (cocos2d::Ref *)> arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemLabel:initWithLabel"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_initWithLabel'", nullptr); return 0; } bool ret = cobj->initWithLabel(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:initWithLabel",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_initWithLabel'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_setDisabledColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MenuItemLabel:setDisabledColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_setDisabledColor'", nullptr); return 0; } cobj->setDisabledColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:setDisabledColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_setDisabledColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemLabel_getLabel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_getLabel'", nullptr); return 0; } cocos2d::Node* ret = cobj->getLabel(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:getLabel",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_getLabel'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemLabel_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_constructor'", nullptr); return 0; } cobj = new cocos2d::MenuItemLabel(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemLabel"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:MenuItemLabel",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemLabel_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MenuItemLabel_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemLabel)"); return 0; } int lua_register_cocos2dx_MenuItemLabel(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemLabel"); tolua_cclass(tolua_S,"MenuItemLabel","cc.MenuItemLabel","cc.MenuItem",nullptr); tolua_beginmodule(tolua_S,"MenuItemLabel"); tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemLabel_constructor); tolua_function(tolua_S,"setLabel",lua_cocos2dx_MenuItemLabel_setLabel); tolua_function(tolua_S,"getString",lua_cocos2dx_MenuItemLabel_getString); tolua_function(tolua_S,"getDisabledColor",lua_cocos2dx_MenuItemLabel_getDisabledColor); tolua_function(tolua_S,"setString",lua_cocos2dx_MenuItemLabel_setString); tolua_function(tolua_S,"initWithLabel",lua_cocos2dx_MenuItemLabel_initWithLabel); tolua_function(tolua_S,"setDisabledColor",lua_cocos2dx_MenuItemLabel_setDisabledColor); tolua_function(tolua_S,"getLabel",lua_cocos2dx_MenuItemLabel_getLabel); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemLabel).name(); g_luaType[typeName] = "cc.MenuItemLabel"; g_typeCast["MenuItemLabel"] = "cc.MenuItemLabel"; return 1; } int lua_cocos2dx_MenuItemAtlasFont_initWithString(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemAtlasFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemAtlasFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemAtlasFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemAtlasFont_initWithString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 6) { std::string arg0; std::string arg1; int arg2; int arg3; int32_t arg4; std::function<void (cocos2d::Ref *)> arg5; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemAtlasFont:initWithString"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.MenuItemAtlasFont:initWithString"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.MenuItemAtlasFont:initWithString"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.MenuItemAtlasFont:initWithString"); ok &= luaval_to_int32(tolua_S, 6,&arg4, "cc.MenuItemAtlasFont:initWithString"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemAtlasFont_initWithString'", nullptr); return 0; } bool ret = cobj->initWithString(arg0, arg1, arg2, arg3, arg4, arg5); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemAtlasFont:initWithString",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemAtlasFont_initWithString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemAtlasFont_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemAtlasFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemAtlasFont_constructor'", nullptr); return 0; } cobj = new cocos2d::MenuItemAtlasFont(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemAtlasFont"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemAtlasFont:MenuItemAtlasFont",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemAtlasFont_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MenuItemAtlasFont_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemAtlasFont)"); return 0; } int lua_register_cocos2dx_MenuItemAtlasFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemAtlasFont"); tolua_cclass(tolua_S,"MenuItemAtlasFont","cc.MenuItemAtlasFont","cc.MenuItemLabel",nullptr); tolua_beginmodule(tolua_S,"MenuItemAtlasFont"); tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemAtlasFont_constructor); tolua_function(tolua_S,"initWithString",lua_cocos2dx_MenuItemAtlasFont_initWithString); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemAtlasFont).name(); g_luaType[typeName] = "cc.MenuItemAtlasFont"; g_typeCast["MenuItemAtlasFont"] = "cc.MenuItemAtlasFont"; return 1; } int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_getFontNameObj'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_getFontNameObj'", nullptr); return 0; } const std::string& ret = cobj->getFontNameObj(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:getFontNameObj",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontNameObj'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_setFontNameObj'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemFont:setFontNameObj"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_setFontNameObj'", nullptr); return 0; } cobj->setFontNameObj(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:setFontNameObj",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontNameObj'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemFont_initWithString(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_initWithString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::function<void (cocos2d::Ref *)> arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemFont:initWithString"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_initWithString'", nullptr); return 0; } bool ret = cobj->initWithString(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:initWithString",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_initWithString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemFont_getFontSizeObj(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'", nullptr); return 0; } int ret = cobj->getFontSizeObj(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:getFontSizeObj",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontSizeObj'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemFont_setFontSizeObj(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.MenuItemFont:setFontSizeObj"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'", nullptr); return 0; } cobj->setFontSizeObj(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:setFontSizeObj",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontSizeObj'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemFont_setFontName(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemFont:setFontName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_setFontName'", nullptr); return 0; } cocos2d::MenuItemFont::setFontName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:setFontName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemFont_getFontSize(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_getFontSize'", nullptr); return 0; } int ret = cocos2d::MenuItemFont::getFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:getFontSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemFont_getFontName(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_getFontName'", nullptr); return 0; } const std::string& ret = cocos2d::MenuItemFont::getFontName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:getFontName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_getFontName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemFont_setFontSize(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.MenuItemFont:setFontSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_setFontSize'", nullptr); return 0; } cocos2d::MenuItemFont::setFontSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.MenuItemFont:setFontSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_setFontSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemFont_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_constructor'", nullptr); return 0; } cobj = new cocos2d::MenuItemFont(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemFont"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemFont:MenuItemFont",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemFont_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MenuItemFont_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemFont)"); return 0; } int lua_register_cocos2dx_MenuItemFont(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemFont"); tolua_cclass(tolua_S,"MenuItemFont","cc.MenuItemFont","cc.MenuItemLabel",nullptr); tolua_beginmodule(tolua_S,"MenuItemFont"); tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemFont_constructor); tolua_function(tolua_S,"getFontNameObj",lua_cocos2dx_MenuItemFont_getFontNameObj); tolua_function(tolua_S,"setFontNameObj",lua_cocos2dx_MenuItemFont_setFontNameObj); tolua_function(tolua_S,"initWithString",lua_cocos2dx_MenuItemFont_initWithString); tolua_function(tolua_S,"getFontSizeObj",lua_cocos2dx_MenuItemFont_getFontSizeObj); tolua_function(tolua_S,"setFontSizeObj",lua_cocos2dx_MenuItemFont_setFontSizeObj); tolua_function(tolua_S,"setFontName", lua_cocos2dx_MenuItemFont_setFontName); tolua_function(tolua_S,"getFontSize", lua_cocos2dx_MenuItemFont_getFontSize); tolua_function(tolua_S,"getFontName", lua_cocos2dx_MenuItemFont_getFontName); tolua_function(tolua_S,"setFontSize", lua_cocos2dx_MenuItemFont_setFontSize); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemFont).name(); g_luaType[typeName] = "cc.MenuItemFont"; g_typeCast["MenuItemFont"] = "cc.MenuItemFont"; return 1; } int lua_cocos2dx_MenuItemSprite_setEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MenuItemSprite:setEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_setEnabled'", nullptr); return 0; } cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_selected'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_selected'", nullptr); return 0; } cobj->selected(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:selected",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_selected'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setNormalImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:setNormalImage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_setNormalImage'", nullptr); return 0; } cobj->setNormalImage(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setNormalImage",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setNormalImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setDisabledImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:setDisabledImage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_setDisabledImage'", nullptr); return 0; } cobj->setDisabledImage(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setDisabledImage",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setDisabledImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_initWithNormalSprite(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_initWithNormalSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { cocos2d::Node* arg0; cocos2d::Node* arg1; cocos2d::Node* arg2; std::function<void (cocos2d::Ref *)> arg3; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:initWithNormalSprite"); ok &= luaval_to_object<cocos2d::Node>(tolua_S, 3, "cc.Node",&arg1, "cc.MenuItemSprite:initWithNormalSprite"); ok &= luaval_to_object<cocos2d::Node>(tolua_S, 4, "cc.Node",&arg2, "cc.MenuItemSprite:initWithNormalSprite"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_initWithNormalSprite'", nullptr); return 0; } bool ret = cobj->initWithNormalSprite(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:initWithNormalSprite",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_initWithNormalSprite'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_setSelectedImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:setSelectedImage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_setSelectedImage'", nullptr); return 0; } cobj->setSelectedImage(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:setSelectedImage",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_setSelectedImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_getDisabledImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_getDisabledImage'", nullptr); return 0; } cocos2d::Node* ret = cobj->getDisabledImage(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getDisabledImage",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_getDisabledImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_getSelectedImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_getSelectedImage'", nullptr); return 0; } cocos2d::Node* ret = cobj->getSelectedImage(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getSelectedImage",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_getSelectedImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_getNormalImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_getNormalImage'", nullptr); return 0; } cocos2d::Node* ret = cobj->getNormalImage(); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getNormalImage",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_getNormalImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemSprite_unselected'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_unselected'", nullptr); return 0; } cobj->unselected(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:unselected",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_unselected'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemSprite_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_constructor'", nullptr); return 0; } cobj = new cocos2d::MenuItemSprite(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemSprite"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:MenuItemSprite",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemSprite_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MenuItemSprite_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemSprite)"); return 0; } int lua_register_cocos2dx_MenuItemSprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemSprite"); tolua_cclass(tolua_S,"MenuItemSprite","cc.MenuItemSprite","cc.MenuItem",nullptr); tolua_beginmodule(tolua_S,"MenuItemSprite"); tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemSprite_constructor); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_MenuItemSprite_setEnabled); tolua_function(tolua_S,"selected",lua_cocos2dx_MenuItemSprite_selected); tolua_function(tolua_S,"setNormalImage",lua_cocos2dx_MenuItemSprite_setNormalImage); tolua_function(tolua_S,"setDisabledImage",lua_cocos2dx_MenuItemSprite_setDisabledImage); tolua_function(tolua_S,"initWithNormalSprite",lua_cocos2dx_MenuItemSprite_initWithNormalSprite); tolua_function(tolua_S,"setSelectedImage",lua_cocos2dx_MenuItemSprite_setSelectedImage); tolua_function(tolua_S,"getDisabledImage",lua_cocos2dx_MenuItemSprite_getDisabledImage); tolua_function(tolua_S,"getSelectedImage",lua_cocos2dx_MenuItemSprite_getSelectedImage); tolua_function(tolua_S,"getNormalImage",lua_cocos2dx_MenuItemSprite_getNormalImage); tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItemSprite_unselected); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemSprite).name(); g_luaType[typeName] = "cc.MenuItemSprite"; g_typeCast["MenuItemSprite"] = "cc.MenuItemSprite"; return 1; } int lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.MenuItemImage:setDisabledSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame'", nullptr); return 0; } cobj->setDisabledSpriteFrame(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:setDisabledSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.MenuItemImage:setSelectedSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame'", nullptr); return 0; } cobj->setSelectedSpriteFrame(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:setSelectedSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_setNormalSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.MenuItemImage:setNormalSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_setNormalSpriteFrame'", nullptr); return 0; } cobj->setNormalSpriteFrame(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:setNormalSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_setNormalSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemImage_init(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemImage_initWithNormalImage(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemImage_initWithNormalImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { std::string arg0; std::string arg1; std::string arg2; std::function<void (cocos2d::Ref *)> arg3; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.MenuItemImage:initWithNormalImage"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.MenuItemImage:initWithNormalImage"); ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.MenuItemImage:initWithNormalImage"); do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_initWithNormalImage'", nullptr); return 0; } bool ret = cobj->initWithNormalImage(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:initWithNormalImage",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_initWithNormalImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemImage_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_constructor'", nullptr); return 0; } cobj = new cocos2d::MenuItemImage(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemImage"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemImage:MenuItemImage",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemImage_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MenuItemImage_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemImage)"); return 0; } int lua_register_cocos2dx_MenuItemImage(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemImage"); tolua_cclass(tolua_S,"MenuItemImage","cc.MenuItemImage","cc.MenuItemSprite",nullptr); tolua_beginmodule(tolua_S,"MenuItemImage"); tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemImage_constructor); tolua_function(tolua_S,"setDisabledSpriteFrame",lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame); tolua_function(tolua_S,"setSelectedSpriteFrame",lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame); tolua_function(tolua_S,"setNormalSpriteFrame",lua_cocos2dx_MenuItemImage_setNormalSpriteFrame); tolua_function(tolua_S,"init",lua_cocos2dx_MenuItemImage_init); tolua_function(tolua_S,"initWithNormalImage",lua_cocos2dx_MenuItemImage_initWithNormalImage); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemImage).name(); g_luaType[typeName] = "cc.MenuItemImage"; g_typeCast["MenuItemImage"] = "cc.MenuItemImage"; return 1; } int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_setSubItems'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::MenuItem *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.MenuItemToggle:setSubItems"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_setSubItems'", nullptr); return 0; } cobj->setSubItems(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:setSubItems",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_setSubItems'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemToggle_initWithItem(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_initWithItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::MenuItem* arg0; ok &= luaval_to_object<cocos2d::MenuItem>(tolua_S, 2, "cc.MenuItem",&arg0, "cc.MenuItemToggle:initWithItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_initWithItem'", nullptr); return 0; } bool ret = cobj->initWithItem(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:initWithItem",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_initWithItem'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_getSelectedIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_getSelectedIndex'", nullptr); return 0; } unsigned int ret = cobj->getSelectedIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:getSelectedIndex",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_getSelectedIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_addSubItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::MenuItem* arg0; ok &= luaval_to_object<cocos2d::MenuItem>(tolua_S, 2, "cc.MenuItem",&arg0, "cc.MenuItemToggle:addSubItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_addSubItem'", nullptr); return 0; } cobj->addSubItem(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:addSubItem",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_addSubItem'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_getSelectedItem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_getSelectedItem'", nullptr); return 0; } cocos2d::MenuItem* ret = cobj->getSelectedItem(); object_to_luaval<cocos2d::MenuItem>(tolua_S, "cc.MenuItem",(cocos2d::MenuItem*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:getSelectedItem",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_getSelectedItem'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MenuItemToggle_setSelectedIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.MenuItemToggle:setSelectedIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_setSelectedIndex'", nullptr); return 0; } cobj->setSelectedIndex(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:setSelectedIndex",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_setSelectedIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MenuItemToggle_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_constructor'", nullptr); return 0; } cobj = new cocos2d::MenuItemToggle(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MenuItemToggle"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:MenuItemToggle",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MenuItemToggle_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MenuItemToggle_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MenuItemToggle)"); return 0; } int lua_register_cocos2dx_MenuItemToggle(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MenuItemToggle"); tolua_cclass(tolua_S,"MenuItemToggle","cc.MenuItemToggle","cc.MenuItem",nullptr); tolua_beginmodule(tolua_S,"MenuItemToggle"); tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemToggle_constructor); tolua_function(tolua_S,"setSubItems",lua_cocos2dx_MenuItemToggle_setSubItems); tolua_function(tolua_S,"initWithItem",lua_cocos2dx_MenuItemToggle_initWithItem); tolua_function(tolua_S,"getSelectedIndex",lua_cocos2dx_MenuItemToggle_getSelectedIndex); tolua_function(tolua_S,"addSubItem",lua_cocos2dx_MenuItemToggle_addSubItem); tolua_function(tolua_S,"getSelectedItem",lua_cocos2dx_MenuItemToggle_getSelectedItem); tolua_function(tolua_S,"setSelectedIndex",lua_cocos2dx_MenuItemToggle_setSelectedIndex); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MenuItemToggle).name(); g_luaType[typeName] = "cc.MenuItemToggle"; g_typeCast["MenuItemToggle"] = "cc.MenuItemToggle"; return 1; } int lua_cocos2dx_Menu_initWithArray(lua_State* tolua_S) { int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_initWithArray'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::MenuItem *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Menu:initWithArray"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_initWithArray'", nullptr); return 0; } bool ret = cobj->initWithArray(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:initWithArray",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_initWithArray'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Menu_setEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_setEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Menu:setEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_setEnabled'", nullptr); return 0; } cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:setEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_setEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) { int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsVertically'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_alignItemsVertically'", nullptr); return 0; } cobj->alignItemsVertically(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsVertically",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsVertically'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_isEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_isEnabled'", nullptr); return 0; } bool ret = cobj->isEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:isEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_isEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) { int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsHorizontally'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_alignItemsHorizontally'", nullptr); return 0; } cobj->alignItemsHorizontally(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsHorizontally",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsHorizontally'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) { int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Menu:alignItemsHorizontallyWithPadding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding'", nullptr); return 0; } cobj->alignItemsHorizontallyWithPadding(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsHorizontallyWithPadding",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) { int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Menu_alignItemsVerticallyWithPadding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Menu:alignItemsVerticallyWithPadding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_alignItemsVerticallyWithPadding'", nullptr); return 0; } cobj->alignItemsVerticallyWithPadding(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:alignItemsVerticallyWithPadding",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_alignItemsVerticallyWithPadding'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Menu_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_constructor'", nullptr); return 0; } cobj = new cocos2d::Menu(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Menu"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Menu:Menu",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Menu_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Menu_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Menu)"); return 0; } int lua_register_cocos2dx_Menu(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Menu"); tolua_cclass(tolua_S,"Menu","cc.Menu","cc.Layer",nullptr); tolua_beginmodule(tolua_S,"Menu"); tolua_function(tolua_S,"new",lua_cocos2dx_Menu_constructor); tolua_function(tolua_S,"initWithArray",lua_cocos2dx_Menu_initWithArray); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_Menu_setEnabled); tolua_function(tolua_S,"alignItemsVertically",lua_cocos2dx_Menu_alignItemsVertically); tolua_function(tolua_S,"isEnabled",lua_cocos2dx_Menu_isEnabled); tolua_function(tolua_S,"alignItemsHorizontally",lua_cocos2dx_Menu_alignItemsHorizontally); tolua_function(tolua_S,"alignItemsHorizontallyWithPadding",lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding); tolua_function(tolua_S,"alignItemsVerticallyWithPadding",lua_cocos2dx_Menu_alignItemsVerticallyWithPadding); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Menu).name(); g_luaType[typeName] = "cc.Menu"; g_typeCast["Menu"] = "cc.Menu"; return 1; } int lua_cocos2dx_MotionStreak_reset(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_reset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_reset'", nullptr); return 0; } cobj->reset(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:reset",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_reset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.MotionStreak:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_setTexture'", nullptr); return 0; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_getTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_getTexture'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTexture(); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:getTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_getTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_tintWithColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MotionStreak:tintWithColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_tintWithColor'", nullptr); return 0; } cobj->tintWithColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:tintWithColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_tintWithColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.MotionStreak:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setStartingPositionInitialized'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MotionStreak:setStartingPositionInitialized"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_setStartingPositionInitialized'", nullptr); return 0; } cobj->setStartingPositionInitialized(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setStartingPositionInitialized",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setStartingPositionInitialized'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_isStartingPositionInitialized'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_isStartingPositionInitialized'", nullptr); return 0; } bool ret = cobj->isStartingPositionInitialized(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:isStartingPositionInitialized",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_isStartingPositionInitialized'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_isFastMode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_isFastMode'", nullptr); return 0; } bool ret = cobj->isFastMode(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:isFastMode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_isFastMode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_getStroke(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_getStroke'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_getStroke'", nullptr); return 0; } double ret = cobj->getStroke(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:getStroke",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_getStroke'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_initWithFade(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_initWithFade'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak:initWithFade"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak:initWithFade"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:initWithFade"); if (!ok) { break; } cocos2d::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:initWithFade"); if (!ok) { break; } cocos2d::Texture2D* arg4; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak:initWithFade"); if (!ok) { break; } bool ret = cobj->initWithFade(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak:initWithFade"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak:initWithFade"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:initWithFade"); if (!ok) { break; } cocos2d::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:initWithFade"); if (!ok) { break; } std::string arg4; ok &= luaval_to_std_string(tolua_S, 6,&arg4, "cc.MotionStreak:initWithFade"); if (!ok) { break; } bool ret = cobj->initWithFade(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:initWithFade",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_initWithFade'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setFastMode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MotionStreak:setFastMode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_setFastMode'", nullptr); return 0; } cobj->setFastMode(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setFastMode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setFastMode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_setStroke(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak_setStroke'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak:setStroke"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_setStroke'", nullptr); return 0; } cobj->setStroke(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:setStroke",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_setStroke'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:create"); if (!ok) { break; } cocos2d::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:create"); if (!ok) { break; } cocos2d::Texture2D* arg4; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak:create"); if (!ok) { break; } cocos2d::MotionStreak* ret = cocos2d::MotionStreak::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::MotionStreak>(tolua_S, "cc.MotionStreak",(cocos2d::MotionStreak*)ret); return 1; } } while (0); ok = true; do { if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:create"); if (!ok) { break; } cocos2d::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:create"); if (!ok) { break; } std::string arg4; ok &= luaval_to_std_string(tolua_S, 6,&arg4, "cc.MotionStreak:create"); if (!ok) { break; } cocos2d::MotionStreak* ret = cocos2d::MotionStreak::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::MotionStreak>(tolua_S, "cc.MotionStreak",(cocos2d::MotionStreak*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.MotionStreak:create",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_constructor'", nullptr); return 0; } cobj = new cocos2d::MotionStreak(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MotionStreak"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:MotionStreak",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MotionStreak_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MotionStreak)"); return 0; } int lua_register_cocos2dx_MotionStreak(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MotionStreak"); tolua_cclass(tolua_S,"MotionStreak","cc.MotionStreak","cc.Node",nullptr); tolua_beginmodule(tolua_S,"MotionStreak"); tolua_function(tolua_S,"new",lua_cocos2dx_MotionStreak_constructor); tolua_function(tolua_S,"reset",lua_cocos2dx_MotionStreak_reset); tolua_function(tolua_S,"setTexture",lua_cocos2dx_MotionStreak_setTexture); tolua_function(tolua_S,"getTexture",lua_cocos2dx_MotionStreak_getTexture); tolua_function(tolua_S,"tintWithColor",lua_cocos2dx_MotionStreak_tintWithColor); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_MotionStreak_setBlendFunc); tolua_function(tolua_S,"setStartingPositionInitialized",lua_cocos2dx_MotionStreak_setStartingPositionInitialized); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_MotionStreak_getBlendFunc); tolua_function(tolua_S,"isStartingPositionInitialized",lua_cocos2dx_MotionStreak_isStartingPositionInitialized); tolua_function(tolua_S,"isFastMode",lua_cocos2dx_MotionStreak_isFastMode); tolua_function(tolua_S,"getStroke",lua_cocos2dx_MotionStreak_getStroke); tolua_function(tolua_S,"initWithFade",lua_cocos2dx_MotionStreak_initWithFade); tolua_function(tolua_S,"setFastMode",lua_cocos2dx_MotionStreak_setFastMode); tolua_function(tolua_S,"setStroke",lua_cocos2dx_MotionStreak_setStroke); tolua_function(tolua_S,"create", lua_cocos2dx_MotionStreak_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MotionStreak).name(); g_luaType[typeName] = "cc.MotionStreak"; g_typeCast["MotionStreak"] = "cc.MotionStreak"; return 1; } int lua_cocos2dx_NodeGrid_setGridRect(lua_State* tolua_S) { int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_NodeGrid_setGridRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.NodeGrid:setGridRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_setGridRect'", nullptr); return 0; } cobj->setGridRect(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:setGridRect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_setGridRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_NodeGrid_setTarget(lua_State* tolua_S) { int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_NodeGrid_setTarget'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.NodeGrid:setTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_setTarget'", nullptr); return 0; } cobj->setTarget(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:setTarget",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_setTarget'.",&tolua_err); #endif return 0; } int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) { int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_NodeGrid_setGrid'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::GridBase* arg0; ok &= luaval_to_object<cocos2d::GridBase>(tolua_S, 2, "cc.GridBase",&arg0, "cc.NodeGrid:setGrid"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_setGrid'", nullptr); return 0; } cobj->setGrid(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:setGrid",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_setGrid'.",&tolua_err); #endif return 0; } int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) { int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_NodeGrid_getGrid'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { const cocos2d::GridBase* ret = cobj->getGrid(); object_to_luaval<cocos2d::GridBase>(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { cocos2d::GridBase* ret = cobj->getGrid(); object_to_luaval<cocos2d::GridBase>(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:getGrid",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_getGrid'.",&tolua_err); #endif return 0; } int lua_cocos2dx_NodeGrid_getGridRect(lua_State* tolua_S) { int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_NodeGrid_getGridRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_getGridRect'", nullptr); return 0; } const cocos2d::Rect& ret = cobj->getGridRect(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:getGridRect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_getGridRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_NodeGrid_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.NodeGrid:create"); if (!ok) { break; } cocos2d::NodeGrid* ret = cocos2d::NodeGrid::create(arg0); object_to_luaval<cocos2d::NodeGrid>(tolua_S, "cc.NodeGrid",(cocos2d::NodeGrid*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocos2d::NodeGrid* ret = cocos2d::NodeGrid::create(); object_to_luaval<cocos2d::NodeGrid>(tolua_S, "cc.NodeGrid",(cocos2d::NodeGrid*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.NodeGrid:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_NodeGrid_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_constructor'", nullptr); return 0; } cobj = new cocos2d::NodeGrid(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.NodeGrid"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.NodeGrid:NodeGrid",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_NodeGrid_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_NodeGrid_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (NodeGrid)"); return 0; } int lua_register_cocos2dx_NodeGrid(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.NodeGrid"); tolua_cclass(tolua_S,"NodeGrid","cc.NodeGrid","cc.Node",nullptr); tolua_beginmodule(tolua_S,"NodeGrid"); tolua_function(tolua_S,"new",lua_cocos2dx_NodeGrid_constructor); tolua_function(tolua_S,"setGridRect",lua_cocos2dx_NodeGrid_setGridRect); tolua_function(tolua_S,"setTarget",lua_cocos2dx_NodeGrid_setTarget); tolua_function(tolua_S,"setGrid",lua_cocos2dx_NodeGrid_setGrid); tolua_function(tolua_S,"getGrid",lua_cocos2dx_NodeGrid_getGrid); tolua_function(tolua_S,"getGridRect",lua_cocos2dx_NodeGrid_getGridRect); tolua_function(tolua_S,"create", lua_cocos2dx_NodeGrid_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::NodeGrid).name(); g_luaType[typeName] = "cc.NodeGrid"; g_typeCast["NodeGrid"] = "cc.NodeGrid"; return 1; } int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_setTexture'", nullptr); return 0; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_initWithTexture(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_initWithTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Texture2D* arg0; int arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:initWithTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:initWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_initWithTexture'", nullptr); return 0; } bool ret = cobj->initWithTexture(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:initWithTexture",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_initWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_disableParticle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleBatchNode:disableParticle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_disableParticle'", nullptr); return 0; } cobj->disableParticle(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:disableParticle",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_disableParticle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_getTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_getTexture'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTexture(); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:getTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_getTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_setTextureAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TextureAtlas* arg0; ok &= luaval_to_object<cocos2d::TextureAtlas>(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.ParticleBatchNode:setTextureAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_setTextureAtlas'", nullptr); return 0; } cobj->setTextureAtlas(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:setTextureAtlas",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_setTextureAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_initWithFile(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_initWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; int arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ParticleBatchNode:initWithFile"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:initWithFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_initWithFile'", nullptr); return 0; } bool ret = cobj->initWithFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:initWithFile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_initWithFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.ParticleBatchNode:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleBatchNode:removeAllChildrenWithCleanup"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup'", nullptr); return 0; } cobj->removeAllChildrenWithCleanup(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:removeAllChildrenWithCleanup",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_getTextureAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_getTextureAtlas'", nullptr); return 0; } cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); object_to_luaval<cocos2d::TextureAtlas>(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:getTextureAtlas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_getTextureAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_insertChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::ParticleSystem* arg0; int arg1; ok &= luaval_to_object<cocos2d::ParticleSystem>(tolua_S, 2, "cc.ParticleSystem",&arg0, "cc.ParticleBatchNode:insertChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:insertChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_insertChild'", nullptr); return 0; } cobj->insertChild(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:insertChild",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_insertChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleBatchNode_removeChildAtIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; bool arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleBatchNode:removeChildAtIndex"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ParticleBatchNode:removeChildAtIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_removeChildAtIndex'", nullptr); return 0; } cobj->removeChildAtIndex(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:removeChildAtIndex",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_removeChildAtIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ParticleBatchNode:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_create'", nullptr); return 0; } cocos2d::ParticleBatchNode* ret = cocos2d::ParticleBatchNode::create(arg0); object_to_luaval<cocos2d::ParticleBatchNode>(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); return 1; } if (argc == 2) { std::string arg0; int arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ParticleBatchNode:create"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_create'", nullptr); return 0; } cocos2d::ParticleBatchNode* ret = cocos2d::ParticleBatchNode::create(arg0, arg1); object_to_luaval<cocos2d::ParticleBatchNode>(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleBatchNode:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_createWithTexture(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_createWithTexture'", nullptr); return 0; } cocos2d::ParticleBatchNode* ret = cocos2d::ParticleBatchNode::createWithTexture(arg0); object_to_luaval<cocos2d::ParticleBatchNode>(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); return 1; } if (argc == 2) { cocos2d::Texture2D* arg0; int arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:createWithTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_createWithTexture'", nullptr); return 0; } cocos2d::ParticleBatchNode* ret = cocos2d::ParticleBatchNode::createWithTexture(arg0, arg1); object_to_luaval<cocos2d::ParticleBatchNode>(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleBatchNode:createWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_createWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleBatchNode_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleBatchNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleBatchNode"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:ParticleBatchNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleBatchNode_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleBatchNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleBatchNode)"); return 0; } int lua_register_cocos2dx_ParticleBatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleBatchNode"); tolua_cclass(tolua_S,"ParticleBatchNode","cc.ParticleBatchNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParticleBatchNode"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleBatchNode_constructor); tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleBatchNode_setTexture); tolua_function(tolua_S,"initWithTexture",lua_cocos2dx_ParticleBatchNode_initWithTexture); tolua_function(tolua_S,"disableParticle",lua_cocos2dx_ParticleBatchNode_disableParticle); tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleBatchNode_getTexture); tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_ParticleBatchNode_setTextureAtlas); tolua_function(tolua_S,"initWithFile",lua_cocos2dx_ParticleBatchNode_initWithFile); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_ParticleBatchNode_setBlendFunc); tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup); tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_ParticleBatchNode_getTextureAtlas); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_ParticleBatchNode_getBlendFunc); tolua_function(tolua_S,"insertChild",lua_cocos2dx_ParticleBatchNode_insertChild); tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_ParticleBatchNode_removeChildAtIndex); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleBatchNode_create); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_ParticleBatchNode_createWithTexture); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleBatchNode).name(); g_luaType[typeName] = "cc.ParticleBatchNode"; g_typeCast["ParticleBatchNode"] = "cc.ParticleBatchNode"; return 1; } int lua_cocos2dx_ParticleData_release(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleData_release'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleData_release'", nullptr); return 0; } cobj->release(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleData:release",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleData_release'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleData_getMaxCount(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleData_getMaxCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleData_getMaxCount'", nullptr); return 0; } unsigned int ret = cobj->getMaxCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleData:getMaxCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleData_getMaxCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleData_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleData_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleData:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleData_init'", nullptr); return 0; } bool ret = cobj->init(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleData:init",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleData_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleData_copyParticle(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleData",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleData_copyParticle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; int arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleData:copyParticle"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleData:copyParticle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleData_copyParticle'", nullptr); return 0; } cobj->copyParticle(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleData:copyParticle",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleData_copyParticle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleData_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleData_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleData(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.ParticleData"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleData:ParticleData",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleData_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleData_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleData)"); return 0; } int lua_register_cocos2dx_ParticleData(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleData"); tolua_cclass(tolua_S,"ParticleData","cc.ParticleData","",nullptr); tolua_beginmodule(tolua_S,"ParticleData"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleData_constructor); tolua_function(tolua_S,"release",lua_cocos2dx_ParticleData_release); tolua_function(tolua_S,"getMaxCount",lua_cocos2dx_ParticleData_getMaxCount); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleData_init); tolua_function(tolua_S,"copyParticle",lua_cocos2dx_ParticleData_copyParticle); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleData).name(); g_luaType[typeName] = "cc.ParticleData"; g_typeCast["ParticleData"] = "cc.ParticleData"; return 1; } int lua_cocos2dx_ParticleSystem_getStartSizeVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSizeVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartSizeVar'", nullptr); return 0; } double ret = cobj->getStartSizeVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSizeVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSizeVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getTexture'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTexture(); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isFull'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_isFull'", nullptr); return 0; } bool ret = cobj->isFull(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isFull",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isFull'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getBatchNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getBatchNode'", nullptr); return 0; } cocos2d::ParticleBatchNode* ret = cobj->getBatchNode(); object_to_luaval<cocos2d::ParticleBatchNode>(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getBatchNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getBatchNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartColor'", nullptr); return 0; } const cocos2d::Color4F& ret = cobj->getStartColor(); color4f_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getPositionType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getPositionType'", nullptr); return 0; } int ret = (int)cobj->getPositionType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getPositionType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getPositionType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setPosVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setPosVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setPosVar'", nullptr); return 0; } cobj->setPosVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setPosVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setPosVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSpin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndSpin'", nullptr); return 0; } double ret = cobj->getEndSpin(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSpin",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSpin'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecondVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotatePerSecondVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecondVar'", nullptr); return 0; } cobj->setRotatePerSecondVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotatePerSecondVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecondVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSpinVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartSpinVar'", nullptr); return 0; } double ret = cobj->getStartSpinVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSpinVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSpinVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRadialAccelVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getRadialAccelVar'", nullptr); return 0; } double ret = cobj->getRadialAccelVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRadialAccelVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRadialAccelVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSizeVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndSizeVar'", nullptr); return 0; } double ret = cobj->getEndSizeVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSizeVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSizeVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTangentialAccel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setTangentialAccel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setTangentialAccel'", nullptr); return 0; } cobj->setTangentialAccel(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTangentialAccel",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTangentialAccel'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRadialAccel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getRadialAccel'", nullptr); return 0; } double ret = cobj->getRadialAccel(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRadialAccel",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRadialAccel'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartRadius'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartRadius"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setStartRadius'", nullptr); return 0; } cobj->setStartRadius(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartRadius",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartRadius'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecond'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotatePerSecond"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecond'", nullptr); return 0; } cobj->setRotatePerSecond(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotatePerSecond",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotatePerSecond'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEndSize'", nullptr); return 0; } cobj->setEndSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getGravity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getGravity'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getGravity(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getGravity",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getGravity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_resumeEmissions(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_resumeEmissions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_resumeEmissions'", nullptr); return 0; } cobj->resumeEmissions(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:resumeEmissions",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_resumeEmissions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTangentialAccel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getTangentialAccel'", nullptr); return 0; } double ret = cobj->getTangentialAccel(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTangentialAccel",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTangentialAccel'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndRadius'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndRadius"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEndRadius'", nullptr); return 0; } cobj->setEndRadius(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndRadius",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndRadius'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getSpeed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getSpeed'", nullptr); return 0; } double ret = cobj->getSpeed(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getSpeed",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getSpeed'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_pauseEmissions(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_pauseEmissions'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_pauseEmissions'", nullptr); return 0; } cobj->pauseEmissions(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:pauseEmissions",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_pauseEmissions'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getAngle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getAngle'", nullptr); return 0; } double ret = cobj->getAngle(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getAngle",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setEndColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEndColor'", nullptr); return 0; } cobj->setEndColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSpin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSpin"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setStartSpin'", nullptr); return 0; } cobj->setStartSpin(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSpin",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSpin'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setDuration'", nullptr); return 0; } cobj->setDuration(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setDuration",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_addParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_addParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:addParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_addParticles'", nullptr); return 0; } cobj->addParticles(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:addParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_addParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleSystem:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setTexture'", nullptr); return 0; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getPosVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getPosVar'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getPosVar(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getPosVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getPosVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_updateWithNoTime'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_updateWithNoTime'", nullptr); return 0; } cobj->updateWithNoTime(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:updateWithNoTime",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_updateWithNoTime'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isBlendAdditive'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_isBlendAdditive'", nullptr); return 0; } bool ret = cobj->isBlendAdditive(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isBlendAdditive",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isBlendAdditive'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getSpeedVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getSpeedVar'", nullptr); return 0; } double ret = cobj->getSpeedVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getSpeedVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getSpeedVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setPositionType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ParticleSystem::PositionType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setPositionType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setPositionType'", nullptr); return 0; } cobj->setPositionType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setPositionType",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setPositionType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_stopSystem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_stopSystem'", nullptr); return 0; } cobj->stopSystem(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:stopSystem",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_stopSystem'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getSourcePosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getSourcePosition'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getSourcePosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getSourcePosition",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getSourcePosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setLifeVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setLifeVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setLifeVar'", nullptr); return 0; } cobj->setLifeVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setLifeVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setLifeVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setTotalParticles'", nullptr); return 0; } cobj->setTotalParticles(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndColorVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setEndColorVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEndColorVar'", nullptr); return 0; } cobj->setEndColorVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndColorVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndColorVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getAtlasIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getAtlasIndex'", nullptr); return 0; } int ret = cobj->getAtlasIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getAtlasIndex",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getAtlasIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartSize'", nullptr); return 0; } double ret = cobj->getStartSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSpinVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSpinVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setStartSpinVar'", nullptr); return 0; } cobj->setStartSpinVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSpinVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSpinVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_resetSystem'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_resetSystem'", nullptr); return 0; } cobj->resetSystem(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:resetSystem",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_resetSystem'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAtlasIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setAtlasIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setAtlasIndex'", nullptr); return 0; } cobj->setAtlasIndex(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAtlasIndex",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAtlasIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setTangentialAccelVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setTangentialAccelVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setTangentialAccelVar'", nullptr); return 0; } cobj->setTangentialAccelVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setTangentialAccelVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setTangentialAccelVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndRadiusVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndRadiusVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEndRadiusVar'", nullptr); return 0; } cobj->setEndRadiusVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndRadiusVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndRadiusVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndRadius'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndRadius'", nullptr); return 0; } double ret = cobj->getEndRadius(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndRadius",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndRadius'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isActive'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_isActive'", nullptr); return 0; } bool ret = cobj->isActive(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isActive",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isActive'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRadialAccelVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRadialAccelVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setRadialAccelVar'", nullptr); return 0; } cobj->setRadialAccelVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRadialAccelVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRadialAccelVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setStartSize'", nullptr); return 0; } cobj->setStartSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setSpeed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setSpeed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setSpeed'", nullptr); return 0; } cobj->setSpeed(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setSpeed",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setSpeed'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartSpin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartSpin'", nullptr); return 0; } double ret = cobj->getStartSpin(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartSpin",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartSpin'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getResourceFile(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getResourceFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getResourceFile'", nullptr); return 0; } const std::string& ret = cobj->getResourceFile(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getResourceFile",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getResourceFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecond'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecond'", nullptr); return 0; } double ret = cobj->getRotatePerSecond(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRotatePerSecond",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecond'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEmitterMode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ParticleSystem::Mode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setEmitterMode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEmitterMode'", nullptr); return 0; } cobj->setEmitterMode(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEmitterMode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEmitterMode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getDuration'", nullptr); return 0; } double ret = cobj->getDuration(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getDuration",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setSourcePosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setSourcePosition"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setSourcePosition'", nullptr); return 0; } cobj->setSourcePosition(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setSourcePosition",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setSourcePosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_stop(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_stop'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_stop'", nullptr); return 0; } cobj->stop(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:stop",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_stop'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_updateParticleQuads(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_updateParticleQuads'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_updateParticleQuads'", nullptr); return 0; } cobj->updateParticleQuads(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:updateParticleQuads",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_updateParticleQuads'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSpinVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndSpinVar'", nullptr); return 0; } double ret = cobj->getEndSpinVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSpinVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSpinVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setBlendAdditive'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setBlendAdditive"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setBlendAdditive'", nullptr); return 0; } cobj->setBlendAdditive(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setBlendAdditive",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setBlendAdditive'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setLife'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setLife"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setLife'", nullptr); return 0; } cobj->setLife(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setLife",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setLife'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAngleVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setAngleVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setAngleVar'", nullptr); return 0; } cobj->setAngleVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAngleVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAngleVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRotationIsDir'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setRotationIsDir"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setRotationIsDir'", nullptr); return 0; } cobj->setRotationIsDir(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRotationIsDir",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRotationIsDir'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_start(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_start'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_start'", nullptr); return 0; } cobj->start(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:start",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_start'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSizeVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSizeVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEndSizeVar'", nullptr); return 0; } cobj->setEndSizeVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSizeVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSizeVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAngle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setAngle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setAngle'", nullptr); return 0; } cobj->setAngle(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAngle",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setBatchNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ParticleBatchNode* arg0; ok &= luaval_to_object<cocos2d::ParticleBatchNode>(tolua_S, 2, "cc.ParticleBatchNode",&arg0, "cc.ParticleSystem:setBatchNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setBatchNode'", nullptr); return 0; } cobj->setBatchNode(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setBatchNode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setBatchNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTangentialAccelVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getTangentialAccelVar'", nullptr); return 0; } double ret = cobj->getTangentialAccelVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTangentialAccelVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTangentialAccelVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEmitterMode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEmitterMode'", nullptr); return 0; } int ret = (int)cobj->getEmitterMode(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEmitterMode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEmitterMode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSpinVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSpinVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEndSpinVar'", nullptr); return 0; } cobj->setEndSpinVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSpinVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSpinVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_initWithFile(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_initWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ParticleSystem:initWithFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_initWithFile'", nullptr); return 0; } bool ret = cobj->initWithFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:initWithFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_initWithFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getAngleVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getAngleVar'", nullptr); return 0; } double ret = cobj->getAngleVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getAngleVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getAngleVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setStartColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setStartColor'", nullptr); return 0; } cobj->setStartColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecondVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecondVar'", nullptr); return 0; } double ret = cobj->getRotatePerSecondVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRotatePerSecondVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRotatePerSecondVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndSize'", nullptr); return 0; } double ret = cobj->getEndSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getLife'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getLife'", nullptr); return 0; } double ret = cobj->getLife(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getLife",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getLife'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_isPaused(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isPaused'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_isPaused'", nullptr); return 0; } bool ret = cobj->isPaused(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isPaused",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isPaused'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setSpeedVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setSpeedVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setSpeedVar'", nullptr); return 0; } cobj->setSpeedVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setSpeedVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setSpeedVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParticleSystem:setAutoRemoveOnFinish"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish'", nullptr); return 0; } cobj->setAutoRemoveOnFinish(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setAutoRemoveOnFinish",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setGravity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setGravity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setGravity'", nullptr); return 0; } cobj->setGravity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setGravity",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setGravity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_postStep'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_postStep'", nullptr); return 0; } cobj->postStep(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:postStep",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_postStep'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEmissionRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEmissionRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEmissionRate'", nullptr); return 0; } cobj->setEmissionRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEmissionRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEmissionRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndColorVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndColorVar'", nullptr); return 0; } const cocos2d::Color4F& ret = cobj->getEndColorVar(); color4f_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndColorVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndColorVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getRotationIsDir'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getRotationIsDir'", nullptr); return 0; } bool ret = cobj->getRotationIsDir(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getRotationIsDir",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getRotationIsDir'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEmissionRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEmissionRate'", nullptr); return 0; } double ret = cobj->getEmissionRate(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEmissionRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEmissionRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndColor'", nullptr); return 0; } const cocos2d::Color4F& ret = cobj->getEndColor(); color4f_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getLifeVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getLifeVar'", nullptr); return 0; } double ret = cobj->getLifeVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getLifeVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getLifeVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartSizeVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartSizeVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setStartSizeVar'", nullptr); return 0; } cobj->setStartSizeVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartSizeVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartSizeVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartRadius'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartRadius'", nullptr); return 0; } double ret = cobj->getStartRadius(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartRadius",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartRadius'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getParticleCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getParticleCount'", nullptr); return 0; } unsigned int ret = cobj->getParticleCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getParticleCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getParticleCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartRadiusVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartRadiusVar'", nullptr); return 0; } double ret = cobj->getStartRadiusVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartRadiusVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartRadiusVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartColorVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setStartColorVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setStartColorVar'", nullptr); return 0; } cobj->setStartColorVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartColorVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartColorVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setEndSpin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setEndSpin"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setEndSpin'", nullptr); return 0; } cobj->setEndSpin(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setEndSpin",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setEndSpin'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setRadialAccel'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setRadialAccel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setRadialAccel'", nullptr); return 0; } cobj->setRadialAccel(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setRadialAccel",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setRadialAccel'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_initWithDictionary(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_initWithDictionary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.ParticleSystem:initWithDictionary"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.ParticleSystem:initWithDictionary"); if (!ok) { break; } bool ret = cobj->initWithDictionary(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.ParticleSystem:initWithDictionary"); if (!ok) { break; } bool ret = cobj->initWithDictionary(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:initWithDictionary",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_initWithDictionary'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish'", nullptr); return 0; } bool ret = cobj->isAutoRemoveOnFinish(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:isAutoRemoveOnFinish",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getTotalParticles'", nullptr); return 0; } int ret = cobj->getTotalParticles(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTotalParticles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setStartRadiusVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ParticleSystem:setStartRadiusVar"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setStartRadiusVar'", nullptr); return 0; } cobj->setStartRadiusVar(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setStartRadiusVar",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setStartRadiusVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.ParticleSystem:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getEndRadiusVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndRadiusVar'", nullptr); return 0; } double ret = cobj->getEndRadiusVar(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getEndRadiusVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getEndRadiusVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystem_getStartColorVar'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartColorVar'", nullptr); return 0; } const cocos2d::Color4F& ret = cobj->getStartColorVar(); color4f_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getStartColorVar",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_getStartColorVar'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ParticleSystem:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_create'", nullptr); return 0; } cocos2d::ParticleSystem* ret = cocos2d::ParticleSystem::create(arg0); object_to_luaval<cocos2d::ParticleSystem>(tolua_S, "cc.ParticleSystem",(cocos2d::ParticleSystem*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystem:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleSystem* ret = cocos2d::ParticleSystem::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleSystem>(tolua_S, "cc.ParticleSystem",(cocos2d::ParticleSystem*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystem:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystem_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleSystem(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSystem"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:ParticleSystem",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystem_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleSystem_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSystem)"); return 0; } int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSystem"); tolua_cclass(tolua_S,"ParticleSystem","cc.ParticleSystem","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParticleSystem"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSystem_constructor); tolua_function(tolua_S,"getStartSizeVar",lua_cocos2dx_ParticleSystem_getStartSizeVar); tolua_function(tolua_S,"getTexture",lua_cocos2dx_ParticleSystem_getTexture); tolua_function(tolua_S,"isFull",lua_cocos2dx_ParticleSystem_isFull); tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_ParticleSystem_getBatchNode); tolua_function(tolua_S,"getStartColor",lua_cocos2dx_ParticleSystem_getStartColor); tolua_function(tolua_S,"getPositionType",lua_cocos2dx_ParticleSystem_getPositionType); tolua_function(tolua_S,"setPosVar",lua_cocos2dx_ParticleSystem_setPosVar); tolua_function(tolua_S,"getEndSpin",lua_cocos2dx_ParticleSystem_getEndSpin); tolua_function(tolua_S,"setRotatePerSecondVar",lua_cocos2dx_ParticleSystem_setRotatePerSecondVar); tolua_function(tolua_S,"getStartSpinVar",lua_cocos2dx_ParticleSystem_getStartSpinVar); tolua_function(tolua_S,"getRadialAccelVar",lua_cocos2dx_ParticleSystem_getRadialAccelVar); tolua_function(tolua_S,"getEndSizeVar",lua_cocos2dx_ParticleSystem_getEndSizeVar); tolua_function(tolua_S,"setTangentialAccel",lua_cocos2dx_ParticleSystem_setTangentialAccel); tolua_function(tolua_S,"getRadialAccel",lua_cocos2dx_ParticleSystem_getRadialAccel); tolua_function(tolua_S,"setStartRadius",lua_cocos2dx_ParticleSystem_setStartRadius); tolua_function(tolua_S,"setRotatePerSecond",lua_cocos2dx_ParticleSystem_setRotatePerSecond); tolua_function(tolua_S,"setEndSize",lua_cocos2dx_ParticleSystem_setEndSize); tolua_function(tolua_S,"getGravity",lua_cocos2dx_ParticleSystem_getGravity); tolua_function(tolua_S,"resumeEmissions",lua_cocos2dx_ParticleSystem_resumeEmissions); tolua_function(tolua_S,"getTangentialAccel",lua_cocos2dx_ParticleSystem_getTangentialAccel); tolua_function(tolua_S,"setEndRadius",lua_cocos2dx_ParticleSystem_setEndRadius); tolua_function(tolua_S,"getSpeed",lua_cocos2dx_ParticleSystem_getSpeed); tolua_function(tolua_S,"pauseEmissions",lua_cocos2dx_ParticleSystem_pauseEmissions); tolua_function(tolua_S,"getAngle",lua_cocos2dx_ParticleSystem_getAngle); tolua_function(tolua_S,"setEndColor",lua_cocos2dx_ParticleSystem_setEndColor); tolua_function(tolua_S,"setStartSpin",lua_cocos2dx_ParticleSystem_setStartSpin); tolua_function(tolua_S,"setDuration",lua_cocos2dx_ParticleSystem_setDuration); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleSystem_initWithTotalParticles); tolua_function(tolua_S,"addParticles",lua_cocos2dx_ParticleSystem_addParticles); tolua_function(tolua_S,"setTexture",lua_cocos2dx_ParticleSystem_setTexture); tolua_function(tolua_S,"getPosVar",lua_cocos2dx_ParticleSystem_getPosVar); tolua_function(tolua_S,"updateWithNoTime",lua_cocos2dx_ParticleSystem_updateWithNoTime); tolua_function(tolua_S,"isBlendAdditive",lua_cocos2dx_ParticleSystem_isBlendAdditive); tolua_function(tolua_S,"getSpeedVar",lua_cocos2dx_ParticleSystem_getSpeedVar); tolua_function(tolua_S,"setPositionType",lua_cocos2dx_ParticleSystem_setPositionType); tolua_function(tolua_S,"stopSystem",lua_cocos2dx_ParticleSystem_stopSystem); tolua_function(tolua_S,"getSourcePosition",lua_cocos2dx_ParticleSystem_getSourcePosition); tolua_function(tolua_S,"setLifeVar",lua_cocos2dx_ParticleSystem_setLifeVar); tolua_function(tolua_S,"setTotalParticles",lua_cocos2dx_ParticleSystem_setTotalParticles); tolua_function(tolua_S,"setEndColorVar",lua_cocos2dx_ParticleSystem_setEndColorVar); tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_ParticleSystem_getAtlasIndex); tolua_function(tolua_S,"getStartSize",lua_cocos2dx_ParticleSystem_getStartSize); tolua_function(tolua_S,"setStartSpinVar",lua_cocos2dx_ParticleSystem_setStartSpinVar); tolua_function(tolua_S,"resetSystem",lua_cocos2dx_ParticleSystem_resetSystem); tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_ParticleSystem_setAtlasIndex); tolua_function(tolua_S,"setTangentialAccelVar",lua_cocos2dx_ParticleSystem_setTangentialAccelVar); tolua_function(tolua_S,"setEndRadiusVar",lua_cocos2dx_ParticleSystem_setEndRadiusVar); tolua_function(tolua_S,"getEndRadius",lua_cocos2dx_ParticleSystem_getEndRadius); tolua_function(tolua_S,"isActive",lua_cocos2dx_ParticleSystem_isActive); tolua_function(tolua_S,"setRadialAccelVar",lua_cocos2dx_ParticleSystem_setRadialAccelVar); tolua_function(tolua_S,"setStartSize",lua_cocos2dx_ParticleSystem_setStartSize); tolua_function(tolua_S,"setSpeed",lua_cocos2dx_ParticleSystem_setSpeed); tolua_function(tolua_S,"getStartSpin",lua_cocos2dx_ParticleSystem_getStartSpin); tolua_function(tolua_S,"getResourceFile",lua_cocos2dx_ParticleSystem_getResourceFile); tolua_function(tolua_S,"getRotatePerSecond",lua_cocos2dx_ParticleSystem_getRotatePerSecond); tolua_function(tolua_S,"setEmitterMode",lua_cocos2dx_ParticleSystem_setEmitterMode); tolua_function(tolua_S,"getDuration",lua_cocos2dx_ParticleSystem_getDuration); tolua_function(tolua_S,"setSourcePosition",lua_cocos2dx_ParticleSystem_setSourcePosition); tolua_function(tolua_S,"stop",lua_cocos2dx_ParticleSystem_stop); tolua_function(tolua_S,"updateParticleQuads",lua_cocos2dx_ParticleSystem_updateParticleQuads); tolua_function(tolua_S,"getEndSpinVar",lua_cocos2dx_ParticleSystem_getEndSpinVar); tolua_function(tolua_S,"setBlendAdditive",lua_cocos2dx_ParticleSystem_setBlendAdditive); tolua_function(tolua_S,"setLife",lua_cocos2dx_ParticleSystem_setLife); tolua_function(tolua_S,"setAngleVar",lua_cocos2dx_ParticleSystem_setAngleVar); tolua_function(tolua_S,"setRotationIsDir",lua_cocos2dx_ParticleSystem_setRotationIsDir); tolua_function(tolua_S,"start",lua_cocos2dx_ParticleSystem_start); tolua_function(tolua_S,"setEndSizeVar",lua_cocos2dx_ParticleSystem_setEndSizeVar); tolua_function(tolua_S,"setAngle",lua_cocos2dx_ParticleSystem_setAngle); tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_ParticleSystem_setBatchNode); tolua_function(tolua_S,"getTangentialAccelVar",lua_cocos2dx_ParticleSystem_getTangentialAccelVar); tolua_function(tolua_S,"getEmitterMode",lua_cocos2dx_ParticleSystem_getEmitterMode); tolua_function(tolua_S,"setEndSpinVar",lua_cocos2dx_ParticleSystem_setEndSpinVar); tolua_function(tolua_S,"initWithFile",lua_cocos2dx_ParticleSystem_initWithFile); tolua_function(tolua_S,"getAngleVar",lua_cocos2dx_ParticleSystem_getAngleVar); tolua_function(tolua_S,"setStartColor",lua_cocos2dx_ParticleSystem_setStartColor); tolua_function(tolua_S,"getRotatePerSecondVar",lua_cocos2dx_ParticleSystem_getRotatePerSecondVar); tolua_function(tolua_S,"getEndSize",lua_cocos2dx_ParticleSystem_getEndSize); tolua_function(tolua_S,"getLife",lua_cocos2dx_ParticleSystem_getLife); tolua_function(tolua_S,"isPaused",lua_cocos2dx_ParticleSystem_isPaused); tolua_function(tolua_S,"setSpeedVar",lua_cocos2dx_ParticleSystem_setSpeedVar); tolua_function(tolua_S,"setAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish); tolua_function(tolua_S,"setGravity",lua_cocos2dx_ParticleSystem_setGravity); tolua_function(tolua_S,"postStep",lua_cocos2dx_ParticleSystem_postStep); tolua_function(tolua_S,"setEmissionRate",lua_cocos2dx_ParticleSystem_setEmissionRate); tolua_function(tolua_S,"getEndColorVar",lua_cocos2dx_ParticleSystem_getEndColorVar); tolua_function(tolua_S,"getRotationIsDir",lua_cocos2dx_ParticleSystem_getRotationIsDir); tolua_function(tolua_S,"getEmissionRate",lua_cocos2dx_ParticleSystem_getEmissionRate); tolua_function(tolua_S,"getEndColor",lua_cocos2dx_ParticleSystem_getEndColor); tolua_function(tolua_S,"getLifeVar",lua_cocos2dx_ParticleSystem_getLifeVar); tolua_function(tolua_S,"setStartSizeVar",lua_cocos2dx_ParticleSystem_setStartSizeVar); tolua_function(tolua_S,"getStartRadius",lua_cocos2dx_ParticleSystem_getStartRadius); tolua_function(tolua_S,"getParticleCount",lua_cocos2dx_ParticleSystem_getParticleCount); tolua_function(tolua_S,"getStartRadiusVar",lua_cocos2dx_ParticleSystem_getStartRadiusVar); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_ParticleSystem_getBlendFunc); tolua_function(tolua_S,"setStartColorVar",lua_cocos2dx_ParticleSystem_setStartColorVar); tolua_function(tolua_S,"setEndSpin",lua_cocos2dx_ParticleSystem_setEndSpin); tolua_function(tolua_S,"setRadialAccel",lua_cocos2dx_ParticleSystem_setRadialAccel); tolua_function(tolua_S,"initWithDictionary",lua_cocos2dx_ParticleSystem_initWithDictionary); tolua_function(tolua_S,"isAutoRemoveOnFinish",lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish); tolua_function(tolua_S,"getTotalParticles",lua_cocos2dx_ParticleSystem_getTotalParticles); tolua_function(tolua_S,"setStartRadiusVar",lua_cocos2dx_ParticleSystem_setStartRadiusVar); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_ParticleSystem_setBlendFunc); tolua_function(tolua_S,"getEndRadiusVar",lua_cocos2dx_ParticleSystem_getEndRadiusVar); tolua_function(tolua_S,"getStartColorVar",lua_cocos2dx_ParticleSystem_getStartColorVar); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystem_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystem_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSystem).name(); g_luaType[typeName] = "cc.ParticleSystem"; g_typeCast["ParticleSystem"] = "cc.ParticleSystem"; return 1; } int lua_cocos2dx_ParticleSystemQuad_setDisplayFrame(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_setDisplayFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.ParticleSystemQuad:setDisplayFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_setDisplayFrame'", nullptr); return 0; } cobj->setDisplayFrame(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:setDisplayFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_setDisplayFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_setTextureWithRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Texture2D* arg0; cocos2d::Rect arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleSystemQuad:setTextureWithRect"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.ParticleSystemQuad:setTextureWithRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_setTextureWithRect'", nullptr); return 0; } cobj->setTextureWithRect(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:setTextureWithRect",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_setTextureWithRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::EventCustom* arg0; ok &= luaval_to_object<cocos2d::EventCustom>(tolua_S, 2, "cc.EventCustom",&arg0, "cc.ParticleSystemQuad:listenRendererRecreated"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'", nullptr); return 0; } cobj->listenRendererRecreated(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:listenRendererRecreated",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ParticleSystemQuad:create"); if (!ok) { break; } cocos2d::ParticleSystemQuad* ret = cocos2d::ParticleSystemQuad::create(arg0); object_to_luaval<cocos2d::ParticleSystemQuad>(tolua_S, "cc.ParticleSystemQuad",(cocos2d::ParticleSystemQuad*)ret); return 1; } } while (0); ok = true; do { if (argc == 0) { cocos2d::ParticleSystemQuad* ret = cocos2d::ParticleSystemQuad::create(); object_to_luaval<cocos2d::ParticleSystemQuad>(tolua_S, "cc.ParticleSystemQuad",(cocos2d::ParticleSystemQuad*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.ParticleSystemQuad:create"); if (!ok) { break; } cocos2d::ParticleSystemQuad* ret = cocos2d::ParticleSystemQuad::create(arg0); object_to_luaval<cocos2d::ParticleSystemQuad>(tolua_S, "cc.ParticleSystemQuad",(cocos2d::ParticleSystemQuad*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.ParticleSystemQuad:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystemQuad:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleSystemQuad* ret = cocos2d::ParticleSystemQuad::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleSystemQuad>(tolua_S, "cc.ParticleSystemQuad",(cocos2d::ParticleSystemQuad*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystemQuad:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSystemQuad_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSystemQuad* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleSystemQuad(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSystemQuad"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystemQuad:ParticleSystemQuad",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSystemQuad_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleSystemQuad_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSystemQuad)"); return 0; } int lua_register_cocos2dx_ParticleSystemQuad(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSystemQuad"); tolua_cclass(tolua_S,"ParticleSystemQuad","cc.ParticleSystemQuad","cc.ParticleSystem",nullptr); tolua_beginmodule(tolua_S,"ParticleSystemQuad"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSystemQuad_constructor); tolua_function(tolua_S,"setDisplayFrame",lua_cocos2dx_ParticleSystemQuad_setDisplayFrame); tolua_function(tolua_S,"setTextureWithRect",lua_cocos2dx_ParticleSystemQuad_setTextureWithRect); tolua_function(tolua_S,"listenRendererRecreated",lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystemQuad_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSystemQuad).name(); g_luaType[typeName] = "cc.ParticleSystemQuad"; g_typeCast["ParticleSystemQuad"] = "cc.ParticleSystemQuad"; return 1; } int lua_cocos2dx_ParticleFire_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFire",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFire_create'", nullptr); return 0; } cocos2d::ParticleFire* ret = cocos2d::ParticleFire::create(); object_to_luaval<cocos2d::ParticleFire>(tolua_S, "cc.ParticleFire",(cocos2d::ParticleFire*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFire:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFire_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFire_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFire",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleFire:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFire_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleFire* ret = cocos2d::ParticleFire::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleFire>(tolua_S, "cc.ParticleFire",(cocos2d::ParticleFire*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFire:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFire_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFire_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleFire* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFire_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleFire(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleFire"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFire:ParticleFire",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFire_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleFire_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleFire)"); return 0; } int lua_register_cocos2dx_ParticleFire(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFire"); tolua_cclass(tolua_S,"ParticleFire","cc.ParticleFire","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleFire"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleFire_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFire_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFire_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleFire).name(); g_luaType[typeName] = "cc.ParticleFire"; g_typeCast["ParticleFire"] = "cc.ParticleFire"; return 1; } int lua_cocos2dx_ParticleFireworks_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleFireworks* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleFireworks*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleFireworks_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFireworks:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFireworks_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleFireworks* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleFireworks*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleFireworks_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleFireworks:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFireworks:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFireworks_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_create'", nullptr); return 0; } cocos2d::ParticleFireworks* ret = cocos2d::ParticleFireworks::create(); object_to_luaval<cocos2d::ParticleFireworks>(tolua_S, "cc.ParticleFireworks",(cocos2d::ParticleFireworks*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFireworks:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFireworks_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleFireworks:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleFireworks* ret = cocos2d::ParticleFireworks::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleFireworks>(tolua_S, "cc.ParticleFireworks",(cocos2d::ParticleFireworks*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFireworks:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFireworks_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleFireworks* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleFireworks(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleFireworks"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFireworks:ParticleFireworks",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFireworks_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleFireworks_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleFireworks)"); return 0; } int lua_register_cocos2dx_ParticleFireworks(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFireworks"); tolua_cclass(tolua_S,"ParticleFireworks","cc.ParticleFireworks","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleFireworks"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleFireworks_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleFireworks_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleFireworks_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFireworks_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFireworks_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleFireworks).name(); g_luaType[typeName] = "cc.ParticleFireworks"; g_typeCast["ParticleFireworks"] = "cc.ParticleFireworks"; return 1; } int lua_cocos2dx_ParticleSun_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSun* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSun*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSun_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSun:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSun_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSun* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSun*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSun_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSun:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSun:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSun_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_create'", nullptr); return 0; } cocos2d::ParticleSun* ret = cocos2d::ParticleSun::create(); object_to_luaval<cocos2d::ParticleSun>(tolua_S, "cc.ParticleSun",(cocos2d::ParticleSun*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSun:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSun_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSun:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleSun* ret = cocos2d::ParticleSun::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleSun>(tolua_S, "cc.ParticleSun",(cocos2d::ParticleSun*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSun:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSun_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSun* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleSun(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSun"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSun:ParticleSun",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSun_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleSun_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSun)"); return 0; } int lua_register_cocos2dx_ParticleSun(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSun"); tolua_cclass(tolua_S,"ParticleSun","cc.ParticleSun","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSun"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSun_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleSun_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleSun_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSun_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSun_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSun).name(); g_luaType[typeName] = "cc.ParticleSun"; g_typeCast["ParticleSun"] = "cc.ParticleSun"; return 1; } int lua_cocos2dx_ParticleGalaxy_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleGalaxy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleGalaxy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleGalaxy_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleGalaxy:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleGalaxy_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleGalaxy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleGalaxy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleGalaxy_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleGalaxy:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleGalaxy:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleGalaxy_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_create'", nullptr); return 0; } cocos2d::ParticleGalaxy* ret = cocos2d::ParticleGalaxy::create(); object_to_luaval<cocos2d::ParticleGalaxy>(tolua_S, "cc.ParticleGalaxy",(cocos2d::ParticleGalaxy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleGalaxy:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleGalaxy_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleGalaxy:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleGalaxy* ret = cocos2d::ParticleGalaxy::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleGalaxy>(tolua_S, "cc.ParticleGalaxy",(cocos2d::ParticleGalaxy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleGalaxy:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleGalaxy_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleGalaxy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleGalaxy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleGalaxy"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleGalaxy:ParticleGalaxy",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleGalaxy_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleGalaxy_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleGalaxy)"); return 0; } int lua_register_cocos2dx_ParticleGalaxy(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleGalaxy"); tolua_cclass(tolua_S,"ParticleGalaxy","cc.ParticleGalaxy","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleGalaxy"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleGalaxy_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleGalaxy_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleGalaxy_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleGalaxy_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleGalaxy_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleGalaxy).name(); g_luaType[typeName] = "cc.ParticleGalaxy"; g_typeCast["ParticleGalaxy"] = "cc.ParticleGalaxy"; return 1; } int lua_cocos2dx_ParticleFlower_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleFlower* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleFlower*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleFlower_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFlower:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFlower_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleFlower* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleFlower*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleFlower_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleFlower:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFlower:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFlower_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_create'", nullptr); return 0; } cocos2d::ParticleFlower* ret = cocos2d::ParticleFlower::create(); object_to_luaval<cocos2d::ParticleFlower>(tolua_S, "cc.ParticleFlower",(cocos2d::ParticleFlower*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFlower:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFlower_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleFlower:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleFlower* ret = cocos2d::ParticleFlower::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleFlower>(tolua_S, "cc.ParticleFlower",(cocos2d::ParticleFlower*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFlower:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleFlower_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleFlower* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleFlower(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleFlower"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleFlower:ParticleFlower",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleFlower_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleFlower_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleFlower)"); return 0; } int lua_register_cocos2dx_ParticleFlower(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleFlower"); tolua_cclass(tolua_S,"ParticleFlower","cc.ParticleFlower","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleFlower"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleFlower_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleFlower_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleFlower_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFlower_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFlower_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleFlower).name(); g_luaType[typeName] = "cc.ParticleFlower"; g_typeCast["ParticleFlower"] = "cc.ParticleFlower"; return 1; } int lua_cocos2dx_ParticleMeteor_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleMeteor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleMeteor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleMeteor_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleMeteor:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleMeteor_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleMeteor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleMeteor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleMeteor_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleMeteor:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleMeteor:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleMeteor_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_create'", nullptr); return 0; } cocos2d::ParticleMeteor* ret = cocos2d::ParticleMeteor::create(); object_to_luaval<cocos2d::ParticleMeteor>(tolua_S, "cc.ParticleMeteor",(cocos2d::ParticleMeteor*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleMeteor:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleMeteor_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleMeteor:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleMeteor* ret = cocos2d::ParticleMeteor::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleMeteor>(tolua_S, "cc.ParticleMeteor",(cocos2d::ParticleMeteor*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleMeteor:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleMeteor_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleMeteor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleMeteor(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleMeteor"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleMeteor:ParticleMeteor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleMeteor_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleMeteor_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleMeteor)"); return 0; } int lua_register_cocos2dx_ParticleMeteor(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleMeteor"); tolua_cclass(tolua_S,"ParticleMeteor","cc.ParticleMeteor","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleMeteor"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleMeteor_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleMeteor_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleMeteor_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleMeteor_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleMeteor_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleMeteor).name(); g_luaType[typeName] = "cc.ParticleMeteor"; g_typeCast["ParticleMeteor"] = "cc.ParticleMeteor"; return 1; } int lua_cocos2dx_ParticleSpiral_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSpiral* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSpiral*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSpiral_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSpiral:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSpiral_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSpiral* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSpiral*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSpiral_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSpiral:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSpiral:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSpiral_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_create'", nullptr); return 0; } cocos2d::ParticleSpiral* ret = cocos2d::ParticleSpiral::create(); object_to_luaval<cocos2d::ParticleSpiral>(tolua_S, "cc.ParticleSpiral",(cocos2d::ParticleSpiral*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSpiral:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSpiral_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSpiral:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleSpiral* ret = cocos2d::ParticleSpiral::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleSpiral>(tolua_S, "cc.ParticleSpiral",(cocos2d::ParticleSpiral*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSpiral:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSpiral_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSpiral* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleSpiral(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSpiral"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSpiral:ParticleSpiral",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSpiral_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleSpiral_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSpiral)"); return 0; } int lua_register_cocos2dx_ParticleSpiral(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSpiral"); tolua_cclass(tolua_S,"ParticleSpiral","cc.ParticleSpiral","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSpiral"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSpiral_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleSpiral_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleSpiral_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSpiral_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSpiral_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSpiral).name(); g_luaType[typeName] = "cc.ParticleSpiral"; g_typeCast["ParticleSpiral"] = "cc.ParticleSpiral"; return 1; } int lua_cocos2dx_ParticleExplosion_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleExplosion* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleExplosion*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleExplosion_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleExplosion:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleExplosion_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleExplosion* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleExplosion*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleExplosion_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleExplosion:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleExplosion:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleExplosion_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_create'", nullptr); return 0; } cocos2d::ParticleExplosion* ret = cocos2d::ParticleExplosion::create(); object_to_luaval<cocos2d::ParticleExplosion>(tolua_S, "cc.ParticleExplosion",(cocos2d::ParticleExplosion*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleExplosion:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleExplosion_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleExplosion:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleExplosion* ret = cocos2d::ParticleExplosion::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleExplosion>(tolua_S, "cc.ParticleExplosion",(cocos2d::ParticleExplosion*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleExplosion:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleExplosion_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleExplosion* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleExplosion(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleExplosion"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleExplosion:ParticleExplosion",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleExplosion_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleExplosion_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleExplosion)"); return 0; } int lua_register_cocos2dx_ParticleExplosion(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleExplosion"); tolua_cclass(tolua_S,"ParticleExplosion","cc.ParticleExplosion","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleExplosion"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleExplosion_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleExplosion_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleExplosion_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleExplosion_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleExplosion_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleExplosion).name(); g_luaType[typeName] = "cc.ParticleExplosion"; g_typeCast["ParticleExplosion"] = "cc.ParticleExplosion"; return 1; } int lua_cocos2dx_ParticleSmoke_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSmoke* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSmoke*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSmoke_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSmoke:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSmoke_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSmoke* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSmoke*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSmoke_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSmoke:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSmoke:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSmoke_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_create'", nullptr); return 0; } cocos2d::ParticleSmoke* ret = cocos2d::ParticleSmoke::create(); object_to_luaval<cocos2d::ParticleSmoke>(tolua_S, "cc.ParticleSmoke",(cocos2d::ParticleSmoke*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSmoke:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSmoke_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSmoke:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleSmoke* ret = cocos2d::ParticleSmoke::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleSmoke>(tolua_S, "cc.ParticleSmoke",(cocos2d::ParticleSmoke*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSmoke:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSmoke_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSmoke* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleSmoke(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSmoke"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSmoke:ParticleSmoke",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSmoke_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleSmoke_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSmoke)"); return 0; } int lua_register_cocos2dx_ParticleSmoke(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSmoke"); tolua_cclass(tolua_S,"ParticleSmoke","cc.ParticleSmoke","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSmoke"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSmoke_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleSmoke_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleSmoke_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSmoke_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSmoke_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSmoke).name(); g_luaType[typeName] = "cc.ParticleSmoke"; g_typeCast["ParticleSmoke"] = "cc.ParticleSmoke"; return 1; } int lua_cocos2dx_ParticleSnow_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSnow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSnow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSnow_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSnow:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSnow_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSnow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleSnow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleSnow_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSnow:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSnow:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSnow_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_create'", nullptr); return 0; } cocos2d::ParticleSnow* ret = cocos2d::ParticleSnow::create(); object_to_luaval<cocos2d::ParticleSnow>(tolua_S, "cc.ParticleSnow",(cocos2d::ParticleSnow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSnow:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSnow_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSnow:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleSnow* ret = cocos2d::ParticleSnow::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleSnow>(tolua_S, "cc.ParticleSnow",(cocos2d::ParticleSnow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSnow:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleSnow_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleSnow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleSnow(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleSnow"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSnow:ParticleSnow",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleSnow_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleSnow_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleSnow)"); return 0; } int lua_register_cocos2dx_ParticleSnow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleSnow"); tolua_cclass(tolua_S,"ParticleSnow","cc.ParticleSnow","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleSnow"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleSnow_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleSnow_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleSnow_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSnow_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSnow_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleSnow).name(); g_luaType[typeName] = "cc.ParticleSnow"; g_typeCast["ParticleSnow"] = "cc.ParticleSnow"; return 1; } int lua_cocos2dx_ParticleRain_init(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleRain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleRain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleRain_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleRain:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleRain_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleRain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParticleRain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParticleRain_initWithTotalParticles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleRain:initWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_initWithTotalParticles'", nullptr); return 0; } bool ret = cobj->initWithTotalParticles(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleRain:initWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_initWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleRain_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_create'", nullptr); return 0; } cocos2d::ParticleRain* ret = cocos2d::ParticleRain::create(); object_to_luaval<cocos2d::ParticleRain>(tolua_S, "cc.ParticleRain",(cocos2d::ParticleRain*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleRain:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleRain_createWithTotalParticles(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleRain:createWithTotalParticles"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_createWithTotalParticles'", nullptr); return 0; } cocos2d::ParticleRain* ret = cocos2d::ParticleRain::createWithTotalParticles(arg0); object_to_luaval<cocos2d::ParticleRain>(tolua_S, "cc.ParticleRain",(cocos2d::ParticleRain*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleRain:createWithTotalParticles",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_createWithTotalParticles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParticleRain_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParticleRain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_constructor'", nullptr); return 0; } cobj = new cocos2d::ParticleRain(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParticleRain"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleRain:ParticleRain",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParticleRain_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParticleRain_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParticleRain)"); return 0; } int lua_register_cocos2dx_ParticleRain(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParticleRain"); tolua_cclass(tolua_S,"ParticleRain","cc.ParticleRain","cc.ParticleSystemQuad",nullptr); tolua_beginmodule(tolua_S,"ParticleRain"); tolua_function(tolua_S,"new",lua_cocos2dx_ParticleRain_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_ParticleRain_init); tolua_function(tolua_S,"initWithTotalParticles",lua_cocos2dx_ParticleRain_initWithTotalParticles); tolua_function(tolua_S,"create", lua_cocos2dx_ParticleRain_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleRain_createWithTotalParticles); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParticleRain).name(); g_luaType[typeName] = "cc.ParticleRain"; g_typeCast["ParticleRain"] = "cc.ParticleRain"; return 1; } int lua_cocos2dx_ProgressTimer_initWithSprite(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_initWithSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Sprite* arg0; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.ProgressTimer:initWithSprite"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_initWithSprite'", nullptr); return 0; } bool ret = cobj->initWithSprite(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:initWithSprite",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_initWithSprite'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_isReverseDirection(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_isReverseDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_isReverseDirection'", nullptr); return 0; } bool ret = cobj->isReverseDirection(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:isReverseDirection",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_isReverseDirection'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setBarChangeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ProgressTimer:setBarChangeRate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_setBarChangeRate'", nullptr); return 0; } cobj->setBarChangeRate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setBarChangeRate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setBarChangeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getPercentage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_getPercentage'", nullptr); return 0; } double ret = cobj->getPercentage(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getPercentage",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getPercentage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Sprite* arg0; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.ProgressTimer:setSprite"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_setSprite'", nullptr); return 0; } cobj->setSprite(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setSprite",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setSprite'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_getType'", nullptr); return 0; } int ret = (int)cobj->getType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_getSprite'", nullptr); return 0; } cocos2d::Sprite* ret = cobj->getSprite(); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getSprite",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getSprite'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setMidpoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ProgressTimer:setMidpoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_setMidpoint'", nullptr); return 0; } cobj->setMidpoint(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setMidpoint",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setMidpoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getBarChangeRate'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_getBarChangeRate'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getBarChangeRate(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getBarChangeRate",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getBarChangeRate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setReverseDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection"); if (!ok) { break; } cobj->setReverseDirection(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProgressTimer:setReverseDirection"); if (!ok) { break; } cobj->setReverseProgress(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setReverseProgress",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setReverseDirection'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_getMidpoint'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_getMidpoint'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getMidpoint(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getMidpoint",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_getMidpoint'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setPercentage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ProgressTimer:setPercentage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_setPercentage'", nullptr); return 0; } cobj->setPercentage(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setPercentage",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setPercentage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProgressTimer_setType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ProgressTimer::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProgressTimer:setType"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_setType'", nullptr); return 0; } cobj->setType(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:setType",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_setType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Sprite* arg0; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.ProgressTimer:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_create'", nullptr); return 0; } cocos2d::ProgressTimer* ret = cocos2d::ProgressTimer::create(arg0); object_to_luaval<cocos2d::ProgressTimer>(tolua_S, "cc.ProgressTimer",(cocos2d::ProgressTimer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressTimer:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProgressTimer_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_constructor'", nullptr); return 0; } cobj = new cocos2d::ProgressTimer(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ProgressTimer"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:ProgressTimer",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProgressTimer_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ProgressTimer_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ProgressTimer)"); return 0; } int lua_register_cocos2dx_ProgressTimer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProgressTimer"); tolua_cclass(tolua_S,"ProgressTimer","cc.ProgressTimer","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ProgressTimer"); tolua_function(tolua_S,"new",lua_cocos2dx_ProgressTimer_constructor); tolua_function(tolua_S,"initWithSprite",lua_cocos2dx_ProgressTimer_initWithSprite); tolua_function(tolua_S,"isReverseDirection",lua_cocos2dx_ProgressTimer_isReverseDirection); tolua_function(tolua_S,"setBarChangeRate",lua_cocos2dx_ProgressTimer_setBarChangeRate); tolua_function(tolua_S,"getPercentage",lua_cocos2dx_ProgressTimer_getPercentage); tolua_function(tolua_S,"setSprite",lua_cocos2dx_ProgressTimer_setSprite); tolua_function(tolua_S,"getType",lua_cocos2dx_ProgressTimer_getType); tolua_function(tolua_S,"getSprite",lua_cocos2dx_ProgressTimer_getSprite); tolua_function(tolua_S,"setMidpoint",lua_cocos2dx_ProgressTimer_setMidpoint); tolua_function(tolua_S,"getBarChangeRate",lua_cocos2dx_ProgressTimer_getBarChangeRate); tolua_function(tolua_S,"setReverseDirection",lua_cocos2dx_ProgressTimer_setReverseDirection); tolua_function(tolua_S,"getMidpoint",lua_cocos2dx_ProgressTimer_getMidpoint); tolua_function(tolua_S,"setPercentage",lua_cocos2dx_ProgressTimer_setPercentage); tolua_function(tolua_S,"setType",lua_cocos2dx_ProgressTimer_setType); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTimer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProgressTimer).name(); g_luaType[typeName] = "cc.ProgressTimer"; g_typeCast["ProgressTimer"] = "cc.ProgressTimer"; return 1; } int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_addProtectedChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:addProtectedChild"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:addProtectedChild"); if (!ok) { break; } cobj->addProtectedChild(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:addProtectedChild"); if (!ok) { break; } cobj->addProtectedChild(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:addProtectedChild"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:addProtectedChild"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.ProtectedNode:addProtectedChild"); if (!ok) { break; } cobj->addProtectedChild(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:addProtectedChild",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_addProtectedChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_disableCascadeColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_disableCascadeColor'", nullptr); return 0; } cobj->disableCascadeColor(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:disableCascadeColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_disableCascadeColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeProtectedChildByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProtectedNode:removeProtectedChildByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_removeProtectedChildByTag'", nullptr); return 0; } cobj->removeProtectedChildByTag(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { int arg0; bool arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProtectedNode:removeProtectedChildByTag"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ProtectedNode:removeProtectedChildByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_removeProtectedChildByTag'", nullptr); return 0; } cobj->removeProtectedChildByTag(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeProtectedChildByTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeProtectedChildByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_reorderProtectedChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Node* arg0; int arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:reorderProtectedChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:reorderProtectedChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_reorderProtectedChild'", nullptr); return 0; } cobj->reorderProtectedChild(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:reorderProtectedChild",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_reorderProtectedChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ProtectedNode:removeAllProtectedChildrenWithCleanup"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup'", nullptr); return 0; } cobj->removeAllProtectedChildrenWithCleanup(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeAllProtectedChildrenWithCleanup",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_disableCascadeOpacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_disableCascadeOpacity'", nullptr); return 0; } cobj->disableCascadeOpacity(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:disableCascadeOpacity",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_disableCascadeOpacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_sortAllProtectedChildren'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_sortAllProtectedChildren'", nullptr); return 0; } cobj->sortAllProtectedChildren(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:sortAllProtectedChildren",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_sortAllProtectedChildren'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_getProtectedChildByTag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProtectedNode:getProtectedChildByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_getProtectedChildByTag'", nullptr); return 0; } cocos2d::Node* ret = cobj->getProtectedChildByTag(arg0); object_to_luaval<cocos2d::Node>(tolua_S, "cc.Node",(cocos2d::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:getProtectedChildByTag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_getProtectedChildByTag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeProtectedChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:removeProtectedChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_removeProtectedChild'", nullptr); return 0; } cobj->removeProtectedChild(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { cocos2d::Node* arg0; bool arg1; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:removeProtectedChild"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ProtectedNode:removeProtectedChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_removeProtectedChild'", nullptr); return 0; } cobj->removeProtectedChild(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeProtectedChild",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeProtectedChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildren'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildren'", nullptr); return 0; } cobj->removeAllProtectedChildren(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:removeAllProtectedChildren",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_removeAllProtectedChildren'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_create'", nullptr); return 0; } cocos2d::ProtectedNode* ret = cocos2d::ProtectedNode::create(); object_to_luaval<cocos2d::ProtectedNode>(tolua_S, "cc.ProtectedNode",(cocos2d::ProtectedNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProtectedNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ProtectedNode_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_constructor'", nullptr); return 0; } cobj = new cocos2d::ProtectedNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ProtectedNode"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:ProtectedNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ProtectedNode_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ProtectedNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ProtectedNode)"); return 0; } int lua_register_cocos2dx_ProtectedNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ProtectedNode"); tolua_cclass(tolua_S,"ProtectedNode","cc.ProtectedNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ProtectedNode"); tolua_function(tolua_S,"new",lua_cocos2dx_ProtectedNode_constructor); tolua_function(tolua_S,"addProtectedChild",lua_cocos2dx_ProtectedNode_addProtectedChild); tolua_function(tolua_S,"disableCascadeColor",lua_cocos2dx_ProtectedNode_disableCascadeColor); tolua_function(tolua_S,"removeProtectedChildByTag",lua_cocos2dx_ProtectedNode_removeProtectedChildByTag); tolua_function(tolua_S,"reorderProtectedChild",lua_cocos2dx_ProtectedNode_reorderProtectedChild); tolua_function(tolua_S,"removeAllProtectedChildrenWithCleanup",lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup); tolua_function(tolua_S,"disableCascadeOpacity",lua_cocos2dx_ProtectedNode_disableCascadeOpacity); tolua_function(tolua_S,"sortAllProtectedChildren",lua_cocos2dx_ProtectedNode_sortAllProtectedChildren); tolua_function(tolua_S,"getProtectedChildByTag",lua_cocos2dx_ProtectedNode_getProtectedChildByTag); tolua_function(tolua_S,"removeProtectedChild",lua_cocos2dx_ProtectedNode_removeProtectedChild); tolua_function(tolua_S,"removeAllProtectedChildren",lua_cocos2dx_ProtectedNode_removeAllProtectedChildren); tolua_function(tolua_S,"create", lua_cocos2dx_ProtectedNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ProtectedNode).name(); g_luaType[typeName] = "cc.ProtectedNode"; g_typeCast["ProtectedNode"] = "cc.ProtectedNode"; return 1; } int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:setSpriteFrame"); if (!ok) { break; } cobj->setSpriteFrame(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:setSpriteFrame"); if (!ok) { break; } cobj->setSpriteFrame(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:setTexture"); if (!ok) { break; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:setTexture"); if (!ok) { break; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getTexture'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTexture(); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setFlippedY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:setFlippedY"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setFlippedY'", nullptr); return 0; } cobj->setFlippedY(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setFlippedY",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setFlippedY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setFlippedX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:setFlippedX"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setFlippedX'", nullptr); return 0; } cobj->setFlippedX(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setFlippedX",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setFlippedX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getResourceType(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getResourceType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getResourceType'", nullptr); return 0; } int ret = cobj->getResourceType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getResourceType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getResourceType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_initWithTexture(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_initWithTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:initWithTexture"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:initWithTexture"); if (!ok) { break; } bool ret = cobj->initWithTexture(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:initWithTexture"); if (!ok) { break; } bool ret = cobj->initWithTexture(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:initWithTexture"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:initWithTexture"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Sprite:initWithTexture"); if (!ok) { break; } bool ret = cobj->initWithTexture(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:initWithTexture",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_initWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getBatchNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getBatchNode'", nullptr); return 0; } cocos2d::SpriteBatchNode* ret = cobj->getBatchNode(); object_to_luaval<cocos2d::SpriteBatchNode>(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getBatchNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getBatchNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getOffsetPosition'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getOffsetPosition'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getOffsetPosition(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getOffsetPosition",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getOffsetPosition'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:removeAllChildrenWithCleanup"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_removeAllChildrenWithCleanup'", nullptr); return 0; } cobj->removeAllChildrenWithCleanup(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:removeAllChildrenWithCleanup",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_removeAllChildrenWithCleanup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setTextureRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setTextureRect"); if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Sprite:setTextureRect"); if (!ok) { break; } cocos2d::Size arg2; ok &= luaval_to_size(tolua_S, 4, &arg2, "cc.Sprite:setTextureRect"); if (!ok) { break; } cobj->setTextureRect(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setTextureRect"); if (!ok) { break; } cobj->setTextureRect(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setTextureRect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setTextureRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_initWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_initWithSpriteFrameName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:initWithSpriteFrameName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_initWithSpriteFrameName'", nullptr); return 0; } bool ret = cobj->initWithSpriteFrameName(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:initWithSpriteFrameName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_initWithSpriteFrameName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isFrameDisplayed'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:isFrameDisplayed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_isFrameDisplayed'", nullptr); return 0; } bool ret = cobj->isFrameDisplayed(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isFrameDisplayed",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isFrameDisplayed'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getAtlasIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getAtlasIndex'", nullptr); return 0; } ssize_t ret = cobj->getAtlasIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getAtlasIndex",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getAtlasIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setBatchNode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::SpriteBatchNode* arg0; ok &= luaval_to_object<cocos2d::SpriteBatchNode>(tolua_S, 2, "cc.SpriteBatchNode",&arg0, "cc.Sprite:setBatchNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setBatchNode'", nullptr); return 0; } cobj->setBatchNode(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setBatchNode",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setBatchNode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; ssize_t arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:setDisplayFrameWithAnimationName"); ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.Sprite:setDisplayFrameWithAnimationName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName'", nullptr); return 0; } cobj->setDisplayFrameWithAnimationName(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setDisplayFrameWithAnimationName",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setTextureAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TextureAtlas* arg0; ok &= luaval_to_object<cocos2d::TextureAtlas>(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.Sprite:setTextureAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setTextureAtlas'", nullptr); return 0; } cobj->setTextureAtlas(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setTextureAtlas",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setTextureAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getSpriteFrame'", nullptr); return 0; } cocos2d::SpriteFrame* ret = cobj->getSpriteFrame(); object_to_luaval<cocos2d::SpriteFrame>(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getSpriteFrame",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getResourceName(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getResourceName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getResourceName'", nullptr); return 0; } const std::string& ret = cobj->getResourceName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getResourceName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getResourceName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isDirty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_isDirty'", nullptr); return 0; } bool ret = cobj->isDirty(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isDirty",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isDirty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setAtlasIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.Sprite:setAtlasIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setAtlasIndex'", nullptr); return 0; } cobj->setAtlasIndex(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setAtlasIndex",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setAtlasIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setDirty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Sprite:setDirty"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setDirty'", nullptr); return 0; } cobj->setDirty(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setDirty",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setDirty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isTextureRectRotated'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_isTextureRectRotated'", nullptr); return 0; } bool ret = cobj->isTextureRectRotated(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isTextureRectRotated",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isTextureRectRotated'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getTextureRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getTextureRect'", nullptr); return 0; } const cocos2d::Rect& ret = cobj->getTextureRect(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTextureRect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getTextureRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_initWithFile(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_initWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:initWithFile"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:initWithFile"); if (!ok) { break; } bool ret = cobj->initWithFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:initWithFile"); if (!ok) { break; } bool ret = cobj->initWithFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:initWithFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_initWithFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.Sprite:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_getTextureAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getTextureAtlas'", nullptr); return 0; } cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); object_to_luaval<cocos2d::TextureAtlas>(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTextureAtlas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_getTextureAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_initWithSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_initWithSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:initWithSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_initWithSpriteFrame'", nullptr); return 0; } bool ret = cobj->initWithSpriteFrame(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:initWithSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_initWithSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isFlippedX'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_isFlippedX'", nullptr); return 0; } bool ret = cobj->isFlippedX(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isFlippedX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isFlippedX'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_isFlippedY'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_isFlippedY'", nullptr); return 0; } bool ret = cobj->isFlippedY(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:isFlippedY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_isFlippedY'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Sprite_setVertexRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setVertexRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setVertexRect'", nullptr); return 0; } cobj->setVertexRect(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:setVertexRect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_setVertexRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:createWithTexture"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:createWithTexture"); if (!ok) { break; } cocos2d::Sprite* ret = cocos2d::Sprite::createWithTexture(arg0, arg1); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:createWithTexture"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:createWithTexture"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Sprite:createWithTexture"); if (!ok) { break; } cocos2d::Sprite* ret = cocos2d::Sprite::createWithTexture(arg0, arg1, arg2); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:createWithTexture"); if (!ok) { break; } cocos2d::Sprite* ret = cocos2d::Sprite::createWithTexture(arg0); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Sprite:createWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_createWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_createWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Sprite:createWithSpriteFrameName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_createWithSpriteFrameName'", nullptr); return 0; } cocos2d::Sprite* ret = cocos2d::Sprite::createWithSpriteFrameName(arg0); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Sprite:createWithSpriteFrameName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_createWithSpriteFrameName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_createWithSpriteFrame(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::SpriteFrame* arg0; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:createWithSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_createWithSpriteFrame'", nullptr); return 0; } cocos2d::Sprite* ret = cocos2d::Sprite::createWithSpriteFrame(arg0); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Sprite:createWithSpriteFrame",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_createWithSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Sprite_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_constructor'", nullptr); return 0; } cobj = new cocos2d::Sprite(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Sprite"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:Sprite",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Sprite_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Sprite_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Sprite)"); return 0; } int lua_register_cocos2dx_Sprite(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Sprite"); tolua_cclass(tolua_S,"Sprite","cc.Sprite","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Sprite"); tolua_function(tolua_S,"new",lua_cocos2dx_Sprite_constructor); tolua_function(tolua_S,"setSpriteFrame",lua_cocos2dx_Sprite_setSpriteFrame); tolua_function(tolua_S,"setTexture",lua_cocos2dx_Sprite_setTexture); tolua_function(tolua_S,"getTexture",lua_cocos2dx_Sprite_getTexture); tolua_function(tolua_S,"setFlippedY",lua_cocos2dx_Sprite_setFlippedY); tolua_function(tolua_S,"setFlippedX",lua_cocos2dx_Sprite_setFlippedX); tolua_function(tolua_S,"getResourceType",lua_cocos2dx_Sprite_getResourceType); tolua_function(tolua_S,"initWithTexture",lua_cocos2dx_Sprite_initWithTexture); tolua_function(tolua_S,"getBatchNode",lua_cocos2dx_Sprite_getBatchNode); tolua_function(tolua_S,"getOffsetPosition",lua_cocos2dx_Sprite_getOffsetPosition); tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_Sprite_removeAllChildrenWithCleanup); tolua_function(tolua_S,"setTextureRect",lua_cocos2dx_Sprite_setTextureRect); tolua_function(tolua_S,"initWithSpriteFrameName",lua_cocos2dx_Sprite_initWithSpriteFrameName); tolua_function(tolua_S,"isFrameDisplayed",lua_cocos2dx_Sprite_isFrameDisplayed); tolua_function(tolua_S,"getAtlasIndex",lua_cocos2dx_Sprite_getAtlasIndex); tolua_function(tolua_S,"setBatchNode",lua_cocos2dx_Sprite_setBatchNode); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_Sprite_getBlendFunc); tolua_function(tolua_S,"setDisplayFrameWithAnimationName",lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName); tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_Sprite_setTextureAtlas); tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_Sprite_getSpriteFrame); tolua_function(tolua_S,"getResourceName",lua_cocos2dx_Sprite_getResourceName); tolua_function(tolua_S,"isDirty",lua_cocos2dx_Sprite_isDirty); tolua_function(tolua_S,"setAtlasIndex",lua_cocos2dx_Sprite_setAtlasIndex); tolua_function(tolua_S,"setDirty",lua_cocos2dx_Sprite_setDirty); tolua_function(tolua_S,"isTextureRectRotated",lua_cocos2dx_Sprite_isTextureRectRotated); tolua_function(tolua_S,"getTextureRect",lua_cocos2dx_Sprite_getTextureRect); tolua_function(tolua_S,"initWithFile",lua_cocos2dx_Sprite_initWithFile); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_Sprite_setBlendFunc); tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_Sprite_getTextureAtlas); tolua_function(tolua_S,"initWithSpriteFrame",lua_cocos2dx_Sprite_initWithSpriteFrame); tolua_function(tolua_S,"isFlippedX",lua_cocos2dx_Sprite_isFlippedX); tolua_function(tolua_S,"isFlippedY",lua_cocos2dx_Sprite_isFlippedY); tolua_function(tolua_S,"setVertexRect",lua_cocos2dx_Sprite_setVertexRect); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_Sprite_createWithTexture); tolua_function(tolua_S,"createWithSpriteFrameName", lua_cocos2dx_Sprite_createWithSpriteFrameName); tolua_function(tolua_S,"createWithSpriteFrame", lua_cocos2dx_Sprite_createWithSpriteFrame); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Sprite).name(); g_luaType[typeName] = "cc.Sprite"; g_typeCast["Sprite"] = "cc.Sprite"; return 1; } int lua_cocos2dx_RenderTexture_setVirtualViewport(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setVirtualViewport'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Vec2 arg0; cocos2d::Rect arg1; cocos2d::Rect arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.RenderTexture:setVirtualViewport"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.RenderTexture:setVirtualViewport"); ok &= luaval_to_rect(tolua_S, 4, &arg2, "cc.RenderTexture:setVirtualViewport"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_setVirtualViewport'", nullptr); return 0; } cobj->setVirtualViewport(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setVirtualViewport",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setVirtualViewport'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_clearStencil'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:clearStencil"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_clearStencil'", nullptr); return 0; } cobj->clearStencil(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:clearStencil",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_clearStencil'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearDepth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_getClearDepth'", nullptr); return 0; } double ret = cobj->getClearDepth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearDepth",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearDepth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearStencil'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_getClearStencil'", nullptr); return 0; } int ret = cobj->getClearStencil(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearStencil",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearStencil'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearStencil'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:setClearStencil"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_setClearStencil'", nullptr); return 0; } cobj->setClearStencil(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearStencil",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearStencil'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Sprite* arg0; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.RenderTexture:setSprite"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_setSprite'", nullptr); return 0; } cobj->setSprite(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setSprite",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setSprite'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_getSprite'", nullptr); return 0; } cocos2d::Sprite* ret = cobj->getSprite(); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getSprite",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getSprite'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_isAutoDraw'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_isAutoDraw'", nullptr); return 0; } bool ret = cobj->isAutoDraw(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:isAutoDraw",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_isAutoDraw'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setKeepMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RenderTexture:setKeepMatrix"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_setKeepMatrix'", nullptr); return 0; } cobj->setKeepMatrix(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setKeepMatrix",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setKeepMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearFlags'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.RenderTexture:setClearFlags"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_setClearFlags'", nullptr); return 0; } cobj->setClearFlags(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearFlags",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearFlags'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_begin'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_begin'", nullptr); return 0; } cobj->begin(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:begin",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_begin'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_saveToFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); if (!ok) { break; } cocos2d::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); if (!ok) { break; } cocos2d::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.RenderTexture:saveToFile"); if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); if (!ok) { break; } cocos2d::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.RenderTexture:saveToFile"); if (!ok) { break; } std::function<void (cocos2d::RenderTexture *, const std::basic_string<char> &)> arg3; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); if (!ok) { break; } bool ret = cobj->saveToFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.RenderTexture:saveToFile"); if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.RenderTexture:saveToFile"); if (!ok) { break; } std::function<void (cocos2d::RenderTexture *, const std::basic_string<char> &)> arg2; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if (!ok) { break; } bool ret = cobj->saveToFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:saveToFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_saveToFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setAutoDraw'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RenderTexture:setAutoDraw"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_setAutoDraw'", nullptr); return 0; } cobj->setAutoDraw(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setAutoDraw",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setAutoDraw'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.RenderTexture:setClearColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_setClearColor'", nullptr); return 0; } cobj->setClearColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_end'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_end'", nullptr); return 0; } cobj->end(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:end",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_end'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_beginWithClear'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 4) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } cobj->beginWithClear(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 6) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } int arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.RenderTexture:beginWithClear"); if (!ok) { break; } cobj->beginWithClear(arg0, arg1, arg2, arg3, arg4, arg5); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:beginWithClear",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_beginWithClear'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_clearDepth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:clearDepth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_clearDepth'", nullptr); return 0; } cobj->clearDepth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:clearDepth",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_clearDepth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_getClearColor'", nullptr); return 0; } const cocos2d::Color4F& ret = cobj->getClearColor(); color4f_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearColor",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_clear'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; double arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:clear"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RenderTexture:clear"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RenderTexture:clear"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.RenderTexture:clear"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_clear'", nullptr); return 0; } cobj->clear(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:clear",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_clear'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_getClearFlags'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_getClearFlags'", nullptr); return 0; } unsigned int ret = cobj->getClearFlags(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getClearFlags",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_getClearFlags'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_newImage(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_newImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_newImage'", nullptr); return 0; } cocos2d::Image* ret = cobj->newImage(); object_to_luaval<cocos2d::Image>(tolua_S, "cc.Image",(cocos2d::Image*)ret); return 1; } if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.RenderTexture:newImage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_newImage'", nullptr); return 0; } cocos2d::Image* ret = cobj->newImage(arg0); object_to_luaval<cocos2d::Image>(tolua_S, "cc.Image",(cocos2d::Image*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:newImage",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_newImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_setClearDepth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RenderTexture:setClearDepth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_setClearDepth'", nullptr); return 0; } cobj->setClearDepth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:setClearDepth",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_setClearDepth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderTexture_initWithWidthAndHeight'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 4) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } bool ret = cobj->initWithWidthAndHeight(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } bool ret = cobj->initWithWidthAndHeight(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:initWithWidthAndHeight",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_initWithWidthAndHeight'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:create"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:create"); if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:create"); if (!ok) { break; } cocos2d::RenderTexture* ret = cocos2d::RenderTexture::create(arg0, arg1, arg2); object_to_luaval<cocos2d::RenderTexture>(tolua_S, "cc.RenderTexture",(cocos2d::RenderTexture*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:create"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:create"); if (!ok) { break; } cocos2d::Texture2D::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:create"); if (!ok) { break; } unsigned int arg3; ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.RenderTexture:create"); if (!ok) { break; } cocos2d::RenderTexture* ret = cocos2d::RenderTexture::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::RenderTexture>(tolua_S, "cc.RenderTexture",(cocos2d::RenderTexture*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:create"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:create"); if (!ok) { break; } cocos2d::RenderTexture* ret = cocos2d::RenderTexture::create(arg0, arg1); object_to_luaval<cocos2d::RenderTexture>(tolua_S, "cc.RenderTexture",(cocos2d::RenderTexture*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.RenderTexture:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderTexture_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_constructor'", nullptr); return 0; } cobj = new cocos2d::RenderTexture(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.RenderTexture"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:RenderTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderTexture_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_RenderTexture_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RenderTexture)"); return 0; } int lua_register_cocos2dx_RenderTexture(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RenderTexture"); tolua_cclass(tolua_S,"RenderTexture","cc.RenderTexture","cc.Node",nullptr); tolua_beginmodule(tolua_S,"RenderTexture"); tolua_function(tolua_S,"new",lua_cocos2dx_RenderTexture_constructor); tolua_function(tolua_S,"setVirtualViewport",lua_cocos2dx_RenderTexture_setVirtualViewport); tolua_function(tolua_S,"clearStencil",lua_cocos2dx_RenderTexture_clearStencil); tolua_function(tolua_S,"getClearDepth",lua_cocos2dx_RenderTexture_getClearDepth); tolua_function(tolua_S,"getClearStencil",lua_cocos2dx_RenderTexture_getClearStencil); tolua_function(tolua_S,"setClearStencil",lua_cocos2dx_RenderTexture_setClearStencil); tolua_function(tolua_S,"setSprite",lua_cocos2dx_RenderTexture_setSprite); tolua_function(tolua_S,"getSprite",lua_cocos2dx_RenderTexture_getSprite); tolua_function(tolua_S,"isAutoDraw",lua_cocos2dx_RenderTexture_isAutoDraw); tolua_function(tolua_S,"setKeepMatrix",lua_cocos2dx_RenderTexture_setKeepMatrix); tolua_function(tolua_S,"setClearFlags",lua_cocos2dx_RenderTexture_setClearFlags); tolua_function(tolua_S,"begin",lua_cocos2dx_RenderTexture_begin); tolua_function(tolua_S,"saveToFile",lua_cocos2dx_RenderTexture_saveToFile); tolua_function(tolua_S,"setAutoDraw",lua_cocos2dx_RenderTexture_setAutoDraw); tolua_function(tolua_S,"setClearColor",lua_cocos2dx_RenderTexture_setClearColor); tolua_function(tolua_S,"endToLua",lua_cocos2dx_RenderTexture_end); tolua_function(tolua_S,"beginWithClear",lua_cocos2dx_RenderTexture_beginWithClear); tolua_function(tolua_S,"clearDepth",lua_cocos2dx_RenderTexture_clearDepth); tolua_function(tolua_S,"getClearColor",lua_cocos2dx_RenderTexture_getClearColor); tolua_function(tolua_S,"clear",lua_cocos2dx_RenderTexture_clear); tolua_function(tolua_S,"getClearFlags",lua_cocos2dx_RenderTexture_getClearFlags); tolua_function(tolua_S,"newImage",lua_cocos2dx_RenderTexture_newImage); tolua_function(tolua_S,"setClearDepth",lua_cocos2dx_RenderTexture_setClearDepth); tolua_function(tolua_S,"initWithWidthAndHeight",lua_cocos2dx_RenderTexture_initWithWidthAndHeight); tolua_function(tolua_S,"create", lua_cocos2dx_RenderTexture_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RenderTexture).name(); g_luaType[typeName] = "cc.RenderTexture"; g_typeCast["RenderTexture"] = "cc.RenderTexture"; return 1; } int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionEaseScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionEaseScene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionEaseScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionEaseScene_easeActionWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionEaseScene:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionEaseScene_easeActionWithAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionEaseScene:easeActionWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionEaseScene_easeActionWithAction'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionEaseScene_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionEaseScene)"); return 0; } int lua_register_cocos2dx_TransitionEaseScene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionEaseScene"); tolua_cclass(tolua_S,"TransitionEaseScene","cc.TransitionEaseScene","",nullptr); tolua_beginmodule(tolua_S,"TransitionEaseScene"); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionEaseScene_easeActionWithAction); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionEaseScene).name(); g_luaType[typeName] = "cc.TransitionEaseScene"; g_typeCast["TransitionEaseScene"] = "cc.TransitionEaseScene"; return 1; } int lua_cocos2dx_TransitionScene_getInScene(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_getInScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_getInScene'", nullptr); return 0; } cocos2d::Scene* ret = cobj->getInScene(); object_to_luaval<cocos2d::Scene>(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:getInScene",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_getInScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_finish'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_finish'", nullptr); return 0; } cobj->finish(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:finish",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_finish'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionScene_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionScene:initWithDuration"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionScene:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:initWithDuration",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionScene_getDuration(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_getDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_getDuration'", nullptr); return 0; } double ret = cobj->getDuration(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:getDuration",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_getDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionScene_hideOutShowIn'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_hideOutShowIn'", nullptr); return 0; } cobj->hideOutShowIn(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:hideOutShowIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_hideOutShowIn'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionScene_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionScene:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionScene:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_create'", nullptr); return 0; } cocos2d::TransitionScene* ret = cocos2d::TransitionScene::create(arg0, arg1); object_to_luaval<cocos2d::TransitionScene>(tolua_S, "cc.TransitionScene",(cocos2d::TransitionScene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionScene:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionScene_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionScene(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionScene"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:TransitionScene",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionScene_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionScene_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionScene)"); return 0; } int lua_register_cocos2dx_TransitionScene(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionScene"); tolua_cclass(tolua_S,"TransitionScene","cc.TransitionScene","cc.Scene",nullptr); tolua_beginmodule(tolua_S,"TransitionScene"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionScene_constructor); tolua_function(tolua_S,"getInScene",lua_cocos2dx_TransitionScene_getInScene); tolua_function(tolua_S,"finish",lua_cocos2dx_TransitionScene_finish); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionScene_initWithDuration); tolua_function(tolua_S,"getDuration",lua_cocos2dx_TransitionScene_getDuration); tolua_function(tolua_S,"hideOutShowIn",lua_cocos2dx_TransitionScene_hideOutShowIn); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionScene_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionScene).name(); g_luaType[typeName] = "cc.TransitionScene"; g_typeCast["TransitionScene"] = "cc.TransitionScene"; return 1; } int lua_cocos2dx_TransitionSceneOriented_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSceneOriented* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSceneOriented",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionSceneOriented*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSceneOriented_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; cocos2d::Scene* arg1; cocos2d::TransitionScene::Orientation arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSceneOriented:initWithDuration"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSceneOriented:initWithDuration"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionSceneOriented:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSceneOriented_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSceneOriented:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSceneOriented_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSceneOriented_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSceneOriented",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { double arg0; cocos2d::Scene* arg1; cocos2d::TransitionScene::Orientation arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSceneOriented:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSceneOriented:create"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionSceneOriented:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSceneOriented_create'", nullptr); return 0; } cocos2d::TransitionSceneOriented* ret = cocos2d::TransitionSceneOriented::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TransitionSceneOriented>(tolua_S, "cc.TransitionSceneOriented",(cocos2d::TransitionSceneOriented*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSceneOriented:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSceneOriented_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSceneOriented_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSceneOriented* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSceneOriented_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionSceneOriented(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSceneOriented"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSceneOriented:TransitionSceneOriented",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSceneOriented_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionSceneOriented_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSceneOriented)"); return 0; } int lua_register_cocos2dx_TransitionSceneOriented(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSceneOriented"); tolua_cclass(tolua_S,"TransitionSceneOriented","cc.TransitionSceneOriented","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionSceneOriented"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSceneOriented_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionSceneOriented_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSceneOriented_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSceneOriented).name(); g_luaType[typeName] = "cc.TransitionSceneOriented"; g_typeCast["TransitionSceneOriented"] = "cc.TransitionSceneOriented"; return 1; } int lua_cocos2dx_TransitionRotoZoom_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionRotoZoom",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionRotoZoom:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionRotoZoom:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionRotoZoom_create'", nullptr); return 0; } cocos2d::TransitionRotoZoom* ret = cocos2d::TransitionRotoZoom::create(arg0, arg1); object_to_luaval<cocos2d::TransitionRotoZoom>(tolua_S, "cc.TransitionRotoZoom",(cocos2d::TransitionRotoZoom*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionRotoZoom:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionRotoZoom_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionRotoZoom_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionRotoZoom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionRotoZoom_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionRotoZoom(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionRotoZoom"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionRotoZoom:TransitionRotoZoom",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionRotoZoom_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionRotoZoom_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionRotoZoom)"); return 0; } int lua_register_cocos2dx_TransitionRotoZoom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionRotoZoom"); tolua_cclass(tolua_S,"TransitionRotoZoom","cc.TransitionRotoZoom","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionRotoZoom"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionRotoZoom_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionRotoZoom_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionRotoZoom).name(); g_luaType[typeName] = "cc.TransitionRotoZoom"; g_typeCast["TransitionRotoZoom"] = "cc.TransitionRotoZoom"; return 1; } int lua_cocos2dx_TransitionJumpZoom_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionJumpZoom",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionJumpZoom:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionJumpZoom:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionJumpZoom_create'", nullptr); return 0; } cocos2d::TransitionJumpZoom* ret = cocos2d::TransitionJumpZoom::create(arg0, arg1); object_to_luaval<cocos2d::TransitionJumpZoom>(tolua_S, "cc.TransitionJumpZoom",(cocos2d::TransitionJumpZoom*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionJumpZoom:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionJumpZoom_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionJumpZoom_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionJumpZoom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionJumpZoom_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionJumpZoom(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionJumpZoom"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionJumpZoom:TransitionJumpZoom",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionJumpZoom_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionJumpZoom_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionJumpZoom)"); return 0; } int lua_register_cocos2dx_TransitionJumpZoom(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionJumpZoom"); tolua_cclass(tolua_S,"TransitionJumpZoom","cc.TransitionJumpZoom","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionJumpZoom"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionJumpZoom_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionJumpZoom_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionJumpZoom).name(); g_luaType[typeName] = "cc.TransitionJumpZoom"; g_typeCast["TransitionJumpZoom"] = "cc.TransitionJumpZoom"; return 1; } int lua_cocos2dx_TransitionMoveInL_action(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionMoveInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionMoveInL_action'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInL_action'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->action(); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:action",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_action'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionMoveInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionMoveInL_easeActionWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionMoveInL:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInL_easeActionWithAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:easeActionWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_easeActionWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionMoveInL_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionMoveInL:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInL:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInL_create'", nullptr); return 0; } cocos2d::TransitionMoveInL* ret = cocos2d::TransitionMoveInL::create(arg0, arg1); object_to_luaval<cocos2d::TransitionMoveInL>(tolua_S, "cc.TransitionMoveInL",(cocos2d::TransitionMoveInL*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInL:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionMoveInL_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionMoveInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInL_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionMoveInL(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionMoveInL"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:TransitionMoveInL",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInL_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionMoveInL_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionMoveInL)"); return 0; } int lua_register_cocos2dx_TransitionMoveInL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInL"); tolua_cclass(tolua_S,"TransitionMoveInL","cc.TransitionMoveInL","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInL"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInL_constructor); tolua_function(tolua_S,"action",lua_cocos2dx_TransitionMoveInL_action); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionMoveInL_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInL).name(); g_luaType[typeName] = "cc.TransitionMoveInL"; g_typeCast["TransitionMoveInL"] = "cc.TransitionMoveInL"; return 1; } int lua_cocos2dx_TransitionMoveInR_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInR",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionMoveInR:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInR:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInR_create'", nullptr); return 0; } cocos2d::TransitionMoveInR* ret = cocos2d::TransitionMoveInR::create(arg0, arg1); object_to_luaval<cocos2d::TransitionMoveInR>(tolua_S, "cc.TransitionMoveInR",(cocos2d::TransitionMoveInR*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInR:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInR_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionMoveInR_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionMoveInR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInR_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionMoveInR(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionMoveInR"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInR:TransitionMoveInR",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInR_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionMoveInR_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionMoveInR)"); return 0; } int lua_register_cocos2dx_TransitionMoveInR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInR"); tolua_cclass(tolua_S,"TransitionMoveInR","cc.TransitionMoveInR","cc.TransitionMoveInL",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInR"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInR_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInR).name(); g_luaType[typeName] = "cc.TransitionMoveInR"; g_typeCast["TransitionMoveInR"] = "cc.TransitionMoveInR"; return 1; } int lua_cocos2dx_TransitionMoveInT_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInT",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionMoveInT:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInT:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInT_create'", nullptr); return 0; } cocos2d::TransitionMoveInT* ret = cocos2d::TransitionMoveInT::create(arg0, arg1); object_to_luaval<cocos2d::TransitionMoveInT>(tolua_S, "cc.TransitionMoveInT",(cocos2d::TransitionMoveInT*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInT:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInT_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionMoveInT_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionMoveInT* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInT_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionMoveInT(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionMoveInT"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInT:TransitionMoveInT",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInT_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionMoveInT_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionMoveInT)"); return 0; } int lua_register_cocos2dx_TransitionMoveInT(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInT"); tolua_cclass(tolua_S,"TransitionMoveInT","cc.TransitionMoveInT","cc.TransitionMoveInL",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInT"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInT_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInT_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInT).name(); g_luaType[typeName] = "cc.TransitionMoveInT"; g_typeCast["TransitionMoveInT"] = "cc.TransitionMoveInT"; return 1; } int lua_cocos2dx_TransitionMoveInB_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionMoveInB",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionMoveInB:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInB:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInB_create'", nullptr); return 0; } cocos2d::TransitionMoveInB* ret = cocos2d::TransitionMoveInB::create(arg0, arg1); object_to_luaval<cocos2d::TransitionMoveInB>(tolua_S, "cc.TransitionMoveInB",(cocos2d::TransitionMoveInB*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInB:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInB_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionMoveInB_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionMoveInB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInB_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionMoveInB(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionMoveInB"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInB:TransitionMoveInB",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionMoveInB_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionMoveInB_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionMoveInB)"); return 0; } int lua_register_cocos2dx_TransitionMoveInB(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionMoveInB"); tolua_cclass(tolua_S,"TransitionMoveInB","cc.TransitionMoveInB","cc.TransitionMoveInL",nullptr); tolua_beginmodule(tolua_S,"TransitionMoveInB"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInB_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionMoveInB).name(); g_luaType[typeName] = "cc.TransitionMoveInB"; g_typeCast["TransitionMoveInB"] = "cc.TransitionMoveInB"; return 1; } int lua_cocos2dx_TransitionSlideInL_action(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSlideInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInL_action'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInL_action'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->action(); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:action",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_action'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSlideInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSlideInL_easeActionWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionSlideInL:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInL_easeActionWithAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:easeActionWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_easeActionWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSlideInL_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSlideInL:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInL:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInL_create'", nullptr); return 0; } cocos2d::TransitionSlideInL* ret = cocos2d::TransitionSlideInL::create(arg0, arg1); object_to_luaval<cocos2d::TransitionSlideInL>(tolua_S, "cc.TransitionSlideInL",(cocos2d::TransitionSlideInL*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInL:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSlideInL_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSlideInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInL_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionSlideInL(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSlideInL"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:TransitionSlideInL",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInL_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionSlideInL_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSlideInL)"); return 0; } int lua_register_cocos2dx_TransitionSlideInL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInL"); tolua_cclass(tolua_S,"TransitionSlideInL","cc.TransitionSlideInL","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInL"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInL_constructor); tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSlideInL_action); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSlideInL_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInL).name(); g_luaType[typeName] = "cc.TransitionSlideInL"; g_typeCast["TransitionSlideInL"] = "cc.TransitionSlideInL"; return 1; } int lua_cocos2dx_TransitionSlideInR_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInR",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSlideInR:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInR:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInR_create'", nullptr); return 0; } cocos2d::TransitionSlideInR* ret = cocos2d::TransitionSlideInR::create(arg0, arg1); object_to_luaval<cocos2d::TransitionSlideInR>(tolua_S, "cc.TransitionSlideInR",(cocos2d::TransitionSlideInR*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInR:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInR_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSlideInR_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSlideInR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInR_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionSlideInR(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSlideInR"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInR:TransitionSlideInR",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInR_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionSlideInR_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSlideInR)"); return 0; } int lua_register_cocos2dx_TransitionSlideInR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInR"); tolua_cclass(tolua_S,"TransitionSlideInR","cc.TransitionSlideInR","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInR"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInR_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInR).name(); g_luaType[typeName] = "cc.TransitionSlideInR"; g_typeCast["TransitionSlideInR"] = "cc.TransitionSlideInR"; return 1; } int lua_cocos2dx_TransitionSlideInB_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInB",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSlideInB:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInB:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInB_create'", nullptr); return 0; } cocos2d::TransitionSlideInB* ret = cocos2d::TransitionSlideInB::create(arg0, arg1); object_to_luaval<cocos2d::TransitionSlideInB>(tolua_S, "cc.TransitionSlideInB",(cocos2d::TransitionSlideInB*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInB:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInB_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSlideInB_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSlideInB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInB_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionSlideInB(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSlideInB"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInB:TransitionSlideInB",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInB_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionSlideInB_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSlideInB)"); return 0; } int lua_register_cocos2dx_TransitionSlideInB(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInB"); tolua_cclass(tolua_S,"TransitionSlideInB","cc.TransitionSlideInB","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInB"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInB_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInB_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInB).name(); g_luaType[typeName] = "cc.TransitionSlideInB"; g_typeCast["TransitionSlideInB"] = "cc.TransitionSlideInB"; return 1; } int lua_cocos2dx_TransitionSlideInT_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSlideInT",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSlideInT:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInT:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInT_create'", nullptr); return 0; } cocos2d::TransitionSlideInT* ret = cocos2d::TransitionSlideInT::create(arg0, arg1); object_to_luaval<cocos2d::TransitionSlideInT>(tolua_S, "cc.TransitionSlideInT",(cocos2d::TransitionSlideInT*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInT:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInT_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSlideInT_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSlideInT* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInT_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionSlideInT(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSlideInT"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInT:TransitionSlideInT",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSlideInT_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionSlideInT_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSlideInT)"); return 0; } int lua_register_cocos2dx_TransitionSlideInT(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSlideInT"); tolua_cclass(tolua_S,"TransitionSlideInT","cc.TransitionSlideInT","cc.TransitionSlideInL",nullptr); tolua_beginmodule(tolua_S,"TransitionSlideInT"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInT_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInT_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSlideInT).name(); g_luaType[typeName] = "cc.TransitionSlideInT"; g_typeCast["TransitionSlideInT"] = "cc.TransitionSlideInT"; return 1; } int lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionShrinkGrow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionShrinkGrow",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionShrinkGrow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionShrinkGrow:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionShrinkGrow:easeActionWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionShrinkGrow_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionShrinkGrow",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionShrinkGrow:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionShrinkGrow:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionShrinkGrow_create'", nullptr); return 0; } cocos2d::TransitionShrinkGrow* ret = cocos2d::TransitionShrinkGrow::create(arg0, arg1); object_to_luaval<cocos2d::TransitionShrinkGrow>(tolua_S, "cc.TransitionShrinkGrow",(cocos2d::TransitionShrinkGrow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionShrinkGrow:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionShrinkGrow_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionShrinkGrow_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionShrinkGrow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionShrinkGrow_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionShrinkGrow(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionShrinkGrow"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionShrinkGrow:TransitionShrinkGrow",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionShrinkGrow_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionShrinkGrow_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionShrinkGrow)"); return 0; } int lua_register_cocos2dx_TransitionShrinkGrow(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionShrinkGrow"); tolua_cclass(tolua_S,"TransitionShrinkGrow","cc.TransitionShrinkGrow","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionShrinkGrow"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionShrinkGrow_constructor); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionShrinkGrow_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionShrinkGrow).name(); g_luaType[typeName] = "cc.TransitionShrinkGrow"; g_typeCast["TransitionShrinkGrow"] = "cc.TransitionShrinkGrow"; return 1; } int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFlipX",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipX:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipX:create"); if (!ok) { break; } cocos2d::TransitionFlipX* ret = cocos2d::TransitionFlipX::create(arg0, arg1); object_to_luaval<cocos2d::TransitionFlipX>(tolua_S, "cc.TransitionFlipX",(cocos2d::TransitionFlipX*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipX:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipX:create"); if (!ok) { break; } cocos2d::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionFlipX:create"); if (!ok) { break; } cocos2d::TransitionFlipX* ret = cocos2d::TransitionFlipX::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TransitionFlipX>(tolua_S, "cc.TransitionFlipX",(cocos2d::TransitionFlipX*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFlipX:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipX_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFlipX_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFlipX* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFlipX_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionFlipX(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFlipX"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFlipX:TransitionFlipX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipX_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionFlipX_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFlipX)"); return 0; } int lua_register_cocos2dx_TransitionFlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipX"); tolua_cclass(tolua_S,"TransitionFlipX","cc.TransitionFlipX","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionFlipX"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFlipX_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipX).name(); g_luaType[typeName] = "cc.TransitionFlipX"; g_typeCast["TransitionFlipX"] = "cc.TransitionFlipX"; return 1; } int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFlipY",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipY:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipY:create"); if (!ok) { break; } cocos2d::TransitionFlipY* ret = cocos2d::TransitionFlipY::create(arg0, arg1); object_to_luaval<cocos2d::TransitionFlipY>(tolua_S, "cc.TransitionFlipY",(cocos2d::TransitionFlipY*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipY:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipY:create"); if (!ok) { break; } cocos2d::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionFlipY:create"); if (!ok) { break; } cocos2d::TransitionFlipY* ret = cocos2d::TransitionFlipY::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TransitionFlipY>(tolua_S, "cc.TransitionFlipY",(cocos2d::TransitionFlipY*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFlipY:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipY_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFlipY_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFlipY* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFlipY_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionFlipY(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFlipY"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFlipY:TransitionFlipY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipY_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionFlipY_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFlipY)"); return 0; } int lua_register_cocos2dx_TransitionFlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipY"); tolua_cclass(tolua_S,"TransitionFlipY","cc.TransitionFlipY","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionFlipY"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFlipY_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipY).name(); g_luaType[typeName] = "cc.TransitionFlipY"; g_typeCast["TransitionFlipY"] = "cc.TransitionFlipY"; return 1; } int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFlipAngular",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipAngular:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipAngular:create"); if (!ok) { break; } cocos2d::TransitionFlipAngular* ret = cocos2d::TransitionFlipAngular::create(arg0, arg1); object_to_luaval<cocos2d::TransitionFlipAngular>(tolua_S, "cc.TransitionFlipAngular",(cocos2d::TransitionFlipAngular*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipAngular:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipAngular:create"); if (!ok) { break; } cocos2d::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionFlipAngular:create"); if (!ok) { break; } cocos2d::TransitionFlipAngular* ret = cocos2d::TransitionFlipAngular::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TransitionFlipAngular>(tolua_S, "cc.TransitionFlipAngular",(cocos2d::TransitionFlipAngular*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFlipAngular:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipAngular_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFlipAngular_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFlipAngular* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFlipAngular_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionFlipAngular(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFlipAngular"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFlipAngular:TransitionFlipAngular",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFlipAngular_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionFlipAngular_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFlipAngular)"); return 0; } int lua_register_cocos2dx_TransitionFlipAngular(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFlipAngular"); tolua_cclass(tolua_S,"TransitionFlipAngular","cc.TransitionFlipAngular","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionFlipAngular"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFlipAngular_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipAngular_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFlipAngular).name(); g_luaType[typeName] = "cc.TransitionFlipAngular"; g_typeCast["TransitionFlipAngular"] = "cc.TransitionFlipAngular"; return 1; } int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionZoomFlipX",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } cocos2d::TransitionZoomFlipX* ret = cocos2d::TransitionZoomFlipX::create(arg0, arg1); object_to_luaval<cocos2d::TransitionZoomFlipX>(tolua_S, "cc.TransitionZoomFlipX",(cocos2d::TransitionZoomFlipX*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } cocos2d::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } cocos2d::TransitionZoomFlipX* ret = cocos2d::TransitionZoomFlipX::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TransitionZoomFlipX>(tolua_S, "cc.TransitionZoomFlipX",(cocos2d::TransitionZoomFlipX*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionZoomFlipX:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipX_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionZoomFlipX_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionZoomFlipX* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionZoomFlipX_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionZoomFlipX(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionZoomFlipX"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionZoomFlipX:TransitionZoomFlipX",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipX_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionZoomFlipX_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionZoomFlipX)"); return 0; } int lua_register_cocos2dx_TransitionZoomFlipX(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipX"); tolua_cclass(tolua_S,"TransitionZoomFlipX","cc.TransitionZoomFlipX","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionZoomFlipX"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionZoomFlipX_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipX_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipX).name(); g_luaType[typeName] = "cc.TransitionZoomFlipX"; g_typeCast["TransitionZoomFlipX"] = "cc.TransitionZoomFlipX"; return 1; } int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionZoomFlipY",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } cocos2d::TransitionZoomFlipY* ret = cocos2d::TransitionZoomFlipY::create(arg0, arg1); object_to_luaval<cocos2d::TransitionZoomFlipY>(tolua_S, "cc.TransitionZoomFlipY",(cocos2d::TransitionZoomFlipY*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } cocos2d::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } cocos2d::TransitionZoomFlipY* ret = cocos2d::TransitionZoomFlipY::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TransitionZoomFlipY>(tolua_S, "cc.TransitionZoomFlipY",(cocos2d::TransitionZoomFlipY*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionZoomFlipY:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipY_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionZoomFlipY_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionZoomFlipY* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionZoomFlipY_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionZoomFlipY(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionZoomFlipY"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionZoomFlipY:TransitionZoomFlipY",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipY_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionZoomFlipY_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionZoomFlipY)"); return 0; } int lua_register_cocos2dx_TransitionZoomFlipY(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipY"); tolua_cclass(tolua_S,"TransitionZoomFlipY","cc.TransitionZoomFlipY","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionZoomFlipY"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionZoomFlipY_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipY_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipY).name(); g_luaType[typeName] = "cc.TransitionZoomFlipY"; g_typeCast["TransitionZoomFlipY"] = "cc.TransitionZoomFlipY"; return 1; } int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionZoomFlipAngular",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } cocos2d::TransitionZoomFlipAngular* ret = cocos2d::TransitionZoomFlipAngular::create(arg0, arg1); object_to_luaval<cocos2d::TransitionZoomFlipAngular>(tolua_S, "cc.TransitionZoomFlipAngular",(cocos2d::TransitionZoomFlipAngular*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } cocos2d::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } cocos2d::TransitionZoomFlipAngular* ret = cocos2d::TransitionZoomFlipAngular::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TransitionZoomFlipAngular>(tolua_S, "cc.TransitionZoomFlipAngular",(cocos2d::TransitionZoomFlipAngular*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionZoomFlipAngular:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipAngular_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionZoomFlipAngular_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionZoomFlipAngular* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionZoomFlipAngular_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionZoomFlipAngular(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionZoomFlipAngular"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionZoomFlipAngular:TransitionZoomFlipAngular",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionZoomFlipAngular_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionZoomFlipAngular_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionZoomFlipAngular)"); return 0; } int lua_register_cocos2dx_TransitionZoomFlipAngular(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionZoomFlipAngular"); tolua_cclass(tolua_S,"TransitionZoomFlipAngular","cc.TransitionZoomFlipAngular","cc.TransitionSceneOriented",nullptr); tolua_beginmodule(tolua_S,"TransitionZoomFlipAngular"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionZoomFlipAngular_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipAngular_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionZoomFlipAngular).name(); g_luaType[typeName] = "cc.TransitionZoomFlipAngular"; g_typeCast["TransitionZoomFlipAngular"] = "cc.TransitionZoomFlipAngular"; return 1; } int lua_cocos2dx_TransitionFade_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFade* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionFade",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionFade*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionFade_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } cocos2d::Color3B arg2; ok &= luaval_to_color3b(tolua_S, 4, &arg2, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFade:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFade_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFade",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:create"); if (!ok) { break; } cocos2d::TransitionFade* ret = cocos2d::TransitionFade::create(arg0, arg1); object_to_luaval<cocos2d::TransitionFade>(tolua_S, "cc.TransitionFade",(cocos2d::TransitionFade*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:create"); if (!ok) { break; } cocos2d::Scene* arg1; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:create"); if (!ok) { break; } cocos2d::Color3B arg2; ok &= luaval_to_color3b(tolua_S, 4, &arg2, "cc.TransitionFade:create"); if (!ok) { break; } cocos2d::TransitionFade* ret = cocos2d::TransitionFade::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TransitionFade>(tolua_S, "cc.TransitionFade",(cocos2d::TransitionFade*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TransitionFade:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFade_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFade_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFade* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFade_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionFade(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFade"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFade:TransitionFade",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFade_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionFade_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFade)"); return 0; } int lua_register_cocos2dx_TransitionFade(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFade"); tolua_cclass(tolua_S,"TransitionFade","cc.TransitionFade","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionFade"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFade_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionFade_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFade_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFade).name(); g_luaType[typeName] = "cc.TransitionFade"; g_typeCast["TransitionFade"] = "cc.TransitionFade"; return 1; } int lua_cocos2dx_TransitionCrossFade_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionCrossFade",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionCrossFade:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionCrossFade:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionCrossFade_create'", nullptr); return 0; } cocos2d::TransitionCrossFade* ret = cocos2d::TransitionCrossFade::create(arg0, arg1); object_to_luaval<cocos2d::TransitionCrossFade>(tolua_S, "cc.TransitionCrossFade",(cocos2d::TransitionCrossFade*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionCrossFade:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionCrossFade_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionCrossFade_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionCrossFade* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionCrossFade_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionCrossFade(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionCrossFade"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionCrossFade:TransitionCrossFade",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionCrossFade_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionCrossFade_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionCrossFade)"); return 0; } int lua_register_cocos2dx_TransitionCrossFade(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionCrossFade"); tolua_cclass(tolua_S,"TransitionCrossFade","cc.TransitionCrossFade","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionCrossFade"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionCrossFade_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionCrossFade_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionCrossFade).name(); g_luaType[typeName] = "cc.TransitionCrossFade"; g_typeCast["TransitionCrossFade"] = "cc.TransitionCrossFade"; return 1; } int lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionTurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionTurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionTurnOffTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionTurnOffTiles:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionTurnOffTiles:easeActionWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionTurnOffTiles_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionTurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionTurnOffTiles:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionTurnOffTiles:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionTurnOffTiles_create'", nullptr); return 0; } cocos2d::TransitionTurnOffTiles* ret = cocos2d::TransitionTurnOffTiles::create(arg0, arg1); object_to_luaval<cocos2d::TransitionTurnOffTiles>(tolua_S, "cc.TransitionTurnOffTiles",(cocos2d::TransitionTurnOffTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionTurnOffTiles:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionTurnOffTiles_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionTurnOffTiles_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionTurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionTurnOffTiles_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionTurnOffTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionTurnOffTiles"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionTurnOffTiles:TransitionTurnOffTiles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionTurnOffTiles_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionTurnOffTiles_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionTurnOffTiles)"); return 0; } int lua_register_cocos2dx_TransitionTurnOffTiles(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionTurnOffTiles"); tolua_cclass(tolua_S,"TransitionTurnOffTiles","cc.TransitionTurnOffTiles","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionTurnOffTiles"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionTurnOffTiles_constructor); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionTurnOffTiles_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionTurnOffTiles).name(); g_luaType[typeName] = "cc.TransitionTurnOffTiles"; g_typeCast["TransitionTurnOffTiles"] = "cc.TransitionTurnOffTiles"; return 1; } int lua_cocos2dx_TransitionSplitCols_action(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSplitCols_action'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitCols_action'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->action(); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:action",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_action'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionSplitCols_easeActionWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionSplitCols:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitCols_easeActionWithAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:easeActionWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_easeActionWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSplitCols_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSplitCols:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSplitCols:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitCols_create'", nullptr); return 0; } cocos2d::TransitionSplitCols* ret = cocos2d::TransitionSplitCols::create(arg0, arg1); object_to_luaval<cocos2d::TransitionSplitCols>(tolua_S, "cc.TransitionSplitCols",(cocos2d::TransitionSplitCols*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSplitCols:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSplitCols_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitCols_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionSplitCols(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSplitCols"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:TransitionSplitCols",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitCols_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionSplitCols_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSplitCols)"); return 0; } int lua_register_cocos2dx_TransitionSplitCols(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSplitCols"); tolua_cclass(tolua_S,"TransitionSplitCols","cc.TransitionSplitCols","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionSplitCols"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSplitCols_constructor); tolua_function(tolua_S,"action",lua_cocos2dx_TransitionSplitCols_action); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSplitCols_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitCols_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSplitCols).name(); g_luaType[typeName] = "cc.TransitionSplitCols"; g_typeCast["TransitionSplitCols"] = "cc.TransitionSplitCols"; return 1; } int lua_cocos2dx_TransitionSplitRows_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionSplitRows",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSplitRows:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSplitRows:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitRows_create'", nullptr); return 0; } cocos2d::TransitionSplitRows* ret = cocos2d::TransitionSplitRows::create(arg0, arg1); object_to_luaval<cocos2d::TransitionSplitRows>(tolua_S, "cc.TransitionSplitRows",(cocos2d::TransitionSplitRows*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSplitRows:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitRows_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionSplitRows_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionSplitRows* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitRows_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionSplitRows(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionSplitRows"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitRows:TransitionSplitRows",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionSplitRows_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionSplitRows_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionSplitRows)"); return 0; } int lua_register_cocos2dx_TransitionSplitRows(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionSplitRows"); tolua_cclass(tolua_S,"TransitionSplitRows","cc.TransitionSplitRows","cc.TransitionSplitCols",nullptr); tolua_beginmodule(tolua_S,"TransitionSplitRows"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSplitRows_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitRows_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionSplitRows).name(); g_luaType[typeName] = "cc.TransitionSplitRows"; g_typeCast["TransitionSplitRows"] = "cc.TransitionSplitRows"; return 1; } int lua_cocos2dx_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFadeTR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionFadeTR_easeActionWithAction'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ActionInterval* arg0; ok &= luaval_to_object<cocos2d::ActionInterval>(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionFadeTR:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeTR_easeActionWithAction'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:easeActionWithAction",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_easeActionWithAction'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFadeTR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionFadeTR_actionWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TransitionFadeTR:actionWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeTR_actionWithSize'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->actionWithSize(arg0); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:actionWithSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_actionWithSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFadeTR_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFadeTR:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeTR:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeTR_create'", nullptr); return 0; } cocos2d::TransitionFadeTR* ret = cocos2d::TransitionFadeTR::create(arg0, arg1); object_to_luaval<cocos2d::TransitionFadeTR>(tolua_S, "cc.TransitionFadeTR",(cocos2d::TransitionFadeTR*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeTR:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFadeTR_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFadeTR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeTR_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionFadeTR(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFadeTR"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:TransitionFadeTR",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeTR_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionFadeTR_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFadeTR)"); return 0; } int lua_register_cocos2dx_TransitionFadeTR(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeTR"); tolua_cclass(tolua_S,"TransitionFadeTR","cc.TransitionFadeTR","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeTR"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeTR_constructor); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionFadeTR_easeActionWithAction); tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionFadeTR_actionWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeTR_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeTR).name(); g_luaType[typeName] = "cc.TransitionFadeTR"; g_typeCast["TransitionFadeTR"] = "cc.TransitionFadeTR"; return 1; } int lua_cocos2dx_TransitionFadeBL_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeBL",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFadeBL:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeBL:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeBL_create'", nullptr); return 0; } cocos2d::TransitionFadeBL* ret = cocos2d::TransitionFadeBL::create(arg0, arg1); object_to_luaval<cocos2d::TransitionFadeBL>(tolua_S, "cc.TransitionFadeBL",(cocos2d::TransitionFadeBL*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeBL:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeBL_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFadeBL_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFadeBL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeBL_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionFadeBL(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFadeBL"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeBL:TransitionFadeBL",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeBL_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionFadeBL_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFadeBL)"); return 0; } int lua_register_cocos2dx_TransitionFadeBL(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeBL"); tolua_cclass(tolua_S,"TransitionFadeBL","cc.TransitionFadeBL","cc.TransitionFadeTR",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeBL"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeBL_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeBL_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeBL).name(); g_luaType[typeName] = "cc.TransitionFadeBL"; g_typeCast["TransitionFadeBL"] = "cc.TransitionFadeBL"; return 1; } int lua_cocos2dx_TransitionFadeUp_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeUp",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFadeUp:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeUp:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeUp_create'", nullptr); return 0; } cocos2d::TransitionFadeUp* ret = cocos2d::TransitionFadeUp::create(arg0, arg1); object_to_luaval<cocos2d::TransitionFadeUp>(tolua_S, "cc.TransitionFadeUp",(cocos2d::TransitionFadeUp*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeUp:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeUp_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFadeUp_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFadeUp* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeUp_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionFadeUp(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFadeUp"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeUp:TransitionFadeUp",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeUp_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionFadeUp_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFadeUp)"); return 0; } int lua_register_cocos2dx_TransitionFadeUp(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeUp"); tolua_cclass(tolua_S,"TransitionFadeUp","cc.TransitionFadeUp","cc.TransitionFadeTR",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeUp"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeUp_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeUp_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeUp).name(); g_luaType[typeName] = "cc.TransitionFadeUp"; g_typeCast["TransitionFadeUp"] = "cc.TransitionFadeUp"; return 1; } int lua_cocos2dx_TransitionFadeDown_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionFadeDown",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFadeDown:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeDown:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeDown_create'", nullptr); return 0; } cocos2d::TransitionFadeDown* ret = cocos2d::TransitionFadeDown::create(arg0, arg1); object_to_luaval<cocos2d::TransitionFadeDown>(tolua_S, "cc.TransitionFadeDown",(cocos2d::TransitionFadeDown*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeDown:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeDown_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionFadeDown_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionFadeDown* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeDown_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionFadeDown(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionFadeDown"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeDown:TransitionFadeDown",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionFadeDown_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionFadeDown_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionFadeDown)"); return 0; } int lua_register_cocos2dx_TransitionFadeDown(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionFadeDown"); tolua_cclass(tolua_S,"TransitionFadeDown","cc.TransitionFadeDown","cc.TransitionFadeTR",nullptr); tolua_beginmodule(tolua_S,"TransitionFadeDown"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeDown_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeDown_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionFadeDown).name(); g_luaType[typeName] = "cc.TransitionFadeDown"; g_typeCast["TransitionFadeDown"] = "cc.TransitionFadeDown"; return 1; } int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionPageTurn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionPageTurn_actionWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TransitionPageTurn:actionWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionPageTurn_actionWithSize'", nullptr); return 0; } cocos2d::ActionInterval* ret = cobj->actionWithSize(arg0); object_to_luaval<cocos2d::ActionInterval>(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionPageTurn:actionWithSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_actionWithSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionPageTurn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TransitionPageTurn_initWithDuration'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { double arg0; cocos2d::Scene* arg1; bool arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionPageTurn:initWithDuration"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionPageTurn:initWithDuration"); ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TransitionPageTurn:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionPageTurn_initWithDuration'", nullptr); return 0; } bool ret = cobj->initWithDuration(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionPageTurn:initWithDuration",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_initWithDuration'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionPageTurn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { double arg0; cocos2d::Scene* arg1; bool arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionPageTurn:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionPageTurn:create"); ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TransitionPageTurn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionPageTurn_create'", nullptr); return 0; } cocos2d::TransitionPageTurn* ret = cocos2d::TransitionPageTurn::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TransitionPageTurn>(tolua_S, "cc.TransitionPageTurn",(cocos2d::TransitionPageTurn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionPageTurn:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionPageTurn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionPageTurn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionPageTurn_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionPageTurn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionPageTurn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionPageTurn:TransitionPageTurn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionPageTurn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionPageTurn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionPageTurn)"); return 0; } int lua_register_cocos2dx_TransitionPageTurn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionPageTurn"); tolua_cclass(tolua_S,"TransitionPageTurn","cc.TransitionPageTurn","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionPageTurn"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionPageTurn_constructor); tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionPageTurn_actionWithSize); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionPageTurn_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionPageTurn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionPageTurn).name(); g_luaType[typeName] = "cc.TransitionPageTurn"; g_typeCast["TransitionPageTurn"] = "cc.TransitionPageTurn"; return 1; } int lua_cocos2dx_TransitionProgress_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgress",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgress:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgress:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgress_create'", nullptr); return 0; } cocos2d::TransitionProgress* ret = cocos2d::TransitionProgress::create(arg0, arg1); object_to_luaval<cocos2d::TransitionProgress>(tolua_S, "cc.TransitionProgress",(cocos2d::TransitionProgress*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgress:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgress_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionProgress_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionProgress* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgress_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionProgress(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgress"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgress:TransitionProgress",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgress_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionProgress_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgress)"); return 0; } int lua_register_cocos2dx_TransitionProgress(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgress"); tolua_cclass(tolua_S,"TransitionProgress","cc.TransitionProgress","cc.TransitionScene",nullptr); tolua_beginmodule(tolua_S,"TransitionProgress"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgress_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgress_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgress).name(); g_luaType[typeName] = "cc.TransitionProgress"; g_typeCast["TransitionProgress"] = "cc.TransitionProgress"; return 1; } int lua_cocos2dx_TransitionProgressRadialCCW_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressRadialCCW",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressRadialCCW:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressRadialCCW:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCCW_create'", nullptr); return 0; } cocos2d::TransitionProgressRadialCCW* ret = cocos2d::TransitionProgressRadialCCW::create(arg0, arg1); object_to_luaval<cocos2d::TransitionProgressRadialCCW>(tolua_S, "cc.TransitionProgressRadialCCW",(cocos2d::TransitionProgressRadialCCW*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressRadialCCW:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCCW_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionProgressRadialCCW_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionProgressRadialCCW* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCCW_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionProgressRadialCCW(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressRadialCCW"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressRadialCCW:TransitionProgressRadialCCW",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCCW_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionProgressRadialCCW_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressRadialCCW)"); return 0; } int lua_register_cocos2dx_TransitionProgressRadialCCW(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressRadialCCW"); tolua_cclass(tolua_S,"TransitionProgressRadialCCW","cc.TransitionProgressRadialCCW","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressRadialCCW"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressRadialCCW_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCCW_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressRadialCCW).name(); g_luaType[typeName] = "cc.TransitionProgressRadialCCW"; g_typeCast["TransitionProgressRadialCCW"] = "cc.TransitionProgressRadialCCW"; return 1; } int lua_cocos2dx_TransitionProgressRadialCW_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressRadialCW",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressRadialCW:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressRadialCW:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCW_create'", nullptr); return 0; } cocos2d::TransitionProgressRadialCW* ret = cocos2d::TransitionProgressRadialCW::create(arg0, arg1); object_to_luaval<cocos2d::TransitionProgressRadialCW>(tolua_S, "cc.TransitionProgressRadialCW",(cocos2d::TransitionProgressRadialCW*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressRadialCW:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCW_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionProgressRadialCW_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionProgressRadialCW* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCW_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionProgressRadialCW(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressRadialCW"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressRadialCW:TransitionProgressRadialCW",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressRadialCW_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionProgressRadialCW_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressRadialCW)"); return 0; } int lua_register_cocos2dx_TransitionProgressRadialCW(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressRadialCW"); tolua_cclass(tolua_S,"TransitionProgressRadialCW","cc.TransitionProgressRadialCW","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressRadialCW"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressRadialCW_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCW_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressRadialCW).name(); g_luaType[typeName] = "cc.TransitionProgressRadialCW"; g_typeCast["TransitionProgressRadialCW"] = "cc.TransitionProgressRadialCW"; return 1; } int lua_cocos2dx_TransitionProgressHorizontal_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressHorizontal",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressHorizontal:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressHorizontal:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressHorizontal_create'", nullptr); return 0; } cocos2d::TransitionProgressHorizontal* ret = cocos2d::TransitionProgressHorizontal::create(arg0, arg1); object_to_luaval<cocos2d::TransitionProgressHorizontal>(tolua_S, "cc.TransitionProgressHorizontal",(cocos2d::TransitionProgressHorizontal*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressHorizontal:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressHorizontal_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionProgressHorizontal_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionProgressHorizontal* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressHorizontal_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionProgressHorizontal(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressHorizontal"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressHorizontal:TransitionProgressHorizontal",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressHorizontal_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionProgressHorizontal_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressHorizontal)"); return 0; } int lua_register_cocos2dx_TransitionProgressHorizontal(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressHorizontal"); tolua_cclass(tolua_S,"TransitionProgressHorizontal","cc.TransitionProgressHorizontal","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressHorizontal"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressHorizontal_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressHorizontal_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressHorizontal).name(); g_luaType[typeName] = "cc.TransitionProgressHorizontal"; g_typeCast["TransitionProgressHorizontal"] = "cc.TransitionProgressHorizontal"; return 1; } int lua_cocos2dx_TransitionProgressVertical_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressVertical",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressVertical:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressVertical:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressVertical_create'", nullptr); return 0; } cocos2d::TransitionProgressVertical* ret = cocos2d::TransitionProgressVertical::create(arg0, arg1); object_to_luaval<cocos2d::TransitionProgressVertical>(tolua_S, "cc.TransitionProgressVertical",(cocos2d::TransitionProgressVertical*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressVertical:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressVertical_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionProgressVertical_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionProgressVertical* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressVertical_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionProgressVertical(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressVertical"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressVertical:TransitionProgressVertical",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressVertical_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionProgressVertical_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressVertical)"); return 0; } int lua_register_cocos2dx_TransitionProgressVertical(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressVertical"); tolua_cclass(tolua_S,"TransitionProgressVertical","cc.TransitionProgressVertical","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressVertical"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressVertical_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressVertical_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressVertical).name(); g_luaType[typeName] = "cc.TransitionProgressVertical"; g_typeCast["TransitionProgressVertical"] = "cc.TransitionProgressVertical"; return 1; } int lua_cocos2dx_TransitionProgressInOut_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressInOut",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressInOut:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressInOut_create'", nullptr); return 0; } cocos2d::TransitionProgressInOut* ret = cocos2d::TransitionProgressInOut::create(arg0, arg1); object_to_luaval<cocos2d::TransitionProgressInOut>(tolua_S, "cc.TransitionProgressInOut",(cocos2d::TransitionProgressInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressInOut:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressInOut_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionProgressInOut_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionProgressInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressInOut_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionProgressInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressInOut"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressInOut:TransitionProgressInOut",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressInOut_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionProgressInOut_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressInOut)"); return 0; } int lua_register_cocos2dx_TransitionProgressInOut(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressInOut"); tolua_cclass(tolua_S,"TransitionProgressInOut","cc.TransitionProgressInOut","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressInOut"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressInOut_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressInOut).name(); g_luaType[typeName] = "cc.TransitionProgressInOut"; g_typeCast["TransitionProgressInOut"] = "cc.TransitionProgressInOut"; return 1; } int lua_cocos2dx_TransitionProgressOutIn_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TransitionProgressOutIn",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { double arg0; cocos2d::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressOutIn:create"); ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressOutIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressOutIn_create'", nullptr); return 0; } cocos2d::TransitionProgressOutIn* ret = cocos2d::TransitionProgressOutIn::create(arg0, arg1); object_to_luaval<cocos2d::TransitionProgressOutIn>(tolua_S, "cc.TransitionProgressOutIn",(cocos2d::TransitionProgressOutIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressOutIn:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressOutIn_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TransitionProgressOutIn_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TransitionProgressOutIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressOutIn_constructor'", nullptr); return 0; } cobj = new cocos2d::TransitionProgressOutIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TransitionProgressOutIn"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionProgressOutIn:TransitionProgressOutIn",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TransitionProgressOutIn_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TransitionProgressOutIn_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TransitionProgressOutIn)"); return 0; } int lua_register_cocos2dx_TransitionProgressOutIn(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TransitionProgressOutIn"); tolua_cclass(tolua_S,"TransitionProgressOutIn","cc.TransitionProgressOutIn","cc.TransitionProgress",nullptr); tolua_beginmodule(tolua_S,"TransitionProgressOutIn"); tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressOutIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressOutIn_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TransitionProgressOutIn).name(); g_luaType[typeName] = "cc.TransitionProgressOutIn"; g_typeCast["TransitionProgressOutIn"] = "cc.TransitionProgressOutIn"; return 1; } int lua_cocos2dx_Camera_restore(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_restore'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_restore'", nullptr); return 0; } cobj->restore(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:restore",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_restore'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getDepth(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getDepth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getDepth'", nullptr); return 0; } int32_t ret = cobj->getDepth(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getDepth",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getDepth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getViewProjectionMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getViewProjectionMatrix'", nullptr); return 0; } const cocos2d::Mat4& ret = cobj->getViewProjectionMatrix(); mat4_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getViewProjectionMatrix",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getViewProjectionMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_applyViewport(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_applyViewport'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_applyViewport'", nullptr); return 0; } cobj->applyViewport(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:applyViewport",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_applyViewport'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_setBackgroundBrush(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_setBackgroundBrush'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::CameraBackgroundBrush* arg0; ok &= luaval_to_object<cocos2d::CameraBackgroundBrush>(tolua_S, 2, "cc.CameraBackgroundBrush",&arg0, "cc.Camera:setBackgroundBrush"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setBackgroundBrush'", nullptr); return 0; } cobj->setBackgroundBrush(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setBackgroundBrush",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setBackgroundBrush'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_lookAt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:lookAt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_lookAt'", nullptr); return 0; } cobj->lookAt(arg0); lua_settop(tolua_S, 1); return 1; } if (argc == 2) { cocos2d::Vec3 arg0; cocos2d::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:lookAt"); ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.Camera:lookAt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_lookAt'", nullptr); return 0; } cobj->lookAt(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:lookAt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_lookAt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_apply(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_apply'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_apply'", nullptr); return 0; } cobj->apply(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:apply",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_apply'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getBackgroundBrush(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getBackgroundBrush'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getBackgroundBrush'", nullptr); return 0; } cocos2d::CameraBackgroundBrush* ret = cobj->getBackgroundBrush(); object_to_luaval<cocos2d::CameraBackgroundBrush>(tolua_S, "cc.CameraBackgroundBrush",(cocos2d::CameraBackgroundBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getBackgroundBrush",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getBackgroundBrush'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getProjectionMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getProjectionMatrix'", nullptr); return 0; } const cocos2d::Mat4& ret = cobj->getProjectionMatrix(); mat4_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getProjectionMatrix",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getProjectionMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_isBrushValid(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_isBrushValid'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_isBrushValid'", nullptr); return 0; } bool ret = cobj->isBrushValid(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:isBrushValid",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_isBrushValid'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getDepthInView(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getDepthInView'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Camera:getDepthInView"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getDepthInView'", nullptr); return 0; } double ret = cobj->getDepthInView(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getDepthInView",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getDepthInView'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_restoreViewport(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_restoreViewport'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_restoreViewport'", nullptr); return 0; } cobj->restoreViewport(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:restoreViewport",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_restoreViewport'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_clearBackground(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_clearBackground'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_clearBackground'", nullptr); return 0; } cobj->clearBackground(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:clearBackground",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_clearBackground'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_setAdditionalProjection(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_setAdditionalProjection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Camera:setAdditionalProjection"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setAdditionalProjection'", nullptr); return 0; } cobj->setAdditionalProjection(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setAdditionalProjection",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setAdditionalProjection'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_setViewport(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_setViewport'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::experimental::Viewport arg0; #pragma warning NO CONVERSION TO NATIVE FOR Viewport ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setViewport'", nullptr); return 0; } cobj->setViewport(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setViewport",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setViewport'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_initDefault(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_initDefault'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_initDefault'", nullptr); return 0; } bool ret = cobj->initDefault(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:initDefault",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_initDefault'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getCameraFlag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getCameraFlag'", nullptr); return 0; } int ret = (int)cobj->getCameraFlag(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getCameraFlag",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getCameraFlag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getType(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getType'", nullptr); return 0; } int ret = (int)cobj->getType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_initOrthographic(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_initOrthographic'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; double arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Camera:initOrthographic"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Camera:initOrthographic"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Camera:initOrthographic"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Camera:initOrthographic"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_initOrthographic'", nullptr); return 0; } bool ret = cobj->initOrthographic(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:initOrthographic",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_initOrthographic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getRenderOrder(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getRenderOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getRenderOrder'", nullptr); return 0; } int ret = cobj->getRenderOrder(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getRenderOrder",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getRenderOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_isVisibleInFrustum(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_isVisibleInFrustum'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { const cocos2d::AABB* arg0; ok &= luaval_to_object<const cocos2d::AABB>(tolua_S, 2, "cc.AABB",&arg0, "cc.Camera:isVisibleInFrustum"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_isVisibleInFrustum'", nullptr); return 0; } bool ret = cobj->isVisibleInFrustum(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:isVisibleInFrustum",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_isVisibleInFrustum'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_setDepth(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_setDepth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int32_t arg0; ok &= luaval_to_int32(tolua_S, 2,&arg0, "cc.Camera:setDepth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setDepth'", nullptr); return 0; } cobj->setDepth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setDepth",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setDepth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_setScene(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_setScene'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Scene* arg0; ok &= luaval_to_object<cocos2d::Scene>(tolua_S, 2, "cc.Scene",&arg0, "cc.Camera:setScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setScene'", nullptr); return 0; } cobj->setScene(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setScene",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setScene'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_projectGL(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_projectGL'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:projectGL"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_projectGL'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->projectGL(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:projectGL",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_projectGL'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_restoreFrameBufferObject(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_restoreFrameBufferObject'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_restoreFrameBufferObject'", nullptr); return 0; } cobj->restoreFrameBufferObject(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:restoreFrameBufferObject",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_restoreFrameBufferObject'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getViewMatrix'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getViewMatrix'", nullptr); return 0; } const cocos2d::Mat4& ret = cobj->getViewMatrix(); mat4_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getViewMatrix",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getViewMatrix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getNearPlane(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getNearPlane'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getNearPlane'", nullptr); return 0; } double ret = cobj->getNearPlane(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getNearPlane",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getNearPlane'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_project(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_project'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:project"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_project'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->project(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:project",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_project'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_setCameraFlag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::CameraFlag arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Camera:setCameraFlag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setCameraFlag'", nullptr); return 0; } cobj->setCameraFlag(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setCameraFlag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setCameraFlag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getFarPlane(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_getFarPlane'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getFarPlane'", nullptr); return 0; } double ret = cobj->getFarPlane(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getFarPlane",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getFarPlane'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_applyFrameBufferObject(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_applyFrameBufferObject'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_applyFrameBufferObject'", nullptr); return 0; } cobj->applyFrameBufferObject(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:applyFrameBufferObject",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_applyFrameBufferObject'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_setFrameBufferObject(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_setFrameBufferObject'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::experimental::FrameBuffer* arg0; ok &= luaval_to_object<cocos2d::experimental::FrameBuffer>(tolua_S, 2, "ccexp.FrameBuffer",&arg0, "cc.Camera:setFrameBufferObject"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setFrameBufferObject'", nullptr); return 0; } cobj->setFrameBufferObject(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:setFrameBufferObject",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setFrameBufferObject'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_isViewProjectionUpdated(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_isViewProjectionUpdated'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_isViewProjectionUpdated'", nullptr); return 0; } bool ret = cobj->isViewProjectionUpdated(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:isViewProjectionUpdated",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_isViewProjectionUpdated'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_initPerspective(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Camera_initPerspective'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { double arg0; double arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Camera:initPerspective"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Camera:initPerspective"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Camera:initPerspective"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Camera:initPerspective"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_initPerspective'", nullptr); return 0; } bool ret = cobj->initPerspective(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:initPerspective",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_initPerspective'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_createOrthographic(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; double arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Camera:createOrthographic"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Camera:createOrthographic"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Camera:createOrthographic"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Camera:createOrthographic"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_createOrthographic'", nullptr); return 0; } cocos2d::Camera* ret = cocos2d::Camera::createOrthographic(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Camera>(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:createOrthographic",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_createOrthographic'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getVisitingCamera(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getVisitingCamera'", nullptr); return 0; } const cocos2d::Camera* ret = cocos2d::Camera::getVisitingCamera(); object_to_luaval<cocos2d::Camera>(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:getVisitingCamera",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getVisitingCamera'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_create'", nullptr); return 0; } cocos2d::Camera* ret = cocos2d::Camera::create(); object_to_luaval<cocos2d::Camera>(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_createPerspective(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { double arg0; double arg1; double arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Camera:createPerspective"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Camera:createPerspective"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Camera:createPerspective"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Camera:createPerspective"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_createPerspective'", nullptr); return 0; } cocos2d::Camera* ret = cocos2d::Camera::createPerspective(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Camera>(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:createPerspective",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_createPerspective'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getDefaultViewport(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getDefaultViewport'", nullptr); return 0; } const cocos2d::experimental::Viewport& ret = cocos2d::Camera::getDefaultViewport(); #pragma warning NO CONVERSION FROM NATIVE FOR Viewport; return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:getDefaultViewport",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getDefaultViewport'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_setDefaultViewport(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::experimental::Viewport arg0; #pragma warning NO CONVERSION TO NATIVE FOR Viewport ok = false; if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setDefaultViewport'", nullptr); return 0; } cocos2d::Camera::setDefaultViewport(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:setDefaultViewport",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_setDefaultViewport'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_getDefaultCamera(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getDefaultCamera'", nullptr); return 0; } cocos2d::Camera* ret = cocos2d::Camera::getDefaultCamera(); object_to_luaval<cocos2d::Camera>(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:getDefaultCamera",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_getDefaultCamera'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Camera_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_constructor'", nullptr); return 0; } cobj = new cocos2d::Camera(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Camera"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:Camera",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Camera_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Camera_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Camera)"); return 0; } int lua_register_cocos2dx_Camera(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Camera"); tolua_cclass(tolua_S,"Camera","cc.Camera","cc.Node",nullptr); tolua_beginmodule(tolua_S,"Camera"); tolua_function(tolua_S,"new",lua_cocos2dx_Camera_constructor); tolua_function(tolua_S,"restore",lua_cocos2dx_Camera_restore); tolua_function(tolua_S,"getDepth",lua_cocos2dx_Camera_getDepth); tolua_function(tolua_S,"getViewProjectionMatrix",lua_cocos2dx_Camera_getViewProjectionMatrix); tolua_function(tolua_S,"applyViewport",lua_cocos2dx_Camera_applyViewport); tolua_function(tolua_S,"setBackgroundBrush",lua_cocos2dx_Camera_setBackgroundBrush); tolua_function(tolua_S,"lookAt",lua_cocos2dx_Camera_lookAt); tolua_function(tolua_S,"apply",lua_cocos2dx_Camera_apply); tolua_function(tolua_S,"getBackgroundBrush",lua_cocos2dx_Camera_getBackgroundBrush); tolua_function(tolua_S,"getProjectionMatrix",lua_cocos2dx_Camera_getProjectionMatrix); tolua_function(tolua_S,"isBrushValid",lua_cocos2dx_Camera_isBrushValid); tolua_function(tolua_S,"getDepthInView",lua_cocos2dx_Camera_getDepthInView); tolua_function(tolua_S,"restoreViewport",lua_cocos2dx_Camera_restoreViewport); tolua_function(tolua_S,"clearBackground",lua_cocos2dx_Camera_clearBackground); tolua_function(tolua_S,"setAdditionalProjection",lua_cocos2dx_Camera_setAdditionalProjection); tolua_function(tolua_S,"setViewport",lua_cocos2dx_Camera_setViewport); tolua_function(tolua_S,"initDefault",lua_cocos2dx_Camera_initDefault); tolua_function(tolua_S,"getCameraFlag",lua_cocos2dx_Camera_getCameraFlag); tolua_function(tolua_S,"getType",lua_cocos2dx_Camera_getType); tolua_function(tolua_S,"initOrthographic",lua_cocos2dx_Camera_initOrthographic); tolua_function(tolua_S,"getRenderOrder",lua_cocos2dx_Camera_getRenderOrder); tolua_function(tolua_S,"isVisibleInFrustum",lua_cocos2dx_Camera_isVisibleInFrustum); tolua_function(tolua_S,"setDepth",lua_cocos2dx_Camera_setDepth); tolua_function(tolua_S,"setScene",lua_cocos2dx_Camera_setScene); tolua_function(tolua_S,"projectGL",lua_cocos2dx_Camera_projectGL); tolua_function(tolua_S,"restoreFrameBufferObject",lua_cocos2dx_Camera_restoreFrameBufferObject); tolua_function(tolua_S,"getViewMatrix",lua_cocos2dx_Camera_getViewMatrix); tolua_function(tolua_S,"getNearPlane",lua_cocos2dx_Camera_getNearPlane); tolua_function(tolua_S,"project",lua_cocos2dx_Camera_project); tolua_function(tolua_S,"setCameraFlag",lua_cocos2dx_Camera_setCameraFlag); tolua_function(tolua_S,"getFarPlane",lua_cocos2dx_Camera_getFarPlane); tolua_function(tolua_S,"applyFrameBufferObject",lua_cocos2dx_Camera_applyFrameBufferObject); tolua_function(tolua_S,"setFrameBufferObject",lua_cocos2dx_Camera_setFrameBufferObject); tolua_function(tolua_S,"isViewProjectionUpdated",lua_cocos2dx_Camera_isViewProjectionUpdated); tolua_function(tolua_S,"initPerspective",lua_cocos2dx_Camera_initPerspective); tolua_function(tolua_S,"createOrthographic", lua_cocos2dx_Camera_createOrthographic); tolua_function(tolua_S,"getVisitingCamera", lua_cocos2dx_Camera_getVisitingCamera); tolua_function(tolua_S,"create", lua_cocos2dx_Camera_create); tolua_function(tolua_S,"createPerspective", lua_cocos2dx_Camera_createPerspective); tolua_function(tolua_S,"getDefaultViewport", lua_cocos2dx_Camera_getDefaultViewport); tolua_function(tolua_S,"setDefaultViewport", lua_cocos2dx_Camera_setDefaultViewport); tolua_function(tolua_S,"getDefaultCamera", lua_cocos2dx_Camera_getDefaultCamera); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Camera).name(); g_luaType[typeName] = "cc.Camera"; g_typeCast["Camera"] = "cc.Camera"; return 1; } int lua_cocos2dx_CameraBackgroundBrush_getBrushType(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundBrush_getBrushType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_getBrushType'", nullptr); return 0; } int ret = (int)cobj->getBrushType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundBrush:getBrushType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundBrush_getBrushType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundBrush_drawBackground(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundBrush_drawBackground'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Camera* arg0; ok &= luaval_to_object<cocos2d::Camera>(tolua_S, 2, "cc.Camera",&arg0, "cc.CameraBackgroundBrush:drawBackground"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_drawBackground'", nullptr); return 0; } cobj->drawBackground(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundBrush:drawBackground",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundBrush_drawBackground'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundBrush_init(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundBrush_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundBrush:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundBrush_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundBrush_isValid(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundBrush_isValid'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_isValid'", nullptr); return 0; } bool ret = cobj->isValid(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundBrush:isValid",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundBrush_isValid'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundBrush_createSkyboxBrush(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 6) { std::string arg0; std::string arg1; std::string arg2; std::string arg3; std::string arg4; std::string arg5; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.CameraBackgroundBrush:createSkyboxBrush"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.CameraBackgroundBrush:createSkyboxBrush"); ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.CameraBackgroundBrush:createSkyboxBrush"); ok &= luaval_to_std_string(tolua_S, 5,&arg3, "cc.CameraBackgroundBrush:createSkyboxBrush"); ok &= luaval_to_std_string(tolua_S, 6,&arg4, "cc.CameraBackgroundBrush:createSkyboxBrush"); ok &= luaval_to_std_string(tolua_S, 7,&arg5, "cc.CameraBackgroundBrush:createSkyboxBrush"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createSkyboxBrush'", nullptr); return 0; } cocos2d::CameraBackgroundSkyBoxBrush* ret = cocos2d::CameraBackgroundBrush::createSkyboxBrush(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval<cocos2d::CameraBackgroundSkyBoxBrush>(tolua_S, "cc.CameraBackgroundSkyBoxBrush",(cocos2d::CameraBackgroundSkyBoxBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundBrush:createSkyboxBrush",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundBrush_createSkyboxBrush'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundBrush_createColorBrush(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::Color4F arg0; double arg1; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.CameraBackgroundBrush:createColorBrush"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.CameraBackgroundBrush:createColorBrush"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createColorBrush'", nullptr); return 0; } cocos2d::CameraBackgroundColorBrush* ret = cocos2d::CameraBackgroundBrush::createColorBrush(arg0, arg1); object_to_luaval<cocos2d::CameraBackgroundColorBrush>(tolua_S, "cc.CameraBackgroundColorBrush",(cocos2d::CameraBackgroundColorBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundBrush:createColorBrush",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundBrush_createColorBrush'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundBrush_createNoneBrush(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createNoneBrush'", nullptr); return 0; } cocos2d::CameraBackgroundBrush* ret = cocos2d::CameraBackgroundBrush::createNoneBrush(); object_to_luaval<cocos2d::CameraBackgroundBrush>(tolua_S, "cc.CameraBackgroundBrush",(cocos2d::CameraBackgroundBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundBrush:createNoneBrush",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundBrush_createNoneBrush'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundBrush_createDepthBrush(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createDepthBrush'", nullptr); return 0; } cocos2d::CameraBackgroundDepthBrush* ret = cocos2d::CameraBackgroundBrush::createDepthBrush(); object_to_luaval<cocos2d::CameraBackgroundDepthBrush>(tolua_S, "cc.CameraBackgroundDepthBrush",(cocos2d::CameraBackgroundDepthBrush*)ret); return 1; } if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CameraBackgroundBrush:createDepthBrush"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createDepthBrush'", nullptr); return 0; } cocos2d::CameraBackgroundDepthBrush* ret = cocos2d::CameraBackgroundBrush::createDepthBrush(arg0); object_to_luaval<cocos2d::CameraBackgroundDepthBrush>(tolua_S, "cc.CameraBackgroundDepthBrush",(cocos2d::CameraBackgroundDepthBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundBrush:createDepthBrush",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundBrush_createDepthBrush'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundBrush_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_constructor'", nullptr); return 0; } cobj = new cocos2d::CameraBackgroundBrush(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.CameraBackgroundBrush"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundBrush:CameraBackgroundBrush",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundBrush_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_CameraBackgroundBrush_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CameraBackgroundBrush)"); return 0; } int lua_register_cocos2dx_CameraBackgroundBrush(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CameraBackgroundBrush"); tolua_cclass(tolua_S,"CameraBackgroundBrush","cc.CameraBackgroundBrush","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"CameraBackgroundBrush"); tolua_function(tolua_S,"new",lua_cocos2dx_CameraBackgroundBrush_constructor); tolua_function(tolua_S,"getBrushType",lua_cocos2dx_CameraBackgroundBrush_getBrushType); tolua_function(tolua_S,"drawBackground",lua_cocos2dx_CameraBackgroundBrush_drawBackground); tolua_function(tolua_S,"init",lua_cocos2dx_CameraBackgroundBrush_init); tolua_function(tolua_S,"isValid",lua_cocos2dx_CameraBackgroundBrush_isValid); tolua_function(tolua_S,"createSkyboxBrush", lua_cocos2dx_CameraBackgroundBrush_createSkyboxBrush); tolua_function(tolua_S,"createColorBrush", lua_cocos2dx_CameraBackgroundBrush_createColorBrush); tolua_function(tolua_S,"createNoneBrush", lua_cocos2dx_CameraBackgroundBrush_createNoneBrush); tolua_function(tolua_S,"createDepthBrush", lua_cocos2dx_CameraBackgroundBrush_createDepthBrush); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CameraBackgroundBrush).name(); g_luaType[typeName] = "cc.CameraBackgroundBrush"; g_typeCast["CameraBackgroundBrush"] = "cc.CameraBackgroundBrush"; return 1; } int lua_cocos2dx_CameraBackgroundDepthBrush_setDepth(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundDepthBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundDepthBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundDepthBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundDepthBrush_setDepth'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CameraBackgroundDepthBrush:setDepth"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundDepthBrush_setDepth'", nullptr); return 0; } cobj->setDepth(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundDepthBrush:setDepth",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundDepthBrush_setDepth'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundDepthBrush_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.CameraBackgroundDepthBrush",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CameraBackgroundDepthBrush:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundDepthBrush_create'", nullptr); return 0; } cocos2d::CameraBackgroundDepthBrush* ret = cocos2d::CameraBackgroundDepthBrush::create(arg0); object_to_luaval<cocos2d::CameraBackgroundDepthBrush>(tolua_S, "cc.CameraBackgroundDepthBrush",(cocos2d::CameraBackgroundDepthBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundDepthBrush:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundDepthBrush_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundDepthBrush_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundDepthBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundDepthBrush_constructor'", nullptr); return 0; } cobj = new cocos2d::CameraBackgroundDepthBrush(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.CameraBackgroundDepthBrush"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundDepthBrush:CameraBackgroundDepthBrush",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundDepthBrush_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_CameraBackgroundDepthBrush_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CameraBackgroundDepthBrush)"); return 0; } int lua_register_cocos2dx_CameraBackgroundDepthBrush(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CameraBackgroundDepthBrush"); tolua_cclass(tolua_S,"CameraBackgroundDepthBrush","cc.CameraBackgroundDepthBrush","cc.CameraBackgroundBrush",nullptr); tolua_beginmodule(tolua_S,"CameraBackgroundDepthBrush"); tolua_function(tolua_S,"new",lua_cocos2dx_CameraBackgroundDepthBrush_constructor); tolua_function(tolua_S,"setDepth",lua_cocos2dx_CameraBackgroundDepthBrush_setDepth); tolua_function(tolua_S,"create", lua_cocos2dx_CameraBackgroundDepthBrush_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CameraBackgroundDepthBrush).name(); g_luaType[typeName] = "cc.CameraBackgroundDepthBrush"; g_typeCast["CameraBackgroundDepthBrush"] = "cc.CameraBackgroundDepthBrush"; return 1; } int lua_cocos2dx_CameraBackgroundColorBrush_setColor(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundColorBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundColorBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundColorBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundColorBrush_setColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.CameraBackgroundColorBrush:setColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundColorBrush_setColor'", nullptr); return 0; } cobj->setColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundColorBrush:setColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundColorBrush_setColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundColorBrush_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.CameraBackgroundColorBrush",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::Color4F arg0; double arg1; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.CameraBackgroundColorBrush:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.CameraBackgroundColorBrush:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundColorBrush_create'", nullptr); return 0; } cocos2d::CameraBackgroundColorBrush* ret = cocos2d::CameraBackgroundColorBrush::create(arg0, arg1); object_to_luaval<cocos2d::CameraBackgroundColorBrush>(tolua_S, "cc.CameraBackgroundColorBrush",(cocos2d::CameraBackgroundColorBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundColorBrush:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundColorBrush_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundColorBrush_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundColorBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundColorBrush_constructor'", nullptr); return 0; } cobj = new cocos2d::CameraBackgroundColorBrush(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.CameraBackgroundColorBrush"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundColorBrush:CameraBackgroundColorBrush",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundColorBrush_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_CameraBackgroundColorBrush_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CameraBackgroundColorBrush)"); return 0; } int lua_register_cocos2dx_CameraBackgroundColorBrush(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CameraBackgroundColorBrush"); tolua_cclass(tolua_S,"CameraBackgroundColorBrush","cc.CameraBackgroundColorBrush","cc.CameraBackgroundDepthBrush",nullptr); tolua_beginmodule(tolua_S,"CameraBackgroundColorBrush"); tolua_function(tolua_S,"new",lua_cocos2dx_CameraBackgroundColorBrush_constructor); tolua_function(tolua_S,"setColor",lua_cocos2dx_CameraBackgroundColorBrush_setColor); tolua_function(tolua_S,"create", lua_cocos2dx_CameraBackgroundColorBrush_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CameraBackgroundColorBrush).name(); g_luaType[typeName] = "cc.CameraBackgroundColorBrush"; g_typeCast["CameraBackgroundColorBrush"] = "cc.CameraBackgroundColorBrush"; return 1; } int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTextureValid(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTextureValid'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.CameraBackgroundSkyBoxBrush:setTextureValid"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTextureValid'", nullptr); return 0; } cobj->setTextureValid(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundSkyBoxBrush:setTextureValid",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTextureValid'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TextureCube* arg0; ok &= luaval_to_object<cocos2d::TextureCube>(tolua_S, 2, "cc.TextureCube",&arg0, "cc.CameraBackgroundSkyBoxBrush:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture'", nullptr); return 0; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundSkyBoxBrush:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setActived(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setActived'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.CameraBackgroundSkyBoxBrush:setActived"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setActived'", nullptr); return 0; } cobj->setActived(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundSkyBoxBrush:setActived",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setActived'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundSkyBoxBrush_isActived(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_isActived'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_isActived'", nullptr); return 0; } bool ret = cobj->isActived(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundSkyBoxBrush:isActived",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_isActived'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundSkyBoxBrush_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 0) { cocos2d::CameraBackgroundSkyBoxBrush* ret = cocos2d::CameraBackgroundSkyBoxBrush::create(); object_to_luaval<cocos2d::CameraBackgroundSkyBoxBrush>(tolua_S, "cc.CameraBackgroundSkyBoxBrush",(cocos2d::CameraBackgroundSkyBoxBrush*)ret); return 1; } } while (0); ok = true; do { if (argc == 6) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.CameraBackgroundSkyBoxBrush:create"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.CameraBackgroundSkyBoxBrush:create"); if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.CameraBackgroundSkyBoxBrush:create"); if (!ok) { break; } std::string arg3; ok &= luaval_to_std_string(tolua_S, 5,&arg3, "cc.CameraBackgroundSkyBoxBrush:create"); if (!ok) { break; } std::string arg4; ok &= luaval_to_std_string(tolua_S, 6,&arg4, "cc.CameraBackgroundSkyBoxBrush:create"); if (!ok) { break; } std::string arg5; ok &= luaval_to_std_string(tolua_S, 7,&arg5, "cc.CameraBackgroundSkyBoxBrush:create"); if (!ok) { break; } cocos2d::CameraBackgroundSkyBoxBrush* ret = cocos2d::CameraBackgroundSkyBoxBrush::create(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval<cocos2d::CameraBackgroundSkyBoxBrush>(tolua_S, "cc.CameraBackgroundSkyBoxBrush",(cocos2d::CameraBackgroundSkyBoxBrush*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.CameraBackgroundSkyBoxBrush:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_CameraBackgroundSkyBoxBrush_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_constructor'", nullptr); return 0; } cobj = new cocos2d::CameraBackgroundSkyBoxBrush(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.CameraBackgroundSkyBoxBrush"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundSkyBoxBrush:CameraBackgroundSkyBoxBrush",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_CameraBackgroundSkyBoxBrush_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (CameraBackgroundSkyBoxBrush)"); return 0; } int lua_register_cocos2dx_CameraBackgroundSkyBoxBrush(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.CameraBackgroundSkyBoxBrush"); tolua_cclass(tolua_S,"CameraBackgroundSkyBoxBrush","cc.CameraBackgroundSkyBoxBrush","cc.CameraBackgroundBrush",nullptr); tolua_beginmodule(tolua_S,"CameraBackgroundSkyBoxBrush"); tolua_function(tolua_S,"new",lua_cocos2dx_CameraBackgroundSkyBoxBrush_constructor); tolua_function(tolua_S,"setTextureValid",lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTextureValid); tolua_function(tolua_S,"setTexture",lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture); tolua_function(tolua_S,"setActived",lua_cocos2dx_CameraBackgroundSkyBoxBrush_setActived); tolua_function(tolua_S,"isActived",lua_cocos2dx_CameraBackgroundSkyBoxBrush_isActived); tolua_function(tolua_S,"create", lua_cocos2dx_CameraBackgroundSkyBoxBrush_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::CameraBackgroundSkyBoxBrush).name(); g_luaType[typeName] = "cc.CameraBackgroundSkyBoxBrush"; g_typeCast["CameraBackgroundSkyBoxBrush"] = "cc.CameraBackgroundSkyBoxBrush"; return 1; } int lua_cocos2dx_GridBase_setGridSize(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setGridSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:setGridSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_setGridSize'", nullptr); return 0; } cobj->setGridSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setGridSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setGridSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_setGridRect(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setGridRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.GridBase:setGridRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_setGridRect'", nullptr); return 0; } cobj->setGridRect(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setGridRect",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setGridRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_afterBlit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_afterBlit'", nullptr); return 0; } cobj->afterBlit(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:afterBlit",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_afterBlit'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_getGridRect(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getGridRect'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_getGridRect'", nullptr); return 0; } const cocos2d::Rect& ret = cobj->getGridRect(); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getGridRect",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getGridRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_afterDraw'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Node* arg0; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.GridBase:afterDraw"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_afterDraw'", nullptr); return 0; } cobj->afterDraw(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:afterDraw",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_afterDraw'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_beforeDraw'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_beforeDraw'", nullptr); return 0; } cobj->beforeDraw(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:beforeDraw",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_beforeDraw'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_calculateVertexPoints'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_calculateVertexPoints'", nullptr); return 0; } cobj->calculateVertexPoints(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:calculateVertexPoints",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_calculateVertexPoints'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_isTextureFlipped'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_isTextureFlipped'", nullptr); return 0; } bool ret = cobj->isTextureFlipped(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:isTextureFlipped",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_isTextureFlipped'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getGridSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_getGridSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getGridSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getGridSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getGridSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getStep'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_getStep'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getStep(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getStep",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getStep'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_set2DProjection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_set2DProjection'", nullptr); return 0; } cobj->set2DProjection(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:set2DProjection",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_set2DProjection'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setStep'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.GridBase:setStep"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_setStep'", nullptr); return 0; } cobj->setStep(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setStep",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setStep'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setTextureFlipped'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GridBase:setTextureFlipped"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_setTextureFlipped'", nullptr); return 0; } cobj->setTextureFlipped(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setTextureFlipped",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setTextureFlipped'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_blit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_blit'", nullptr); return 0; } cobj->blit(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:blit",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_blit'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setActive'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.GridBase:setActive"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_setActive'", nullptr); return 0; } cobj->setActive(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setActive",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setActive'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_getReuseGrid'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_getReuseGrid'", nullptr); return 0; } int ret = cobj->getReuseGrid(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:getReuseGrid",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_getReuseGrid'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_initWithSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.GridBase:initWithSize"); if (!ok) { break; } bool ret = cobj->initWithSize(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); if (!ok) { break; } bool ret = cobj->initWithSize(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GridBase:initWithSize"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.GridBase:initWithSize"); if (!ok) { break; } bool ret = cobj->initWithSize(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 4) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GridBase:initWithSize"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.GridBase:initWithSize"); if (!ok) { break; } cocos2d::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "cc.GridBase:initWithSize"); if (!ok) { break; } bool ret = cobj->initWithSize(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:initWithSize",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_initWithSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_beforeBlit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_beforeBlit'", nullptr); return 0; } cobj->beforeBlit(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:beforeBlit",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_beforeBlit'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_setReuseGrid'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GridBase:setReuseGrid"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_setReuseGrid'", nullptr); return 0; } cobj->setReuseGrid(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:setReuseGrid",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_setReuseGrid'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_isActive'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_isActive'", nullptr); return 0; } bool ret = cobj->isActive(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:isActive",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_isActive'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) { int argc = 0; cocos2d::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GridBase_reuse'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_reuse'", nullptr); return 0; } cobj->reuse(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridBase:reuse",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_reuse'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GridBase_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:create"); if (!ok) { break; } cocos2d::GridBase* ret = cocos2d::GridBase::create(arg0); object_to_luaval<cocos2d::GridBase>(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.GridBase:create"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GridBase:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.GridBase:create"); if (!ok) { break; } cocos2d::GridBase* ret = cocos2d::GridBase::create(arg0, arg1, arg2); object_to_luaval<cocos2d::GridBase>(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.GridBase:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GridBase_create'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_GridBase_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GridBase)"); return 0; } int lua_register_cocos2dx_GridBase(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GridBase"); tolua_cclass(tolua_S,"GridBase","cc.GridBase","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GridBase"); tolua_function(tolua_S,"setGridSize",lua_cocos2dx_GridBase_setGridSize); tolua_function(tolua_S,"setGridRect",lua_cocos2dx_GridBase_setGridRect); tolua_function(tolua_S,"afterBlit",lua_cocos2dx_GridBase_afterBlit); tolua_function(tolua_S,"getGridRect",lua_cocos2dx_GridBase_getGridRect); tolua_function(tolua_S,"afterDraw",lua_cocos2dx_GridBase_afterDraw); tolua_function(tolua_S,"beforeDraw",lua_cocos2dx_GridBase_beforeDraw); tolua_function(tolua_S,"calculateVertexPoints",lua_cocos2dx_GridBase_calculateVertexPoints); tolua_function(tolua_S,"isTextureFlipped",lua_cocos2dx_GridBase_isTextureFlipped); tolua_function(tolua_S,"getGridSize",lua_cocos2dx_GridBase_getGridSize); tolua_function(tolua_S,"getStep",lua_cocos2dx_GridBase_getStep); tolua_function(tolua_S,"set2DProjection",lua_cocos2dx_GridBase_set2DProjection); tolua_function(tolua_S,"setStep",lua_cocos2dx_GridBase_setStep); tolua_function(tolua_S,"setTextureFlipped",lua_cocos2dx_GridBase_setTextureFlipped); tolua_function(tolua_S,"blit",lua_cocos2dx_GridBase_blit); tolua_function(tolua_S,"setActive",lua_cocos2dx_GridBase_setActive); tolua_function(tolua_S,"getReuseGrid",lua_cocos2dx_GridBase_getReuseGrid); tolua_function(tolua_S,"initWithSize",lua_cocos2dx_GridBase_initWithSize); tolua_function(tolua_S,"beforeBlit",lua_cocos2dx_GridBase_beforeBlit); tolua_function(tolua_S,"setReuseGrid",lua_cocos2dx_GridBase_setReuseGrid); tolua_function(tolua_S,"isActive",lua_cocos2dx_GridBase_isActive); tolua_function(tolua_S,"reuse",lua_cocos2dx_GridBase_reuse); tolua_function(tolua_S,"create", lua_cocos2dx_GridBase_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GridBase).name(); g_luaType[typeName] = "cc.GridBase"; g_typeCast["GridBase"] = "cc.GridBase"; return 1; } int lua_cocos2dx_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) { int argc = 0; cocos2d::Grid3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Grid3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3D_getNeedDepthTestForBlit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Grid3D_getNeedDepthTestForBlit'", nullptr); return 0; } bool ret = cobj->getNeedDepthTestForBlit(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3D:getNeedDepthTestForBlit",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_getNeedDepthTestForBlit'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) { int argc = 0; cocos2d::Grid3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Grid3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Grid3D_setNeedDepthTestForBlit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Grid3D:setNeedDepthTestForBlit"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Grid3D_setNeedDepthTestForBlit'", nullptr); return 0; } cobj->setNeedDepthTestForBlit(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3D:setNeedDepthTestForBlit",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_setNeedDepthTestForBlit'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.Grid3D:create"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Grid3D:create"); if (!ok) { break; } cocos2d::Grid3D* ret = cocos2d::Grid3D::create(arg0, arg1); object_to_luaval<cocos2d::Grid3D>(tolua_S, "cc.Grid3D",(cocos2d::Grid3D*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.Grid3D:create"); if (!ok) { break; } cocos2d::Grid3D* ret = cocos2d::Grid3D::create(arg0); object_to_luaval<cocos2d::Grid3D>(tolua_S, "cc.Grid3D",(cocos2d::Grid3D*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.Grid3D:create"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.Grid3D:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Grid3D:create"); if (!ok) { break; } cocos2d::Grid3D* ret = cocos2d::Grid3D::create(arg0, arg1, arg2); object_to_luaval<cocos2d::Grid3D>(tolua_S, "cc.Grid3D",(cocos2d::Grid3D*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.Grid3D:create"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.Grid3D:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Grid3D:create"); if (!ok) { break; } cocos2d::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "cc.Grid3D:create"); if (!ok) { break; } cocos2d::Grid3D* ret = cocos2d::Grid3D::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::Grid3D>(tolua_S, "cc.Grid3D",(cocos2d::Grid3D*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.Grid3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Grid3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::Grid3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Grid3D_constructor'", nullptr); return 0; } cobj = new cocos2d::Grid3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.Grid3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Grid3D:Grid3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Grid3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Grid3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Grid3D)"); return 0; } int lua_register_cocos2dx_Grid3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Grid3D"); tolua_cclass(tolua_S,"Grid3D","cc.Grid3D","cc.GridBase",nullptr); tolua_beginmodule(tolua_S,"Grid3D"); tolua_function(tolua_S,"new",lua_cocos2dx_Grid3D_constructor); tolua_function(tolua_S,"getNeedDepthTestForBlit",lua_cocos2dx_Grid3D_getNeedDepthTestForBlit); tolua_function(tolua_S,"setNeedDepthTestForBlit",lua_cocos2dx_Grid3D_setNeedDepthTestForBlit); tolua_function(tolua_S,"create", lua_cocos2dx_Grid3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Grid3D).name(); g_luaType[typeName] = "cc.Grid3D"; g_typeCast["Grid3D"] = "cc.Grid3D"; return 1; } int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TiledGrid3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 2) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TiledGrid3D:create"); if (!ok) { break; } cocos2d::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.TiledGrid3D:create"); if (!ok) { break; } cocos2d::TiledGrid3D* ret = cocos2d::TiledGrid3D::create(arg0, arg1); object_to_luaval<cocos2d::TiledGrid3D>(tolua_S, "cc.TiledGrid3D",(cocos2d::TiledGrid3D*)ret); return 1; } } while (0); ok = true; do { if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TiledGrid3D:create"); if (!ok) { break; } cocos2d::TiledGrid3D* ret = cocos2d::TiledGrid3D::create(arg0); object_to_luaval<cocos2d::TiledGrid3D>(tolua_S, "cc.TiledGrid3D",(cocos2d::TiledGrid3D*)ret); return 1; } } while (0); ok = true; do { if (argc == 3) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TiledGrid3D:create"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.TiledGrid3D:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TiledGrid3D:create"); if (!ok) { break; } cocos2d::TiledGrid3D* ret = cocos2d::TiledGrid3D::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TiledGrid3D>(tolua_S, "cc.TiledGrid3D",(cocos2d::TiledGrid3D*)ret); return 1; } } while (0); ok = true; do { if (argc == 4) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TiledGrid3D:create"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.TiledGrid3D:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TiledGrid3D:create"); if (!ok) { break; } cocos2d::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "cc.TiledGrid3D:create"); if (!ok) { break; } cocos2d::TiledGrid3D* ret = cocos2d::TiledGrid3D::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::TiledGrid3D>(tolua_S, "cc.TiledGrid3D",(cocos2d::TiledGrid3D*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.TiledGrid3D:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TiledGrid3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TiledGrid3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TiledGrid3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TiledGrid3D_constructor'", nullptr); return 0; } cobj = new cocos2d::TiledGrid3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TiledGrid3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TiledGrid3D:TiledGrid3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TiledGrid3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TiledGrid3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TiledGrid3D)"); return 0; } int lua_register_cocos2dx_TiledGrid3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TiledGrid3D"); tolua_cclass(tolua_S,"TiledGrid3D","cc.TiledGrid3D","cc.GridBase",nullptr); tolua_beginmodule(tolua_S,"TiledGrid3D"); tolua_function(tolua_S,"new",lua_cocos2dx_TiledGrid3D_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TiledGrid3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TiledGrid3D).name(); g_luaType[typeName] = "cc.TiledGrid3D"; g_typeCast["TiledGrid3D"] = "cc.TiledGrid3D"; return 1; } int lua_cocos2dx_BaseLight_setEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_setEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.BaseLight:setEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BaseLight_setEnabled'", nullptr); return 0; } cobj->setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:setEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_setEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) { int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_getIntensity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BaseLight_getIntensity'", nullptr); return 0; } double ret = cobj->getIntensity(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:getIntensity",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_getIntensity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) { int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_isEnabled'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BaseLight_isEnabled'", nullptr); return 0; } bool ret = cobj->isEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:isEnabled",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_isEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) { int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_getLightType'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BaseLight_getLightType'", nullptr); return 0; } int ret = (int)cobj->getLightType(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:getLightType",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_getLightType'.",&tolua_err); #endif return 0; } int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) { int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_setLightFlag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::LightFlag arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.BaseLight:setLightFlag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BaseLight_setLightFlag'", nullptr); return 0; } cobj->setLightFlag(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:setLightFlag",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_setLightFlag'.",&tolua_err); #endif return 0; } int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) { int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_setIntensity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.BaseLight:setIntensity"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BaseLight_setIntensity'", nullptr); return 0; } cobj->setIntensity(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:setIntensity",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_setIntensity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_BaseLight_getLightFlag(lua_State* tolua_S) { int argc = 0; cocos2d::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_BaseLight_getLightFlag'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BaseLight_getLightFlag'", nullptr); return 0; } int ret = (int)cobj->getLightFlag(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.BaseLight:getLightFlag",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_BaseLight_getLightFlag'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_BaseLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (BaseLight)"); return 0; } int lua_register_cocos2dx_BaseLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.BaseLight"); tolua_cclass(tolua_S,"BaseLight","cc.BaseLight","cc.Node",nullptr); tolua_beginmodule(tolua_S,"BaseLight"); tolua_function(tolua_S,"setEnabled",lua_cocos2dx_BaseLight_setEnabled); tolua_function(tolua_S,"getIntensity",lua_cocos2dx_BaseLight_getIntensity); tolua_function(tolua_S,"isEnabled",lua_cocos2dx_BaseLight_isEnabled); tolua_function(tolua_S,"getLightType",lua_cocos2dx_BaseLight_getLightType); tolua_function(tolua_S,"setLightFlag",lua_cocos2dx_BaseLight_setLightFlag); tolua_function(tolua_S,"setIntensity",lua_cocos2dx_BaseLight_setIntensity); tolua_function(tolua_S,"getLightFlag",lua_cocos2dx_BaseLight_getLightFlag); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::BaseLight).name(); g_luaType[typeName] = "cc.BaseLight"; g_typeCast["BaseLight"] = "cc.BaseLight"; return 1; } int lua_cocos2dx_DirectionLight_getDirection(lua_State* tolua_S) { int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DirectionLight_getDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_getDirection'", nullptr); return 0; } cocos2d::Vec3 ret = cobj->getDirection(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:getDirection",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_getDirection'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) { int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DirectionLight_getDirectionInWorld'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_getDirectionInWorld'", nullptr); return 0; } cocos2d::Vec3 ret = cobj->getDirectionInWorld(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:getDirectionInWorld",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_getDirectionInWorld'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) { int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_DirectionLight_setDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.DirectionLight:setDirection"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_setDirection'", nullptr); return 0; } cobj->setDirection(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:setDirection",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_setDirection'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DirectionLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::Vec3 arg0; cocos2d::Color3B arg1; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.DirectionLight:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "cc.DirectionLight:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_create'", nullptr); return 0; } cocos2d::DirectionLight* ret = cocos2d::DirectionLight::create(arg0, arg1); object_to_luaval<cocos2d::DirectionLight>(tolua_S, "cc.DirectionLight",(cocos2d::DirectionLight*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DirectionLight:create",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_DirectionLight_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::DirectionLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_constructor'", nullptr); return 0; } cobj = new cocos2d::DirectionLight(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.DirectionLight"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.DirectionLight:DirectionLight",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_DirectionLight_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_DirectionLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (DirectionLight)"); return 0; } int lua_register_cocos2dx_DirectionLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.DirectionLight"); tolua_cclass(tolua_S,"DirectionLight","cc.DirectionLight","cc.BaseLight",nullptr); tolua_beginmodule(tolua_S,"DirectionLight"); tolua_function(tolua_S,"new",lua_cocos2dx_DirectionLight_constructor); tolua_function(tolua_S,"getDirection",lua_cocos2dx_DirectionLight_getDirection); tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_DirectionLight_getDirectionInWorld); tolua_function(tolua_S,"setDirection",lua_cocos2dx_DirectionLight_setDirection); tolua_function(tolua_S,"create", lua_cocos2dx_DirectionLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::DirectionLight).name(); g_luaType[typeName] = "cc.DirectionLight"; g_typeCast["DirectionLight"] = "cc.DirectionLight"; return 1; } int lua_cocos2dx_PointLight_getRange(lua_State* tolua_S) { int argc = 0; cocos2d::PointLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::PointLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PointLight_getRange'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PointLight_getRange'", nullptr); return 0; } double ret = cobj->getRange(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PointLight:getRange",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_getRange'.",&tolua_err); #endif return 0; } int lua_cocos2dx_PointLight_setRange(lua_State* tolua_S) { int argc = 0; cocos2d::PointLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::PointLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_PointLight_setRange'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PointLight:setRange"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PointLight_setRange'", nullptr); return 0; } cobj->setRange(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PointLight:setRange",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_setRange'.",&tolua_err); #endif return 0; } int lua_cocos2dx_PointLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { cocos2d::Vec3 arg0; cocos2d::Color3B arg1; double arg2; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.PointLight:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "cc.PointLight:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.PointLight:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PointLight_create'", nullptr); return 0; } cocos2d::PointLight* ret = cocos2d::PointLight::create(arg0, arg1, arg2); object_to_luaval<cocos2d::PointLight>(tolua_S, "cc.PointLight",(cocos2d::PointLight*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PointLight:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_PointLight_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::PointLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PointLight_constructor'", nullptr); return 0; } cobj = new cocos2d::PointLight(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.PointLight"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PointLight:PointLight",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_PointLight_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_PointLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (PointLight)"); return 0; } int lua_register_cocos2dx_PointLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.PointLight"); tolua_cclass(tolua_S,"PointLight","cc.PointLight","cc.BaseLight",nullptr); tolua_beginmodule(tolua_S,"PointLight"); tolua_function(tolua_S,"new",lua_cocos2dx_PointLight_constructor); tolua_function(tolua_S,"getRange",lua_cocos2dx_PointLight_getRange); tolua_function(tolua_S,"setRange",lua_cocos2dx_PointLight_setRange); tolua_function(tolua_S,"create", lua_cocos2dx_PointLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::PointLight).name(); g_luaType[typeName] = "cc.PointLight"; g_typeCast["PointLight"] = "cc.PointLight"; return 1; } int lua_cocos2dx_SpotLight_getRange(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getRange'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_getRange'", nullptr); return 0; } double ret = cobj->getRange(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getRange",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getRange'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.SpotLight:setDirection"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_setDirection'", nullptr); return 0; } cobj->setDirection(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setDirection",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setDirection'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getCosInnerAngle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_getCosInnerAngle'", nullptr); return 0; } double ret = cobj->getCosInnerAngle(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getCosInnerAngle",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getCosInnerAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getOuterAngle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_getOuterAngle'", nullptr); return 0; } double ret = cobj->getOuterAngle(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getOuterAngle",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getOuterAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getInnerAngle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_getInnerAngle'", nullptr); return 0; } double ret = cobj->getInnerAngle(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getInnerAngle",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getInnerAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getDirection'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_getDirection'", nullptr); return 0; } cocos2d::Vec3 ret = cobj->getDirection(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getDirection",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getDirection'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getCosOuterAngle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_getCosOuterAngle'", nullptr); return 0; } double ret = cobj->getCosOuterAngle(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getCosOuterAngle",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getCosOuterAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setOuterAngle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SpotLight:setOuterAngle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_setOuterAngle'", nullptr); return 0; } cobj->setOuterAngle(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setOuterAngle",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setOuterAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setInnerAngle'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SpotLight:setInnerAngle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_setInnerAngle'", nullptr); return 0; } cobj->setInnerAngle(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setInnerAngle",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setInnerAngle'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_getDirectionInWorld'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_getDirectionInWorld'", nullptr); return 0; } cocos2d::Vec3 ret = cobj->getDirectionInWorld(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:getDirectionInWorld",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_getDirectionInWorld'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_setRange(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpotLight_setRange'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.SpotLight:setRange"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_setRange'", nullptr); return 0; } cobj->setRange(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:setRange",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_setRange'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 6) { cocos2d::Vec3 arg0; cocos2d::Vec3 arg1; cocos2d::Color3B arg2; double arg3; double arg4; double arg5; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.SpotLight:create"); ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.SpotLight:create"); ok &= luaval_to_color3b(tolua_S, 4, &arg2, "cc.SpotLight:create"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.SpotLight:create"); ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.SpotLight:create"); ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.SpotLight:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_create'", nullptr); return 0; } cocos2d::SpotLight* ret = cocos2d::SpotLight::create(arg0, arg1, arg2, arg3, arg4, arg5); object_to_luaval<cocos2d::SpotLight>(tolua_S, "cc.SpotLight",(cocos2d::SpotLight*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpotLight:create",argc, 6); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpotLight_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_constructor'", nullptr); return 0; } cobj = new cocos2d::SpotLight(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SpotLight"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpotLight:SpotLight",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpotLight_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_SpotLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SpotLight)"); return 0; } int lua_register_cocos2dx_SpotLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpotLight"); tolua_cclass(tolua_S,"SpotLight","cc.SpotLight","cc.BaseLight",nullptr); tolua_beginmodule(tolua_S,"SpotLight"); tolua_function(tolua_S,"new",lua_cocos2dx_SpotLight_constructor); tolua_function(tolua_S,"getRange",lua_cocos2dx_SpotLight_getRange); tolua_function(tolua_S,"setDirection",lua_cocos2dx_SpotLight_setDirection); tolua_function(tolua_S,"getCosInnerAngle",lua_cocos2dx_SpotLight_getCosInnerAngle); tolua_function(tolua_S,"getOuterAngle",lua_cocos2dx_SpotLight_getOuterAngle); tolua_function(tolua_S,"getInnerAngle",lua_cocos2dx_SpotLight_getInnerAngle); tolua_function(tolua_S,"getDirection",lua_cocos2dx_SpotLight_getDirection); tolua_function(tolua_S,"getCosOuterAngle",lua_cocos2dx_SpotLight_getCosOuterAngle); tolua_function(tolua_S,"setOuterAngle",lua_cocos2dx_SpotLight_setOuterAngle); tolua_function(tolua_S,"setInnerAngle",lua_cocos2dx_SpotLight_setInnerAngle); tolua_function(tolua_S,"getDirectionInWorld",lua_cocos2dx_SpotLight_getDirectionInWorld); tolua_function(tolua_S,"setRange",lua_cocos2dx_SpotLight_setRange); tolua_function(tolua_S,"create", lua_cocos2dx_SpotLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpotLight).name(); g_luaType[typeName] = "cc.SpotLight"; g_typeCast["SpotLight"] = "cc.SpotLight"; return 1; } int lua_cocos2dx_AmbientLight_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AmbientLight",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.AmbientLight:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AmbientLight_create'", nullptr); return 0; } cocos2d::AmbientLight* ret = cocos2d::AmbientLight::create(arg0); object_to_luaval<cocos2d::AmbientLight>(tolua_S, "cc.AmbientLight",(cocos2d::AmbientLight*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AmbientLight:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AmbientLight_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AmbientLight_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::AmbientLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AmbientLight_constructor'", nullptr); return 0; } cobj = new cocos2d::AmbientLight(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.AmbientLight"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AmbientLight:AmbientLight",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AmbientLight_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_AmbientLight_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AmbientLight)"); return 0; } int lua_register_cocos2dx_AmbientLight(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AmbientLight"); tolua_cclass(tolua_S,"AmbientLight","cc.AmbientLight","cc.BaseLight",nullptr); tolua_beginmodule(tolua_S,"AmbientLight"); tolua_function(tolua_S,"new",lua_cocos2dx_AmbientLight_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_AmbientLight_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AmbientLight).name(); g_luaType[typeName] = "cc.AmbientLight"; g_typeCast["AmbientLight"] = "cc.AmbientLight"; return 1; } int lua_cocos2dx_GLProgram_getFragmentShaderLog(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getFragmentShaderLog'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_getFragmentShaderLog'", nullptr); return 0; } std::string ret = cobj->getFragmentShaderLog(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:getFragmentShaderLog",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getFragmentShaderLog'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_initWithByteArrays(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_initWithByteArrays'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.GLProgram:initWithByteArrays"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } const char* arg1; std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.GLProgram:initWithByteArrays"); arg1 = arg1_tmp.c_str(); if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.GLProgram:initWithByteArrays"); if (!ok) { break; } bool ret = cobj->initWithByteArrays(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.GLProgram:initWithByteArrays"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } const char* arg1; std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.GLProgram:initWithByteArrays"); arg1 = arg1_tmp.c_str(); if (!ok) { break; } bool ret = cobj->initWithByteArrays(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:initWithByteArrays",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_initWithByteArrays'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_initWithFilenames(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_initWithFilenames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:initWithFilenames"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgram:initWithFilenames"); if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.GLProgram:initWithFilenames"); if (!ok) { break; } bool ret = cobj->initWithFilenames(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:initWithFilenames"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgram:initWithFilenames"); if (!ok) { break; } bool ret = cobj->initWithFilenames(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:initWithFilenames",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_initWithFilenames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_use(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_use'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_use'", nullptr); return 0; } cobj->use(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:use",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_use'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_getVertexShaderLog(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getVertexShaderLog'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_getVertexShaderLog'", nullptr); return 0; } std::string ret = cobj->getVertexShaderLog(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:getVertexShaderLog",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getVertexShaderLog'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_setUniformsForBuiltins(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformsForBuiltins'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cobj->setUniformsForBuiltins(); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.GLProgram:setUniformsForBuiltins"); if (!ok) { break; } cobj->setUniformsForBuiltins(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:setUniformsForBuiltins",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformsForBuiltins'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_updateUniforms(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_updateUniforms'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_updateUniforms'", nullptr); return 0; } cobj->updateUniforms(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:updateUniforms",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_updateUniforms'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_setUniformLocationWith1i(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_setUniformLocationWith1i'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { int arg0; int arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.GLProgram:setUniformLocationWith1i"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.GLProgram:setUniformLocationWith1i"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_setUniformLocationWith1i'", nullptr); return 0; } cobj->setUniformLocationWith1i(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:setUniformLocationWith1i",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_setUniformLocationWith1i'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_reset(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_reset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_reset'", nullptr); return 0; } cobj->reset(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:reset",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_reset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_bindAttribLocation(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_bindAttribLocation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; unsigned int arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:bindAttribLocation"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.GLProgram:bindAttribLocation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_bindAttribLocation'", nullptr); return 0; } cobj->bindAttribLocation(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:bindAttribLocation",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_bindAttribLocation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_getAttribLocation(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_getAttribLocation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:getAttribLocation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_getAttribLocation'", nullptr); return 0; } int ret = cobj->getAttribLocation(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:getAttribLocation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_getAttribLocation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_link(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgram*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgram_link'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_link'", nullptr); return 0; } bool ret = cobj->link(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:link",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_link'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_createWithByteArrays(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.GLProgram:createWithByteArrays"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } const char* arg1; std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.GLProgram:createWithByteArrays"); arg1 = arg1_tmp.c_str(); if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.GLProgram:createWithByteArrays"); if (!ok) { break; } cocos2d::GLProgram* ret = cocos2d::GLProgram::createWithByteArrays(arg0, arg1, arg2); object_to_luaval<cocos2d::GLProgram>(tolua_S, "cc.GLProgram",(cocos2d::GLProgram*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.GLProgram:createWithByteArrays"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } const char* arg1; std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "cc.GLProgram:createWithByteArrays"); arg1 = arg1_tmp.c_str(); if (!ok) { break; } cocos2d::GLProgram* ret = cocos2d::GLProgram::createWithByteArrays(arg0, arg1); object_to_luaval<cocos2d::GLProgram>(tolua_S, "cc.GLProgram",(cocos2d::GLProgram*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.GLProgram:createWithByteArrays",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_createWithByteArrays'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_createWithFilenames(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgram",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 3) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:createWithFilenames"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgram:createWithFilenames"); if (!ok) { break; } std::string arg2; ok &= luaval_to_std_string(tolua_S, 4,&arg2, "cc.GLProgram:createWithFilenames"); if (!ok) { break; } cocos2d::GLProgram* ret = cocos2d::GLProgram::createWithFilenames(arg0, arg1, arg2); object_to_luaval<cocos2d::GLProgram>(tolua_S, "cc.GLProgram",(cocos2d::GLProgram*)ret); return 1; } } while (0); ok = true; do { if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgram:createWithFilenames"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgram:createWithFilenames"); if (!ok) { break; } cocos2d::GLProgram* ret = cocos2d::GLProgram::createWithFilenames(arg0, arg1); object_to_luaval<cocos2d::GLProgram>(tolua_S, "cc.GLProgram",(cocos2d::GLProgram*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.GLProgram:createWithFilenames",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_createWithFilenames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgram_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgram* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgram_constructor'", nullptr); return 0; } cobj = new cocos2d::GLProgram(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.GLProgram"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgram:GLProgram",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgram_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_GLProgram_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GLProgram)"); return 0; } int lua_register_cocos2dx_GLProgram(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgram"); tolua_cclass(tolua_S,"GLProgram","cc.GLProgram","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GLProgram"); tolua_function(tolua_S,"new",lua_cocos2dx_GLProgram_constructor); tolua_function(tolua_S,"getFragmentShaderLog",lua_cocos2dx_GLProgram_getFragmentShaderLog); tolua_function(tolua_S,"initWithByteArrays",lua_cocos2dx_GLProgram_initWithByteArrays); tolua_function(tolua_S,"initWithFilenames",lua_cocos2dx_GLProgram_initWithFilenames); tolua_function(tolua_S,"use",lua_cocos2dx_GLProgram_use); tolua_function(tolua_S,"getVertexShaderLog",lua_cocos2dx_GLProgram_getVertexShaderLog); tolua_function(tolua_S,"setUniformsForBuiltins",lua_cocos2dx_GLProgram_setUniformsForBuiltins); tolua_function(tolua_S,"updateUniforms",lua_cocos2dx_GLProgram_updateUniforms); tolua_function(tolua_S,"setUniformLocationI32",lua_cocos2dx_GLProgram_setUniformLocationWith1i); tolua_function(tolua_S,"reset",lua_cocos2dx_GLProgram_reset); tolua_function(tolua_S,"bindAttribLocation",lua_cocos2dx_GLProgram_bindAttribLocation); tolua_function(tolua_S,"getAttribLocation",lua_cocos2dx_GLProgram_getAttribLocation); tolua_function(tolua_S,"link",lua_cocos2dx_GLProgram_link); tolua_function(tolua_S,"createWithByteArrays", lua_cocos2dx_GLProgram_createWithByteArrays); tolua_function(tolua_S,"createWithFilenames", lua_cocos2dx_GLProgram_createWithFilenames); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLProgram).name(); g_luaType[typeName] = "cc.GLProgram"; g_typeCast["GLProgram"] = "cc.GLProgram"; return 1; } int lua_cocos2dx_GLProgramCache_reloadDefaultGLProgramsRelativeToLights(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLProgramsRelativeToLights'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLProgramsRelativeToLights'", nullptr); return 0; } cobj->reloadDefaultGLProgramsRelativeToLights(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:reloadDefaultGLProgramsRelativeToLights",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLProgramsRelativeToLights'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramCache_addGLProgram(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_addGLProgram'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::GLProgram* arg0; std::string arg1; ok &= luaval_to_object<cocos2d::GLProgram>(tolua_S, 2, "cc.GLProgram",&arg0, "cc.GLProgramCache:addGLProgram"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.GLProgramCache:addGLProgram"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramCache_addGLProgram'", nullptr); return 0; } cobj->addGLProgram(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:addGLProgram",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_addGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms'", nullptr); return 0; } cobj->reloadDefaultGLPrograms(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:reloadDefaultGLPrograms",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms'", nullptr); return 0; } cobj->loadDefaultGLPrograms(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:loadDefaultGLPrograms",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramCache_getGLProgram(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::GLProgramCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_GLProgramCache_getGLProgram'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLProgramCache:getGLProgram"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramCache_getGLProgram'", nullptr); return 0; } cocos2d::GLProgram* ret = cobj->getGLProgram(arg0); object_to_luaval<cocos2d::GLProgram>(tolua_S, "cc.GLProgram",(cocos2d::GLProgram*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:getGLProgram",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_getGLProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramCache_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramCache_destroyInstance'", nullptr); return 0; } cocos2d::GLProgramCache::destroyInstance(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramCache:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramCache_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLProgramCache",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramCache_getInstance'", nullptr); return 0; } cocos2d::GLProgramCache* ret = cocos2d::GLProgramCache::getInstance(); object_to_luaval<cocos2d::GLProgramCache>(tolua_S, "cc.GLProgramCache",(cocos2d::GLProgramCache*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLProgramCache:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_getInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLProgramCache_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::GLProgramCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLProgramCache_constructor'", nullptr); return 0; } cobj = new cocos2d::GLProgramCache(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.GLProgramCache"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GLProgramCache:GLProgramCache",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLProgramCache_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_GLProgramCache_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GLProgramCache)"); return 0; } int lua_register_cocos2dx_GLProgramCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLProgramCache"); tolua_cclass(tolua_S,"GLProgramCache","cc.GLProgramCache","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"GLProgramCache"); tolua_function(tolua_S,"new",lua_cocos2dx_GLProgramCache_constructor); tolua_function(tolua_S,"reloadDefaultGLProgramsRelativeToLights",lua_cocos2dx_GLProgramCache_reloadDefaultGLProgramsRelativeToLights); tolua_function(tolua_S,"addGLProgram",lua_cocos2dx_GLProgramCache_addGLProgram); tolua_function(tolua_S,"reloadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_reloadDefaultGLPrograms); tolua_function(tolua_S,"loadDefaultGLPrograms",lua_cocos2dx_GLProgramCache_loadDefaultGLPrograms); tolua_function(tolua_S,"getGLProgram",lua_cocos2dx_GLProgramCache_getGLProgram); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_GLProgramCache_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_GLProgramCache_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLProgramCache).name(); g_luaType[typeName] = "cc.GLProgramCache"; g_typeCast["GLProgramCache"] = "cc.GLProgramCache"; return 1; } int lua_cocos2dx_RenderState_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::RenderState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderState_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.RenderState:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderState_setTexture'", nullptr); return 0; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderState:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderState_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderState_getTopmost(lua_State* tolua_S) { int argc = 0; cocos2d::RenderState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderState_getTopmost'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::RenderState* arg0; ok &= luaval_to_object<cocos2d::RenderState>(tolua_S, 2, "cc.RenderState",&arg0, "cc.RenderState:getTopmost"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderState_getTopmost'", nullptr); return 0; } cocos2d::RenderState* ret = cobj->getTopmost(arg0); object_to_luaval<cocos2d::RenderState>(tolua_S, "cc.RenderState",(cocos2d::RenderState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderState:getTopmost",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderState_getTopmost'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderState_getTexture(lua_State* tolua_S) { int argc = 0; cocos2d::RenderState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderState_getTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderState_getTexture'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTexture(); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderState:getTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderState_getTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderState_bind(lua_State* tolua_S) { int argc = 0; cocos2d::RenderState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderState_bind'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Pass* arg0; ok &= luaval_to_object<cocos2d::Pass>(tolua_S, 2, "cc.Pass",&arg0, "cc.RenderState:bind"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderState_bind'", nullptr); return 0; } cobj->bind(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderState:bind",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderState_bind'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderState_getName(lua_State* tolua_S) { int argc = 0; cocos2d::RenderState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderState_getName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderState_getName'", nullptr); return 0; } std::string ret = cobj->getName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderState:getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderState_getName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderState_getStateBlock(lua_State* tolua_S) { int argc = 0; cocos2d::RenderState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderState_getStateBlock'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderState_getStateBlock'", nullptr); return 0; } cocos2d::RenderState::StateBlock* ret = cobj->getStateBlock(); object_to_luaval<cocos2d::RenderState::StateBlock>(tolua_S, "cc.RenderState::StateBlock",(cocos2d::RenderState::StateBlock*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderState:getStateBlock",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderState_getStateBlock'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderState_setParent(lua_State* tolua_S) { int argc = 0; cocos2d::RenderState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::RenderState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_RenderState_setParent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::RenderState* arg0; ok &= luaval_to_object<cocos2d::RenderState>(tolua_S, 2, "cc.RenderState",&arg0, "cc.RenderState:setParent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderState_setParent'", nullptr); return 0; } cobj->setParent(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderState:setParent",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderState_setParent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_RenderState_initialize(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderState_initialize'", nullptr); return 0; } cocos2d::RenderState::initialize(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.RenderState:initialize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_RenderState_initialize'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_RenderState_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (RenderState)"); return 0; } int lua_register_cocos2dx_RenderState(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.RenderState"); tolua_cclass(tolua_S,"RenderState","cc.RenderState","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"RenderState"); tolua_function(tolua_S,"setTexture",lua_cocos2dx_RenderState_setTexture); tolua_function(tolua_S,"getTopmost",lua_cocos2dx_RenderState_getTopmost); tolua_function(tolua_S,"getTexture",lua_cocos2dx_RenderState_getTexture); tolua_function(tolua_S,"bind",lua_cocos2dx_RenderState_bind); tolua_function(tolua_S,"getName",lua_cocos2dx_RenderState_getName); tolua_function(tolua_S,"getStateBlock",lua_cocos2dx_RenderState_getStateBlock); tolua_function(tolua_S,"setParent",lua_cocos2dx_RenderState_setParent); tolua_function(tolua_S,"initialize", lua_cocos2dx_RenderState_initialize); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::RenderState).name(); g_luaType[typeName] = "cc.RenderState"; g_typeCast["RenderState"] = "cc.RenderState"; return 1; } int lua_cocos2dx_Pass_unbind(lua_State* tolua_S) { int argc = 0; cocos2d::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Pass_unbind'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_unbind'", nullptr); return 0; } cobj->unbind(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:unbind",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Pass_unbind'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Pass_bind(lua_State* tolua_S) { int argc = 0; cocos2d::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Pass_bind'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Pass:bind"); if (!ok) { break; } bool arg1; ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Pass:bind"); if (!ok) { break; } cobj->bind(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { cocos2d::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Pass:bind"); if (!ok) { break; } cobj->bind(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:bind",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Pass_bind'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Pass_clone(lua_State* tolua_S) { int argc = 0; cocos2d::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Pass_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_clone'", nullptr); return 0; } cocos2d::Pass* ret = cobj->clone(); object_to_luaval<cocos2d::Pass>(tolua_S, "cc.Pass",(cocos2d::Pass*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:clone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Pass_clone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Pass_getGLProgramState(lua_State* tolua_S) { int argc = 0; cocos2d::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Pass_getGLProgramState'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_getGLProgramState'", nullptr); return 0; } cocos2d::GLProgramState* ret = cobj->getGLProgramState(); object_to_luaval<cocos2d::GLProgramState>(tolua_S, "cc.GLProgramState",(cocos2d::GLProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:getGLProgramState",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Pass_getGLProgramState'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Pass_getVertexAttributeBinding(lua_State* tolua_S) { int argc = 0; cocos2d::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Pass_getVertexAttributeBinding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_getVertexAttributeBinding'", nullptr); return 0; } cocos2d::VertexAttribBinding* ret = cobj->getVertexAttributeBinding(); object_to_luaval<cocos2d::VertexAttribBinding>(tolua_S, "cc.VertexAttribBinding",(cocos2d::VertexAttribBinding*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:getVertexAttributeBinding",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Pass_getVertexAttributeBinding'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Pass_getHash(lua_State* tolua_S) { int argc = 0; cocos2d::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Pass_getHash'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_getHash'", nullptr); return 0; } unsigned int ret = cobj->getHash(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:getHash",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Pass_getHash'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Pass_setVertexAttribBinding(lua_State* tolua_S) { int argc = 0; cocos2d::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Pass_setVertexAttribBinding'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::VertexAttribBinding* arg0; ok &= luaval_to_object<cocos2d::VertexAttribBinding>(tolua_S, 2, "cc.VertexAttribBinding",&arg0, "cc.Pass:setVertexAttribBinding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_setVertexAttribBinding'", nullptr); return 0; } cobj->setVertexAttribBinding(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:setVertexAttribBinding",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Pass_setVertexAttribBinding'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Pass_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Technique* arg0; ok &= luaval_to_object<cocos2d::Technique>(tolua_S, 2, "cc.Technique",&arg0, "cc.Pass:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_create'", nullptr); return 0; } cocos2d::Pass* ret = cocos2d::Pass::create(arg0); object_to_luaval<cocos2d::Pass>(tolua_S, "cc.Pass",(cocos2d::Pass*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Pass:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Pass_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Pass_createWithGLProgramState(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::Technique* arg0; cocos2d::GLProgramState* arg1; ok &= luaval_to_object<cocos2d::Technique>(tolua_S, 2, "cc.Technique",&arg0, "cc.Pass:createWithGLProgramState"); ok &= luaval_to_object<cocos2d::GLProgramState>(tolua_S, 3, "cc.GLProgramState",&arg1, "cc.Pass:createWithGLProgramState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_createWithGLProgramState'", nullptr); return 0; } cocos2d::Pass* ret = cocos2d::Pass::createWithGLProgramState(arg0, arg1); object_to_luaval<cocos2d::Pass>(tolua_S, "cc.Pass",(cocos2d::Pass*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Pass:createWithGLProgramState",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Pass_createWithGLProgramState'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Pass_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Pass)"); return 0; } int lua_register_cocos2dx_Pass(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Pass"); tolua_cclass(tolua_S,"Pass","cc.Pass","cc.RenderState",nullptr); tolua_beginmodule(tolua_S,"Pass"); tolua_function(tolua_S,"unbind",lua_cocos2dx_Pass_unbind); tolua_function(tolua_S,"bind",lua_cocos2dx_Pass_bind); tolua_function(tolua_S,"clone",lua_cocos2dx_Pass_clone); tolua_function(tolua_S,"getGLProgramState",lua_cocos2dx_Pass_getGLProgramState); tolua_function(tolua_S,"getVertexAttributeBinding",lua_cocos2dx_Pass_getVertexAttributeBinding); tolua_function(tolua_S,"getHash",lua_cocos2dx_Pass_getHash); tolua_function(tolua_S,"setVertexAttribBinding",lua_cocos2dx_Pass_setVertexAttribBinding); tolua_function(tolua_S,"create", lua_cocos2dx_Pass_create); tolua_function(tolua_S,"createWithGLProgramState", lua_cocos2dx_Pass_createWithGLProgramState); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Pass).name(); g_luaType[typeName] = "cc.Pass"; g_typeCast["Pass"] = "cc.Pass"; return 1; } int lua_cocos2dx_Technique_getPassCount(lua_State* tolua_S) { int argc = 0; cocos2d::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Technique_getPassCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_getPassCount'", nullptr); return 0; } ssize_t ret = cobj->getPassCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Technique:getPassCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Technique_getPassCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Technique_clone(lua_State* tolua_S) { int argc = 0; cocos2d::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Technique_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_clone'", nullptr); return 0; } cocos2d::Technique* ret = cobj->clone(); object_to_luaval<cocos2d::Technique>(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Technique:clone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Technique_clone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Technique_addPass(lua_State* tolua_S) { int argc = 0; cocos2d::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Technique_addPass'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Pass* arg0; ok &= luaval_to_object<cocos2d::Pass>(tolua_S, 2, "cc.Pass",&arg0, "cc.Technique:addPass"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_addPass'", nullptr); return 0; } cobj->addPass(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Technique:addPass",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Technique_addPass'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Technique_getPasses(lua_State* tolua_S) { int argc = 0; cocos2d::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Technique_getPasses'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_getPasses'", nullptr); return 0; } const cocos2d::Vector<cocos2d::Pass *>& ret = cobj->getPasses(); ccvector_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Technique:getPasses",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Technique_getPasses'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Technique_getName(lua_State* tolua_S) { int argc = 0; cocos2d::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Technique_getName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_getName'", nullptr); return 0; } std::string ret = cobj->getName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Technique:getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Technique_getName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Technique_getPassByIndex(lua_State* tolua_S) { int argc = 0; cocos2d::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Technique_getPassByIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.Technique:getPassByIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_getPassByIndex'", nullptr); return 0; } cocos2d::Pass* ret = cobj->getPassByIndex(arg0); object_to_luaval<cocos2d::Pass>(tolua_S, "cc.Pass",(cocos2d::Pass*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Technique:getPassByIndex",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Technique_getPassByIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Technique_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Material* arg0; ok &= luaval_to_object<cocos2d::Material>(tolua_S, 2, "cc.Material",&arg0, "cc.Technique:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_create'", nullptr); return 0; } cocos2d::Technique* ret = cocos2d::Technique::create(arg0); object_to_luaval<cocos2d::Technique>(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Technique:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Technique_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Technique_createWithGLProgramState(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { cocos2d::Material* arg0; cocos2d::GLProgramState* arg1; ok &= luaval_to_object<cocos2d::Material>(tolua_S, 2, "cc.Material",&arg0, "cc.Technique:createWithGLProgramState"); ok &= luaval_to_object<cocos2d::GLProgramState>(tolua_S, 3, "cc.GLProgramState",&arg1, "cc.Technique:createWithGLProgramState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_createWithGLProgramState'", nullptr); return 0; } cocos2d::Technique* ret = cocos2d::Technique::createWithGLProgramState(arg0, arg1); object_to_luaval<cocos2d::Technique>(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Technique:createWithGLProgramState",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Technique_createWithGLProgramState'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Technique_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Technique)"); return 0; } int lua_register_cocos2dx_Technique(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Technique"); tolua_cclass(tolua_S,"Technique","cc.Technique","cc.RenderState",nullptr); tolua_beginmodule(tolua_S,"Technique"); tolua_function(tolua_S,"getPassCount",lua_cocos2dx_Technique_getPassCount); tolua_function(tolua_S,"clone",lua_cocos2dx_Technique_clone); tolua_function(tolua_S,"addPass",lua_cocos2dx_Technique_addPass); tolua_function(tolua_S,"getPasses",lua_cocos2dx_Technique_getPasses); tolua_function(tolua_S,"getName",lua_cocos2dx_Technique_getName); tolua_function(tolua_S,"getPassByIndex",lua_cocos2dx_Technique_getPassByIndex); tolua_function(tolua_S,"create", lua_cocos2dx_Technique_create); tolua_function(tolua_S,"createWithGLProgramState", lua_cocos2dx_Technique_createWithGLProgramState); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Technique).name(); g_luaType[typeName] = "cc.Technique"; g_typeCast["Technique"] = "cc.Technique"; return 1; } int lua_cocos2dx_Material_clone(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_clone'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_clone'", nullptr); return 0; } cocos2d::Material* ret = cobj->clone(); object_to_luaval<cocos2d::Material>(tolua_S, "cc.Material",(cocos2d::Material*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:clone",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_clone'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_getTechniqueCount(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_getTechniqueCount'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getTechniqueCount'", nullptr); return 0; } ssize_t ret = cobj->getTechniqueCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getTechniqueCount",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_getTechniqueCount'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_setName(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_setName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Material:setName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_setName'", nullptr); return 0; } cobj->setName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:setName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_setName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_getTechniqueByIndex(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_getTechniqueByIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { ssize_t arg0; ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.Material:getTechniqueByIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getTechniqueByIndex'", nullptr); return 0; } cocos2d::Technique* ret = cobj->getTechniqueByIndex(arg0); object_to_luaval<cocos2d::Technique>(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getTechniqueByIndex",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_getTechniqueByIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_getName(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_getName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getName'", nullptr); return 0; } std::string ret = cobj->getName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_getName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_getTechniques(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_getTechniques'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getTechniques'", nullptr); return 0; } const cocos2d::Vector<cocos2d::Technique *>& ret = cobj->getTechniques(); ccvector_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getTechniques",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_getTechniques'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_setTechnique(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_setTechnique'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Material:setTechnique"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_setTechnique'", nullptr); return 0; } cobj->setTechnique(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:setTechnique",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_setTechnique'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_getTechniqueByName(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_getTechniqueByName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Material:getTechniqueByName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getTechniqueByName'", nullptr); return 0; } cocos2d::Technique* ret = cobj->getTechniqueByName(arg0); object_to_luaval<cocos2d::Technique>(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getTechniqueByName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_getTechniqueByName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_addTechnique(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_addTechnique'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Technique* arg0; ok &= luaval_to_object<cocos2d::Technique>(tolua_S, 2, "cc.Technique",&arg0, "cc.Material:addTechnique"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_addTechnique'", nullptr); return 0; } cobj->addTechnique(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:addTechnique",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_addTechnique'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_getTechnique(lua_State* tolua_S) { int argc = 0; cocos2d::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Material_getTechnique'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getTechnique'", nullptr); return 0; } cocos2d::Technique* ret = cobj->getTechnique(); object_to_luaval<cocos2d::Technique>(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getTechnique",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_getTechnique'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_createWithFilename(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Material:createWithFilename"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_createWithFilename'", nullptr); return 0; } cocos2d::Material* ret = cocos2d::Material::createWithFilename(arg0); object_to_luaval<cocos2d::Material>(tolua_S, "cc.Material",(cocos2d::Material*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Material:createWithFilename",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_createWithFilename'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_createWithGLStateProgram(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::GLProgramState* arg0; ok &= luaval_to_object<cocos2d::GLProgramState>(tolua_S, 2, "cc.GLProgramState",&arg0, "cc.Material:createWithGLStateProgram"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_createWithGLStateProgram'", nullptr); return 0; } cocos2d::Material* ret = cocos2d::Material::createWithGLStateProgram(arg0); object_to_luaval<cocos2d::Material>(tolua_S, "cc.Material",(cocos2d::Material*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Material:createWithGLStateProgram",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_createWithGLStateProgram'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Material_createWithProperties(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Properties* arg0; ok &= luaval_to_object<cocos2d::Properties>(tolua_S, 2, "cc.Properties",&arg0, "cc.Material:createWithProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_createWithProperties'", nullptr); return 0; } cocos2d::Material* ret = cocos2d::Material::createWithProperties(arg0); object_to_luaval<cocos2d::Material>(tolua_S, "cc.Material",(cocos2d::Material*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Material:createWithProperties",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Material_createWithProperties'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Material_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Material)"); return 0; } int lua_register_cocos2dx_Material(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Material"); tolua_cclass(tolua_S,"Material","cc.Material","cc.RenderState",nullptr); tolua_beginmodule(tolua_S,"Material"); tolua_function(tolua_S,"clone",lua_cocos2dx_Material_clone); tolua_function(tolua_S,"getTechniqueCount",lua_cocos2dx_Material_getTechniqueCount); tolua_function(tolua_S,"setName",lua_cocos2dx_Material_setName); tolua_function(tolua_S,"getTechniqueByIndex",lua_cocos2dx_Material_getTechniqueByIndex); tolua_function(tolua_S,"getName",lua_cocos2dx_Material_getName); tolua_function(tolua_S,"getTechniques",lua_cocos2dx_Material_getTechniques); tolua_function(tolua_S,"setTechnique",lua_cocos2dx_Material_setTechnique); tolua_function(tolua_S,"getTechniqueByName",lua_cocos2dx_Material_getTechniqueByName); tolua_function(tolua_S,"addTechnique",lua_cocos2dx_Material_addTechnique); tolua_function(tolua_S,"getTechnique",lua_cocos2dx_Material_getTechnique); tolua_function(tolua_S,"createWithFilename", lua_cocos2dx_Material_createWithFilename); tolua_function(tolua_S,"createWithGLStateProgram", lua_cocos2dx_Material_createWithGLStateProgram); tolua_function(tolua_S,"createWithProperties", lua_cocos2dx_Material_createWithProperties); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Material).name(); g_luaType[typeName] = "cc.Material"; g_typeCast["Material"] = "cc.Material"; return 1; } int lua_cocos2dx_TextureCache_reloadTexture(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_reloadTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:reloadTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_reloadTexture'", nullptr); return 0; } bool ret = cobj->reloadTexture(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:reloadTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_reloadTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_unbindAllImageAsync'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_unbindAllImageAsync'", nullptr); return 0; } cobj->unbindAllImageAsync(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:unbindAllImageAsync",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_unbindAllImageAsync'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeTextureForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:removeTextureForKey"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_removeTextureForKey'", nullptr); return 0; } cobj->removeTextureForKey(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeTextureForKey",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeTextureForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeAllTextures'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_removeAllTextures'", nullptr); return 0; } cobj->removeAllTextures(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeAllTextures",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeAllTextures'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getDescription'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_getDescription'", nullptr); return 0; } std::string ret = cobj->getDescription(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getDescription",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getDescription'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getCachedTextureInfo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_getCachedTextureInfo'", nullptr); return 0; } std::string ret = cobj->getCachedTextureInfo(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getCachedTextureInfo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getCachedTextureInfo'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_addImage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { cocos2d::Image* arg0; ok &= luaval_to_object<cocos2d::Image>(tolua_S, 2, "cc.Image",&arg0, "cc.TextureCache:addImage"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TextureCache:addImage"); if (!ok) { break; } cocos2d::Texture2D* ret = cobj->addImage(arg0, arg1); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } }while(0); ok = true; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:addImage"); if (!ok) { break; } cocos2d::Texture2D* ret = cobj->addImage(arg0); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:addImage",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_addImage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_unbindImageAsync'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:unbindImageAsync"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_unbindImageAsync'", nullptr); return 0; } cobj->unbindImageAsync(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:unbindImageAsync",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_unbindImageAsync'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getTextureForKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:getTextureForKey"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_getTextureForKey'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTextureForKey(arg0); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getTextureForKey",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getTextureForKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_getTextureFilePath(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_getTextureFilePath'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.TextureCache:getTextureFilePath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_getTextureFilePath'", nullptr); return 0; } std::string ret = cobj->getTextureFilePath(arg0); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getTextureFilePath",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_getTextureFilePath'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_renameTextureWithKey(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_renameTextureWithKey'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:renameTextureWithKey"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TextureCache:renameTextureWithKey"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_renameTextureWithKey'", nullptr); return 0; } cobj->renameTextureWithKey(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:renameTextureWithKey",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_renameTextureWithKey'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeUnusedTextures'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_removeUnusedTextures'", nullptr); return 0; } cobj->removeUnusedTextures(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeUnusedTextures",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeUnusedTextures'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_removeTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.TextureCache:removeTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_removeTexture'", nullptr); return 0; } cobj->removeTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:removeTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_removeTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_waitForQuit(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TextureCache_waitForQuit'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_waitForQuit'", nullptr); return 0; } cobj->waitForQuit(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:waitForQuit",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_waitForQuit'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_setETC1AlphaFileSuffix(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TextureCache:setETC1AlphaFileSuffix"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_setETC1AlphaFileSuffix'", nullptr); return 0; } cocos2d::TextureCache::setETC1AlphaFileSuffix(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TextureCache:setETC1AlphaFileSuffix",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_setETC1AlphaFileSuffix'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TextureCache_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_constructor'", nullptr); return 0; } cobj = new cocos2d::TextureCache(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TextureCache"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:TextureCache",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TextureCache_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TextureCache_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TextureCache)"); return 0; } int lua_register_cocos2dx_TextureCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TextureCache"); tolua_cclass(tolua_S,"TextureCache","cc.TextureCache","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TextureCache"); tolua_function(tolua_S,"new",lua_cocos2dx_TextureCache_constructor); tolua_function(tolua_S,"reloadTexture",lua_cocos2dx_TextureCache_reloadTexture); tolua_function(tolua_S,"unbindAllImageAsync",lua_cocos2dx_TextureCache_unbindAllImageAsync); tolua_function(tolua_S,"removeTextureForKey",lua_cocos2dx_TextureCache_removeTextureForKey); tolua_function(tolua_S,"removeAllTextures",lua_cocos2dx_TextureCache_removeAllTextures); tolua_function(tolua_S,"getDescription",lua_cocos2dx_TextureCache_getDescription); tolua_function(tolua_S,"getCachedTextureInfo",lua_cocos2dx_TextureCache_getCachedTextureInfo); tolua_function(tolua_S,"addImage",lua_cocos2dx_TextureCache_addImage); tolua_function(tolua_S,"unbindImageAsync",lua_cocos2dx_TextureCache_unbindImageAsync); tolua_function(tolua_S,"getTextureForKey",lua_cocos2dx_TextureCache_getTextureForKey); tolua_function(tolua_S,"getTextureFilePath",lua_cocos2dx_TextureCache_getTextureFilePath); tolua_function(tolua_S,"renameTextureWithKey",lua_cocos2dx_TextureCache_renameTextureWithKey); tolua_function(tolua_S,"removeUnusedTextures",lua_cocos2dx_TextureCache_removeUnusedTextures); tolua_function(tolua_S,"removeTexture",lua_cocos2dx_TextureCache_removeTexture); tolua_function(tolua_S,"waitForQuit",lua_cocos2dx_TextureCache_waitForQuit); tolua_function(tolua_S,"setETC1AlphaFileSuffix", lua_cocos2dx_TextureCache_setETC1AlphaFileSuffix); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TextureCache).name(); g_luaType[typeName] = "cc.TextureCache"; g_typeCast["TextureCache"] = "cc.TextureCache"; return 1; } int lua_cocos2dx_Device_setAccelerometerEnabled(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Device:setAccelerometerEnabled"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_setAccelerometerEnabled'", nullptr); return 0; } cocos2d::Device::setAccelerometerEnabled(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:setAccelerometerEnabled",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_setAccelerometerEnabled'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Device_setAccelerometerInterval(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Device:setAccelerometerInterval"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_setAccelerometerInterval'", nullptr); return 0; } cocos2d::Device::setAccelerometerInterval(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:setAccelerometerInterval",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_setAccelerometerInterval'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Device_setKeepScreenOn(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.Device:setKeepScreenOn"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_setKeepScreenOn'", nullptr); return 0; } cocos2d::Device::setKeepScreenOn(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:setKeepScreenOn",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_setKeepScreenOn'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Device_vibrate(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Device:vibrate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_vibrate'", nullptr); return 0; } cocos2d::Device::vibrate(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:vibrate",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_vibrate'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Device_getDPI(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Device",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_getDPI'", nullptr); return 0; } int ret = cocos2d::Device::getDPI(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Device:getDPI",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Device_getDPI'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Device_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Device)"); return 0; } int lua_register_cocos2dx_Device(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Device"); tolua_cclass(tolua_S,"Device","cc.Device","",nullptr); tolua_beginmodule(tolua_S,"Device"); tolua_function(tolua_S,"setAccelerometerEnabled", lua_cocos2dx_Device_setAccelerometerEnabled); tolua_function(tolua_S,"setAccelerometerInterval", lua_cocos2dx_Device_setAccelerometerInterval); tolua_function(tolua_S,"setKeepScreenOn", lua_cocos2dx_Device_setKeepScreenOn); tolua_function(tolua_S,"vibrate", lua_cocos2dx_Device_vibrate); tolua_function(tolua_S,"getDPI", lua_cocos2dx_Device_getDPI); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Device).name(); g_luaType[typeName] = "cc.Device"; g_typeCast["Device"] = "cc.Device"; return 1; } int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) { int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getTargetPlatform'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Application_getTargetPlatform'", nullptr); return 0; } int ret = (int)cobj->getTargetPlatform(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getTargetPlatform",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getTargetPlatform'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) { int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getCurrentLanguage'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Application_getCurrentLanguage'", nullptr); return 0; } int ret = (int)cobj->getCurrentLanguage(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getCurrentLanguage",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getCurrentLanguage'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) { int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getCurrentLanguageCode'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Application_getCurrentLanguageCode'", nullptr); return 0; } const char* ret = cobj->getCurrentLanguageCode(); tolua_pushstring(tolua_S,(const char*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getCurrentLanguageCode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getCurrentLanguageCode'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Application_openURL(lua_State* tolua_S) { int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_openURL'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.Application:openURL"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Application_openURL'", nullptr); return 0; } bool ret = cobj->openURL(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:openURL",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_openURL'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Application_getVersion(lua_State* tolua_S) { int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_getVersion'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Application_getVersion'", nullptr); return 0; } std::string ret = cobj->getVersion(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:getVersion",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getVersion'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Application_setAnimationInterval(lua_State* tolua_S) { int argc = 0; cocos2d::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_Application_setAnimationInterval'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Application:setAnimationInterval"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Application_setAnimationInterval'", nullptr); return 0; } cobj->setAnimationInterval(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Application:setAnimationInterval",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_setAnimationInterval'.",&tolua_err); #endif return 0; } int lua_cocos2dx_Application_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Application_getInstance'", nullptr); return 0; } cocos2d::Application* ret = cocos2d::Application::getInstance(); object_to_luaval<cocos2d::Application>(tolua_S, "cc.Application",(cocos2d::Application*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Application:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_Application_getInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_Application_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Application)"); return 0; } int lua_register_cocos2dx_Application(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.Application"); tolua_cclass(tolua_S,"Application","cc.Application","",nullptr); tolua_beginmodule(tolua_S,"Application"); tolua_function(tolua_S,"getTargetPlatform",lua_cocos2dx_Application_getTargetPlatform); tolua_function(tolua_S,"getCurrentLanguage",lua_cocos2dx_Application_getCurrentLanguage); tolua_function(tolua_S,"getCurrentLanguageCode",lua_cocos2dx_Application_getCurrentLanguageCode); tolua_function(tolua_S,"openURL",lua_cocos2dx_Application_openURL); tolua_function(tolua_S,"getVersion",lua_cocos2dx_Application_getVersion); tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Application_setAnimationInterval); tolua_function(tolua_S,"getInstance", lua_cocos2dx_Application_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::Application).name(); g_luaType[typeName] = "cc.Application"; g_typeCast["Application"] = "cc.Application"; return 1; } int lua_cocos2dx_GLViewImpl_createWithRect(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLViewImpl",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { std::string arg0; cocos2d::Rect arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLViewImpl:createWithRect"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.GLViewImpl:createWithRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLViewImpl_createWithRect'", nullptr); return 0; } cocos2d::GLViewImpl* ret = cocos2d::GLViewImpl::createWithRect(arg0, arg1); object_to_luaval<cocos2d::GLViewImpl>(tolua_S, "cc.GLViewImpl",(cocos2d::GLViewImpl*)ret); return 1; } if (argc == 3) { std::string arg0; cocos2d::Rect arg1; double arg2; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLViewImpl:createWithRect"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.GLViewImpl:createWithRect"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.GLViewImpl:createWithRect"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLViewImpl_createWithRect'", nullptr); return 0; } cocos2d::GLViewImpl* ret = cocos2d::GLViewImpl::createWithRect(arg0, arg1, arg2); object_to_luaval<cocos2d::GLViewImpl>(tolua_S, "cc.GLViewImpl",(cocos2d::GLViewImpl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:createWithRect",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLViewImpl_createWithRect'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLViewImpl_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLViewImpl",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLViewImpl:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLViewImpl_create'", nullptr); return 0; } cocos2d::GLViewImpl* ret = cocos2d::GLViewImpl::create(arg0); object_to_luaval<cocos2d::GLViewImpl>(tolua_S, "cc.GLViewImpl",(cocos2d::GLViewImpl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLViewImpl_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_GLViewImpl_createWithFullScreen(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.GLViewImpl",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.GLViewImpl:createWithFullScreen"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLViewImpl_createWithFullScreen'", nullptr); return 0; } cocos2d::GLViewImpl* ret = cocos2d::GLViewImpl::createWithFullScreen(arg0); object_to_luaval<cocos2d::GLViewImpl>(tolua_S, "cc.GLViewImpl",(cocos2d::GLViewImpl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:createWithFullScreen",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_GLViewImpl_createWithFullScreen'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_GLViewImpl_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (GLViewImpl)"); return 0; } int lua_register_cocos2dx_GLViewImpl(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.GLViewImpl"); tolua_cclass(tolua_S,"GLViewImpl","cc.GLViewImpl","cc.GLView",nullptr); tolua_beginmodule(tolua_S,"GLViewImpl"); tolua_function(tolua_S,"createWithRect", lua_cocos2dx_GLViewImpl_createWithRect); tolua_function(tolua_S,"create", lua_cocos2dx_GLViewImpl_create); tolua_function(tolua_S,"createWithFullScreen", lua_cocos2dx_GLViewImpl_createWithFullScreen); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::GLViewImpl).name(); g_luaType[typeName] = "cc.GLViewImpl"; g_typeCast["GLViewImpl"] = "cc.GLViewImpl"; return 1; } int lua_cocos2dx_AnimationCache_getAnimation(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_getAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AnimationCache:getAnimation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_getAnimation'", nullptr); return 0; } cocos2d::Animation* ret = cobj->getAnimation(arg0); object_to_luaval<cocos2d::Animation>(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:getAnimation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_getAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_addAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Animation* arg0; std::string arg1; ok &= luaval_to_object<cocos2d::Animation>(tolua_S, 2, "cc.Animation",&arg0, "cc.AnimationCache:addAnimation"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.AnimationCache:addAnimation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_addAnimation'", nullptr); return 0; } cobj->addAnimation(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:addAnimation",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_addAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_addAnimationsWithDictionary'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::ValueMap arg0; std::string arg1; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.AnimationCache:addAnimationsWithDictionary"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.AnimationCache:addAnimationsWithDictionary"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_addAnimationsWithDictionary'", nullptr); return 0; } cobj->addAnimationsWithDictionary(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:addAnimationsWithDictionary",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_addAnimationsWithDictionary'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_removeAnimation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AnimationCache:removeAnimation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_removeAnimation'", nullptr); return 0; } cobj->removeAnimation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:removeAnimation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_removeAnimation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_AnimationCache_addAnimationsWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.AnimationCache:addAnimationsWithFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_addAnimationsWithFile'", nullptr); return 0; } cobj->addAnimationsWithFile(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:addAnimationsWithFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_addAnimationsWithFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationCache_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_destroyInstance'", nullptr); return 0; } cocos2d::AnimationCache::destroyInstance(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationCache:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationCache_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_getInstance'", nullptr); return 0; } cocos2d::AnimationCache* ret = cocos2d::AnimationCache::getInstance(); object_to_luaval<cocos2d::AnimationCache>(tolua_S, "cc.AnimationCache",(cocos2d::AnimationCache*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationCache:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_getInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_AnimationCache_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_constructor'", nullptr); return 0; } cobj = new cocos2d::AnimationCache(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.AnimationCache"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:AnimationCache",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_AnimationCache_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_AnimationCache_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (AnimationCache)"); return 0; } int lua_register_cocos2dx_AnimationCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.AnimationCache"); tolua_cclass(tolua_S,"AnimationCache","cc.AnimationCache","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"AnimationCache"); tolua_function(tolua_S,"new",lua_cocos2dx_AnimationCache_constructor); tolua_function(tolua_S,"getAnimation",lua_cocos2dx_AnimationCache_getAnimation); tolua_function(tolua_S,"addAnimation",lua_cocos2dx_AnimationCache_addAnimation); tolua_function(tolua_S,"init",lua_cocos2dx_AnimationCache_init); tolua_function(tolua_S,"addAnimationsWithDictionary",lua_cocos2dx_AnimationCache_addAnimationsWithDictionary); tolua_function(tolua_S,"removeAnimation",lua_cocos2dx_AnimationCache_removeAnimation); tolua_function(tolua_S,"addAnimations",lua_cocos2dx_AnimationCache_addAnimationsWithFile); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_AnimationCache_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_AnimationCache_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::AnimationCache).name(); g_luaType[typeName] = "cc.AnimationCache"; g_typeCast["AnimationCache"] = "cc.AnimationCache"; return 1; } int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_appendChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Sprite* arg0; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:appendChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_appendChild'", nullptr); return 0; } cobj->appendChild(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:appendChild",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_appendChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_reorderBatch'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteBatchNode:reorderBatch"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_reorderBatch'", nullptr); return 0; } cobj->reorderBatch(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:reorderBatch",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_reorderBatch'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_getTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getTexture'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTexture(); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_setTexture'", nullptr); return 0; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_removeChildAtIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { ssize_t arg0; bool arg1; ok &= luaval_to_ssize(tolua_S, 2, &arg0, "cc.SpriteBatchNode:removeChildAtIndex"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.SpriteBatchNode:removeChildAtIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_removeChildAtIndex'", nullptr); return 0; } cobj->removeChildAtIndex(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:removeChildAtIndex",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeChildAtIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Sprite* arg0; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:removeSpriteFromAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas'", nullptr); return 0; } cobj->removeSpriteFromAtlas(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:removeSpriteFromAtlas",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::Sprite* arg0; int arg1; int arg2; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:addSpriteWithoutQuad"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.SpriteBatchNode:addSpriteWithoutQuad"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.SpriteBatchNode:addSpriteWithoutQuad"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); return 0; } cocos2d::SpriteBatchNode* ret = cobj->addSpriteWithoutQuad(arg0, arg1, arg2); object_to_luaval<cocos2d::SpriteBatchNode>(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:addSpriteWithoutQuad",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Sprite* arg0; int arg1; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:atlasIndexForChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.SpriteBatchNode:atlasIndexForChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'", nullptr); return 0; } ssize_t ret = cobj->atlasIndexForChild(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:atlasIndexForChild",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_atlasIndexForChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'", nullptr); return 0; } cobj->increaseAtlasCapacity(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:increaseAtlasCapacity",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Sprite* arg0; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:lowestAtlasIndexInChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); return 0; } ssize_t ret = cobj->lowestAtlasIndexInChild(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:lowestAtlasIndexInChild",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_initWithTexture(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_initWithTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:initWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_initWithTexture'", nullptr); return 0; } bool ret = cobj->initWithTexture(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { cocos2d::Texture2D* arg0; ssize_t arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:initWithTexture"); ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:initWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_initWithTexture'", nullptr); return 0; } bool ret = cobj->initWithTexture(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:initWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_initWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TextureAtlas* arg0; ok &= luaval_to_object<cocos2d::TextureAtlas>(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.SpriteBatchNode:setTextureAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'", nullptr); return 0; } cobj->setTextureAtlas(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:setTextureAtlas",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.SpriteBatchNode:removeAllChildrenWithCleanup"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'", nullptr); return 0; } cobj->removeAllChildrenWithCleanup(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:removeAllChildrenWithCleanup",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Sprite* arg0; ssize_t arg1; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:insertQuadFromSprite"); ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:insertQuadFromSprite"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'", nullptr); return 0; } cobj->insertQuadFromSprite(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:insertQuadFromSprite",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_initWithFile(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_initWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteBatchNode:initWithFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_initWithFile'", nullptr); return 0; } bool ret = cobj->initWithFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } if (argc == 2) { std::string arg0; ssize_t arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteBatchNode:initWithFile"); ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:initWithFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_initWithFile'", nullptr); return 0; } bool ret = cobj->initWithFile(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:initWithFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_initWithFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.SpriteBatchNode:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Sprite* arg0; ssize_t arg1; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:rebuildIndexInOrder"); ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:rebuildIndexInOrder"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'", nullptr); return 0; } ssize_t ret = cobj->rebuildIndexInOrder(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:rebuildIndexInOrder",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'", nullptr); return 0; } cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); object_to_luaval<cocos2d::TextureAtlas>(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getTextureAtlas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Sprite* arg0; ok &= luaval_to_object<cocos2d::Sprite>(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:highestAtlasIndexInChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); return 0; } ssize_t ret = cobj->highestAtlasIndexInChild(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:highestAtlasIndexInChild",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteBatchNode:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_create'", nullptr); return 0; } cocos2d::SpriteBatchNode* ret = cocos2d::SpriteBatchNode::create(arg0); object_to_luaval<cocos2d::SpriteBatchNode>(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); return 1; } if (argc == 2) { std::string arg0; ssize_t arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteBatchNode:create"); ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_create'", nullptr); return 0; } cocos2d::SpriteBatchNode* ret = cocos2d::SpriteBatchNode::create(arg0, arg1); object_to_luaval<cocos2d::SpriteBatchNode>(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteBatchNode:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_createWithTexture(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_createWithTexture'", nullptr); return 0; } cocos2d::SpriteBatchNode* ret = cocos2d::SpriteBatchNode::createWithTexture(arg0); object_to_luaval<cocos2d::SpriteBatchNode>(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); return 1; } if (argc == 2) { cocos2d::Texture2D* arg0; ssize_t arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:createWithTexture"); ok &= luaval_to_ssize(tolua_S, 3, &arg1, "cc.SpriteBatchNode:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_createWithTexture'", nullptr); return 0; } cocos2d::SpriteBatchNode* ret = cocos2d::SpriteBatchNode::createWithTexture(arg0, arg1); object_to_luaval<cocos2d::SpriteBatchNode>(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteBatchNode:createWithTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_createWithTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteBatchNode_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_constructor'", nullptr); return 0; } cobj = new cocos2d::SpriteBatchNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.SpriteBatchNode"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:SpriteBatchNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteBatchNode_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_SpriteBatchNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SpriteBatchNode)"); return 0; } int lua_register_cocos2dx_SpriteBatchNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteBatchNode"); tolua_cclass(tolua_S,"SpriteBatchNode","cc.SpriteBatchNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"SpriteBatchNode"); tolua_function(tolua_S,"new",lua_cocos2dx_SpriteBatchNode_constructor); tolua_function(tolua_S,"appendChild",lua_cocos2dx_SpriteBatchNode_appendChild); tolua_function(tolua_S,"reorderBatch",lua_cocos2dx_SpriteBatchNode_reorderBatch); tolua_function(tolua_S,"getTexture",lua_cocos2dx_SpriteBatchNode_getTexture); tolua_function(tolua_S,"setTexture",lua_cocos2dx_SpriteBatchNode_setTexture); tolua_function(tolua_S,"removeChildAtIndex",lua_cocos2dx_SpriteBatchNode_removeChildAtIndex); tolua_function(tolua_S,"removeSpriteFromAtlas",lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas); tolua_function(tolua_S,"addSpriteWithoutQuad",lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad); tolua_function(tolua_S,"atlasIndexForChild",lua_cocos2dx_SpriteBatchNode_atlasIndexForChild); tolua_function(tolua_S,"increaseAtlasCapacity",lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity); tolua_function(tolua_S,"lowestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_SpriteBatchNode_getBlendFunc); tolua_function(tolua_S,"initWithTexture",lua_cocos2dx_SpriteBatchNode_initWithTexture); tolua_function(tolua_S,"setTextureAtlas",lua_cocos2dx_SpriteBatchNode_setTextureAtlas); tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup); tolua_function(tolua_S,"insertQuadFromSprite",lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite); tolua_function(tolua_S,"initWithFile",lua_cocos2dx_SpriteBatchNode_initWithFile); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_SpriteBatchNode_setBlendFunc); tolua_function(tolua_S,"rebuildIndexInOrder",lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder); tolua_function(tolua_S,"getTextureAtlas",lua_cocos2dx_SpriteBatchNode_getTextureAtlas); tolua_function(tolua_S,"highestAtlasIndexInChild",lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild); tolua_function(tolua_S,"create", lua_cocos2dx_SpriteBatchNode_create); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteBatchNode_createWithTexture); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpriteBatchNode).name(); g_luaType[typeName] = "cc.SpriteBatchNode"; g_typeCast["SpriteBatchNode"] = "cc.SpriteBatchNode"; return 1; } int lua_cocos2dx_SpriteFrameCache_reloadTexture(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_reloadTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:reloadTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_reloadTexture'", nullptr); return 0; } bool ret = cobj->reloadTexture(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:reloadTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_reloadTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; cocos2d::Texture2D* arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFileContent"); ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.SpriteFrameCache:addSpriteFramesWithFileContent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent'", nullptr); return 0; } cobj->addSpriteFramesWithFileContent(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:addSpriteFramesWithFileContent",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFrame'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::SpriteFrame* arg0; std::string arg1; ok &= luaval_to_object<cocos2d::SpriteFrame>(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.SpriteFrameCache:addSpriteFrame"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.SpriteFrameCache:addSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFrame'", nullptr); return 0; } cobj->addSpriteFrame(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:addSpriteFrame",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFrame'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); if (!ok) { break; } std::string arg1; ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.SpriteFrameCache:addSpriteFramesWithFile"); if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); if (!ok) { break; } cocos2d::Texture2D* arg1; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 3, "cc.Texture2D",&arg1, "cc.SpriteFrameCache:addSpriteFramesWithFile"); if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:addSpriteFramesWithFile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:getSpriteFrameByName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName'", nullptr); return 0; } cocos2d::SpriteFrame* ret = cobj->getSpriteFrameByName(arg0); object_to_luaval<cocos2d::SpriteFrame>(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:getSpriteFrameByName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:removeSpriteFramesFromFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile'", nullptr); return 0; } cobj->removeSpriteFramesFromFile(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFramesFromFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_init'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_init'", nullptr); return 0; } bool ret = cobj->init(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:init",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_init'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrames'", nullptr); return 0; } cobj->removeSpriteFrames(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFrames",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames'", nullptr); return 0; } cobj->removeUnusedSpriteFrames(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeUnusedSpriteFrames",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:removeSpriteFramesFromFileContent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent'", nullptr); return 0; } cobj->removeSpriteFramesFromFileContent(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFramesFromFileContent",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:removeSpriteFrameByName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName'", nullptr); return 0; } cobj->removeSpriteFrameByName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFrameByName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_isSpriteFramesWithFileLoaded(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_isSpriteFramesWithFileLoaded'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.SpriteFrameCache:isSpriteFramesWithFileLoaded"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_isSpriteFramesWithFileLoaded'", nullptr); return 0; } bool ret = cobj->isSpriteFramesWithFileLoaded(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:isSpriteFramesWithFileLoaded",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_isSpriteFramesWithFileLoaded'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua_S) { int argc = 0; cocos2d::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrameCache:removeSpriteFramesFromTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture'", nullptr); return 0; } cobj->removeSpriteFramesFromTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:removeSpriteFramesFromTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_destroyInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_destroyInstance'", nullptr); return 0; } cocos2d::SpriteFrameCache::destroyInstance(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteFrameCache:destroyInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_destroyInstance'.",&tolua_err); #endif return 0; } int lua_cocos2dx_SpriteFrameCache_getInstance(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_getInstance'", nullptr); return 0; } cocos2d::SpriteFrameCache* ret = cocos2d::SpriteFrameCache::getInstance(); object_to_luaval<cocos2d::SpriteFrameCache>(tolua_S, "cc.SpriteFrameCache",(cocos2d::SpriteFrameCache*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteFrameCache:getInstance",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_SpriteFrameCache_getInstance'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_SpriteFrameCache_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (SpriteFrameCache)"); return 0; } int lua_register_cocos2dx_SpriteFrameCache(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.SpriteFrameCache"); tolua_cclass(tolua_S,"SpriteFrameCache","cc.SpriteFrameCache","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"SpriteFrameCache"); tolua_function(tolua_S,"reloadTexture",lua_cocos2dx_SpriteFrameCache_reloadTexture); tolua_function(tolua_S,"addSpriteFramesWithFileContent",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFileContent); tolua_function(tolua_S,"addSpriteFrame",lua_cocos2dx_SpriteFrameCache_addSpriteFrame); tolua_function(tolua_S,"addSpriteFrames",lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile); tolua_function(tolua_S,"getSpriteFrame",lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName); tolua_function(tolua_S,"removeSpriteFramesFromFile",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile); tolua_function(tolua_S,"init",lua_cocos2dx_SpriteFrameCache_init); tolua_function(tolua_S,"removeSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeSpriteFrames); tolua_function(tolua_S,"removeUnusedSpriteFrames",lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames); tolua_function(tolua_S,"removeSpriteFramesFromFileContent",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent); tolua_function(tolua_S,"removeSpriteFrameByName",lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName); tolua_function(tolua_S,"isSpriteFramesWithFileLoaded",lua_cocos2dx_SpriteFrameCache_isSpriteFramesWithFileLoaded); tolua_function(tolua_S,"removeSpriteFramesFromTexture",lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_SpriteFrameCache_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_SpriteFrameCache_getInstance); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::SpriteFrameCache).name(); g_luaType[typeName] = "cc.SpriteFrameCache"; g_typeCast["SpriteFrameCache"] = "cc.SpriteFrameCache"; return 1; } int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S) { int argc = 0; cocos2d::ParallaxNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParallaxNode_addChild'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { cocos2d::Node* arg0; int arg1; cocos2d::Vec2 arg2; cocos2d::Vec2 arg3; ok &= luaval_to_object<cocos2d::Node>(tolua_S, 2, "cc.Node",&arg0, "cc.ParallaxNode:addChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParallaxNode:addChild"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.ParallaxNode:addChild"); ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.ParallaxNode:addChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParallaxNode_addChild'", nullptr); return 0; } cobj->addChild(arg0, arg1, arg2, arg3); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParallaxNode:addChild",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_addChild'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; cocos2d::ParallaxNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.ParallaxNode:removeAllChildrenWithCleanup"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup'", nullptr); return 0; } cobj->removeAllChildrenWithCleanup(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParallaxNode:removeAllChildrenWithCleanup",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParallaxNode_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParallaxNode_create'", nullptr); return 0; } cocos2d::ParallaxNode* ret = cocos2d::ParallaxNode::create(); object_to_luaval<cocos2d::ParallaxNode>(tolua_S, "cc.ParallaxNode",(cocos2d::ParallaxNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParallaxNode:create",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ParallaxNode_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ParallaxNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParallaxNode_constructor'", nullptr); return 0; } cobj = new cocos2d::ParallaxNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ParallaxNode"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParallaxNode:ParallaxNode",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ParallaxNode_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ParallaxNode_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ParallaxNode)"); return 0; } int lua_register_cocos2dx_ParallaxNode(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ParallaxNode"); tolua_cclass(tolua_S,"ParallaxNode","cc.ParallaxNode","cc.Node",nullptr); tolua_beginmodule(tolua_S,"ParallaxNode"); tolua_function(tolua_S,"new",lua_cocos2dx_ParallaxNode_constructor); tolua_function(tolua_S,"addChild",lua_cocos2dx_ParallaxNode_addChild); tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup); tolua_function(tolua_S,"create", lua_cocos2dx_ParallaxNode_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ParallaxNode).name(); g_luaType[typeName] = "cc.ParallaxNode"; g_typeCast["ParallaxNode"] = "cc.ParallaxNode"; return 1; } int lua_cocos2dx_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setPositionOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setPositionOffset"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_setPositionOffset'", nullptr); return 0; } cobj->setPositionOffset(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setPositionOffset",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setPositionOffset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getProperty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXObjectGroup:getProperty"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_getProperty'", nullptr); return 0; } cocos2d::Value ret = cobj->getProperty(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getProperty",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getProperty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getPositionOffset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_getPositionOffset'", nullptr); return 0; } const cocos2d::Vec2& ret = cobj->getPositionOffset(); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getPositionOffset",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getPositionOffset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getObject'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXObjectGroup:getObject"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_getObject'", nullptr); return 0; } cocos2d::ValueMap ret = cobj->getObject(arg0); ccvaluemap_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getObject",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getObject'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getObjects'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::ValueVector& ret = cobj->getObjects(); ccvaluevector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::ValueVector& ret = cobj->getObjects(); ccvaluevector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getObjects",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getObjects'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setGroupName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXObjectGroup:setGroupName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_setGroupName'", nullptr); return 0; } cobj->setGroupName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setGroupName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setGroupName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getProperties",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_getGroupName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_getGroupName'", nullptr); return 0; } const std::string& ret = cobj->getGroupName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:getGroupName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_getGroupName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_setProperties'", nullptr); return 0; } cobj->setProperties(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setProperties",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXObjectGroup_setObjects'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueVector arg0; ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setObjects"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_setObjects'", nullptr); return 0; } cobj->setObjects(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:setObjects",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_setObjects'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXObjectGroup_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_constructor'", nullptr); return 0; } cobj = new cocos2d::TMXObjectGroup(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TMXObjectGroup"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXObjectGroup:TMXObjectGroup",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXObjectGroup_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TMXObjectGroup_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TMXObjectGroup)"); return 0; } int lua_register_cocos2dx_TMXObjectGroup(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXObjectGroup"); tolua_cclass(tolua_S,"TMXObjectGroup","cc.TMXObjectGroup","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TMXObjectGroup"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXObjectGroup_constructor); tolua_function(tolua_S,"setPositionOffset",lua_cocos2dx_TMXObjectGroup_setPositionOffset); tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXObjectGroup_getProperty); tolua_function(tolua_S,"getPositionOffset",lua_cocos2dx_TMXObjectGroup_getPositionOffset); tolua_function(tolua_S,"getObject",lua_cocos2dx_TMXObjectGroup_getObject); tolua_function(tolua_S,"getObjects",lua_cocos2dx_TMXObjectGroup_getObjects); tolua_function(tolua_S,"setGroupName",lua_cocos2dx_TMXObjectGroup_setGroupName); tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXObjectGroup_getProperties); tolua_function(tolua_S,"getGroupName",lua_cocos2dx_TMXObjectGroup_getGroupName); tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXObjectGroup_setProperties); tolua_function(tolua_S,"setObjects",lua_cocos2dx_TMXObjectGroup_setObjects); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXObjectGroup).name(); g_luaType[typeName] = "cc.TMXObjectGroup"; g_typeCast["TMXObjectGroup"] = "cc.TMXObjectGroup"; return 1; } int lua_cocos2dx_TMXLayerInfo_setProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayerInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayerInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayerInfo_setProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXLayerInfo:setProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayerInfo_setProperties'", nullptr); return 0; } cobj->setProperties(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayerInfo:setProperties",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayerInfo_setProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayerInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayerInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayerInfo_getProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayerInfo_getProperties'", nullptr); return 0; } cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayerInfo:getProperties",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayerInfo_getProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayerInfo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayerInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayerInfo_constructor'", nullptr); return 0; } cobj = new cocos2d::TMXLayerInfo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TMXLayerInfo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayerInfo:TMXLayerInfo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayerInfo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TMXLayerInfo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TMXLayerInfo)"); return 0; } int lua_register_cocos2dx_TMXLayerInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXLayerInfo"); tolua_cclass(tolua_S,"TMXLayerInfo","cc.TMXLayerInfo","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TMXLayerInfo"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayerInfo_constructor); tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayerInfo_setProperties); tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayerInfo_getProperties); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXLayerInfo).name(); g_luaType[typeName] = "cc.TMXLayerInfo"; g_typeCast["TMXLayerInfo"] = "cc.TMXLayerInfo"; return 1; } int lua_cocos2dx_TMXTilesetInfo_getRectForGID(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTilesetInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTilesetInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTilesetInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTilesetInfo_getRectForGID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.TMXTilesetInfo:getRectForGID"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTilesetInfo_getRectForGID'", nullptr); return 0; } cocos2d::Rect ret = cobj->getRectForGID(arg0); rect_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTilesetInfo:getRectForGID",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTilesetInfo_getRectForGID'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTilesetInfo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTilesetInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTilesetInfo_constructor'", nullptr); return 0; } cobj = new cocos2d::TMXTilesetInfo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TMXTilesetInfo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTilesetInfo:TMXTilesetInfo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTilesetInfo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TMXTilesetInfo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TMXTilesetInfo)"); return 0; } int lua_register_cocos2dx_TMXTilesetInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXTilesetInfo"); tolua_cclass(tolua_S,"TMXTilesetInfo","cc.TMXTilesetInfo","cc.Ref",nullptr); tolua_beginmodule(tolua_S,"TMXTilesetInfo"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXTilesetInfo_constructor); tolua_function(tolua_S,"getRectForGID",lua_cocos2dx_TMXTilesetInfo_getRectForGID); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXTilesetInfo).name(); g_luaType[typeName] = "cc.TMXTilesetInfo"; g_typeCast["TMXTilesetInfo"] = "cc.TMXTilesetInfo"; return 1; } int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setCurrentString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:setCurrentString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setCurrentString'", nullptr); return 0; } cobj->setCurrentString(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setCurrentString",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setCurrentString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getHexSideLength(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getHexSideLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getHexSideLength'", nullptr); return 0; } int ret = cobj->getHexSideLength(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getHexSideLength",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getHexSideLength'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTileSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setTileSize'", nullptr); return 0; } cobj->setTileSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTileSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getOrientation'", nullptr); return 0; } int ret = cobj->getOrientation(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getOrientation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setObjectGroups(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setObjectGroups'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::TMXObjectGroup *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setObjectGroups"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setObjectGroups'", nullptr); return 0; } cobj->setObjectGroups(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setObjectGroups",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setObjectGroups'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setLayers'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::TMXLayerInfo *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setLayers"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setLayers'", nullptr); return 0; } cobj->setLayers(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setLayers",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setLayers'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_parseXMLFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:parseXMLFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_parseXMLFile'", nullptr); return 0; } bool ret = cobj->parseXMLFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:parseXMLFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_parseXMLFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getParentElement'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getParentElement'", nullptr); return 0; } int ret = cobj->getParentElement(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getParentElement",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getParentElement'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTMXFileName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:setTMXFileName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setTMXFileName'", nullptr); return 0; } cobj->setTMXFileName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTMXFileName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTMXFileName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_parseXMLString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:parseXMLString"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_parseXMLString'", nullptr); return 0; } bool ret = cobj->parseXMLString(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:parseXMLString",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_parseXMLString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getLayers'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::Vector<cocos2d::TMXLayerInfo *>& ret = cobj->getLayers(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::Vector<cocos2d::TMXLayerInfo *>& ret = cobj->getLayers(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getLayers",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getLayers'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getStaggerAxis(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getStaggerAxis'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getStaggerAxis'", nullptr); return 0; } int ret = cobj->getStaggerAxis(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getStaggerAxis",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getStaggerAxis'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setHexSideLength(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setHexSideLength'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setHexSideLength"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setHexSideLength'", nullptr); return 0; } cobj->setHexSideLength(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setHexSideLength",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setHexSideLength'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_initWithTMXFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:initWithTMXFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_initWithTMXFile'", nullptr); return 0; } bool ret = cobj->initWithTMXFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:initWithTMXFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_initWithTMXFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getParentGID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getParentGID'", nullptr); return 0; } int ret = cobj->getParentGID(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getParentGID",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getParentGID'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTilesets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::Vector<cocos2d::TMXTilesetInfo *>& ret = cobj->getTilesets(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::Vector<cocos2d::TMXTilesetInfo *>& ret = cobj->getTilesets(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTilesets",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTilesets'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setParentElement'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setParentElement"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setParentElement'", nullptr); return 0; } cobj->setParentElement(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setParentElement",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setParentElement'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_initWithXML'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:initWithXML"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TMXMapInfo:initWithXML"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_initWithXML'", nullptr); return 0; } bool ret = cobj->initWithXML(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:initWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_initWithXML'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setParentGID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setParentGID"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setParentGID'", nullptr); return 0; } cobj->setParentGID(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setParentGID",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setParentGID'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getLayerAttribs'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getLayerAttribs'", nullptr); return 0; } int ret = cobj->getLayerAttribs(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getLayerAttribs",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getLayerAttribs'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getTileSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getTileSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTileSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTileProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getTileProperties'", nullptr); return 0; } cocos2d::ValueMapIntKey& ret = cobj->getTileProperties(); ccvaluemapintkey_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTileProperties",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTileProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_isStoringCharacters'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_isStoringCharacters'", nullptr); return 0; } bool ret = cobj->isStoringCharacters(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:isStoringCharacters",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_isStoringCharacters'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getExternalTilesetFileName(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getExternalTilesetFileName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getExternalTilesetFileName'", nullptr); return 0; } const std::string& ret = cobj->getExternalTilesetFileName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getExternalTilesetFileName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getExternalTilesetFileName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getObjectGroups'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::Vector<cocos2d::TMXObjectGroup *>& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::Vector<cocos2d::TMXObjectGroup *>& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getObjectGroups",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getObjectGroups'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getTMXFileName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getTMXFileName'", nullptr); return 0; } const std::string& ret = cobj->getTMXFileName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getTMXFileName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getTMXFileName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setStaggerIndex(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setStaggerIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setStaggerIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setStaggerIndex'", nullptr); return 0; } cobj->setStaggerIndex(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setStaggerIndex",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setStaggerIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXMapInfo:setProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setProperties'", nullptr); return 0; } cobj->setProperties(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setProperties",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setOrientation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setOrientation'", nullptr); return 0; } cobj->setOrientation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setOrientation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTileProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMapIntKey arg0; ok &= luaval_to_ccvaluemapintkey(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTileProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setTileProperties'", nullptr); return 0; } cobj->setTileProperties(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTileProperties",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTileProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setMapSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXMapInfo:setMapSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setMapSize'", nullptr); return 0; } cobj->setMapSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setMapSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setMapSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getCurrentString'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getCurrentString'", nullptr); return 0; } const std::string& ret = cobj->getCurrentString(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getCurrentString",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getCurrentString'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setStoringCharacters'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.TMXMapInfo:setStoringCharacters"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setStoringCharacters'", nullptr); return 0; } cobj->setStoringCharacters(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setStoringCharacters",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setStoringCharacters'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setStaggerAxis(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setStaggerAxis'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setStaggerAxis"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setStaggerAxis'", nullptr); return 0; } cobj->setStaggerAxis(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setStaggerAxis",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setStaggerAxis'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getMapSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getMapSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getMapSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getMapSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getMapSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setTilesets'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::TMXTilesetInfo *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTilesets"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setTilesets'", nullptr); return 0; } cobj->setTilesets(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setTilesets",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setTilesets'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getProperties",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_getStaggerIndex(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_getStaggerIndex'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getStaggerIndex'", nullptr); return 0; } int ret = cobj->getStaggerIndex(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:getStaggerIndex",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_getStaggerIndex'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXMapInfo_setLayerAttribs'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXMapInfo:setLayerAttribs"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_setLayerAttribs'", nullptr); return 0; } cobj->setLayerAttribs(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:setLayerAttribs",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_setLayerAttribs'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_create'", nullptr); return 0; } cocos2d::TMXMapInfo* ret = cocos2d::TMXMapInfo::create(arg0); object_to_luaval<cocos2d::TMXMapInfo>(tolua_S, "cc.TMXMapInfo",(cocos2d::TMXMapInfo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXMapInfo:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_createWithXML(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXMapInfo:createWithXML"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TMXMapInfo:createWithXML"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_createWithXML'", nullptr); return 0; } cocos2d::TMXMapInfo* ret = cocos2d::TMXMapInfo::createWithXML(arg0, arg1); object_to_luaval<cocos2d::TMXMapInfo>(tolua_S, "cc.TMXMapInfo",(cocos2d::TMXMapInfo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXMapInfo:createWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_createWithXML'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXMapInfo_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_constructor'", nullptr); return 0; } cobj = new cocos2d::TMXMapInfo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TMXMapInfo"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXMapInfo:TMXMapInfo",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXMapInfo_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TMXMapInfo_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TMXMapInfo)"); return 0; } int lua_register_cocos2dx_TMXMapInfo(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXMapInfo"); tolua_cclass(tolua_S,"TMXMapInfo","cc.TMXMapInfo","",nullptr); tolua_beginmodule(tolua_S,"TMXMapInfo"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXMapInfo_constructor); tolua_function(tolua_S,"setCurrentString",lua_cocos2dx_TMXMapInfo_setCurrentString); tolua_function(tolua_S,"getHexSideLength",lua_cocos2dx_TMXMapInfo_getHexSideLength); tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXMapInfo_setTileSize); tolua_function(tolua_S,"getOrientation",lua_cocos2dx_TMXMapInfo_getOrientation); tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXMapInfo_setObjectGroups); tolua_function(tolua_S,"setLayers",lua_cocos2dx_TMXMapInfo_setLayers); tolua_function(tolua_S,"parseXMLFile",lua_cocos2dx_TMXMapInfo_parseXMLFile); tolua_function(tolua_S,"getParentElement",lua_cocos2dx_TMXMapInfo_getParentElement); tolua_function(tolua_S,"setTMXFileName",lua_cocos2dx_TMXMapInfo_setTMXFileName); tolua_function(tolua_S,"parseXMLString",lua_cocos2dx_TMXMapInfo_parseXMLString); tolua_function(tolua_S,"getLayers",lua_cocos2dx_TMXMapInfo_getLayers); tolua_function(tolua_S,"getStaggerAxis",lua_cocos2dx_TMXMapInfo_getStaggerAxis); tolua_function(tolua_S,"setHexSideLength",lua_cocos2dx_TMXMapInfo_setHexSideLength); tolua_function(tolua_S,"initWithTMXFile",lua_cocos2dx_TMXMapInfo_initWithTMXFile); tolua_function(tolua_S,"getParentGID",lua_cocos2dx_TMXMapInfo_getParentGID); tolua_function(tolua_S,"getTilesets",lua_cocos2dx_TMXMapInfo_getTilesets); tolua_function(tolua_S,"setParentElement",lua_cocos2dx_TMXMapInfo_setParentElement); tolua_function(tolua_S,"initWithXML",lua_cocos2dx_TMXMapInfo_initWithXML); tolua_function(tolua_S,"setParentGID",lua_cocos2dx_TMXMapInfo_setParentGID); tolua_function(tolua_S,"getLayerAttribs",lua_cocos2dx_TMXMapInfo_getLayerAttribs); tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXMapInfo_getTileSize); tolua_function(tolua_S,"getTileProperties",lua_cocos2dx_TMXMapInfo_getTileProperties); tolua_function(tolua_S,"isStoringCharacters",lua_cocos2dx_TMXMapInfo_isStoringCharacters); tolua_function(tolua_S,"getExternalTilesetFileName",lua_cocos2dx_TMXMapInfo_getExternalTilesetFileName); tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXMapInfo_getObjectGroups); tolua_function(tolua_S,"getTMXFileName",lua_cocos2dx_TMXMapInfo_getTMXFileName); tolua_function(tolua_S,"setStaggerIndex",lua_cocos2dx_TMXMapInfo_setStaggerIndex); tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXMapInfo_setProperties); tolua_function(tolua_S,"setOrientation",lua_cocos2dx_TMXMapInfo_setOrientation); tolua_function(tolua_S,"setTileProperties",lua_cocos2dx_TMXMapInfo_setTileProperties); tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXMapInfo_setMapSize); tolua_function(tolua_S,"getCurrentString",lua_cocos2dx_TMXMapInfo_getCurrentString); tolua_function(tolua_S,"setStoringCharacters",lua_cocos2dx_TMXMapInfo_setStoringCharacters); tolua_function(tolua_S,"setStaggerAxis",lua_cocos2dx_TMXMapInfo_setStaggerAxis); tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXMapInfo_getMapSize); tolua_function(tolua_S,"setTilesets",lua_cocos2dx_TMXMapInfo_setTilesets); tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXMapInfo_getProperties); tolua_function(tolua_S,"getStaggerIndex",lua_cocos2dx_TMXMapInfo_getStaggerIndex); tolua_function(tolua_S,"setLayerAttribs",lua_cocos2dx_TMXMapInfo_setLayerAttribs); tolua_function(tolua_S,"create", lua_cocos2dx_TMXMapInfo_create); tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXMapInfo_createWithXML); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXMapInfo).name(); g_luaType[typeName] = "cc.TMXMapInfo"; g_typeCast["TMXMapInfo"] = "cc.TMXMapInfo"; return 1; } int lua_cocos2dx_TMXLayer_getPositionAt(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getPositionAt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:getPositionAt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_getPositionAt'", nullptr); return 0; } cocos2d::Vec2 ret = cobj->getPositionAt(arg0); vec2_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getPositionAt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getPositionAt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_setLayerOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setLayerOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXLayer:setLayerOrientation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_setLayerOrientation'", nullptr); return 0; } cobj->setLayerOrientation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setLayerOrientation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setLayerOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_releaseMap(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_releaseMap'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_releaseMap'", nullptr); return 0; } cobj->releaseMap(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:releaseMap",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_releaseMap'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_getLayerSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getLayerSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_getLayerSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getLayerSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getLayerSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getLayerSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_setMapTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setMapTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXLayer:setMapTileSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_setMapTileSize'", nullptr); return 0; } cobj->setMapTileSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setMapTileSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setMapTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_getLayerOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getLayerOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_getLayerOrientation'", nullptr); return 0; } int ret = cobj->getLayerOrientation(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getLayerOrientation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getLayerOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_setProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXLayer:setProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_setProperties'", nullptr); return 0; } cobj->setProperties(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setProperties",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_setLayerName(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setLayerName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXLayer:setLayerName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_setLayerName'", nullptr); return 0; } cobj->setLayerName(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setLayerName",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setLayerName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_removeTileAt(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_removeTileAt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:removeTileAt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_removeTileAt'", nullptr); return 0; } cobj->removeTileAt(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:removeTileAt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_removeTileAt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_initWithTilesetInfo(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_initWithTilesetInfo'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 3) { cocos2d::TMXTilesetInfo* arg0; cocos2d::TMXLayerInfo* arg1; cocos2d::TMXMapInfo* arg2; ok &= luaval_to_object<cocos2d::TMXTilesetInfo>(tolua_S, 2, "cc.TMXTilesetInfo",&arg0, "cc.TMXLayer:initWithTilesetInfo"); ok &= luaval_to_object<cocos2d::TMXLayerInfo>(tolua_S, 3, "cc.TMXLayerInfo",&arg1, "cc.TMXLayer:initWithTilesetInfo"); ok &= luaval_to_object<cocos2d::TMXMapInfo>(tolua_S, 4, "cc.TMXMapInfo",&arg2, "cc.TMXLayer:initWithTilesetInfo"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_initWithTilesetInfo'", nullptr); return 0; } bool ret = cobj->initWithTilesetInfo(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:initWithTilesetInfo",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_initWithTilesetInfo'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_setupTiles(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setupTiles'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_setupTiles'", nullptr); return 0; } cobj->setupTiles(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setupTiles",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setupTiles'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_setTileGID(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setTileGID'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.TMXLayer:setTileGID"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TMXLayer:setTileGID"); if (!ok) { break; } cocos2d::TMXTileFlags_ arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TMXLayer:setTileGID"); if (!ok) { break; } cobj->setTileGID(arg0, arg1, arg2); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; do{ if (argc == 2) { unsigned int arg0; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.TMXLayer:setTileGID"); if (!ok) { break; } cocos2d::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TMXLayer:setTileGID"); if (!ok) { break; } cobj->setTileGID(arg0, arg1); lua_settop(tolua_S, 1); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setTileGID",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setTileGID'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_getMapTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getMapTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_getMapTileSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getMapTileSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getMapTileSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getMapTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_getProperty(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getProperty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXLayer:getProperty"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_getProperty'", nullptr); return 0; } cocos2d::Value ret = cobj->getProperty(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getProperty",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getProperty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_setLayerSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setLayerSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXLayer:setLayerSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_setLayerSize'", nullptr); return 0; } cobj->setLayerSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setLayerSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setLayerSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_getLayerName(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getLayerName'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_getLayerName'", nullptr); return 0; } const std::string& ret = cobj->getLayerName(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getLayerName",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getLayerName'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_setTileSet(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_setTileSet'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::TMXTilesetInfo* arg0; ok &= luaval_to_object<cocos2d::TMXTilesetInfo>(tolua_S, 2, "cc.TMXTilesetInfo",&arg0, "cc.TMXLayer:setTileSet"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_setTileSet'", nullptr); return 0; } cobj->setTileSet(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:setTileSet",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_setTileSet'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_getTileSet(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getTileSet'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_getTileSet'", nullptr); return 0; } cocos2d::TMXTilesetInfo* ret = cobj->getTileSet(); object_to_luaval<cocos2d::TMXTilesetInfo>(tolua_S, "cc.TMXTilesetInfo",(cocos2d::TMXTilesetInfo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getTileSet",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getTileSet'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_getProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getProperties",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_getTileAt(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXLayer_getTileAt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:getTileAt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_getTileAt'", nullptr); return 0; } cocos2d::Sprite* ret = cobj->getTileAt(arg0); object_to_luaval<cocos2d::Sprite>(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:getTileAt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_getTileAt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXLayer",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 3) { cocos2d::TMXTilesetInfo* arg0; cocos2d::TMXLayerInfo* arg1; cocos2d::TMXMapInfo* arg2; ok &= luaval_to_object<cocos2d::TMXTilesetInfo>(tolua_S, 2, "cc.TMXTilesetInfo",&arg0, "cc.TMXLayer:create"); ok &= luaval_to_object<cocos2d::TMXLayerInfo>(tolua_S, 3, "cc.TMXLayerInfo",&arg1, "cc.TMXLayer:create"); ok &= luaval_to_object<cocos2d::TMXMapInfo>(tolua_S, 4, "cc.TMXMapInfo",&arg2, "cc.TMXLayer:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_create'", nullptr); return 0; } cocos2d::TMXLayer* ret = cocos2d::TMXLayer::create(arg0, arg1, arg2); object_to_luaval<cocos2d::TMXLayer>(tolua_S, "cc.TMXLayer",(cocos2d::TMXLayer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXLayer:create",argc, 3); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXLayer_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayer_constructor'", nullptr); return 0; } cobj = new cocos2d::TMXLayer(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TMXLayer"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXLayer:TMXLayer",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXLayer_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TMXLayer_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TMXLayer)"); return 0; } int lua_register_cocos2dx_TMXLayer(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXLayer"); tolua_cclass(tolua_S,"TMXLayer","cc.TMXLayer","cc.SpriteBatchNode",nullptr); tolua_beginmodule(tolua_S,"TMXLayer"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXLayer_constructor); tolua_function(tolua_S,"getPositionAt",lua_cocos2dx_TMXLayer_getPositionAt); tolua_function(tolua_S,"setLayerOrientation",lua_cocos2dx_TMXLayer_setLayerOrientation); tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TMXLayer_releaseMap); tolua_function(tolua_S,"getLayerSize",lua_cocos2dx_TMXLayer_getLayerSize); tolua_function(tolua_S,"setMapTileSize",lua_cocos2dx_TMXLayer_setMapTileSize); tolua_function(tolua_S,"getLayerOrientation",lua_cocos2dx_TMXLayer_getLayerOrientation); tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayer_setProperties); tolua_function(tolua_S,"setLayerName",lua_cocos2dx_TMXLayer_setLayerName); tolua_function(tolua_S,"removeTileAt",lua_cocos2dx_TMXLayer_removeTileAt); tolua_function(tolua_S,"initWithTilesetInfo",lua_cocos2dx_TMXLayer_initWithTilesetInfo); tolua_function(tolua_S,"setupTiles",lua_cocos2dx_TMXLayer_setupTiles); tolua_function(tolua_S,"setTileGID",lua_cocos2dx_TMXLayer_setTileGID); tolua_function(tolua_S,"getMapTileSize",lua_cocos2dx_TMXLayer_getMapTileSize); tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXLayer_getProperty); tolua_function(tolua_S,"setLayerSize",lua_cocos2dx_TMXLayer_setLayerSize); tolua_function(tolua_S,"getLayerName",lua_cocos2dx_TMXLayer_getLayerName); tolua_function(tolua_S,"setTileSet",lua_cocos2dx_TMXLayer_setTileSet); tolua_function(tolua_S,"getTileSet",lua_cocos2dx_TMXLayer_getTileSet); tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayer_getProperties); tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TMXLayer_getTileAt); tolua_function(tolua_S,"create", lua_cocos2dx_TMXLayer_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXLayer).name(); g_luaType[typeName] = "cc.TMXLayer"; g_typeCast["TMXLayer"] = "cc.TMXLayer"; return 1; } int lua_cocos2dx_TMXTiledMap_setObjectGroups(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setObjectGroups'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vector<cocos2d::TMXObjectGroup *> arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXTiledMap:setObjectGroups"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_setObjectGroups'", nullptr); return 0; } cobj->setObjectGroups(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setObjectGroups",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setObjectGroups'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getProperty(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getProperty'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:getProperty"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_getProperty'", nullptr); return 0; } cocos2d::Value ret = cobj->getProperty(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getProperty",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getProperty'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getLayerNum(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getLayerNum'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_getLayerNum'", nullptr); return 0; } int ret = cobj->getLayerNum(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getLayerNum",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getLayerNum'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_setMapSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setMapSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXTiledMap:setMapSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_setMapSize'", nullptr); return 0; } cobj->setMapSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setMapSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setMapSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getObjectGroup(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getObjectGroup'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:getObjectGroup"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_getObjectGroup'", nullptr); return 0; } cocos2d::TMXObjectGroup* ret = cobj->getObjectGroup(arg0); object_to_luaval<cocos2d::TMXObjectGroup>(tolua_S, "cc.TMXObjectGroup",(cocos2d::TMXObjectGroup*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getObjectGroup",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getObjectGroup'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getObjectGroups(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getObjectGroups'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { cocos2d::Vector<cocos2d::TMXObjectGroup *>& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { const cocos2d::Vector<cocos2d::TMXObjectGroup *>& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getObjectGroups",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getObjectGroups'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getResourceFile(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getResourceFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_getResourceFile'", nullptr); return 0; } const std::string& ret = cobj->getResourceFile(); tolua_pushcppstring(tolua_S,ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getResourceFile",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getResourceFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_initWithTMXFile(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_initWithTMXFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:initWithTMXFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_initWithTMXFile'", nullptr); return 0; } bool ret = cobj->initWithTMXFile(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:initWithTMXFile",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_initWithTMXFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_getTileSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getTileSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getTileSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getMapSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getMapSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_getMapSize'", nullptr); return 0; } const cocos2d::Size& ret = cobj->getMapSize(); size_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getMapSize",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getMapSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_initWithXML(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_initWithXML'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:initWithXML"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TMXTiledMap:initWithXML"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_initWithXML'", nullptr); return 0; } bool ret = cobj->initWithXML(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:initWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_initWithXML'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_getProperties'", nullptr); return 0; } cocos2d::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getProperties",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_setTileSize(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setTileSize'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.TMXTiledMap:setTileSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_setTileSize'", nullptr); return 0; } cobj->setTileSize(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setTileSize",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setTileSize'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_setProperties(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setProperties'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXTiledMap:setProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_setProperties'", nullptr); return 0; } cobj->setProperties(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setProperties",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setProperties'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getLayer(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getLayer'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:getLayer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_getLayer'", nullptr); return 0; } cocos2d::TMXLayer* ret = cobj->getLayer(arg0); object_to_luaval<cocos2d::TMXLayer>(tolua_S, "cc.TMXLayer",(cocos2d::TMXLayer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getLayer",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getLayer'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_getMapOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_getMapOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_getMapOrientation'", nullptr); return 0; } int ret = cobj->getMapOrientation(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:getMapOrientation",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_getMapOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_setMapOrientation(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TMXTiledMap_setMapOrientation'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.TMXTiledMap:setMapOrientation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_setMapOrientation'", nullptr); return 0; } cobj->setMapOrientation(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:setMapOrientation",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_setMapOrientation'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_create'", nullptr); return 0; } cocos2d::TMXTiledMap* ret = cocos2d::TMXTiledMap::create(arg0); object_to_luaval<cocos2d::TMXTiledMap>(tolua_S, "cc.TMXTiledMap",(cocos2d::TMXTiledMap*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXTiledMap:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_createWithXML(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 2) { std::string arg0; std::string arg1; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TMXTiledMap:createWithXML"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TMXTiledMap:createWithXML"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_createWithXML'", nullptr); return 0; } cocos2d::TMXTiledMap* ret = cocos2d::TMXTiledMap::createWithXML(arg0, arg1); object_to_luaval<cocos2d::TMXTiledMap>(tolua_S, "cc.TMXTiledMap",(cocos2d::TMXTiledMap*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXTiledMap:createWithXML",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_createWithXML'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TMXTiledMap_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTiledMap_constructor'", nullptr); return 0; } cobj = new cocos2d::TMXTiledMap(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TMXTiledMap"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TMXTiledMap:TMXTiledMap",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TMXTiledMap_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TMXTiledMap_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TMXTiledMap)"); return 0; } int lua_register_cocos2dx_TMXTiledMap(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TMXTiledMap"); tolua_cclass(tolua_S,"TMXTiledMap","cc.TMXTiledMap","cc.Node",nullptr); tolua_beginmodule(tolua_S,"TMXTiledMap"); tolua_function(tolua_S,"new",lua_cocos2dx_TMXTiledMap_constructor); tolua_function(tolua_S,"setObjectGroups",lua_cocos2dx_TMXTiledMap_setObjectGroups); tolua_function(tolua_S,"getProperty",lua_cocos2dx_TMXTiledMap_getProperty); tolua_function(tolua_S,"getLayerNum",lua_cocos2dx_TMXTiledMap_getLayerNum); tolua_function(tolua_S,"setMapSize",lua_cocos2dx_TMXTiledMap_setMapSize); tolua_function(tolua_S,"getObjectGroup",lua_cocos2dx_TMXTiledMap_getObjectGroup); tolua_function(tolua_S,"getObjectGroups",lua_cocos2dx_TMXTiledMap_getObjectGroups); tolua_function(tolua_S,"getResourceFile",lua_cocos2dx_TMXTiledMap_getResourceFile); tolua_function(tolua_S,"initWithTMXFile",lua_cocos2dx_TMXTiledMap_initWithTMXFile); tolua_function(tolua_S,"getTileSize",lua_cocos2dx_TMXTiledMap_getTileSize); tolua_function(tolua_S,"getMapSize",lua_cocos2dx_TMXTiledMap_getMapSize); tolua_function(tolua_S,"initWithXML",lua_cocos2dx_TMXTiledMap_initWithXML); tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXTiledMap_getProperties); tolua_function(tolua_S,"setTileSize",lua_cocos2dx_TMXTiledMap_setTileSize); tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXTiledMap_setProperties); tolua_function(tolua_S,"getLayer",lua_cocos2dx_TMXTiledMap_getLayer); tolua_function(tolua_S,"getMapOrientation",lua_cocos2dx_TMXTiledMap_getMapOrientation); tolua_function(tolua_S,"setMapOrientation",lua_cocos2dx_TMXTiledMap_setMapOrientation); tolua_function(tolua_S,"create", lua_cocos2dx_TMXTiledMap_create); tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXTiledMap_createWithXML); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TMXTiledMap).name(); g_luaType[typeName] = "cc.TMXTiledMap"; g_typeCast["TMXTiledMap"] = "cc.TMXTiledMap"; return 1; } int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) { int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TileMapAtlas_initWithTileFile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 4) { std::string arg0; std::string arg1; int arg2; int arg3; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TileMapAtlas:initWithTileFile"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TileMapAtlas:initWithTileFile"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TileMapAtlas:initWithTileFile"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.TileMapAtlas:initWithTileFile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TileMapAtlas_initWithTileFile'", nullptr); return 0; } bool ret = cobj->initWithTileFile(arg0, arg1, arg2, arg3); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:initWithTileFile",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_initWithTileFile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) { int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TileMapAtlas_releaseMap'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TileMapAtlas_releaseMap'", nullptr); return 0; } cobj->releaseMap(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:releaseMap",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_releaseMap'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) { int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TileMapAtlas_getTileAt'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TileMapAtlas:getTileAt"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TileMapAtlas_getTileAt'", nullptr); return 0; } cocos2d::Color3B ret = cobj->getTileAt(arg0); color3b_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:getTileAt",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_getTileAt'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) { int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_TileMapAtlas_setTile'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 2) { cocos2d::Color3B arg0; cocos2d::Vec2 arg1; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.TileMapAtlas:setTile"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TileMapAtlas:setTile"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TileMapAtlas_setTile'", nullptr); return 0; } cobj->setTile(arg0, arg1); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:setTile",argc, 2); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_setTile'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TileMapAtlas_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 4) { std::string arg0; std::string arg1; int arg2; int arg3; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.TileMapAtlas:create"); ok &= luaval_to_std_string(tolua_S, 3,&arg1, "cc.TileMapAtlas:create"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TileMapAtlas:create"); ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.TileMapAtlas:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TileMapAtlas_create'", nullptr); return 0; } cocos2d::TileMapAtlas* ret = cocos2d::TileMapAtlas::create(arg0, arg1, arg2, arg3); object_to_luaval<cocos2d::TileMapAtlas>(tolua_S, "cc.TileMapAtlas",(cocos2d::TileMapAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TileMapAtlas:create",argc, 4); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_TileMapAtlas_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TileMapAtlas_constructor'", nullptr); return 0; } cobj = new cocos2d::TileMapAtlas(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.TileMapAtlas"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TileMapAtlas:TileMapAtlas",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_TileMapAtlas_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_TileMapAtlas_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (TileMapAtlas)"); return 0; } int lua_register_cocos2dx_TileMapAtlas(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.TileMapAtlas"); tolua_cclass(tolua_S,"TileMapAtlas","cc.TileMapAtlas","cc.AtlasNode",nullptr); tolua_beginmodule(tolua_S,"TileMapAtlas"); tolua_function(tolua_S,"new",lua_cocos2dx_TileMapAtlas_constructor); tolua_function(tolua_S,"initWithTileFile",lua_cocos2dx_TileMapAtlas_initWithTileFile); tolua_function(tolua_S,"releaseMap",lua_cocos2dx_TileMapAtlas_releaseMap); tolua_function(tolua_S,"getTileAt",lua_cocos2dx_TileMapAtlas_getTileAt); tolua_function(tolua_S,"setTile",lua_cocos2dx_TileMapAtlas_setTile); tolua_function(tolua_S,"create", lua_cocos2dx_TileMapAtlas_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::TileMapAtlas).name(); g_luaType[typeName] = "cc.TileMapAtlas"; g_typeCast["TileMapAtlas"] = "cc.TileMapAtlas"; return 1; } int lua_cocos2dx_MotionStreak3D_reset(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_reset'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_reset'", nullptr); return 0; } cobj->reset(); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:reset",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_reset'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_setTexture(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_setTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Texture2D* arg0; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 2, "cc.Texture2D",&arg0, "cc.MotionStreak3D:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_setTexture'", nullptr); return 0; } cobj->setTexture(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:setTexture",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_setTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_getTexture(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_getTexture'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_getTexture'", nullptr); return 0; } cocos2d::Texture2D* ret = cobj->getTexture(); object_to_luaval<cocos2d::Texture2D>(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:getTexture",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_getTexture'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_tintWithColor(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_tintWithColor'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MotionStreak3D:tintWithColor"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_tintWithColor'", nullptr); return 0; } cobj->tintWithColor(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:tintWithColor",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_tintWithColor'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_getSweepAxis(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_getSweepAxis'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_getSweepAxis'", nullptr); return 0; } const cocos2d::Vec3& ret = cobj->getSweepAxis(); vec3_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:getSweepAxis",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_getSweepAxis'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_setBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_setBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.MotionStreak3D:setBlendFunc"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_setBlendFunc'", nullptr); return 0; } cobj->setBlendFunc(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:setBlendFunc",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_setBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_setStartingPositionInitialized(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_setStartingPositionInitialized'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { bool arg0; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "cc.MotionStreak3D:setStartingPositionInitialized"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_setStartingPositionInitialized'", nullptr); return 0; } cobj->setStartingPositionInitialized(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:setStartingPositionInitialized",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_setStartingPositionInitialized'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_getBlendFunc(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_getBlendFunc'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_getBlendFunc'", nullptr); return 0; } const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:getBlendFunc",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_getBlendFunc'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_isStartingPositionInitialized(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_isStartingPositionInitialized'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_isStartingPositionInitialized'", nullptr); return 0; } bool ret = cobj->isStartingPositionInitialized(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:isStartingPositionInitialized",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_isStartingPositionInitialized'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_getStroke(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_getStroke'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_getStroke'", nullptr); return 0; } double ret = cobj->getStroke(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:getStroke",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_getStroke'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_initWithFade(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_initWithFade'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } cocos2d::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } cocos2d::Texture2D* arg4; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } bool ret = cobj->initWithFade(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; do{ if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } cocos2d::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } std::string arg4; ok &= luaval_to_std_string(tolua_S, 6,&arg4, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } bool ret = cobj->initWithFade(arg0, arg1, arg2, arg3, arg4); tolua_pushboolean(tolua_S,(bool)ret); return 1; } }while(0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:initWithFade",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_initWithFade'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_setSweepAxis(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_setSweepAxis'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { cocos2d::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.MotionStreak3D:setSweepAxis"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_setSweepAxis'", nullptr); return 0; } cobj->setSweepAxis(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:setSweepAxis",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_setSweepAxis'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_setStroke(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_MotionStreak3D_setStroke'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak3D:setStroke"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_setStroke'", nullptr); return 0; } cobj->setStroke(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:setStroke",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_setStroke'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S)-1; do { if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak3D:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak3D:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak3D:create"); if (!ok) { break; } cocos2d::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak3D:create"); if (!ok) { break; } cocos2d::Texture2D* arg4; ok &= luaval_to_object<cocos2d::Texture2D>(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak3D:create"); if (!ok) { break; } cocos2d::MotionStreak3D* ret = cocos2d::MotionStreak3D::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::MotionStreak3D>(tolua_S, "cc.MotionStreak3D",(cocos2d::MotionStreak3D*)ret); return 1; } } while (0); ok = true; do { if (argc == 5) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MotionStreak3D:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.MotionStreak3D:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak3D:create"); if (!ok) { break; } cocos2d::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak3D:create"); if (!ok) { break; } std::string arg4; ok &= luaval_to_std_string(tolua_S, 6,&arg4, "cc.MotionStreak3D:create"); if (!ok) { break; } cocos2d::MotionStreak3D* ret = cocos2d::MotionStreak3D::create(arg0, arg1, arg2, arg3, arg4); object_to_luaval<cocos2d::MotionStreak3D>(tolua_S, "cc.MotionStreak3D",(cocos2d::MotionStreak3D*)ret); return 1; } } while (0); ok = true; luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "cc.MotionStreak3D:create",argc, 5); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_MotionStreak3D_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_constructor'", nullptr); return 0; } cobj = new cocos2d::MotionStreak3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.MotionStreak3D"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:MotionStreak3D",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_MotionStreak3D_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_MotionStreak3D_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (MotionStreak3D)"); return 0; } int lua_register_cocos2dx_MotionStreak3D(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.MotionStreak3D"); tolua_cclass(tolua_S,"MotionStreak3D","cc.MotionStreak3D","cc.Node",nullptr); tolua_beginmodule(tolua_S,"MotionStreak3D"); tolua_function(tolua_S,"new",lua_cocos2dx_MotionStreak3D_constructor); tolua_function(tolua_S,"reset",lua_cocos2dx_MotionStreak3D_reset); tolua_function(tolua_S,"setTexture",lua_cocos2dx_MotionStreak3D_setTexture); tolua_function(tolua_S,"getTexture",lua_cocos2dx_MotionStreak3D_getTexture); tolua_function(tolua_S,"tintWithColor",lua_cocos2dx_MotionStreak3D_tintWithColor); tolua_function(tolua_S,"getSweepAxis",lua_cocos2dx_MotionStreak3D_getSweepAxis); tolua_function(tolua_S,"setBlendFunc",lua_cocos2dx_MotionStreak3D_setBlendFunc); tolua_function(tolua_S,"setStartingPositionInitialized",lua_cocos2dx_MotionStreak3D_setStartingPositionInitialized); tolua_function(tolua_S,"getBlendFunc",lua_cocos2dx_MotionStreak3D_getBlendFunc); tolua_function(tolua_S,"isStartingPositionInitialized",lua_cocos2dx_MotionStreak3D_isStartingPositionInitialized); tolua_function(tolua_S,"getStroke",lua_cocos2dx_MotionStreak3D_getStroke); tolua_function(tolua_S,"initWithFade",lua_cocos2dx_MotionStreak3D_initWithFade); tolua_function(tolua_S,"setSweepAxis",lua_cocos2dx_MotionStreak3D_setSweepAxis); tolua_function(tolua_S,"setStroke",lua_cocos2dx_MotionStreak3D_setStroke); tolua_function(tolua_S,"create", lua_cocos2dx_MotionStreak3D_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::MotionStreak3D).name(); g_luaType[typeName] = "cc.MotionStreak3D"; g_typeCast["MotionStreak3D"] = "cc.MotionStreak3D"; return 1; } int lua_cocos2dx_ComponentLua_getScriptObject(lua_State* tolua_S) { int argc = 0; cocos2d::ComponentLua* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ComponentLua",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ComponentLua*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ComponentLua_getScriptObject'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 0) { if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ComponentLua_getScriptObject'", nullptr); return 0; } void* ret = cobj->getScriptObject(); #pragma warning NO CONVERSION FROM NATIVE FOR void*; return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ComponentLua:getScriptObject",argc, 0); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ComponentLua_getScriptObject'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ComponentLua_update(lua_State* tolua_S) { int argc = 0; cocos2d::ComponentLua* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ComponentLua",0,&tolua_err)) goto tolua_lerror; #endif cobj = (cocos2d::ComponentLua*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { tolua_error(tolua_S,"invalid 'cobj' in function 'lua_cocos2dx_ComponentLua_update'", nullptr); return 0; } #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ComponentLua:update"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ComponentLua_update'", nullptr); return 0; } cobj->update(arg0); lua_settop(tolua_S, 1); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ComponentLua:update",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ComponentLua_update'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ComponentLua_create(lua_State* tolua_S) { int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif #if COCOS2D_DEBUG >= 1 if (!tolua_isusertable(tolua_S,1,"cc.ComponentLua",0,&tolua_err)) goto tolua_lerror; #endif argc = lua_gettop(tolua_S) - 1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ComponentLua:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ComponentLua_create'", nullptr); return 0; } cocos2d::ComponentLua* ret = cocos2d::ComponentLua::create(arg0); object_to_luaval<cocos2d::ComponentLua>(tolua_S, "cc.ComponentLua",(cocos2d::ComponentLua*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ComponentLua:create",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_lerror: tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ComponentLua_create'.",&tolua_err); #endif return 0; } int lua_cocos2dx_ComponentLua_constructor(lua_State* tolua_S) { int argc = 0; cocos2d::ComponentLua* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; #endif argc = lua_gettop(tolua_S)-1; if (argc == 1) { std::string arg0; ok &= luaval_to_std_string(tolua_S, 2,&arg0, "cc.ComponentLua:ComponentLua"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ComponentLua_constructor'", nullptr); return 0; } cobj = new cocos2d::ComponentLua(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"cc.ComponentLua"); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ComponentLua:ComponentLua",argc, 1); return 0; #if COCOS2D_DEBUG >= 1 tolua_error(tolua_S,"#ferror in function 'lua_cocos2dx_ComponentLua_constructor'.",&tolua_err); #endif return 0; } static int lua_cocos2dx_ComponentLua_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (ComponentLua)"); return 0; } int lua_register_cocos2dx_ComponentLua(lua_State* tolua_S) { tolua_usertype(tolua_S,"cc.ComponentLua"); tolua_cclass(tolua_S,"ComponentLua","cc.ComponentLua","cc.Component",nullptr); tolua_beginmodule(tolua_S,"ComponentLua"); tolua_function(tolua_S,"new",lua_cocos2dx_ComponentLua_constructor); tolua_function(tolua_S,"getScriptObject",lua_cocos2dx_ComponentLua_getScriptObject); tolua_function(tolua_S,"update",lua_cocos2dx_ComponentLua_update); tolua_function(tolua_S,"create", lua_cocos2dx_ComponentLua_create); tolua_endmodule(tolua_S); std::string typeName = typeid(cocos2d::ComponentLua).name(); g_luaType[typeName] = "cc.ComponentLua"; g_typeCast["ComponentLua"] = "cc.ComponentLua"; return 1; } TOLUA_API int register_all_cocos2dx(lua_State* tolua_S) { tolua_open(tolua_S); tolua_module(tolua_S,"cc",0); tolua_beginmodule(tolua_S,"cc"); lua_register_cocos2dx_Ref(tolua_S); lua_register_cocos2dx_RenderState(tolua_S); lua_register_cocos2dx_Material(tolua_S); lua_register_cocos2dx_Console(tolua_S); lua_register_cocos2dx_Node(tolua_S); lua_register_cocos2dx_Scene(tolua_S); lua_register_cocos2dx_TransitionScene(tolua_S); lua_register_cocos2dx_TransitionEaseScene(tolua_S); lua_register_cocos2dx_TransitionMoveInL(tolua_S); lua_register_cocos2dx_TransitionMoveInB(tolua_S); lua_register_cocos2dx_AtlasNode(tolua_S); lua_register_cocos2dx_TileMapAtlas(tolua_S); lua_register_cocos2dx_TransitionMoveInT(tolua_S); lua_register_cocos2dx_TMXTilesetInfo(tolua_S); lua_register_cocos2dx_TransitionMoveInR(tolua_S); lua_register_cocos2dx_Action(tolua_S); lua_register_cocos2dx_FiniteTimeAction(tolua_S); lua_register_cocos2dx_ActionInstant(tolua_S); lua_register_cocos2dx_Hide(tolua_S); lua_register_cocos2dx_ParticleSystem(tolua_S); lua_register_cocos2dx_ParticleSystemQuad(tolua_S); lua_register_cocos2dx_ParticleSpiral(tolua_S); lua_register_cocos2dx_GridBase(tolua_S); lua_register_cocos2dx_AnimationCache(tolua_S); lua_register_cocos2dx_ActionInterval(tolua_S); lua_register_cocos2dx_ActionCamera(tolua_S); lua_register_cocos2dx_ProgressFromTo(tolua_S); lua_register_cocos2dx_MoveBy(tolua_S); lua_register_cocos2dx_MoveTo(tolua_S); lua_register_cocos2dx_JumpBy(tolua_S); lua_register_cocos2dx_EventListener(tolua_S); lua_register_cocos2dx_EventListenerKeyboard(tolua_S); lua_register_cocos2dx_EventListenerMouse(tolua_S); lua_register_cocos2dx_TransitionRotoZoom(tolua_S); lua_register_cocos2dx_Director(tolua_S); lua_register_cocos2dx_Scheduler(tolua_S); lua_register_cocos2dx_ActionEase(tolua_S); lua_register_cocos2dx_EaseElastic(tolua_S); lua_register_cocos2dx_EaseElasticOut(tolua_S); lua_register_cocos2dx_EaseQuadraticActionInOut(tolua_S); lua_register_cocos2dx_EaseBackOut(tolua_S); lua_register_cocos2dx_Texture2D(tolua_S); lua_register_cocos2dx_TransitionSceneOriented(tolua_S); lua_register_cocos2dx_TransitionFlipX(tolua_S); lua_register_cocos2dx_CameraBackgroundBrush(tolua_S); lua_register_cocos2dx_CameraBackgroundDepthBrush(tolua_S); lua_register_cocos2dx_CameraBackgroundColorBrush(tolua_S); lua_register_cocos2dx_GridAction(tolua_S); lua_register_cocos2dx_TiledGrid3DAction(tolua_S); lua_register_cocos2dx_FadeOutTRTiles(tolua_S); lua_register_cocos2dx_FadeOutUpTiles(tolua_S); lua_register_cocos2dx_FadeOutDownTiles(tolua_S); lua_register_cocos2dx_StopGrid(tolua_S); lua_register_cocos2dx_Technique(tolua_S); lua_register_cocos2dx_SkewTo(tolua_S); lua_register_cocos2dx_SkewBy(tolua_S); lua_register_cocos2dx_EaseQuadraticActionOut(tolua_S); lua_register_cocos2dx_TransitionProgress(tolua_S); lua_register_cocos2dx_TransitionProgressVertical(tolua_S); lua_register_cocos2dx_Layer(tolua_S); lua_register_cocos2dx_TMXTiledMap(tolua_S); lua_register_cocos2dx_Grid3DAction(tolua_S); lua_register_cocos2dx_BaseLight(tolua_S); lua_register_cocos2dx_SpotLight(tolua_S); lua_register_cocos2dx_FadeTo(tolua_S); lua_register_cocos2dx_FadeIn(tolua_S); lua_register_cocos2dx_DirectionLight(tolua_S); lua_register_cocos2dx_ShakyTiles3D(tolua_S); lua_register_cocos2dx_EventListenerCustom(tolua_S); lua_register_cocos2dx_FlipX3D(tolua_S); lua_register_cocos2dx_FlipY3D(tolua_S); lua_register_cocos2dx_EaseSineInOut(tolua_S); lua_register_cocos2dx_TransitionFlipAngular(tolua_S); lua_register_cocos2dx_EaseElasticInOut(tolua_S); lua_register_cocos2dx_EaseBounce(tolua_S); lua_register_cocos2dx_Show(tolua_S); lua_register_cocos2dx_FadeOut(tolua_S); lua_register_cocos2dx_CallFunc(tolua_S); lua_register_cocos2dx_Event(tolua_S); lua_register_cocos2dx_EventMouse(tolua_S); lua_register_cocos2dx_GLView(tolua_S); lua_register_cocos2dx_EaseBezierAction(tolua_S); lua_register_cocos2dx_ParticleFireworks(tolua_S); lua_register_cocos2dx_MenuItem(tolua_S); lua_register_cocos2dx_MenuItemSprite(tolua_S); lua_register_cocos2dx_MenuItemImage(tolua_S); lua_register_cocos2dx_AutoPolygon(tolua_S); lua_register_cocos2dx_ParticleSmoke(tolua_S); lua_register_cocos2dx_TransitionZoomFlipAngular(tolua_S); lua_register_cocos2dx_EaseRateAction(tolua_S); lua_register_cocos2dx_EaseIn(tolua_S); lua_register_cocos2dx_EaseExponentialInOut(tolua_S); lua_register_cocos2dx_CardinalSplineTo(tolua_S); lua_register_cocos2dx_CatmullRomTo(tolua_S); lua_register_cocos2dx_Waves3D(tolua_S); lua_register_cocos2dx_EaseExponentialOut(tolua_S); lua_register_cocos2dx_Label(tolua_S); lua_register_cocos2dx_Application(tolua_S); lua_register_cocos2dx_DelayTime(tolua_S); lua_register_cocos2dx_LabelAtlas(tolua_S); lua_register_cocos2dx_SpriteBatchNode(tolua_S); lua_register_cocos2dx_TMXLayer(tolua_S); lua_register_cocos2dx_AsyncTaskPool(tolua_S); lua_register_cocos2dx_ParticleSnow(tolua_S); lua_register_cocos2dx_EaseElasticIn(tolua_S); lua_register_cocos2dx_EaseCircleActionInOut(tolua_S); lua_register_cocos2dx_TransitionFadeTR(tolua_S); lua_register_cocos2dx_EaseQuarticActionOut(tolua_S); lua_register_cocos2dx_EventAcceleration(tolua_S); lua_register_cocos2dx_EaseCubicActionIn(tolua_S); lua_register_cocos2dx_TextureCache(tolua_S); lua_register_cocos2dx_ActionTween(tolua_S); lua_register_cocos2dx_TransitionFadeDown(tolua_S); lua_register_cocos2dx_ParticleSun(tolua_S); lua_register_cocos2dx_TransitionProgressHorizontal(tolua_S); lua_register_cocos2dx_TMXObjectGroup(tolua_S); lua_register_cocos2dx_ParticleFire(tolua_S); lua_register_cocos2dx_FlipX(tolua_S); lua_register_cocos2dx_FlipY(tolua_S); lua_register_cocos2dx_EventKeyboard(tolua_S); lua_register_cocos2dx_TransitionSplitCols(tolua_S); lua_register_cocos2dx_Timer(tolua_S); lua_register_cocos2dx_RepeatForever(tolua_S); lua_register_cocos2dx_Place(tolua_S); lua_register_cocos2dx_EventListenerAcceleration(tolua_S); lua_register_cocos2dx_TiledGrid3D(tolua_S); lua_register_cocos2dx_EaseBounceOut(tolua_S); lua_register_cocos2dx_RenderTexture(tolua_S); lua_register_cocos2dx_TintBy(tolua_S); lua_register_cocos2dx_TransitionShrinkGrow(tolua_S); lua_register_cocos2dx_ClippingNode(tolua_S); lua_register_cocos2dx_ActionFloat(tolua_S); lua_register_cocos2dx_ParticleFlower(tolua_S); lua_register_cocos2dx_EaseCircleActionIn(tolua_S); lua_register_cocos2dx_Image(tolua_S); lua_register_cocos2dx_LayerMultiplex(tolua_S); lua_register_cocos2dx_Blink(tolua_S); lua_register_cocos2dx_JumpTo(tolua_S); lua_register_cocos2dx_ParticleExplosion(tolua_S); lua_register_cocos2dx_TransitionJumpZoom(tolua_S); lua_register_cocos2dx_Pass(tolua_S); lua_register_cocos2dx_Touch(tolua_S); lua_register_cocos2dx_CardinalSplineBy(tolua_S); lua_register_cocos2dx_CatmullRomBy(tolua_S); lua_register_cocos2dx_NodeGrid(tolua_S); lua_register_cocos2dx_TMXLayerInfo(tolua_S); lua_register_cocos2dx_EaseSineIn(tolua_S); lua_register_cocos2dx_EaseBounceIn(tolua_S); lua_register_cocos2dx_Camera(tolua_S); lua_register_cocos2dx_GLProgram(tolua_S); lua_register_cocos2dx_ParticleGalaxy(tolua_S); lua_register_cocos2dx_Twirl(tolua_S); lua_register_cocos2dx_MenuItemLabel(tolua_S); lua_register_cocos2dx_EaseQuinticActionIn(tolua_S); lua_register_cocos2dx_LayerColor(tolua_S); lua_register_cocos2dx_FadeOutBLTiles(tolua_S); lua_register_cocos2dx_LayerGradient(tolua_S); lua_register_cocos2dx_EventListenerTouchAllAtOnce(tolua_S); lua_register_cocos2dx_GLViewImpl(tolua_S); lua_register_cocos2dx_ToggleVisibility(tolua_S); lua_register_cocos2dx_Repeat(tolua_S); lua_register_cocos2dx_TransitionFlipY(tolua_S); lua_register_cocos2dx_TurnOffTiles(tolua_S); lua_register_cocos2dx_TintTo(tolua_S); lua_register_cocos2dx_EaseBackInOut(tolua_S); lua_register_cocos2dx_TransitionFadeBL(tolua_S); lua_register_cocos2dx_TargetedAction(tolua_S); lua_register_cocos2dx_DrawNode(tolua_S); lua_register_cocos2dx_TransitionTurnOffTiles(tolua_S); lua_register_cocos2dx_RotateTo(tolua_S); lua_register_cocos2dx_TransitionSplitRows(tolua_S); lua_register_cocos2dx_Device(tolua_S); lua_register_cocos2dx_TransitionProgressRadialCCW(tolua_S); lua_register_cocos2dx_ScaleTo(tolua_S); lua_register_cocos2dx_TransitionPageTurn(tolua_S); lua_register_cocos2dx_Properties(tolua_S); lua_register_cocos2dx_BezierBy(tolua_S); lua_register_cocos2dx_BezierTo(tolua_S); lua_register_cocos2dx_ParticleMeteor(tolua_S); lua_register_cocos2dx_SpriteFrame(tolua_S); lua_register_cocos2dx_Liquid(tolua_S); lua_register_cocos2dx_UserDefault(tolua_S); lua_register_cocos2dx_TransitionZoomFlipX(tolua_S); lua_register_cocos2dx_EventFocus(tolua_S); lua_register_cocos2dx_TransitionFade(tolua_S); lua_register_cocos2dx_EaseQuinticActionInOut(tolua_S); lua_register_cocos2dx_SpriteFrameCache(tolua_S); lua_register_cocos2dx_PointLight(tolua_S); lua_register_cocos2dx_TransitionCrossFade(tolua_S); lua_register_cocos2dx_Ripple3D(tolua_S); lua_register_cocos2dx_Lens3D(tolua_S); lua_register_cocos2dx_EventListenerFocus(tolua_S); lua_register_cocos2dx_Spawn(tolua_S); lua_register_cocos2dx_EaseQuarticActionInOut(tolua_S); lua_register_cocos2dx_GLProgramState(tolua_S); lua_register_cocos2dx_PageTurn3D(tolua_S); lua_register_cocos2dx_PolygonInfo(tolua_S); lua_register_cocos2dx_Grid3D(tolua_S); lua_register_cocos2dx_EaseCircleActionOut(tolua_S); lua_register_cocos2dx_TransitionProgressInOut(tolua_S); lua_register_cocos2dx_EaseCubicActionInOut(tolua_S); lua_register_cocos2dx_ParticleData(tolua_S); lua_register_cocos2dx_EaseBackIn(tolua_S); lua_register_cocos2dx_SplitRows(tolua_S); lua_register_cocos2dx_Follow(tolua_S); lua_register_cocos2dx_Animate(tolua_S); lua_register_cocos2dx_ShuffleTiles(tolua_S); lua_register_cocos2dx_CameraBackgroundSkyBoxBrush(tolua_S); lua_register_cocos2dx_ProgressTimer(tolua_S); lua_register_cocos2dx_EaseQuarticActionIn(tolua_S); lua_register_cocos2dx_Menu(tolua_S); lua_register_cocos2dx_EaseInOut(tolua_S); lua_register_cocos2dx_TransitionZoomFlipY(tolua_S); lua_register_cocos2dx_ScaleBy(tolua_S); lua_register_cocos2dx_EventTouch(tolua_S); lua_register_cocos2dx_Animation(tolua_S); lua_register_cocos2dx_TMXMapInfo(tolua_S); lua_register_cocos2dx_EaseExponentialIn(tolua_S); lua_register_cocos2dx_ReuseGrid(tolua_S); lua_register_cocos2dx_EaseQuinticActionOut(tolua_S); lua_register_cocos2dx_EventDispatcher(tolua_S); lua_register_cocos2dx_MenuItemAtlasFont(tolua_S); lua_register_cocos2dx_ActionManager(tolua_S); lua_register_cocos2dx_OrbitCamera(tolua_S); lua_register_cocos2dx_ParallaxNode(tolua_S); lua_register_cocos2dx_ClippingRectangleNode(tolua_S); lua_register_cocos2dx_EventCustom(tolua_S); lua_register_cocos2dx_ParticleBatchNode(tolua_S); lua_register_cocos2dx_Component(tolua_S); lua_register_cocos2dx_EaseCubicActionOut(tolua_S); lua_register_cocos2dx_EventListenerTouchOneByOne(tolua_S); lua_register_cocos2dx_ParticleRain(tolua_S); lua_register_cocos2dx_Waves(tolua_S); lua_register_cocos2dx_ComponentLua(tolua_S); lua_register_cocos2dx_MotionStreak3D(tolua_S); lua_register_cocos2dx_EaseOut(tolua_S); lua_register_cocos2dx_TransitionSlideInL(tolua_S); lua_register_cocos2dx_MenuItemFont(tolua_S); lua_register_cocos2dx_TransitionFadeUp(tolua_S); lua_register_cocos2dx_EaseSineOut(tolua_S); lua_register_cocos2dx_JumpTiles3D(tolua_S); lua_register_cocos2dx_MenuItemToggle(tolua_S); lua_register_cocos2dx_RemoveSelf(tolua_S); lua_register_cocos2dx_SplitCols(tolua_S); lua_register_cocos2dx_ProtectedNode(tolua_S); lua_register_cocos2dx_MotionStreak(tolua_S); lua_register_cocos2dx_RotateBy(tolua_S); lua_register_cocos2dx_FileUtils(tolua_S); lua_register_cocos2dx_Sprite(tolua_S); lua_register_cocos2dx_TransitionSlideInT(tolua_S); lua_register_cocos2dx_ProgressTo(tolua_S); lua_register_cocos2dx_TransitionProgressOutIn(tolua_S); lua_register_cocos2dx_AnimationFrame(tolua_S); lua_register_cocos2dx_Sequence(tolua_S); lua_register_cocos2dx_Shaky3D(tolua_S); lua_register_cocos2dx_TransitionProgressRadialCW(tolua_S); lua_register_cocos2dx_EaseBounceInOut(tolua_S); lua_register_cocos2dx_TransitionSlideInR(tolua_S); lua_register_cocos2dx_AmbientLight(tolua_S); lua_register_cocos2dx_GLProgramCache(tolua_S); lua_register_cocos2dx_EaseQuadraticActionIn(tolua_S); lua_register_cocos2dx_WavesTiles3D(tolua_S); lua_register_cocos2dx_TransitionSlideInB(tolua_S); lua_register_cocos2dx_Speed(tolua_S); lua_register_cocos2dx_ShatteredTiles3D(tolua_S); tolua_endmodule(tolua_S); return 1; }
[ "hecangbo@qq.com" ]
hecangbo@qq.com
f8e399582583c044317aad4334964be90895690a
cd33c0f512f8dc7fbcc6d6ecd2a66707dd4b175d
/Tile.cpp
9bf8f506735aecb8e72749927181a0f3f3d03a8a
[]
no_license
SunsetTwilight/MarjongChecker
871899dab46f46869a675214fbd27b0164e206f7
dbd766b18a4fdcabe015f44ee72a78c77965a0ad
refs/heads/master
2023-07-09T18:47:22.103301
2021-08-16T20:13:23
2021-08-16T20:13:23
385,597,699
0
1
null
null
null
null
UTF-8
C++
false
false
540
cpp
#include "Tile.h" unsigned int& Tile::GetTileNum() { return tile_num; } void Tile::SetTileNum(unsigned int num) { tile_num = num; } void Tile::ChangeTable(Tile& tile) { std::swap(tile_num, tile.GetTileNum()); } Tile::Tile() :tile_num(NullTile) {} Tile::Tile(unsigned int& num) : tile_num(num) {} Tile::Tile(const unsigned int& num) : tile_num(num) {} const unsigned int Tile::operator+(const unsigned int num) { return GetTileNum() + num; } const unsigned int Tile::operator-(const unsigned int num) { return GetTileNum() + num; }
[ "shinkou3021@gmail.com" ]
shinkou3021@gmail.com