public override void Serialize(NetworkPacketWriter writer)
        {
            writer.Write(Type);

            if (Type == 0x00)
            {
                writer.Write(
                    MetafileManager.GetMetafile(Name));
            }

            if (Type == 0x01)
            {
                writer.Write(
                    MetafileManager.GetMetafiles());
            }
        }
Beispiel #2
0
        public override void Serialize(NetworkPacketWriter writer)
        {
            if (string.IsNullOrWhiteSpace(Name))
            {
                return;
            }


            writer.Write(Type);

            if (Type == 0x00)
            {
                writer.Write(
                    MetafileManager.GetMetafile(Name));
            }

            if (Type == 0x01)
            {
                writer.Write(
                    MetafileManager.GetMetafiles());
            }
        }