static public int Set(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(Dsl.ISyntaxComponent)))
         {
             SkillSystem.SkillResourceParam self = (SkillSystem.SkillResourceParam)checkSelf(l);
             Dsl.ISyntaxComponent           a1;
             checkType(l, 2, out a1);
             self.Set(a1);
             pushValue(l, true);
             return(1);
         }
         else if (matchType(l, argc, 2, typeof(string)))
         {
             SkillSystem.SkillResourceParam self = (SkillSystem.SkillResourceParam)checkSelf(l);
             System.String a1;
             checkType(l, 2, out a1);
             self.Set(a1);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 2
0
 static public int Get(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 1)
         {
             SkillSystem.SkillResourceParam self = (SkillSystem.SkillResourceParam)checkSelf(l);
             var ret = self.Get();
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 3)
         {
             SkillSystem.SkillResourceParam self = (SkillSystem.SkillResourceParam)checkSelf(l);
             SkillSystem.SkillInstance      a1;
             checkType(l, 2, out a1);
             System.Collections.Generic.Dictionary <System.String, System.String> a2;
             checkType(l, 3, out a2);
             var ret = self.Get(a1, a2);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int get_EditableValue(IntPtr l)
 {
     try {
         SkillSystem.SkillResourceParam self = (SkillSystem.SkillResourceParam)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.EditableValue);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         SkillSystem.SkillResourceParam o;
         o = new SkillSystem.SkillResourceParam();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int CopyFrom(IntPtr l)
 {
     try {
         SkillSystem.SkillResourceParam self = (SkillSystem.SkillResourceParam)checkSelf(l);
         SkillSystem.SkillResourceParam a1;
         checkType(l, 2, out a1);
         self.CopyFrom(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_EditableValue(IntPtr l)
 {
     try {
         SkillSystem.SkillResourceParam self = (SkillSystem.SkillResourceParam)checkSelf(l);
         System.Object v;
         checkType(l, 2, out v);
         self.EditableValue = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int Get(IntPtr l)
 {
     try {
         SkillSystem.SkillResourceParam self = (SkillSystem.SkillResourceParam)checkSelf(l);
         SkillSystem.SkillInstance      a1;
         checkType(l, 2, out a1);
         System.Collections.Generic.Dictionary <System.String, System.String> a2;
         checkType(l, 3, out a2);
         var ret = self.Get(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public void CopyFrom(SkillResourceParam other)
 {
     m_KeyOrValue = other.m_KeyOrValue;
 }