示例#1
0
        public static void Postfix(PlayerControl __instance, byte HKHMBLJFLMC,
                                   MessageReader ALMCIJKELCP)
        {
            if (HKHMBLJFLMC != Message.RPCId)
            {
                return;
            }

            var ModId     = ALMCIJKELCP.ReadInt32();
            var MessageId = ALMCIJKELCP.ReadInt32();

            XenoMods.ById(ModId)
            .MessageById(MessageId)
            .PreHandle(__instance, ALMCIJKELCP);
        }
示例#2
0
文件: Mods.cs 项目: XenoMods/XenoCore
 public void DoRegister()
 {
     XenoMods.Register(this);
 }
示例#3
0
文件: Mods.cs 项目: XenoMods/XenoCore
 protected override void Handle()
 {
     XenoMods.ReadSync(Reader);
 }