SharpMod.Message.Intercept C# (CSharp) Method

Intercept() public static method

public static Intercept ( int id, Delegate del ) : bool
id int
del System.Delegate
return bool
        public static bool Intercept(int id, Delegate del)
        {
            var node = Message.TypeNames[id];

            if (node == null) {
                return false;
            }

            node.invokerlist.Add(del);
            return true;
        }

Same methods

Message::Intercept ( string name, Delegate del ) : bool

Usage Example

Beispiel #1
0
 public static void Init()
 {
     Message.Intercept(30, (Action)ChangeMap);
 }