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

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

            if (Type == 0x01)
            {
                writer.Write(
                    MetafileManager.GetMetafiles());
            }
        }
Пример #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());
            }
        }