public static void PluginText(StringBuilder sb, Plugin pl, BinLogFlags flags, int fileid) { if (HasFlag(flags, BinLogFlags.Show_PlugId) && HasFlag(flags, BinLogFlags.Show_PlugFile)) { sb.Append("\""); sb.Append(pl.File); if (pl.IsDebug()) { sb.Append(", "); sb.Append(pl.FindFile(fileid)); } sb.Append("\""); sb.Append(" ("); sb.Append(pl.Index); sb.Append(")"); } else if (HasFlag(flags, BinLogFlags.Show_PlugId)) { sb.Append(pl.Index); } else if (HasFlag(flags, BinLogFlags.Show_PlugFile)) { sb.Append("\""); sb.Append(pl.File); if (pl.IsDebug()) { sb.Append(", "); sb.Append(pl.FindFile(fileid)); } sb.Append("\""); } }
public static void PluginText(StringBuilder sb, Plugin pl, BinLogFlags flags) { if (HasFlag(flags, BinLogFlags.Show_PlugId) && HasFlag(flags, BinLogFlags.Show_PlugFile)) { sb.Append("\""); sb.Append(pl.File); sb.Append("\""); sb.Append(" ("); sb.Append(pl.Index); sb.Append(")"); } else if (HasFlag(flags, BinLogFlags.Show_PlugId)) { sb.Append(pl.Index); } else if (HasFlag(flags, BinLogFlags.Show_PlugFile)) { sb.Append("\""); sb.Append(pl.File); sb.Append("\""); } }
public BinLogRegister(float gt, long rt, Plugin _pl) : base(gt, rt, _pl) { }
public BinLogNativeParams(float gt, long rt, Plugin _pl) : base(gt, rt, _pl) { }
public BinLogFmtString(int pa, int ma, string str, float gt, long rt, Plugin _pl) : base(gt, rt, _pl) { parm = pa; maxlen = ma; text = str; }
public BinLogSimple(BinLogOp op, float gt, long rt, Plugin _pl) : base(gt, rt, _pl) { my_op = op; }
protected BinLogEntry(float gt, long rt, Plugin _pl) { GameTime = gt; RealTime = rt; pl = _pl; }
public BinLogNativeRet(long ret, float gt, long rt, Plugin _pl) : base(gt, rt, _pl) { returnval = ret; }
public BinLogNativeCall(int na, int nu, float gt, long rt, Plugin _pl, int _file) : base(gt, rt, _pl) { nativeidx = na; numparams = nu; fileid = _file; }
public BinLogGetString(long addr, string fmt, float gt, long rt, Plugin _pl) : base(gt, rt, _pl) { address = addr; text = fmt; }
public BinLogSetString(long addr, int _maxlen, string fmt, float gt, long rt, Plugin _pl) : base(gt, rt, _pl) { address = addr; maxlen = _maxlen; text = fmt; }
public BinLogPublic(int pi, float gt, long rt, Plugin _pl, int _file) : base(gt, rt, _pl) { pubidx = pi; fileid = _file; }
public BinLogSetLine(int _line, float gt, long rt, Plugin _pl, int file) : base(gt, rt, _pl) { line = _line; fileid = file; }
private int CreatePlugin(string file, int natives, int publics, int files, byte status, int index) { Plugin pl = new Plugin(file, natives, publics, files, status, index); PluginList.Add(pl); return PluginList.Count - 1; }