static public int get_pos14(IntPtr l) { try { TableConfig.Formation self = (TableConfig.Formation)checkSelf(l); pushValue(l, true); pushValue(l, self.pos14); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int BuildFormationInfo(IntPtr l) { try { TableConfig.Formation self = (TableConfig.Formation)checkSelf(l); self.BuildFormationInfo(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { TableConfig.Formation o; o = new TableConfig.Formation(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int GetId(IntPtr l) { try { TableConfig.Formation self = (TableConfig.Formation)checkSelf(l); var ret = self.GetId(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int set_pos14(IntPtr l) { try { TableConfig.Formation self = (TableConfig.Formation)checkSelf(l); System.Collections.Generic.List <System.Single> v; checkType(l, 2, out v); self.pos14 = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int set_dir13(IntPtr l) { try { TableConfig.Formation self = (TableConfig.Formation)checkSelf(l); System.Single v; checkType(l, 2, out v); self.dir13 = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int WriteToBinary(IntPtr l) { try { TableConfig.Formation self = (TableConfig.Formation)checkSelf(l); GameFramework.BinaryTable a1; checkType(l, 2, out a1); self.WriteToBinary(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int GetPosDir(IntPtr l) { try { TableConfig.Formation self = (TableConfig.Formation)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); var ret = self.GetPosDir(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int ReadFromBinary(IntPtr l) { try { TableConfig.Formation self = (TableConfig.Formation)checkSelf(l); GameFramework.BinaryTable a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); var ret = self.ReadFromBinary(a1, a2); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
private ScriptRuntime.Vector3 GetHomePos(int formationIndex, EntityInfo leader) { ScriptRuntime.Vector3 pos; int id = GetFormationId(leader); TableConfig.Formation formation = TableConfig.FormationProvider.Instance.GetFormation(id); if (null != formation) { TableConfig.Formation.PosDir posDir = formation.GetPosDir(formationIndex); float dir; pos = posDir.CalcPosDir(leader.GetMovementStateInfo().TargetPosition, leader.GetMovementStateInfo().GetFaceDir(), out dir); } else { pos = ScriptRuntime.Vector3.Zero; } return(pos); }