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)); } }
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); }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); }
public void SetSceneContext(SceneContextInfo context) { m_SceneContext = context; }
public static long SkillCalc(SceneContextInfo context, CharacterProperty npc, CharacterProperty target, string proc, params long[] args) { return(SkillCalculator.Calc(context, npc, target, proc, args)); }