WriteNetWorldOrder() static private method

static private WriteNetWorldOrder ( BinaryWriter w ) : void
w System.IO.BinaryWriter
return void
Esempio n. 1
0
        internal static void SendNetIDs(int toClient)
        {
            var p = new ModPacket(MessageID.ModPacket);

            p.Write(netMods.Length);
            foreach (var mod in netMods)
            {
                p.Write(mod.Name);
            }

            ItemLoader.WriteNetGlobalOrder(p);
            WorldHooks.WriteNetWorldOrder(p);

            p.Send(toClient);
        }