using UnityEngine;
using System;
using LuaInterface;
using SLua;
using System.Collections.Generic;
public class Lua_UnityEngine_TargetJoint2D : LuaObject {
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int constructor(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D o;
			o=new UnityEngine.TargetJoint2D();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_anchor(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			pushValue(l,true);
			pushValue(l,self.anchor);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int set_anchor(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			UnityEngine.Vector2 v;
			checkType(l,2,out v);
			self.anchor=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_target(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			pushValue(l,true);
			pushValue(l,self.target);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int set_target(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			UnityEngine.Vector2 v;
			checkType(l,2,out v);
			self.target=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_autoConfigureTarget(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			pushValue(l,true);
			pushValue(l,self.autoConfigureTarget);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int set_autoConfigureTarget(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			bool v;
			checkType(l,2,out v);
			self.autoConfigureTarget=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_maxForce(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			pushValue(l,true);
			pushValue(l,self.maxForce);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int set_maxForce(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			float v;
			checkType(l,2,out v);
			self.maxForce=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_dampingRatio(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			pushValue(l,true);
			pushValue(l,self.dampingRatio);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int set_dampingRatio(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			float v;
			checkType(l,2,out v);
			self.dampingRatio=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_frequency(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			pushValue(l,true);
			pushValue(l,self.frequency);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int set_frequency(IntPtr l) {
		try {
			UnityEngine.TargetJoint2D self=(UnityEngine.TargetJoint2D)checkSelf(l);
			float v;
			checkType(l,2,out v);
			self.frequency=v;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	static public void reg(IntPtr l) {
		getTypeTable(l,"UnityEngine.TargetJoint2D");
		addMember(l,"anchor",get_anchor,set_anchor,true);
		addMember(l,"target",get_target,set_target,true);
		addMember(l,"autoConfigureTarget",get_autoConfigureTarget,set_autoConfigureTarget,true);
		addMember(l,"maxForce",get_maxForce,set_maxForce,true);
		addMember(l,"dampingRatio",get_dampingRatio,set_dampingRatio,true);
		addMember(l,"frequency",get_frequency,set_frequency,true);
		createTypeMetatable(l,constructor, typeof(UnityEngine.TargetJoint2D),typeof(UnityEngine.Joint2D));
	}
}
