SHARE
TWEET

Example NetEasy Mod Class

a guest Feb 21st, 2020 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public class MyMod : Mod
  2.     {
  3.         // To use NetEasy, make sure you do these two things:
  4.  
  5.         // Make sure to load your mod...
  6.         public override void Load()
  7.         {
  8.             NetEasy.NetEasy.Load(this);
  9.         }
  10.  
  11.         // ...And to handle any incoming packets.
  12.         public override void HandlePacket(BinaryReader reader, int whoAmI)
  13.         {
  14.             NetEasy.NetEasy.HandleModule(reader, whoAmI);
  15.         }
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top