SendImpact() private method

private SendImpact ( TableConfig cfg, int seq, int curObjId, int srcObjId, int targetId, int impactId, object>.Dictionary args ) : ImpactInfo
cfg TableConfig
seq int
curObjId int
srcObjId int
targetId int
impactId int
args object>.Dictionary
return ImpactInfo
Example #1
0
 static public int SendImpact(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 5)
         {
             GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             System.Int32 a3;
             checkType(l, 4, out a3);
             System.Int32 a4;
             checkType(l, 5, out a4);
             var ret = self.SendImpact(a1, a2, a3, a4);
             pushValue(l, true);
             pushValue(l, ret);
             return(2);
         }
         else if (argc == 9)
         {
             GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
             TableConfig.Skill a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             System.Int32 a3;
             checkType(l, 4, out a3);
             System.Int32 a4;
             checkType(l, 5, out a4);
             System.Int32 a5;
             checkType(l, 6, out a5);
             System.Int32 a6;
             checkType(l, 7, out a6);
             System.Boolean a7;
             checkType(l, 8, out a7);
             System.Collections.Generic.Dictionary <System.String, System.Object> a8;
             checkType(l, 9, out a8);
             var ret = self.SendImpact(a1, a2, a3, a4, a5, a6, a7, a8);
             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));
     }
 }