Пример #1
0
 static public int set_OnHighlightPrompt(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo          self = (GameFramework.SceneContextInfo)checkSelf(l);
         GameFramework.HighlightPromptDelegation v;
         int op = LuaDelegation.checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.OnHighlightPrompt = v;
         }
         else if (op == 1)
         {
             self.OnHighlightPrompt += v;
         }
         else if (op == 2)
         {
             self.OnHighlightPrompt -= v;
         }
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #2
0
 public override long Calc(GameFramework.SceneContextInfo context, GameFramework.CharacterProperty source, GameFramework.CharacterProperty target, long[] args)
 {
     if (null != m_Plugin)
     {
         return(m_Plugin.Calc(context, source, target, args));
     }
     return(0);
 }
Пример #3
0
 static public int ResetUniqueId(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         self.ResetUniqueId();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #4
0
 static public int get_IsRunWithRoomServer(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.IsRunWithRoomServer);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #5
0
 static public int get_CustomData(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.CustomData);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #6
0
 static public int get_SceneLogicInfoManager(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.SceneLogicInfoManager);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #7
0
 static public int constructor(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo o;
         o = new GameFramework.SceneContextInfo();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #8
0
 static public int set_KdTree(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         GameFramework.KdObjectTree     v;
         checkType(l, 2, out v);
         self.KdTree = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #9
0
 static public int set_EntityManager(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         GameFramework.EntityManager    v;
         checkType(l, 2, out v);
         self.EntityManager = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #10
0
 static public int set_BlackBoard(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         GameFramework.BlackBoard       v;
         checkType(l, 2, out v);
         self.BlackBoard = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #11
0
 static public int set_CustomData(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         System.Object v;
         checkType(l, 2, out v);
         self.CustomData = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #12
0
 static public int set_StartTime(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         System.Int64 v;
         checkType(l, 2, out v);
         self.StartTime = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #13
0
 static public int set_IsRunWithRoomServer(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.IsRunWithRoomServer = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #14
0
 static public int GetEntityByUnitId(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         var ret = self.GetEntityByUnitId(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #15
0
 static public int HighlightPromptAll(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Object[] a2;
         checkParams(l, 3, out a2);
         self.HighlightPromptAll(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #16
0
 static public int ObjectSet(IntPtr l)
 {
     try {
         GameFramework.SceneContextInfo self = (GameFramework.SceneContextInfo)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         System.String a2;
         checkType(l, 3, out a2);
         System.Object a3;
         checkType(l, 4, out a3);
         self.ObjectSet(a1, a2, a3);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #17
0
    public System.Int64 Calc(GameFramework.SceneContextInfo context, GameFramework.CharacterProperty source, GameFramework.CharacterProperty target, params System.Int64[] args)
    {
        var err = LuaFunctionHelper.BeginCall(m_Cs2Lua_Calc);

        LuaFunctionHelper.PushValue(Self);
        LuaFunctionHelper.PushValue(context);
        LuaFunctionHelper.PushValue(source);
        LuaFunctionHelper.PushValue(target);
        LuaFunctionHelper.PushParams(args);
        var end_call_res = LuaFunctionHelper.EndCall(err);

        if (end_call_res)
        {
            LuaFunctionHelper.BeginGetResult(err);
            System.Int64 __cs2lua_ret;
            LuaFunctionHelper.GetResult(out __cs2lua_ret);
            LuaFunctionHelper.EndGetResult();
            return(__cs2lua_ret);
        }
        else
        {
            return((System.Int64) 0);
        }
    }
    public System.Int64 Calc(GameFramework.SceneContextInfo context, GameFramework.CharacterProperty source, GameFramework.CharacterProperty target, params System.Int64[] args)
    {
        var __cs2lua_ret = base.CallFunction(m_Cs2Lua_Calc, true, Self, context, source, target, args);

        return(base.CastTo <System.Int64>(__cs2lua_ret));
    }
Пример #19
0
 public void SetSceneContext(SceneContextInfo context)
 {
     m_SceneContext = context;
 }
 public void SetSceneContext(SceneContextInfo context)
 {
     m_SceneContext = context;
 }
Пример #21
0
 public static long SkillCalc(SceneContextInfo context, CharacterProperty npc, CharacterProperty target, string proc, params long[] args)
 {
     return(SkillCalculator.Calc(context, npc, target, proc, args));
 }