Exemple #1
0
 static public int Set(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(Dsl.ISyntaxComponent)))
         {
             SkillSystem.SkillObjectParam self = (SkillSystem.SkillObjectParam)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(System.Object)))
         {
             SkillSystem.SkillObjectParam self = (SkillSystem.SkillObjectParam)checkSelf(l);
             System.Object 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));
     }
 }
Exemple #2
0
 static public int get_EditableValue(IntPtr l)
 {
     try {
         SkillSystem.SkillObjectParam self = (SkillSystem.SkillObjectParam)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.EditableValue);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #3
0
 static public int constructor(IntPtr l)
 {
     try {
         SkillSystem.SkillObjectParam o;
         o = new SkillSystem.SkillObjectParam();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #4
0
 static public int CopyFrom(IntPtr l)
 {
     try {
         SkillSystem.SkillObjectParam self = (SkillSystem.SkillObjectParam)checkSelf(l);
         SkillSystem.SkillObjectParam a1;
         checkType(l, 2, out a1);
         self.CopyFrom(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #5
0
 static public int set_EditableValue(IntPtr l)
 {
     try {
         SkillSystem.SkillObjectParam self = (SkillSystem.SkillObjectParam)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));
     }
 }
Exemple #6
0
 static public int Get(IntPtr l)
 {
     try {
         SkillSystem.SkillObjectParam self = (SkillSystem.SkillObjectParam)checkSelf(l);
         SkillSystem.SkillInstance    a1;
         checkType(l, 2, out a1);
         var ret = self.Get(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 public void CopyFrom(SkillObjectParam other)
 {
     m_Key   = other.m_Key;
     m_Value = other.m_Value;
 }