public static bool Intercept(int id, Delegate del) { var node = Message.TypeNames[id]; if (node == null) { return false; } node.invokerlist.Add(del); return true; }
public static void Init() { Message.Intercept(30, (Action)ChangeMap); }