diff --git a/Assets Editor/App.xaml b/Assets Editor/App.xaml index 10787c5..621f28c 100644 --- a/Assets Editor/App.xaml +++ b/Assets Editor/App.xaml @@ -9,6 +9,7 @@ + diff --git a/Assets Editor/Appearances.cs b/Assets Editor/Appearances.cs index fd0fcf4..24bc2ea 100644 --- a/Assets Editor/Appearances.cs +++ b/Assets Editor/Appearances.cs @@ -1,165 +1,194 @@ // // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: appearances/appearances.proto +// source: appearances.proto // -#pragma warning disable 1591, 0612, 3021, 8981 +#pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; -namespace Tibia.Protobuf.Appearances -{ - - /// Holder for reflection information generated from appearances/appearances.proto - public static partial class AppearancesReflection - { - - #region Descriptor - /// File descriptor for appearances/appearances.proto - public static pbr::FileDescriptor Descriptor - { - get { return descriptor; } - } - private static pbr::FileDescriptor descriptor; - - static AppearancesReflection() - { - byte[] descriptorData = global::System.Convert.FromBase64String( - string.Concat( - "Ch1hcHBlYXJhbmNlcy9hcHBlYXJhbmNlcy5wcm90byItCgpDb29yZGluYXRl", - "EgkKAXgYASABKA0SCQoBeRgCIAEoDRIJCgF6GAMgASgNIsgBCgtBcHBlYXJh", - "bmNlcxIbCgZvYmplY3QYASADKAsyCy5BcHBlYXJhbmNlEhsKBm91dGZpdBgC", - "IAMoCzILLkFwcGVhcmFuY2USGwoGZWZmZWN0GAMgAygLMgsuQXBwZWFyYW5j", - "ZRIcCgdtaXNzaWxlGAQgAygLMgsuQXBwZWFyYW5jZRJECh5zcGVjaWFsX21l", - "YW5pbmdfYXBwZWFyYW5jZV9pZHMYBSABKAsyHC5TcGVjaWFsTWVhbmluZ0Fw", - "cGVhcmFuY2VJZHMiOQoLU3ByaXRlUGhhc2USFAoMZHVyYXRpb25fbWluGAEg", - "ASgNEhQKDGR1cmF0aW9uX21heBgCIAEoDSLBAQoPU3ByaXRlQW5pbWF0aW9u", - "EhsKE2RlZmF1bHRfc3RhcnRfcGhhc2UYASABKA0SFAoMc3luY2hyb25pemVk", - "GAIgASgIEhoKEnJhbmRvbV9zdGFydF9waGFzZRgDIAEoCBInCglsb29wX3R5", - "cGUYBCABKA4yFC5BTklNQVRJT05fTE9PUF9UWVBFEhIKCmxvb3BfY291bnQY", - "BSABKA0SIgoMc3ByaXRlX3BoYXNlGAYgAygLMgwuU3ByaXRlUGhhc2UiOgoD", - "Qm94EgkKAXgYASABKA0SCQoBeRgCIAEoDRINCgV3aWR0aBgDIAEoDRIOCgZo", - "ZWlnaHQYBCABKA0i8AEKClNwcml0ZUluZm8SFQoNcGF0dGVybl93aWR0aBgB", - "IAEoDRIWCg5wYXR0ZXJuX2hlaWdodBgCIAEoDRIVCg1wYXR0ZXJuX2RlcHRo", - "GAMgASgNEg4KBmxheWVycxgEIAEoDRIRCglzcHJpdGVfaWQYBSADKA0SFwoP", - "Ym91bmRpbmdfc3F1YXJlGAcgASgNEiMKCWFuaW1hdGlvbhgGIAEoCzIQLlNw", - "cml0ZUFuaW1hdGlvbhIRCglpc19vcGFxdWUYCCABKAgSKAoaYm91bmRpbmdf", - "Ym94X3Blcl9kaXJlY3Rpb24YCSADKAsyBC5Cb3giaQoKRnJhbWVHcm91cBIt", - "ChFmaXhlZF9mcmFtZV9ncm91cBgBIAEoDjISLkZJWEVEX0ZSQU1FX0dST1VQ", - "EgoKAmlkGAIgASgNEiAKC3Nwcml0ZV9pbmZvGAMgASgLMgsuU3ByaXRlSW5m", - "byJ+CgpBcHBlYXJhbmNlEgoKAmlkGAEgASgNEiAKC2ZyYW1lX2dyb3VwGAIg", - "AygLMgsuRnJhbWVHcm91cBIfCgVmbGFncxgDIAEoCzIQLkFwcGVhcmFuY2VG", - "bGFncxIMCgRuYW1lGAQgASgMEhMKC2Rlc2NyaXB0aW9uGAUgASgMIu4LCg9B", - "cHBlYXJhbmNlRmxhZ3MSIQoEYmFuaxgBIAEoCzITLkFwcGVhcmFuY2VGbGFn", - "QmFuaxIMCgRjbGlwGAIgASgIEg4KBmJvdHRvbRgDIAEoCBILCgN0b3AYBCAB", - "KAgSEQoJY29udGFpbmVyGAUgASgIEhIKCmN1bXVsYXRpdmUYBiABKAgSDgoG", - "dXNhYmxlGAcgASgIEhAKCGZvcmNldXNlGAggASgIEhAKCG11bHRpdXNlGAkg", - "ASgIEiMKBXdyaXRlGAogASgLMhQuQXBwZWFyYW5jZUZsYWdXcml0ZRIsCgp3", - "cml0ZV9vbmNlGAsgASgLMhguQXBwZWFyYW5jZUZsYWdXcml0ZU9uY2USEgoK", - "bGlxdWlkcG9vbBgMIAEoCBIOCgZ1bnBhc3MYDSABKAgSDgoGdW5tb3ZlGA4g", - "ASgIEg8KB3Vuc2lnaHQYDyABKAgSDQoFYXZvaWQYECABKAgSHQoVbm9fbW92", - "ZW1lbnRfYW5pbWF0aW9uGBEgASgIEgwKBHRha2UYEiABKAgSFwoPbGlxdWlk", - "Y29udGFpbmVyGBMgASgIEgwKBGhhbmcYFCABKAgSIQoEaG9vaxgVIAEoCzIT", - "LkFwcGVhcmFuY2VGbGFnSG9vaxIOCgZyb3RhdGUYFiABKAgSIwoFbGlnaHQY", - "FyABKAsyFC5BcHBlYXJhbmNlRmxhZ0xpZ2h0EhEKCWRvbnRfaGlkZRgYIAEo", - "CBITCgt0cmFuc2x1Y2VudBgZIAEoCBIjCgVzaGlmdBgaIAEoCzIULkFwcGVh", - "cmFuY2VGbGFnU2hpZnQSJQoGaGVpZ2h0GBsgASgLMhUuQXBwZWFyYW5jZUZs", - "YWdIZWlnaHQSFAoMbHlpbmdfb2JqZWN0GBwgASgIEhYKDmFuaW1hdGVfYWx3", - "YXlzGB0gASgIEicKB2F1dG9tYXAYHiABKAsyFi5BcHBlYXJhbmNlRmxhZ0F1", - "dG9tYXASKQoIbGVuc2hlbHAYHyABKAsyFy5BcHBlYXJhbmNlRmxhZ0xlbnNo", - "ZWxwEhAKCGZ1bGxiYW5rGCAgASgIEhMKC2lnbm9yZV9sb29rGCEgASgIEicK", - "B2Nsb3RoZXMYIiABKAsyFi5BcHBlYXJhbmNlRmxhZ0Nsb3RoZXMSNAoOZGVm", - "YXVsdF9hY3Rpb24YIyABKAsyHC5BcHBlYXJhbmNlRmxhZ0RlZmF1bHRBY3Rp", - "b24SJQoGbWFya2V0GCQgASgLMhUuQXBwZWFyYW5jZUZsYWdNYXJrZXQSDAoE", - "d3JhcBglIAEoCBIOCgZ1bndyYXAYJiABKAgSEQoJdG9wZWZmZWN0GCcgASgI", - "EicKC25wY3NhbGVkYXRhGCggAygLMhIuQXBwZWFyYW5jZUZsYWdOUEMSNwoP", - "Y2hhbmdlZHRvZXhwaXJlGCkgASgLMh4uQXBwZWFyYW5jZUZsYWdDaGFuZ2Vk", - "VG9FeHBpcmUSDgoGY29ycHNlGCogASgIEhUKDXBsYXllcl9jb3Jwc2UYKyAB", - "KAgSMQoOY3ljbG9wZWRpYWl0ZW0YLCABKAsyGS5BcHBlYXJhbmNlRmxhZ0N5", - "Y2xvcGVkaWESDAoEYW1tbxgtIAEoCBIXCg9zaG93X29mZl9zb2NrZXQYLiAB", - "KAgSEgoKcmVwb3J0YWJsZRgvIAEoCBJDChV1cGdyYWRlY2xhc3NpZmljYXRp", - "b24YMCABKAsyJC5BcHBlYXJhbmNlRmxhZ1VwZ3JhZGVDbGFzc2lmaWNhdGlv", - "bhIbChNyZXZlcnNlX2FkZG9uc19lYXN0GDEgASgIEhsKE3JldmVyc2VfYWRk", - "b25zX3dlc3QYMiABKAgSHAoUcmV2ZXJzZV9hZGRvbnNfc291dGgYMyABKAgS", - "HAoUcmV2ZXJzZV9hZGRvbnNfbm9ydGgYNCABKAgSDwoHd2Vhcm91dBg1IAEo", - "CBITCgtjbG9ja2V4cGlyZRg2IAEoCBIOCgZleHBpcmUYNyABKAgSEgoKZXhw", - "aXJlc3RvcBg4IAEoCBIPCgd3cmFwa2l0GDkgASgIIkUKI0FwcGVhcmFuY2VG", - "bGFnVXBncmFkZUNsYXNzaWZpY2F0aW9uEh4KFnVwZ3JhZGVfY2xhc3NpZmlj", - "YXRpb24YASABKA0iJwoSQXBwZWFyYW5jZUZsYWdCYW5rEhEKCXdheXBvaW50", - "cxgBIAEoDSIuChNBcHBlYXJhbmNlRmxhZ1dyaXRlEhcKD21heF90ZXh0X2xl", - "bmd0aBgBIAEoDSI3ChdBcHBlYXJhbmNlRmxhZ1dyaXRlT25jZRIcChRtYXhf", - "dGV4dF9sZW5ndGhfb25jZRgBIAEoDSI4ChNBcHBlYXJhbmNlRmxhZ0xpZ2h0", - "EhIKCmJyaWdodG5lc3MYASABKA0SDQoFY29sb3IYAiABKA0iKQoUQXBwZWFy", - "YW5jZUZsYWdIZWlnaHQSEQoJZWxldmF0aW9uGAEgASgNIisKE0FwcGVhcmFu", - "Y2VGbGFnU2hpZnQSCQoBeBgBIAEoDRIJCgF5GAIgASgNIiUKFUFwcGVhcmFu", - "Y2VGbGFnQ2xvdGhlcxIMCgRzbG90GAEgASgNIj0KG0FwcGVhcmFuY2VGbGFn", - "RGVmYXVsdEFjdGlvbhIeCgZhY3Rpb24YASABKA4yDi5QTEFZRVJfQUNUSU9O", - "IroBChRBcHBlYXJhbmNlRmxhZ01hcmtldBIgCghjYXRlZ29yeRgBIAEoDjIO", - "LklURU1fQ0FURUdPUlkSGgoSdHJhZGVfYXNfb2JqZWN0X2lkGAIgASgNEhkK", - "EXNob3dfYXNfb2JqZWN0X2lkGAMgASgNEjIKFnJlc3RyaWN0X3RvX3Byb2Zl", - "c3Npb24YBSADKA4yEi5QTEFZRVJfUFJPRkVTU0lPThIVCg1taW5pbXVtX2xl", - "dmVsGAYgASgNIqUBChFBcHBlYXJhbmNlRmxhZ05QQxIMCgRuYW1lGAEgASgM", - "EhAKCGxvY2F0aW9uGAIgASgMEhIKCnNhbGVfcHJpY2UYAyABKA0SEQoJYnV5", - "X3ByaWNlGAQgASgNEh8KF2N1cnJlbmN5X29iamVjdF90eXBlX2lkGAUgASgN", - "EigKIGN1cnJlbmN5X3F1ZXN0X2ZsYWdfZGlzcGxheV9uYW1lGAYgASgMIiYK", - "FUFwcGVhcmFuY2VGbGFnQXV0b21hcBINCgVjb2xvchgBIAEoDSIzChJBcHBl", - "YXJhbmNlRmxhZ0hvb2sSHQoJZGlyZWN0aW9uGAEgASgOMgouSE9PS19UWVBF", - "IiQKFkFwcGVhcmFuY2VGbGFnTGVuc2hlbHASCgoCaWQYASABKA0iPQodQXBw", - "ZWFyYW5jZUZsYWdDaGFuZ2VkVG9FeHBpcmUSHAoUZm9ybWVyX29iamVjdF90", - "eXBlaWQYASABKA0iMwoYQXBwZWFyYW5jZUZsYWdDeWNsb3BlZGlhEhcKD2N5", - "Y2xvcGVkaWFfdHlwZRgBIAEoDSLKAQobU3BlY2lhbE1lYW5pbmdBcHBlYXJh", - "bmNlSWRzEhQKDGdvbGRfY29pbl9pZBgBIAEoDRIYChBwbGF0aW51bV9jb2lu", - "X2lkGAIgASgNEhcKD2NyeXN0YWxfY29pbl9pZBgDIAEoDRIVCg10aWJpYV9j", - "b2luX2lkGAQgASgNEhkKEXN0YW1wZWRfbGV0dGVyX2lkGAUgASgNEhcKD3N1", - "cHBseV9zdGFzaF9pZBgGIAEoDRIXCg9yZXdhcmRfY2hlc3RfaWQYByABKA0q", - "lAEKDVBMQVlFUl9BQ1RJT04SFgoSUExBWUVSX0FDVElPTl9OT05FEAASFgoS", - "UExBWUVSX0FDVElPTl9MT09LEAESFQoRUExBWUVSX0FDVElPTl9VU0UQAhIW", - "ChJQTEFZRVJfQUNUSU9OX09QRU4QAxIkCiBQTEFZRVJfQUNUSU9OX0FVVE9X", - "QUxLX0hJR0hMSUdIVBAEKs0FCg1JVEVNX0NBVEVHT1JZEhgKFElURU1fQ0FU", - "RUdPUllfQVJNT1JTEAESGQoVSVRFTV9DQVRFR09SWV9BTVVMRVRTEAISFwoT", - "SVRFTV9DQVRFR09SWV9CT09UUxADEhwKGElURU1fQ0FURUdPUllfQ09OVEFJ", - "TkVSUxAEEhwKGElURU1fQ0FURUdPUllfREVDT1JBVElPThAFEhYKEklURU1f", - "Q0FURUdPUllfRk9PRBAGEh4KGklURU1fQ0FURUdPUllfSEVMTUVUU19IQVRT", - "EAcSFgoSSVRFTV9DQVRFR09SWV9MRUdTEAgSGAoUSVRFTV9DQVRFR09SWV9P", - "VEhFUlMQCRIZChVJVEVNX0NBVEVHT1JZX1BPVElPTlMQChIXChNJVEVNX0NB", - "VEVHT1JZX1JJTkdTEAsSFwoTSVRFTV9DQVRFR09SWV9SVU5FUxAMEhkKFUlU", - "RU1fQ0FURUdPUllfU0hJRUxEUxANEhcKE0lURU1fQ0FURUdPUllfVE9PTFMQ", - "DhIbChdJVEVNX0NBVEVHT1JZX1ZBTFVBQkxFUxAPEhwKGElURU1fQ0FURUdP", - "UllfQU1NVU5JVElPThAQEhYKEklURU1fQ0FURUdPUllfQVhFUxAREhcKE0lU", - "RU1fQ0FURUdPUllfQ0xVQlMQEhIiCh5JVEVNX0NBVEVHT1JZX0RJU1RBTkNF", - "X1dFQVBPTlMQExIYChRJVEVNX0NBVEVHT1JZX1NXT1JEUxAUEhwKGElURU1f", - "Q0FURUdPUllfV0FORFNfUk9EUxAVEiEKHUlURU1fQ0FURUdPUllfUFJFTUlV", - "TV9TQ1JPTExTEBYSHQoZSVRFTV9DQVRFR09SWV9USUJJQV9DT0lOUxAXEiMK", - "H0lURU1fQ0FURUdPUllfQ1JFQVRVUkVfUFJPRFVDVFMQGBIYChRJVEVNX0NB", - "VEVHT1JZX1FVSVZFUhAZKu0BChFQTEFZRVJfUFJPRkVTU0lPThIiChVQTEFZ", - "RVJfUFJPRkVTU0lPTl9BTlkQ////////////ARIaChZQTEFZRVJfUFJPRkVT", - "U0lPTl9OT05FEAASHAoYUExBWUVSX1BST0ZFU1NJT05fS05JR0hUEAESHQoZ", - "UExBWUVSX1BST0ZFU1NJT05fUEFMQURJThACEh4KGlBMQVlFUl9QUk9GRVNT", - "SU9OX1NPUkNFUkVSEAMSGwoXUExBWUVSX1BST0ZFU1NJT05fRFJVSUQQBBIe", - "ChpQTEFZRVJfUFJPRkVTU0lPTl9QUk9NT1RFRBAKKoMBChNBTklNQVRJT05f", - "TE9PUF9UWVBFEikKHEFOSU1BVElPTl9MT09QX1RZUEVfUElOR1BPTkcQ////", - "////////ARIgChxBTklNQVRJT05fTE9PUF9UWVBFX0lORklOSVRFEAASHwob", - "QU5JTUFUSU9OX0xPT1BfVFlQRV9DT1VOVEVEEAEqNAoJSE9PS19UWVBFEhMK", - "D0hPT0tfVFlQRV9TT1VUSBABEhIKDkhPT0tfVFlQRV9FQVNUEAIqgQEKEUZJ", - "WEVEX0ZSQU1FX0dST1VQEiEKHUZJWEVEX0ZSQU1FX0dST1VQX09VVEZJVF9J", - "RExFEAASIwofRklYRURfRlJBTUVfR1JPVVBfT1VURklUX01PVklORxABEiQK", - "IEZJWEVEX0ZSQU1FX0dST1VQX09CSkVDVF9JTklUSUFMEAJCMloTYXBwZWFy", - "YW5jZXMvZ2VuO2dlbqoCGlRpYmlhLlByb3RvYnVmLkFwcGVhcmFuY2Vz")); - descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, - new pbr::FileDescriptor[] { }, - new pbr::GeneratedClrTypeInfo(new[] { typeof(global::Tibia.Protobuf.Appearances.PLAYER_ACTION), typeof(global::Tibia.Protobuf.Appearances.ITEM_CATEGORY), typeof(global::Tibia.Protobuf.Appearances.PLAYER_PROFESSION), typeof(global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE), typeof(global::Tibia.Protobuf.Appearances.HOOK_TYPE), typeof(global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP), }, null, new pbr::GeneratedClrTypeInfo[] { - new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.Coordinate), global::Tibia.Protobuf.Appearances.Coordinate.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null), +namespace Tibia.Protobuf.Appearances { + + /// Holder for reflection information generated from appearances.proto + public static partial class AppearancesReflection { + + #region Descriptor + /// File descriptor for appearances.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static AppearancesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFhcHBlYXJhbmNlcy5wcm90bxIadGliaWEucHJvdG9idWYuYXBwZWFyYW5j", + "ZXMizwIKC0FwcGVhcmFuY2VzEjYKBm9iamVjdBgBIAMoCzImLnRpYmlhLnBy", + "b3RvYnVmLmFwcGVhcmFuY2VzLkFwcGVhcmFuY2USNgoGb3V0Zml0GAIgAygL", + "MiYudGliaWEucHJvdG9idWYuYXBwZWFyYW5jZXMuQXBwZWFyYW5jZRI2CgZl", + "ZmZlY3QYAyADKAsyJi50aWJpYS5wcm90b2J1Zi5hcHBlYXJhbmNlcy5BcHBl", + "YXJhbmNlEjcKB21pc3NpbGUYBCADKAsyJi50aWJpYS5wcm90b2J1Zi5hcHBl", + "YXJhbmNlcy5BcHBlYXJhbmNlEl8KHnNwZWNpYWxfbWVhbmluZ19hcHBlYXJh", + "bmNlX2lkcxgFIAEoCzI3LnRpYmlhLnByb3RvYnVmLmFwcGVhcmFuY2VzLlNw", + "ZWNpYWxNZWFuaW5nQXBwZWFyYW5jZUlkcyI5CgtTcHJpdGVQaGFzZRIUCgxk", + "dXJhdGlvbl9taW4YASABKA0SFAoMZHVyYXRpb25fbWF4GAIgASgNIsUCCg9T", + "cHJpdGVBbmltYXRpb24SGwoTZGVmYXVsdF9zdGFydF9waGFzZRgBIAEoDRIU", + "CgxzeW5jaHJvbml6ZWQYAiABKAgSGgoScmFuZG9tX3N0YXJ0X3BoYXNlGAMg", + "ASgIEkIKCWxvb3BfdHlwZRgEIAEoDjIvLnRpYmlhLnByb3RvYnVmLmFwcGVh", + "cmFuY2VzLkFOSU1BVElPTl9MT09QX1RZUEUSEgoKbG9vcF9jb3VudBgFIAEo", + "DRI9CgxzcHJpdGVfcGhhc2UYBiADKAsyJy50aWJpYS5wcm90b2J1Zi5hcHBl", + "YXJhbmNlcy5TcHJpdGVQaGFzZRJMCg5hbmltYXRpb25fbW9kZRgHIAEoDjI0", + "LnRpYmlhLnByb3RvYnVmLmFwcGVhcmFuY2VzLkFOSU1BVElPTl9BTklNQVRJ", + "T05fTU9ERSI6CgNCb3gSCQoBeBgBIAEoDRIJCgF5GAIgASgNEg0KBXdpZHRo", + "GAMgASgNEg4KBmhlaWdodBgEIAEoDSK7AwoKU3ByaXRlSW5mbxIVCg1wYXR0", + "ZXJuX3dpZHRoGAEgASgNEhYKDnBhdHRlcm5faGVpZ2h0GAIgASgNEhUKDXBh", + "dHRlcm5fZGVwdGgYAyABKA0SDgoGbGF5ZXJzGAQgASgNEhEKCXNwcml0ZV9p", + "ZBgFIAMoDRIXCg9ib3VuZGluZ19zcXVhcmUYByABKA0SPgoJYW5pbWF0aW9u", + "GAYgASgLMisudGliaWEucHJvdG9idWYuYXBwZWFyYW5jZXMuU3ByaXRlQW5p", + "bWF0aW9uEhEKCWlzX29wYXF1ZRgIIAEoCBJDChpib3VuZGluZ19ib3hfcGVy", + "X2RpcmVjdGlvbhgJIAMoCzIfLnRpYmlhLnByb3RvYnVmLmFwcGVhcmFuY2Vz", + "LkJveBIUCgxwYXR0ZXJuX3NpemUYCiABKA0SFgoOcGF0dGVybl9sYXllcnMY", + "CyABKA0SEQoJcGF0dGVybl94GAwgASgNEhEKCXBhdHRlcm5feRgNIAEoDRIR", + "CglwYXR0ZXJuX3oYDiABKA0SFgoOcGF0dGVybl9mcmFtZXMYDyABKA0SFAoM", + "aXNfYW5pbWF0aW9uGBAgASgIIp8BCgpGcmFtZUdyb3VwEkgKEWZpeGVkX2Zy", + "YW1lX2dyb3VwGAEgASgOMi0udGliaWEucHJvdG9idWYuYXBwZWFyYW5jZXMu", + "RklYRURfRlJBTUVfR1JPVVASCgoCaWQYAiABKA0SOwoLc3ByaXRlX2luZm8Y", + "AyABKAsyJi50aWJpYS5wcm90b2J1Zi5hcHBlYXJhbmNlcy5TcHJpdGVJbmZv", + "Io8CCgpBcHBlYXJhbmNlEgoKAmlkGAEgASgNEjsKC2ZyYW1lX2dyb3VwGAIg", + "AygLMiYudGliaWEucHJvdG9idWYuYXBwZWFyYW5jZXMuRnJhbWVHcm91cBI6", + "CgVmbGFncxgDIAEoCzIrLnRpYmlhLnByb3RvYnVmLmFwcGVhcmFuY2VzLkFw", + "cGVhcmFuY2VGbGFncxIMCgRuYW1lGAQgASgJEhMKC2Rlc2NyaXB0aW9uGAUg", + "ASgJEkQKD2FwcGVhcmFuY2VfdHlwZRgGIAEoDjIrLnRpYmlhLnByb3RvYnVm", + "LmFwcGVhcmFuY2VzLkFQUEVBUkFOQ0VfVFlQRRITCgtzcHJpdGVfZGF0YRgH", + "IAMoDCLLDwoPQXBwZWFyYW5jZUZsYWdzEjwKBGJhbmsYASABKAsyLi50aWJp", + "YS5wcm90b2J1Zi5hcHBlYXJhbmNlcy5BcHBlYXJhbmNlRmxhZ0JhbmsSDAoE", + "Y2xpcBgCIAEoCBIOCgZib3R0b20YAyABKAgSCwoDdG9wGAQgASgIEhEKCWNv", + "bnRhaW5lchgFIAEoCBISCgpjdW11bGF0aXZlGAYgASgIEg4KBnVzYWJsZRgH", + "IAEoCBIQCghmb3JjZXVzZRgIIAEoCBIQCghtdWx0aXVzZRgJIAEoCBI+CgV3", + "cml0ZRgKIAEoCzIvLnRpYmlhLnByb3RvYnVmLmFwcGVhcmFuY2VzLkFwcGVh", + "cmFuY2VGbGFnV3JpdGUSRwoKd3JpdGVfb25jZRgLIAEoCzIzLnRpYmlhLnBy", + "b3RvYnVmLmFwcGVhcmFuY2VzLkFwcGVhcmFuY2VGbGFnV3JpdGVPbmNlEhIK", + "CmxpcXVpZHBvb2wYDCABKAgSDgoGdW5wYXNzGA0gASgIEg4KBnVubW92ZRgO", + "IAEoCBIPCgd1bnNpZ2h0GA8gASgIEg0KBWF2b2lkGBAgASgIEh0KFW5vX21v", + "dmVtZW50X2FuaW1hdGlvbhgRIAEoCBIMCgR0YWtlGBIgASgIEhcKD2xpcXVp", + "ZGNvbnRhaW5lchgTIAEoCBIMCgRoYW5nGBQgASgIEjwKBGhvb2sYFSABKAsy", + "Li50aWJpYS5wcm90b2J1Zi5hcHBlYXJhbmNlcy5BcHBlYXJhbmNlRmxhZ0hv", + "b2sSDgoGcm90YXRlGBYgASgIEj4KBWxpZ2h0GBcgASgLMi8udGliaWEucHJv", + "dG9idWYuYXBwZWFyYW5jZXMuQXBwZWFyYW5jZUZsYWdMaWdodBIRCglkb250", + "X2hpZGUYGCABKAgSEwoLdHJhbnNsdWNlbnQYGSABKAgSPgoFc2hpZnQYGiAB", + "KAsyLy50aWJpYS5wcm90b2J1Zi5hcHBlYXJhbmNlcy5BcHBlYXJhbmNlRmxh", + "Z1NoaWZ0EkAKBmhlaWdodBgbIAEoCzIwLnRpYmlhLnByb3RvYnVmLmFwcGVh", + "cmFuY2VzLkFwcGVhcmFuY2VGbGFnSGVpZ2h0EhQKDGx5aW5nX29iamVjdBgc", + "IAEoCBIWCg5hbmltYXRlX2Fsd2F5cxgdIAEoCBJCCgdhdXRvbWFwGB4gASgL", + "MjEudGliaWEucHJvdG9idWYuYXBwZWFyYW5jZXMuQXBwZWFyYW5jZUZsYWdB", + "dXRvbWFwEkQKCGxlbnNoZWxwGB8gASgLMjIudGliaWEucHJvdG9idWYuYXBw", + "ZWFyYW5jZXMuQXBwZWFyYW5jZUZsYWdMZW5zaGVscBIQCghmdWxsYmFuaxgg", + "IAEoCBITCgtpZ25vcmVfbG9vaxghIAEoCBJCCgdjbG90aGVzGCIgASgLMjEu", + "dGliaWEucHJvdG9idWYuYXBwZWFyYW5jZXMuQXBwZWFyYW5jZUZsYWdDbG90", + "aGVzEk8KDmRlZmF1bHRfYWN0aW9uGCMgASgLMjcudGliaWEucHJvdG9idWYu", + "YXBwZWFyYW5jZXMuQXBwZWFyYW5jZUZsYWdEZWZhdWx0QWN0aW9uEkAKBm1h", + "cmtldBgkIAEoCzIwLnRpYmlhLnByb3RvYnVmLmFwcGVhcmFuY2VzLkFwcGVh", + "cmFuY2VGbGFnTWFya2V0EgwKBHdyYXAYJSABKAgSDgoGdW53cmFwGCYgASgI", + "EhEKCXRvcGVmZmVjdBgnIAEoCBJCCgtucGNzYWxlZGF0YRgoIAMoCzItLnRp", + "YmlhLnByb3RvYnVmLmFwcGVhcmFuY2VzLkFwcGVhcmFuY2VGbGFnTlBDElIK", + "D2NoYW5nZWR0b2V4cGlyZRgpIAEoCzI5LnRpYmlhLnByb3RvYnVmLmFwcGVh", + "cmFuY2VzLkFwcGVhcmFuY2VGbGFnQ2hhbmdlZFRvRXhwaXJlEg4KBmNvcnBz", + "ZRgqIAEoCBIVCg1wbGF5ZXJfY29ycHNlGCsgASgIEkwKDmN5Y2xvcGVkaWFp", + "dGVtGCwgASgLMjQudGliaWEucHJvdG9idWYuYXBwZWFyYW5jZXMuQXBwZWFy", + "YW5jZUZsYWdDeWNsb3BlZGlhEgwKBGFtbW8YLSABKAgSFwoPc2hvd19vZmZf", + "c29ja2V0GC4gASgIEhIKCnJlcG9ydGFibGUYLyABKAgSXgoVdXBncmFkZWNs", + "YXNzaWZpY2F0aW9uGDAgASgLMj8udGliaWEucHJvdG9idWYuYXBwZWFyYW5j", + "ZXMuQXBwZWFyYW5jZUZsYWdVcGdyYWRlQ2xhc3NpZmljYXRpb24SGwoTcmV2", + "ZXJzZV9hZGRvbnNfZWFzdBgxIAEoCBIbChNyZXZlcnNlX2FkZG9uc193ZXN0", + "GDIgASgIEhwKFHJldmVyc2VfYWRkb25zX3NvdXRoGDMgASgIEhwKFHJldmVy", + "c2VfYWRkb25zX25vcnRoGDQgASgIEg8KB3dlYXJvdXQYNSABKAgSEwoLY2xv", + "Y2tleHBpcmUYNiABKAgSDgoGZXhwaXJlGDcgASgIEhIKCmV4cGlyZXN0b3AY", + "OCABKAgSFQoNZGVjb19pdGVtX2tpdBg5IAEoCBISCgpob29rX3NvdXRoGDog", + "ASgIEhEKCWhvb2tfZWFzdBg7IAEoCCInChJBcHBlYXJhbmNlRmxhZ0JhbmsS", + "EQoJd2F5cG9pbnRzGAEgASgNIi4KE0FwcGVhcmFuY2VGbGFnV3JpdGUSFwoP", + "bWF4X3RleHRfbGVuZ3RoGAEgASgNIjcKF0FwcGVhcmFuY2VGbGFnV3JpdGVP", + "bmNlEhwKFG1heF90ZXh0X2xlbmd0aF9vbmNlGAEgASgNIjgKE0FwcGVhcmFu", + "Y2VGbGFnTGlnaHQSEgoKYnJpZ2h0bmVzcxgBIAEoDRINCgVjb2xvchgCIAEo", + "DSIpChRBcHBlYXJhbmNlRmxhZ0hlaWdodBIRCgllbGV2YXRpb24YASABKA0i", + "KwoTQXBwZWFyYW5jZUZsYWdTaGlmdBIJCgF4GAEgASgNEgkKAXkYAiABKA0i", + "JQoVQXBwZWFyYW5jZUZsYWdDbG90aGVzEgwKBHNsb3QYASABKA0iWAobQXBw", + "ZWFyYW5jZUZsYWdEZWZhdWx0QWN0aW9uEjkKBmFjdGlvbhgBIAEoDjIpLnRp", + "YmlhLnByb3RvYnVmLmFwcGVhcmFuY2VzLlBMQVlFUl9BQ1RJT04iqwIKFEFw", + "cGVhcmFuY2VGbGFnTWFya2V0EjsKCGNhdGVnb3J5GAEgASgOMikudGliaWEu", + "cHJvdG9idWYuYXBwZWFyYW5jZXMuSVRFTV9DQVRFR09SWRIaChJ0cmFkZV9h", + "c19vYmplY3RfaWQYAiABKA0SGQoRc2hvd19hc19vYmplY3RfaWQYAyABKA0S", + "QgoUcmVzdHJpY3RfdG9fdm9jYXRpb24YBSADKA4yJC50aWJpYS5wcm90b2J1", + "Zi5hcHBlYXJhbmNlcy5WT0NBVElPThIVCg1taW5pbXVtX2xldmVsGAYgASgN", + "EgwKBG5hbWUYByABKAkSNgoIdm9jYXRpb24YCCABKA4yJC50aWJpYS5wcm90", + "b2J1Zi5hcHBlYXJhbmNlcy5WT0NBVElPTiKlAQoRQXBwZWFyYW5jZUZsYWdO", + "UEMSDAoEbmFtZRgBIAEoCRIQCghsb2NhdGlvbhgCIAEoCRISCgpzYWxlX3By", + "aWNlGAMgASgNEhEKCWJ1eV9wcmljZRgEIAEoDRIfChdjdXJyZW5jeV9vYmpl", + "Y3RfdHlwZV9pZBgFIAEoDRIoCiBjdXJyZW5jeV9xdWVzdF9mbGFnX2Rpc3Bs", + "YXlfbmFtZRgGIAEoCSImChVBcHBlYXJhbmNlRmxhZ0F1dG9tYXASDQoFY29s", + "b3IYASABKA0iTgoSQXBwZWFyYW5jZUZsYWdIb29rEjgKCWRpcmVjdGlvbhgB", + "IAEoDjIlLnRpYmlhLnByb3RvYnVmLmFwcGVhcmFuY2VzLkhPT0tfVFlQRSIk", + "ChZBcHBlYXJhbmNlRmxhZ0xlbnNoZWxwEgoKAmlkGAEgASgNIj0KHUFwcGVh", + "cmFuY2VGbGFnQ2hhbmdlZFRvRXhwaXJlEhwKFGZvcm1lcl9vYmplY3RfdHlw", + "ZWlkGAEgASgNIjMKGEFwcGVhcmFuY2VGbGFnQ3ljbG9wZWRpYRIXCg9jeWNs", + "b3BlZGlhX3R5cGUYASABKA0iRQojQXBwZWFyYW5jZUZsYWdVcGdyYWRlQ2xh", + "c3NpZmljYXRpb24SHgoWdXBncmFkZV9jbGFzc2lmaWNhdGlvbhgBIAEoDSLT", + "AQobU3BlY2lhbE1lYW5pbmdBcHBlYXJhbmNlSWRzEhQKDGdvbGRfY29pbl9p", + "ZBgBIAEoDRIYChBwbGF0aW51bV9jb2luX2lkGAIgASgNEhcKD2NyeXN0YWxf", + "Y29pbl9pZBgDIAEoDRIVCg10aWJpYV9jb2luX2lkGAQgASgNEhkKEXN0YW1w", + "ZWRfbGV0dGVyX2lkGAUgASgNEhcKD3N1cHBseV9zdGFzaF9pZBgGIAEoDRIg", + "ChhzdGFuZGFyZF9yZXdhcmRfY2hlc3RfaWQYByABKA0iLQoKQ29vcmRpbmF0", + "ZRIJCgF4GAEgASgNEgkKAXkYAiABKA0SCQoBehgDIAEoDSqBAQoRRklYRURf", + "RlJBTUVfR1JPVVASIQodRklYRURfRlJBTUVfR1JPVVBfT1VURklUX0lETEUQ", + "ABIjCh9GSVhFRF9GUkFNRV9HUk9VUF9PVVRGSVRfTU9WSU5HEAESJAogRklY", + "RURfRlJBTUVfR1JPVVBfT0JKRUNUX0lOSVRJQUwQAiqUAQoNUExBWUVSX0FD", + "VElPThIWChJQTEFZRVJfQUNUSU9OX05PTkUQABIWChJQTEFZRVJfQUNUSU9O", + "X0xPT0sQARIVChFQTEFZRVJfQUNUSU9OX1VTRRACEhYKElBMQVlFUl9BQ1RJ", + "T05fT1BFThADEiQKIFBMQVlFUl9BQ1RJT05fQVVUT1dBTEtfSElHSExJR0hU", + "EAQq3wYKDUlURU1fQ0FURUdPUlkSGAoUSVRFTV9DQVRFR09SWV9BUk1PUlMQ", + "ARIZChVJVEVNX0NBVEVHT1JZX0FNVUxFVFMQAhIXChNJVEVNX0NBVEVHT1JZ", + "X0JPT1RTEAMSHAoYSVRFTV9DQVRFR09SWV9DT05UQUlORVJTEAQSHAoYSVRF", + "TV9DQVRFR09SWV9ERUNPUkFUSU9OEAUSFgoSSVRFTV9DQVRFR09SWV9GT09E", + "EAYSHgoaSVRFTV9DQVRFR09SWV9IRUxNRVRTX0hBVFMQBxIWChJJVEVNX0NB", + "VEVHT1JZX0xFR1MQCBIYChRJVEVNX0NBVEVHT1JZX09USEVSUxAJEhkKFUlU", + "RU1fQ0FURUdPUllfUE9USU9OUxAKEhcKE0lURU1fQ0FURUdPUllfUklOR1MQ", + "CxIXChNJVEVNX0NBVEVHT1JZX1JVTkVTEAwSGQoVSVRFTV9DQVRFR09SWV9T", + "SElFTERTEA0SFwoTSVRFTV9DQVRFR09SWV9UT09MUxAOEhsKF0lURU1fQ0FU", + "RUdPUllfVkFMVUFCTEVTEA8SHAoYSVRFTV9DQVRFR09SWV9BTU1VTklUSU9O", + "EBASFgoSSVRFTV9DQVRFR09SWV9BWEVTEBESFwoTSVRFTV9DQVRFR09SWV9D", + "TFVCUxASEiIKHklURU1fQ0FURUdPUllfRElTVEFOQ0VfV0VBUE9OUxATEhgK", + "FElURU1fQ0FURUdPUllfU1dPUkRTEBQSHAoYSVRFTV9DQVRFR09SWV9XQU5E", + "U19ST0RTEBUSIQodSVRFTV9DQVRFR09SWV9QUkVNSVVNX1NDUk9MTFMQFhId", + "ChlJVEVNX0NBVEVHT1JZX1RJQklBX0NPSU5TEBcSIwofSVRFTV9DQVRFR09S", + "WV9DUkVBVFVSRV9QUk9EVUNUUxAYEhgKFElURU1fQ0FURUdPUllfUVVJVkVS", + "EBkSHwobSVRFTV9DQVRFR09SWV9UV09IQU5EV0VBUE9OEBoSGQoVSVRFTV9D", + "QVRFR09SWV9IRUxNRVRTEBsSGgoWSVRFTV9DQVRFR09SWV9CQUNLUEFDSxAc", + "Eh8KG0lURU1fQ0FURUdPUllfT05FSEFORFdFQVBPThAdEhcKE0lURU1fQ0FU", + "RUdPUllfQVJST1cQHiqlAQoIVk9DQVRJT04SGQoMVk9DQVRJT05fQU5ZEP//", + "/////////wESEQoNVk9DQVRJT05fTk9ORRAAEhMKD1ZPQ0FUSU9OX0tOSUdI", + "VBABEhQKEFZPQ0FUSU9OX1BBTEFESU4QAhIVChFWT0NBVElPTl9TT1JDRVJF", + "UhADEhIKDlZPQ0FUSU9OX0RSVUlEEAQSFQoRVk9DQVRJT05fUFJPTU9URUQQ", + "CiqDAQoTQU5JTUFUSU9OX0xPT1BfVFlQRRIpChxBTklNQVRJT05fTE9PUF9U", + "WVBFX1BJTkdQT05HEP///////////wESIAocQU5JTUFUSU9OX0xPT1BfVFlQ", + "RV9JTkZJTklURRAAEh8KG0FOSU1BVElPTl9MT09QX1RZUEVfQ09VTlRFRBAB", + "KjQKCUhPT0tfVFlQRRITCg9IT09LX1RZUEVfU09VVEgQARISCg5IT09LX1RZ", + "UEVfRUFTVBACKlMKGEFOSU1BVElPTl9BTklNQVRJT05fTU9ERRIbChdBTklN", + "QVRJT05fQVNZTkNIUk9OSVpFRBAAEhoKFkFOSU1BVElPTl9TWU5DSFJPTkla", + "RUQQASpuCg9BUFBFQVJBTkNFX1RZUEUSFQoRQVBQRUFSQU5DRV9PQkpFQ1QQ", + "ARIVChFBUFBFQVJBTkNFX09VVEZJVBACEhUKEUFQUEVBUkFOQ0VfRUZGRUNU", + "EAMSFgoSQVBQRUFSQU5DRV9NSVNTSUxFEAQ=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP), typeof(global::Tibia.Protobuf.Appearances.PLAYER_ACTION), typeof(global::Tibia.Protobuf.Appearances.ITEM_CATEGORY), typeof(global::Tibia.Protobuf.Appearances.VOCATION), typeof(global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE), typeof(global::Tibia.Protobuf.Appearances.HOOK_TYPE), typeof(global::Tibia.Protobuf.Appearances.ANIMATION_ANIMATION_MODE), typeof(global::Tibia.Protobuf.Appearances.APPEARANCE_TYPE), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.Appearances), global::Tibia.Protobuf.Appearances.Appearances.Parser, new[]{ "Object", "Outfit", "Effect", "Missile", "SpecialMeaningAppearanceIds" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.SpritePhase), global::Tibia.Protobuf.Appearances.SpritePhase.Parser, new[]{ "DurationMin", "DurationMax" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.SpriteAnimation), global::Tibia.Protobuf.Appearances.SpriteAnimation.Parser, new[]{ "DefaultStartPhase", "Synchronized", "RandomStartPhase", "LoopType", "LoopCount", "SpritePhase" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.SpriteAnimation), global::Tibia.Protobuf.Appearances.SpriteAnimation.Parser, new[]{ "DefaultStartPhase", "Synchronized", "RandomStartPhase", "LoopType", "LoopCount", "SpritePhase", "AnimationMode" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.Box), global::Tibia.Protobuf.Appearances.Box.Parser, new[]{ "X", "Y", "Width", "Height" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.SpriteInfo), global::Tibia.Protobuf.Appearances.SpriteInfo.Parser, new[]{ "PatternWidth", "PatternHeight", "PatternDepth", "Layers", "SpriteId", "BoundingSquare", "Animation", "IsOpaque", "BoundingBoxPerDirection" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.SpriteInfo), global::Tibia.Protobuf.Appearances.SpriteInfo.Parser, new[]{ "PatternWidth", "PatternHeight", "PatternDepth", "Layers", "SpriteId", "BoundingSquare", "Animation", "IsOpaque", "BoundingBoxPerDirection", "PatternSize", "PatternLayers", "PatternX", "PatternY", "PatternZ", "PatternFrames", "IsAnimation" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.FrameGroup), global::Tibia.Protobuf.Appearances.FrameGroup.Parser, new[]{ "FixedFrameGroup", "Id", "SpriteInfo" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.Appearance), global::Tibia.Protobuf.Appearances.Appearance.Parser, new[]{ "Id", "FrameGroup", "Flags", "Name", "Description" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlags), global::Tibia.Protobuf.Appearances.AppearanceFlags.Parser, new[]{ "Bank", "Clip", "Bottom", "Top", "Container", "Cumulative", "Usable", "Forceuse", "Multiuse", "Write", "WriteOnce", "Liquidpool", "Unpass", "Unmove", "Unsight", "Avoid", "NoMovementAnimation", "Take", "Liquidcontainer", "Hang", "Hook", "Rotate", "Light", "DontHide", "Translucent", "Shift", "Height", "LyingObject", "AnimateAlways", "Automap", "Lenshelp", "Fullbank", "IgnoreLook", "Clothes", "DefaultAction", "Market", "Wrap", "Unwrap", "Topeffect", "Npcsaledata", "Changedtoexpire", "Corpse", "PlayerCorpse", "Cyclopediaitem", "Ammo", "ShowOffSocket", "Reportable", "Upgradeclassification", "ReverseAddonsEast", "ReverseAddonsWest", "ReverseAddonsSouth", "ReverseAddonsNorth", "Wearout", "Clockexpire", "Expire", "Expirestop", "Wrapkit" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification), global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification.Parser, new[]{ "UpgradeClassification" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.Appearance), global::Tibia.Protobuf.Appearances.Appearance.Parser, new[]{ "Id", "FrameGroup", "Flags", "Name", "Description", "AppearanceType", "SpriteData" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlags), global::Tibia.Protobuf.Appearances.AppearanceFlags.Parser, new[]{ "Bank", "Clip", "Bottom", "Top", "Container", "Cumulative", "Usable", "Forceuse", "Multiuse", "Write", "WriteOnce", "Liquidpool", "Unpass", "Unmove", "Unsight", "Avoid", "NoMovementAnimation", "Take", "Liquidcontainer", "Hang", "Hook", "Rotate", "Light", "DontHide", "Translucent", "Shift", "Height", "LyingObject", "AnimateAlways", "Automap", "Lenshelp", "Fullbank", "IgnoreLook", "Clothes", "DefaultAction", "Market", "Wrap", "Unwrap", "Topeffect", "Npcsaledata", "Changedtoexpire", "Corpse", "PlayerCorpse", "Cyclopediaitem", "Ammo", "ShowOffSocket", "Reportable", "Upgradeclassification", "ReverseAddonsEast", "ReverseAddonsWest", "ReverseAddonsSouth", "ReverseAddonsNorth", "Wearout", "Clockexpire", "Expire", "Expirestop", "DecoItemKit", "HookSouth", "HookEast" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagBank), global::Tibia.Protobuf.Appearances.AppearanceFlagBank.Parser, new[]{ "Waypoints" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagWrite), global::Tibia.Protobuf.Appearances.AppearanceFlagWrite.Parser, new[]{ "MaxTextLength" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce), global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce.Parser, new[]{ "MaxTextLengthOnce" }, null, null, null, null), @@ -168,622 +197,243 @@ static AppearancesReflection() new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagShift), global::Tibia.Protobuf.Appearances.AppearanceFlagShift.Parser, new[]{ "X", "Y" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagClothes), global::Tibia.Protobuf.Appearances.AppearanceFlagClothes.Parser, new[]{ "Slot" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction), global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction.Parser, new[]{ "Action" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagMarket), global::Tibia.Protobuf.Appearances.AppearanceFlagMarket.Parser, new[]{ "Category", "TradeAsObjectId", "ShowAsObjectId", "RestrictToProfession", "MinimumLevel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagMarket), global::Tibia.Protobuf.Appearances.AppearanceFlagMarket.Parser, new[]{ "Category", "TradeAsObjectId", "ShowAsObjectId", "RestrictToVocation", "MinimumLevel", "Name", "Vocation" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagNPC), global::Tibia.Protobuf.Appearances.AppearanceFlagNPC.Parser, new[]{ "Name", "Location", "SalePrice", "BuyPrice", "CurrencyObjectTypeId", "CurrencyQuestFlagDisplayName" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap), global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap.Parser, new[]{ "Color" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagHook), global::Tibia.Protobuf.Appearances.AppearanceFlagHook.Parser, new[]{ "Direction" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp), global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire), global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire.Parser, new[]{ "FormerObjectTypeid" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia), global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia.Parser, new[]{ "CyclopediaType" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds), global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds.Parser, new[]{ "GoldCoinId", "PlatinumCoinId", "CrystalCoinId", "TibiaCoinId", "StampedLetterId", "SupplyStashId", "RewardChestId" }, null, null, null, null) - })); - } - #endregion - - } - #region Enums - public enum PLAYER_ACTION - { - [pbr::OriginalName("PLAYER_ACTION_NONE")] None = 0, - [pbr::OriginalName("PLAYER_ACTION_LOOK")] Look = 1, - [pbr::OriginalName("PLAYER_ACTION_USE")] Use = 2, - [pbr::OriginalName("PLAYER_ACTION_OPEN")] Open = 3, - [pbr::OriginalName("PLAYER_ACTION_AUTOWALK_HIGHLIGHT")] AutowalkHighlight = 4, - } - - public enum ITEM_CATEGORY - { - [pbr::OriginalName("ITEM_CATEGORY_ARMORS")] Armors = 1, - [pbr::OriginalName("ITEM_CATEGORY_AMULETS")] Amulets = 2, - [pbr::OriginalName("ITEM_CATEGORY_BOOTS")] Boots = 3, - [pbr::OriginalName("ITEM_CATEGORY_CONTAINERS")] Containers = 4, - [pbr::OriginalName("ITEM_CATEGORY_DECORATION")] Decoration = 5, - [pbr::OriginalName("ITEM_CATEGORY_FOOD")] Food = 6, - [pbr::OriginalName("ITEM_CATEGORY_HELMETS_HATS")] HelmetsHats = 7, - [pbr::OriginalName("ITEM_CATEGORY_LEGS")] Legs = 8, - [pbr::OriginalName("ITEM_CATEGORY_OTHERS")] Others = 9, - [pbr::OriginalName("ITEM_CATEGORY_POTIONS")] Potions = 10, - [pbr::OriginalName("ITEM_CATEGORY_RINGS")] Rings = 11, - [pbr::OriginalName("ITEM_CATEGORY_RUNES")] Runes = 12, - [pbr::OriginalName("ITEM_CATEGORY_SHIELDS")] Shields = 13, - [pbr::OriginalName("ITEM_CATEGORY_TOOLS")] Tools = 14, - [pbr::OriginalName("ITEM_CATEGORY_VALUABLES")] Valuables = 15, - [pbr::OriginalName("ITEM_CATEGORY_AMMUNITION")] Ammunition = 16, - [pbr::OriginalName("ITEM_CATEGORY_AXES")] Axes = 17, - [pbr::OriginalName("ITEM_CATEGORY_CLUBS")] Clubs = 18, - [pbr::OriginalName("ITEM_CATEGORY_DISTANCE_WEAPONS")] DistanceWeapons = 19, - [pbr::OriginalName("ITEM_CATEGORY_SWORDS")] Swords = 20, - [pbr::OriginalName("ITEM_CATEGORY_WANDS_RODS")] WandsRods = 21, - [pbr::OriginalName("ITEM_CATEGORY_PREMIUM_SCROLLS")] PremiumScrolls = 22, - [pbr::OriginalName("ITEM_CATEGORY_TIBIA_COINS")] TibiaCoins = 23, - [pbr::OriginalName("ITEM_CATEGORY_CREATURE_PRODUCTS")] CreatureProducts = 24, - [pbr::OriginalName("ITEM_CATEGORY_QUIVER")] Quiver = 25, - } - - public enum PLAYER_PROFESSION - { - [pbr::OriginalName("PLAYER_PROFESSION_ANY")] Any = -1, - [pbr::OriginalName("PLAYER_PROFESSION_NONE")] None = 0, - [pbr::OriginalName("PLAYER_PROFESSION_KNIGHT")] Knight = 1, - [pbr::OriginalName("PLAYER_PROFESSION_PALADIN")] Paladin = 2, - [pbr::OriginalName("PLAYER_PROFESSION_SORCERER")] Sorcerer = 3, - [pbr::OriginalName("PLAYER_PROFESSION_DRUID")] Druid = 4, - [pbr::OriginalName("PLAYER_PROFESSION_PROMOTED")] Promoted = 10, - } - - public enum ANIMATION_LOOP_TYPE - { - [pbr::OriginalName("ANIMATION_LOOP_TYPE_PINGPONG")] Pingpong = -1, - [pbr::OriginalName("ANIMATION_LOOP_TYPE_INFINITE")] Infinite = 0, - [pbr::OriginalName("ANIMATION_LOOP_TYPE_COUNTED")] Counted = 1, - } - - public enum HOOK_TYPE - { - [pbr::OriginalName("HOOK_TYPE_SOUTH")] South = 1, - [pbr::OriginalName("HOOK_TYPE_EAST")] East = 2, - } - - public enum FIXED_FRAME_GROUP - { - [pbr::OriginalName("FIXED_FRAME_GROUP_OUTFIT_IDLE")] OutfitIdle = 0, - [pbr::OriginalName("FIXED_FRAME_GROUP_OUTFIT_MOVING")] OutfitMoving = 1, - [pbr::OriginalName("FIXED_FRAME_GROUP_OBJECT_INITIAL")] ObjectInitial = 2, + new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification), global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification.Parser, new[]{ "UpgradeClassification" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds), global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds.Parser, new[]{ "GoldCoinId", "PlatinumCoinId", "CrystalCoinId", "TibiaCoinId", "StampedLetterId", "SupplyStashId", "StandardRewardChestId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Tibia.Protobuf.Appearances.Coordinate), global::Tibia.Protobuf.Appearances.Coordinate.Parser, new[]{ "X", "Y", "Z" }, null, null, null, null) + })); } - #endregion - #region Messages - public sealed partial class Coordinate : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Coordinate()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[0]; } - } + } + #region Enums + public enum FIXED_FRAME_GROUP { + [pbr::OriginalName("FIXED_FRAME_GROUP_OUTFIT_IDLE")] OutfitIdle = 0, + [pbr::OriginalName("FIXED_FRAME_GROUP_OUTFIT_MOVING")] OutfitMoving = 1, + [pbr::OriginalName("FIXED_FRAME_GROUP_OBJECT_INITIAL")] ObjectInitial = 2, + } + + public enum PLAYER_ACTION { + [pbr::OriginalName("PLAYER_ACTION_NONE")] None = 0, + [pbr::OriginalName("PLAYER_ACTION_LOOK")] Look = 1, + [pbr::OriginalName("PLAYER_ACTION_USE")] Use = 2, + [pbr::OriginalName("PLAYER_ACTION_OPEN")] Open = 3, + [pbr::OriginalName("PLAYER_ACTION_AUTOWALK_HIGHLIGHT")] AutowalkHighlight = 4, + } + + public enum ITEM_CATEGORY { + [pbr::OriginalName("ITEM_CATEGORY_ARMORS")] Armors = 1, + [pbr::OriginalName("ITEM_CATEGORY_AMULETS")] Amulets = 2, + [pbr::OriginalName("ITEM_CATEGORY_BOOTS")] Boots = 3, + [pbr::OriginalName("ITEM_CATEGORY_CONTAINERS")] Containers = 4, + [pbr::OriginalName("ITEM_CATEGORY_DECORATION")] Decoration = 5, + [pbr::OriginalName("ITEM_CATEGORY_FOOD")] Food = 6, + [pbr::OriginalName("ITEM_CATEGORY_HELMETS_HATS")] HelmetsHats = 7, + [pbr::OriginalName("ITEM_CATEGORY_LEGS")] Legs = 8, + [pbr::OriginalName("ITEM_CATEGORY_OTHERS")] Others = 9, + [pbr::OriginalName("ITEM_CATEGORY_POTIONS")] Potions = 10, + [pbr::OriginalName("ITEM_CATEGORY_RINGS")] Rings = 11, + [pbr::OriginalName("ITEM_CATEGORY_RUNES")] Runes = 12, + [pbr::OriginalName("ITEM_CATEGORY_SHIELDS")] Shields = 13, + [pbr::OriginalName("ITEM_CATEGORY_TOOLS")] Tools = 14, + [pbr::OriginalName("ITEM_CATEGORY_VALUABLES")] Valuables = 15, + [pbr::OriginalName("ITEM_CATEGORY_AMMUNITION")] Ammunition = 16, + [pbr::OriginalName("ITEM_CATEGORY_AXES")] Axes = 17, + [pbr::OriginalName("ITEM_CATEGORY_CLUBS")] Clubs = 18, + [pbr::OriginalName("ITEM_CATEGORY_DISTANCE_WEAPONS")] DistanceWeapons = 19, + [pbr::OriginalName("ITEM_CATEGORY_SWORDS")] Swords = 20, + [pbr::OriginalName("ITEM_CATEGORY_WANDS_RODS")] WandsRods = 21, + [pbr::OriginalName("ITEM_CATEGORY_PREMIUM_SCROLLS")] PremiumScrolls = 22, + [pbr::OriginalName("ITEM_CATEGORY_TIBIA_COINS")] TibiaCoins = 23, + [pbr::OriginalName("ITEM_CATEGORY_CREATURE_PRODUCTS")] CreatureProducts = 24, + [pbr::OriginalName("ITEM_CATEGORY_QUIVER")] Quiver = 25, + [pbr::OriginalName("ITEM_CATEGORY_TWOHANDWEAPON")] Twohandweapon = 26, + [pbr::OriginalName("ITEM_CATEGORY_HELMETS")] Helmets = 27, + [pbr::OriginalName("ITEM_CATEGORY_BACKPACK")] Backpack = 28, + [pbr::OriginalName("ITEM_CATEGORY_ONEHANDWEAPON")] Onehandweapon = 29, + [pbr::OriginalName("ITEM_CATEGORY_ARROW")] Arrow = 30, + } + + public enum VOCATION { + [pbr::OriginalName("VOCATION_ANY")] Any = -1, + [pbr::OriginalName("VOCATION_NONE")] None = 0, + [pbr::OriginalName("VOCATION_KNIGHT")] Knight = 1, + [pbr::OriginalName("VOCATION_PALADIN")] Paladin = 2, + [pbr::OriginalName("VOCATION_SORCERER")] Sorcerer = 3, + [pbr::OriginalName("VOCATION_DRUID")] Druid = 4, + [pbr::OriginalName("VOCATION_PROMOTED")] Promoted = 10, + } + + public enum ANIMATION_LOOP_TYPE { + [pbr::OriginalName("ANIMATION_LOOP_TYPE_PINGPONG")] Pingpong = -1, + [pbr::OriginalName("ANIMATION_LOOP_TYPE_INFINITE")] Infinite = 0, + [pbr::OriginalName("ANIMATION_LOOP_TYPE_COUNTED")] Counted = 1, + } + + public enum HOOK_TYPE { + [pbr::OriginalName("HOOK_TYPE_SOUTH")] South = 1, + [pbr::OriginalName("HOOK_TYPE_EAST")] East = 2, + } + + public enum ANIMATION_ANIMATION_MODE { + [pbr::OriginalName("ANIMATION_ASYNCHRONIZED")] AnimationAsynchronized = 0, + [pbr::OriginalName("ANIMATION_SYNCHRONIZED")] AnimationSynchronized = 1, + } + + public enum APPEARANCE_TYPE { + [pbr::OriginalName("APPEARANCE_OBJECT")] AppearanceObject = 1, + [pbr::OriginalName("APPEARANCE_OUTFIT")] AppearanceOutfit = 2, + [pbr::OriginalName("APPEARANCE_EFFECT")] AppearanceEffect = 3, + [pbr::OriginalName("APPEARANCE_MISSILE")] AppearanceMissile = 4, + } + + #endregion + + #region Messages + public sealed partial class Appearances : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Appearances()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[0]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Coordinate() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Appearances() { + OnConstruction(); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Coordinate(Coordinate other) : this() - { - _hasBits0 = other._hasBits0; - x_ = other.x_; - y_ = other.y_; - z_ = other.z_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Coordinate Clone() - { - return new Coordinate(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Appearances(Appearances other) : this() { + object_ = other.object_.Clone(); + outfit_ = other.outfit_.Clone(); + effect_ = other.effect_.Clone(); + missile_ = other.missile_.Clone(); + specialMeaningAppearanceIds_ = other.specialMeaningAppearanceIds_ != null ? other.specialMeaningAppearanceIds_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private readonly static uint XDefaultValue = 0; - - private uint x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint X - { - get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } - set - { - _hasBits0 |= 1; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() - { - _hasBits0 &= ~1; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Appearances Clone() { + return new Appearances(this); + } - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private readonly static uint YDefaultValue = 0; - - private uint y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Y - { - get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } - set - { - _hasBits0 |= 2; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() - { - _hasBits0 &= ~2; - } + /// Field number for the "object" field. + public const int ObjectFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_object_codec + = pb::FieldCodec.ForMessage(10, global::Tibia.Protobuf.Appearances.Appearance.Parser); + private readonly pbc::RepeatedField object_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Object { + get { return object_; } + } - /// Field number for the "z" field. - public const int ZFieldNumber = 3; - private readonly static uint ZDefaultValue = 0; - - private uint z_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Z - { - get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } - set - { - _hasBits0 |= 4; - z_ = value; - } - } - /// Gets whether the "z" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasZ - { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "z" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearZ() - { - _hasBits0 &= ~4; - } + /// Field number for the "outfit" field. + public const int OutfitFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_outfit_codec + = pb::FieldCodec.ForMessage(18, global::Tibia.Protobuf.Appearances.Appearance.Parser); + private readonly pbc::RepeatedField outfit_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Outfit { + get { return outfit_; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as Coordinate); - } + /// Field number for the "effect" field. + public const int EffectFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_effect_codec + = pb::FieldCodec.ForMessage(26, global::Tibia.Protobuf.Appearances.Appearance.Parser); + private readonly pbc::RepeatedField effect_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Effect { + get { return effect_; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Coordinate other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (X != other.X) return false; - if (Y != other.Y) return false; - if (Z != other.Z) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "missile" field. + public const int MissileFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_missile_codec + = pb::FieldCodec.ForMessage(34, global::Tibia.Protobuf.Appearances.Appearance.Parser); + private readonly pbc::RepeatedField missile_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Missile { + get { return missile_; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasX) hash ^= X.GetHashCode(); - if (HasY) hash ^= Y.GetHashCode(); - if (HasZ) hash ^= Z.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "special_meaning_appearance_ids" field. + public const int SpecialMeaningAppearanceIdsFieldNumber = 5; + private global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds specialMeaningAppearanceIds_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds SpecialMeaningAppearanceIds { + get { return specialMeaningAppearanceIds_; } + set { + specialMeaningAppearanceIds_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Appearances); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else - if (HasX) { - output.WriteRawTag(8); - output.WriteUInt32(X); - } - if (HasY) { - output.WriteRawTag(16); - output.WriteUInt32(Y); - } - if (HasZ) { - output.WriteRawTag(24); - output.WriteUInt32(Z); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Appearances other) { + if (ReferenceEquals(other, null)) { + return false; } - if (_unknownFields != null) { - _unknownFields.WriteTo(output); + if (ReferenceEquals(other, this)) { + return true; } -#endif - } - -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasX) - { - output.WriteRawTag(8); - output.WriteUInt32(X); - } - if (HasY) - { - output.WriteRawTag(16); - output.WriteUInt32(Y); - } - if (HasZ) - { - output.WriteRawTag(24); - output.WriteUInt32(Z); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasX) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(X); - } - if (HasY) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Y); - } - if (HasZ) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Z); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Coordinate other) - { - if (other == null) - { - return; - } - if (other.HasX) - { - X = other.X; - } - if (other.HasY) - { - Y = other.Y; - } - if (other.HasZ) - { - Z = other.Z; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + if(!object_.Equals(other.object_)) return false; + if(!outfit_.Equals(other.outfit_)) return false; + if(!effect_.Equals(other.effect_)) return false; + if(!missile_.Equals(other.missile_)) return false; + if (!object.Equals(SpecialMeaningAppearanceIds, other.SpecialMeaningAppearanceIds)) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - X = input.ReadUInt32(); - break; - } - case 16: { - Y = input.ReadUInt32(); - break; - } - case 24: { - Z = input.ReadUInt32(); - break; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + hash ^= object_.GetHashCode(); + hash ^= outfit_.GetHashCode(); + hash ^= effect_.GetHashCode(); + hash ^= missile_.GetHashCode(); + if (specialMeaningAppearanceIds_ != null) hash ^= SpecialMeaningAppearanceIds.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); } -#endif - } - -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - X = input.ReadUInt32(); - break; - } - case 16: - { - Y = input.ReadUInt32(); - break; - } - case 24: - { - Z = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class Appearances : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Appearances()); - private pb::UnknownFieldSet _unknownFields; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[1]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Appearances() - { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Appearances(Appearances other) : this() - { - object_ = other.object_.Clone(); - outfit_ = other.outfit_.Clone(); - effect_ = other.effect_.Clone(); - missile_ = other.missile_.Clone(); - specialMeaningAppearanceIds_ = other.specialMeaningAppearanceIds_ != null ? other.specialMeaningAppearanceIds_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Appearances Clone() - { - return new Appearances(this); - } - - /// Field number for the "object" field. - public const int ObjectFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_object_codec - = pb::FieldCodec.ForMessage(10, global::Tibia.Protobuf.Appearances.Appearance.Parser); - private readonly pbc::RepeatedField object_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Object - { - get { return object_; } - } - - /// Field number for the "outfit" field. - public const int OutfitFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_outfit_codec - = pb::FieldCodec.ForMessage(18, global::Tibia.Protobuf.Appearances.Appearance.Parser); - private readonly pbc::RepeatedField outfit_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Outfit - { - get { return outfit_; } - } - - /// Field number for the "effect" field. - public const int EffectFieldNumber = 3; - private static readonly pb::FieldCodec _repeated_effect_codec - = pb::FieldCodec.ForMessage(26, global::Tibia.Protobuf.Appearances.Appearance.Parser); - private readonly pbc::RepeatedField effect_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Effect - { - get { return effect_; } - } - - /// Field number for the "missile" field. - public const int MissileFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_missile_codec - = pb::FieldCodec.ForMessage(34, global::Tibia.Protobuf.Appearances.Appearance.Parser); - private readonly pbc::RepeatedField missile_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Missile - { - get { return missile_; } - } - - /// Field number for the "special_meaning_appearance_ids" field. - public const int SpecialMeaningAppearanceIdsFieldNumber = 5; - private global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds specialMeaningAppearanceIds_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds SpecialMeaningAppearanceIds - { - get { return specialMeaningAppearanceIds_; } - set - { - specialMeaningAppearanceIds_ = value; - } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as Appearances); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Appearances other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object_.Equals(other.object_)) return false; - if (!outfit_.Equals(other.outfit_)) return false; - if (!effect_.Equals(other.effect_)) return false; - if (!missile_.Equals(other.missile_)) return false; - if (!object.Equals(SpecialMeaningAppearanceIds, other.SpecialMeaningAppearanceIds)) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - hash ^= object_.GetHashCode(); - hash ^= outfit_.GetHashCode(); - hash ^= effect_.GetHashCode(); - hash ^= missile_.GetHashCode(); - if (specialMeaningAppearanceIds_ != null) hash ^= SpecialMeaningAppearanceIds.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else object_.WriteTo(output, _repeated_object_codec); outfit_.WriteTo(output, _repeated_outfit_codec); effect_.WriteTo(output, _repeated_effect_codec); @@ -795,80 +445,65 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - object_.WriteTo(ref output, _repeated_object_codec); - outfit_.WriteTo(ref output, _repeated_outfit_codec); - effect_.WriteTo(ref output, _repeated_effect_codec); - missile_.WriteTo(ref output, _repeated_missile_codec); - if (specialMeaningAppearanceIds_ != null) - { - output.WriteRawTag(42); - output.WriteMessage(SpecialMeaningAppearanceIds); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - size += object_.CalculateSize(_repeated_object_codec); - size += outfit_.CalculateSize(_repeated_outfit_codec); - size += effect_.CalculateSize(_repeated_effect_codec); - size += missile_.CalculateSize(_repeated_missile_codec); - if (specialMeaningAppearanceIds_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpecialMeaningAppearanceIds); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + object_.WriteTo(ref output, _repeated_object_codec); + outfit_.WriteTo(ref output, _repeated_outfit_codec); + effect_.WriteTo(ref output, _repeated_effect_codec); + missile_.WriteTo(ref output, _repeated_missile_codec); + if (specialMeaningAppearanceIds_ != null) { + output.WriteRawTag(42); + output.WriteMessage(SpecialMeaningAppearanceIds); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + size += object_.CalculateSize(_repeated_object_codec); + size += outfit_.CalculateSize(_repeated_outfit_codec); + size += effect_.CalculateSize(_repeated_effect_codec); + size += missile_.CalculateSize(_repeated_missile_codec); + if (specialMeaningAppearanceIds_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpecialMeaningAppearanceIds); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Appearances other) - { - if (other == null) - { - return; - } - object_.Add(other.object_); - outfit_.Add(other.outfit_); - effect_.Add(other.effect_); - missile_.Add(other.missile_); - if (other.specialMeaningAppearanceIds_ != null) - { - if (specialMeaningAppearanceIds_ == null) - { - SpecialMeaningAppearanceIds = new global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds(); - } - SpecialMeaningAppearanceIds.MergeFrom(other.SpecialMeaningAppearanceIds); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Appearances other) { + if (other == null) { + return; + } + object_.Add(other.object_); + outfit_.Add(other.outfit_); + effect_.Add(other.effect_); + missile_.Add(other.missile_); + if (other.specialMeaningAppearanceIds_ != null) { + if (specialMeaningAppearanceIds_ == null) { + SpecialMeaningAppearanceIds = new global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds(); } + SpecialMeaningAppearanceIds.MergeFrom(other.SpecialMeaningAppearanceIds); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -900,224 +535,176 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - { - object_.AddEntriesFrom(ref input, _repeated_object_codec); - break; - } - case 18: - { - outfit_.AddEntriesFrom(ref input, _repeated_outfit_codec); - break; - } - case 26: - { - effect_.AddEntriesFrom(ref input, _repeated_effect_codec); - break; - } - case 34: - { - missile_.AddEntriesFrom(ref input, _repeated_missile_codec); - break; - } - case 42: - { - if (specialMeaningAppearanceIds_ == null) - { - SpecialMeaningAppearanceIds = new global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds(); - } - input.ReadMessage(SpecialMeaningAppearanceIds); - break; - } - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + object_.AddEntriesFrom(ref input, _repeated_object_codec); + break; + } + case 18: { + outfit_.AddEntriesFrom(ref input, _repeated_outfit_codec); + break; + } + case 26: { + effect_.AddEntriesFrom(ref input, _repeated_effect_codec); + break; + } + case 34: { + missile_.AddEntriesFrom(ref input, _repeated_missile_codec); + break; + } + case 42: { + if (specialMeaningAppearanceIds_ == null) { + SpecialMeaningAppearanceIds = new global::Tibia.Protobuf.Appearances.SpecialMeaningAppearanceIds(); } + input.ReadMessage(SpecialMeaningAppearanceIds); + break; + } } -#endif - - } - - public sealed partial class SpritePhase : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpritePhase()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[2]; } - } + } + } + #endif + + } + + public sealed partial class SpritePhase : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpritePhase()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[1]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpritePhase() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpritePhase() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpritePhase(SpritePhase other) : this() - { - _hasBits0 = other._hasBits0; - durationMin_ = other.durationMin_; - durationMax_ = other.durationMax_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpritePhase(SpritePhase other) : this() { + _hasBits0 = other._hasBits0; + durationMin_ = other.durationMin_; + durationMax_ = other.durationMax_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpritePhase Clone() - { - return new SpritePhase(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpritePhase Clone() { + return new SpritePhase(this); + } - /// Field number for the "duration_min" field. - public const int DurationMinFieldNumber = 1; - private readonly static uint DurationMinDefaultValue = 0; - - private uint durationMin_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DurationMin - { - get { if ((_hasBits0 & 1) != 0) { return durationMin_; } else { return DurationMinDefaultValue; } } - set - { - _hasBits0 |= 1; - durationMin_ = value; - } - } - /// Gets whether the "duration_min" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDurationMin - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "duration_min" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDurationMin() - { - _hasBits0 &= ~1; - } + /// Field number for the "duration_min" field. + public const int DurationMinFieldNumber = 1; + private readonly static uint DurationMinDefaultValue = 0; - /// Field number for the "duration_max" field. - public const int DurationMaxFieldNumber = 2; - private readonly static uint DurationMaxDefaultValue = 0; - - private uint durationMax_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DurationMax - { - get { if ((_hasBits0 & 2) != 0) { return durationMax_; } else { return DurationMaxDefaultValue; } } - set - { - _hasBits0 |= 2; - durationMax_ = value; - } - } - /// Gets whether the "duration_max" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDurationMax - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "duration_max" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDurationMax() - { - _hasBits0 &= ~2; - } + private uint durationMin_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint DurationMin { + get { if ((_hasBits0 & 1) != 0) { return durationMin_; } else { return DurationMinDefaultValue; } } + set { + _hasBits0 |= 1; + durationMin_ = value; + } + } + /// Gets whether the "duration_min" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDurationMin { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "duration_min" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDurationMin() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as SpritePhase); - } + /// Field number for the "duration_max" field. + public const int DurationMaxFieldNumber = 2; + private readonly static uint DurationMaxDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpritePhase other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (DurationMin != other.DurationMin) return false; - if (DurationMax != other.DurationMax) return false; - return Equals(_unknownFields, other._unknownFields); - } + private uint durationMax_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint DurationMax { + get { if ((_hasBits0 & 2) != 0) { return durationMax_; } else { return DurationMaxDefaultValue; } } + set { + _hasBits0 |= 2; + durationMax_ = value; + } + } + /// Gets whether the "duration_max" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDurationMax { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "duration_max" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDurationMax() { + _hasBits0 &= ~2; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasDurationMin) hash ^= DurationMin.GetHashCode(); - if (HasDurationMax) hash ^= DurationMax.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SpritePhase); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SpritePhase other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DurationMin != other.DurationMin) return false; + if (DurationMax != other.DurationMax) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasDurationMin) hash ^= DurationMin.GetHashCode(); + if (HasDurationMax) hash ^= DurationMax.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasDurationMin) { output.WriteRawTag(8); output.WriteUInt32(DurationMin); @@ -1129,80 +716,63 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } - -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasDurationMin) - { - output.WriteRawTag(8); - output.WriteUInt32(DurationMin); - } - if (HasDurationMax) - { - output.WriteRawTag(16); - output.WriteUInt32(DurationMax); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasDurationMin) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DurationMin); - } - if (HasDurationMax) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DurationMax); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpritePhase other) - { - if (other == null) - { - return; - } - if (other.HasDurationMin) - { - DurationMin = other.DurationMin; - } - if (other.HasDurationMax) - { - DurationMax = other.DurationMax; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasDurationMin) { + output.WriteRawTag(8); + output.WriteUInt32(DurationMin); + } + if (HasDurationMax) { + output.WriteRawTag(16); + output.WriteUInt32(DurationMax); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasDurationMin) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DurationMin); + } + if (HasDurationMax) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DurationMax); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SpritePhase other) { + if (other == null) { + return; + } + if (other.HasDurationMin) { + DurationMin = other.DurationMin; + } + if (other.HasDurationMax) { + DurationMax = other.DurationMax; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; @@ -1216,322 +786,282 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - DurationMin = input.ReadUInt32(); - break; - } - case 16: - { - DurationMax = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class SpriteAnimation : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpriteAnimation()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[3]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DurationMin = input.ReadUInt32(); + break; + } + case 16: { + DurationMax = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class SpriteAnimation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpriteAnimation()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[2]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpriteAnimation() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpriteAnimation() { + OnConstruction(); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpriteAnimation(SpriteAnimation other) : this() - { - _hasBits0 = other._hasBits0; - defaultStartPhase_ = other.defaultStartPhase_; - synchronized_ = other.synchronized_; - randomStartPhase_ = other.randomStartPhase_; - loopType_ = other.loopType_; - loopCount_ = other.loopCount_; - spritePhase_ = other.spritePhase_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpriteAnimation(SpriteAnimation other) : this() { + _hasBits0 = other._hasBits0; + defaultStartPhase_ = other.defaultStartPhase_; + synchronized_ = other.synchronized_; + randomStartPhase_ = other.randomStartPhase_; + loopType_ = other.loopType_; + loopCount_ = other.loopCount_; + spritePhase_ = other.spritePhase_.Clone(); + animationMode_ = other.animationMode_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpriteAnimation Clone() - { - return new SpriteAnimation(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpriteAnimation Clone() { + return new SpriteAnimation(this); + } - /// Field number for the "default_start_phase" field. - public const int DefaultStartPhaseFieldNumber = 1; - private readonly static uint DefaultStartPhaseDefaultValue = 0; - - private uint defaultStartPhase_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint DefaultStartPhase - { - get { if ((_hasBits0 & 1) != 0) { return defaultStartPhase_; } else { return DefaultStartPhaseDefaultValue; } } - set - { - _hasBits0 |= 1; - defaultStartPhase_ = value; - } - } - /// Gets whether the "default_start_phase" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDefaultStartPhase - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "default_start_phase" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDefaultStartPhase() - { - _hasBits0 &= ~1; - } + /// Field number for the "default_start_phase" field. + public const int DefaultStartPhaseFieldNumber = 1; + private readonly static uint DefaultStartPhaseDefaultValue = 0; - /// Field number for the "synchronized" field. - public const int SynchronizedFieldNumber = 2; - private readonly static bool SynchronizedDefaultValue = false; - - private bool synchronized_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Synchronized - { - get { if ((_hasBits0 & 2) != 0) { return synchronized_; } else { return SynchronizedDefaultValue; } } - set - { - _hasBits0 |= 2; - synchronized_ = value; - } - } - /// Gets whether the "synchronized" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSynchronized - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "synchronized" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSynchronized() - { - _hasBits0 &= ~2; - } + private uint defaultStartPhase_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint DefaultStartPhase { + get { if ((_hasBits0 & 1) != 0) { return defaultStartPhase_; } else { return DefaultStartPhaseDefaultValue; } } + set { + _hasBits0 |= 1; + defaultStartPhase_ = value; + } + } + /// Gets whether the "default_start_phase" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDefaultStartPhase { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "default_start_phase" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDefaultStartPhase() { + _hasBits0 &= ~1; + } - /// Field number for the "random_start_phase" field. - public const int RandomStartPhaseFieldNumber = 3; - private readonly static bool RandomStartPhaseDefaultValue = false; - - private bool randomStartPhase_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool RandomStartPhase - { - get { if ((_hasBits0 & 4) != 0) { return randomStartPhase_; } else { return RandomStartPhaseDefaultValue; } } - set - { - _hasBits0 |= 4; - randomStartPhase_ = value; - } - } - /// Gets whether the "random_start_phase" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRandomStartPhase - { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "random_start_phase" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRandomStartPhase() - { - _hasBits0 &= ~4; - } + /// Field number for the "synchronized" field. + public const int SynchronizedFieldNumber = 2; + private readonly static bool SynchronizedDefaultValue = false; - /// Field number for the "loop_type" field. - public const int LoopTypeFieldNumber = 4; - private readonly static global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE LoopTypeDefaultValue = global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE.Pingpong; - - private global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE loopType_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE LoopType - { - get { if ((_hasBits0 & 8) != 0) { return loopType_; } else { return LoopTypeDefaultValue; } } - set - { - _hasBits0 |= 8; - loopType_ = value; - } - } - /// Gets whether the "loop_type" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLoopType - { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "loop_type" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLoopType() - { - _hasBits0 &= ~8; - } + private bool synchronized_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Synchronized { + get { if ((_hasBits0 & 2) != 0) { return synchronized_; } else { return SynchronizedDefaultValue; } } + set { + _hasBits0 |= 2; + synchronized_ = value; + } + } + /// Gets whether the "synchronized" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSynchronized { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "synchronized" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSynchronized() { + _hasBits0 &= ~2; + } - /// Field number for the "loop_count" field. - public const int LoopCountFieldNumber = 5; - private readonly static uint LoopCountDefaultValue = 0; - - private uint loopCount_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint LoopCount - { - get { if ((_hasBits0 & 16) != 0) { return loopCount_; } else { return LoopCountDefaultValue; } } - set - { - _hasBits0 |= 16; - loopCount_ = value; - } - } - /// Gets whether the "loop_count" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLoopCount - { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "loop_count" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLoopCount() - { - _hasBits0 &= ~16; - } + /// Field number for the "random_start_phase" field. + public const int RandomStartPhaseFieldNumber = 3; + private readonly static bool RandomStartPhaseDefaultValue = false; - /// Field number for the "sprite_phase" field. - public const int SpritePhaseFieldNumber = 6; - private static readonly pb::FieldCodec _repeated_spritePhase_codec - = pb::FieldCodec.ForMessage(50, global::Tibia.Protobuf.Appearances.SpritePhase.Parser); - private readonly pbc::RepeatedField spritePhase_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SpritePhase - { - get { return spritePhase_; } - } + private bool randomStartPhase_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool RandomStartPhase { + get { if ((_hasBits0 & 4) != 0) { return randomStartPhase_; } else { return RandomStartPhaseDefaultValue; } } + set { + _hasBits0 |= 4; + randomStartPhase_ = value; + } + } + /// Gets whether the "random_start_phase" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRandomStartPhase { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "random_start_phase" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRandomStartPhase() { + _hasBits0 &= ~4; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as SpriteAnimation); - } + /// Field number for the "loop_type" field. + public const int LoopTypeFieldNumber = 4; + private readonly static global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE LoopTypeDefaultValue = global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE.Pingpong; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpriteAnimation other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (DefaultStartPhase != other.DefaultStartPhase) return false; - if (Synchronized != other.Synchronized) return false; - if (RandomStartPhase != other.RandomStartPhase) return false; - if (LoopType != other.LoopType) return false; - if (LoopCount != other.LoopCount) return false; - if (!spritePhase_.Equals(other.spritePhase_)) return false; - return Equals(_unknownFields, other._unknownFields); - } + private global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE loopType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE LoopType { + get { if ((_hasBits0 & 8) != 0) { return loopType_; } else { return LoopTypeDefaultValue; } } + set { + _hasBits0 |= 8; + loopType_ = value; + } + } + /// Gets whether the "loop_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLoopType { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "loop_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLoopType() { + _hasBits0 &= ~8; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasDefaultStartPhase) hash ^= DefaultStartPhase.GetHashCode(); - if (HasSynchronized) hash ^= Synchronized.GetHashCode(); - if (HasRandomStartPhase) hash ^= RandomStartPhase.GetHashCode(); - if (HasLoopType) hash ^= LoopType.GetHashCode(); - if (HasLoopCount) hash ^= LoopCount.GetHashCode(); - hash ^= spritePhase_.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "loop_count" field. + public const int LoopCountFieldNumber = 5; + private readonly static uint LoopCountDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + private uint loopCount_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint LoopCount { + get { if ((_hasBits0 & 16) != 0) { return loopCount_; } else { return LoopCountDefaultValue; } } + set { + _hasBits0 |= 16; + loopCount_ = value; + } + } + /// Gets whether the "loop_count" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLoopCount { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "loop_count" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLoopCount() { + _hasBits0 &= ~16; + } + + /// Field number for the "sprite_phase" field. + public const int SpritePhaseFieldNumber = 6; + private static readonly pb::FieldCodec _repeated_spritePhase_codec + = pb::FieldCodec.ForMessage(50, global::Tibia.Protobuf.Appearances.SpritePhase.Parser); + private readonly pbc::RepeatedField spritePhase_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SpritePhase { + get { return spritePhase_; } + } + + /// Field number for the "animation_mode" field. + public const int AnimationModeFieldNumber = 7; + private readonly static global::Tibia.Protobuf.Appearances.ANIMATION_ANIMATION_MODE AnimationModeDefaultValue = global::Tibia.Protobuf.Appearances.ANIMATION_ANIMATION_MODE.AnimationAsynchronized; + + private global::Tibia.Protobuf.Appearances.ANIMATION_ANIMATION_MODE animationMode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.ANIMATION_ANIMATION_MODE AnimationMode { + get { if ((_hasBits0 & 32) != 0) { return animationMode_; } else { return AnimationModeDefaultValue; } } + set { + _hasBits0 |= 32; + animationMode_ = value; + } + } + /// Gets whether the "animation_mode" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAnimationMode { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "animation_mode" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAnimationMode() { + _hasBits0 &= ~32; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SpriteAnimation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SpriteAnimation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (DefaultStartPhase != other.DefaultStartPhase) return false; + if (Synchronized != other.Synchronized) return false; + if (RandomStartPhase != other.RandomStartPhase) return false; + if (LoopType != other.LoopType) return false; + if (LoopCount != other.LoopCount) return false; + if(!spritePhase_.Equals(other.spritePhase_)) return false; + if (AnimationMode != other.AnimationMode) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasDefaultStartPhase) hash ^= DefaultStartPhase.GetHashCode(); + if (HasSynchronized) hash ^= Synchronized.GetHashCode(); + if (HasRandomStartPhase) hash ^= RandomStartPhase.GetHashCode(); + if (HasLoopType) hash ^= LoopType.GetHashCode(); + if (HasLoopCount) hash ^= LoopCount.GetHashCode(); + hash ^= spritePhase_.GetHashCode(); + if (HasAnimationMode) hash ^= AnimationMode.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasDefaultStartPhase) { output.WriteRawTag(8); output.WriteUInt32(DefaultStartPhase); @@ -1553,122 +1083,110 @@ public void WriteTo(pb::CodedOutputStream output) output.WriteUInt32(LoopCount); } spritePhase_.WriteTo(output, _repeated_spritePhase_codec); + if (HasAnimationMode) { + output.WriteRawTag(56); + output.WriteEnum((int) AnimationMode); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasDefaultStartPhase) - { - output.WriteRawTag(8); - output.WriteUInt32(DefaultStartPhase); - } - if (HasSynchronized) - { - output.WriteRawTag(16); - output.WriteBool(Synchronized); - } - if (HasRandomStartPhase) - { - output.WriteRawTag(24); - output.WriteBool(RandomStartPhase); - } - if (HasLoopType) - { - output.WriteRawTag(32); - output.WriteEnum((int)LoopType); - } - if (HasLoopCount) - { - output.WriteRawTag(40); - output.WriteUInt32(LoopCount); - } - spritePhase_.WriteTo(ref output, _repeated_spritePhase_codec); - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasDefaultStartPhase) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DefaultStartPhase); - } - if (HasSynchronized) - { - size += 1 + 1; - } - if (HasRandomStartPhase) - { - size += 1 + 1; - } - if (HasLoopType) - { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)LoopType); - } - if (HasLoopCount) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LoopCount); - } - size += spritePhase_.CalculateSize(_repeated_spritePhase_codec); - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasDefaultStartPhase) { + output.WriteRawTag(8); + output.WriteUInt32(DefaultStartPhase); + } + if (HasSynchronized) { + output.WriteRawTag(16); + output.WriteBool(Synchronized); + } + if (HasRandomStartPhase) { + output.WriteRawTag(24); + output.WriteBool(RandomStartPhase); + } + if (HasLoopType) { + output.WriteRawTag(32); + output.WriteEnum((int) LoopType); + } + if (HasLoopCount) { + output.WriteRawTag(40); + output.WriteUInt32(LoopCount); + } + spritePhase_.WriteTo(ref output, _repeated_spritePhase_codec); + if (HasAnimationMode) { + output.WriteRawTag(56); + output.WriteEnum((int) AnimationMode); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpriteAnimation other) - { - if (other == null) - { - return; - } - if (other.HasDefaultStartPhase) - { - DefaultStartPhase = other.DefaultStartPhase; - } - if (other.HasSynchronized) - { - Synchronized = other.Synchronized; - } - if (other.HasRandomStartPhase) - { - RandomStartPhase = other.RandomStartPhase; - } - if (other.HasLoopType) - { - LoopType = other.LoopType; - } - if (other.HasLoopCount) - { - LoopCount = other.LoopCount; - } - spritePhase_.Add(other.spritePhase_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasDefaultStartPhase) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DefaultStartPhase); + } + if (HasSynchronized) { + size += 1 + 1; + } + if (HasRandomStartPhase) { + size += 1 + 1; + } + if (HasLoopType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LoopType); + } + if (HasLoopCount) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LoopCount); + } + size += spritePhase_.CalculateSize(_repeated_spritePhase_codec); + if (HasAnimationMode) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AnimationMode); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SpriteAnimation other) { + if (other == null) { + return; + } + if (other.HasDefaultStartPhase) { + DefaultStartPhase = other.DefaultStartPhase; + } + if (other.HasSynchronized) { + Synchronized = other.Synchronized; + } + if (other.HasRandomStartPhase) { + RandomStartPhase = other.RandomStartPhase; + } + if (other.HasLoopType) { + LoopType = other.LoopType; + } + if (other.HasLoopCount) { + LoopCount = other.LoopCount; + } + spritePhase_.Add(other.spritePhase_); + if (other.HasAnimationMode) { + AnimationMode = other.AnimationMode; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -1699,295 +1217,241 @@ public void MergeFrom(pb::CodedInputStream input) spritePhase_.AddEntriesFrom(input, _repeated_spritePhase_codec); break; } + case 56: { + AnimationMode = (global::Tibia.Protobuf.Appearances.ANIMATION_ANIMATION_MODE) input.ReadEnum(); + break; + } } } -#endif - } - -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - DefaultStartPhase = input.ReadUInt32(); - break; - } - case 16: - { - Synchronized = input.ReadBool(); - break; - } - case 24: - { - RandomStartPhase = input.ReadBool(); - break; - } - case 32: - { - LoopType = (global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE)input.ReadEnum(); - break; - } - case 40: - { - LoopCount = input.ReadUInt32(); - break; - } - case 50: - { - spritePhase_.AddEntriesFrom(ref input, _repeated_spritePhase_codec); - break; - } - } - } - } -#endif - - } - - public sealed partial class Box : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Box()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[4]; } - } + #endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + DefaultStartPhase = input.ReadUInt32(); + break; + } + case 16: { + Synchronized = input.ReadBool(); + break; + } + case 24: { + RandomStartPhase = input.ReadBool(); + break; + } + case 32: { + LoopType = (global::Tibia.Protobuf.Appearances.ANIMATION_LOOP_TYPE) input.ReadEnum(); + break; + } + case 40: { + LoopCount = input.ReadUInt32(); + break; + } + case 50: { + spritePhase_.AddEntriesFrom(ref input, _repeated_spritePhase_codec); + break; + } + case 56: { + AnimationMode = (global::Tibia.Protobuf.Appearances.ANIMATION_ANIMATION_MODE) input.ReadEnum(); + break; + } } + } + } + #endif + + } + + public sealed partial class Box : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Box()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[3]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Box() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Box(Box other) : this() - { - _hasBits0 = other._hasBits0; - x_ = other.x_; - y_ = other.y_; - width_ = other.width_; - height_ = other.height_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Box() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Box Clone() - { - return new Box(this); - } + partial void OnConstruction(); - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private readonly static uint XDefaultValue = 0; - - private uint x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint X - { - get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } - set - { - _hasBits0 |= 1; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() - { - _hasBits0 &= ~1; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Box(Box other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + width_ = other.width_; + height_ = other.height_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private readonly static uint YDefaultValue = 0; - - private uint y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Y - { - get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } - set - { - _hasBits0 |= 2; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() - { - _hasBits0 &= ~2; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Box Clone() { + return new Box(this); + } - /// Field number for the "width" field. - public const int WidthFieldNumber = 3; - private readonly static uint WidthDefaultValue = 0; - - private uint width_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Width - { - get { if ((_hasBits0 & 4) != 0) { return width_; } else { return WidthDefaultValue; } } - set - { - _hasBits0 |= 4; - width_ = value; - } - } - /// Gets whether the "width" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasWidth - { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "width" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearWidth() - { - _hasBits0 &= ~4; - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static uint XDefaultValue = 0; - /// Field number for the "height" field. - public const int HeightFieldNumber = 4; - private readonly static uint HeightDefaultValue = 0; - - private uint height_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Height - { - get { if ((_hasBits0 & 8) != 0) { return height_; } else { return HeightDefaultValue; } } - set - { - _hasBits0 |= 8; - height_ = value; - } - } - /// Gets whether the "height" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHeight - { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "height" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHeight() - { - _hasBits0 &= ~8; - } + private uint x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearX() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as Box); - } + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static uint YDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Box other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (X != other.X) return false; - if (Y != other.Y) return false; - if (Width != other.Width) return false; - if (Height != other.Height) return false; - return Equals(_unknownFields, other._unknownFields); - } + private uint y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearY() { + _hasBits0 &= ~2; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasX) hash ^= X.GetHashCode(); - if (HasY) hash ^= Y.GetHashCode(); - if (HasWidth) hash ^= Width.GetHashCode(); - if (HasHeight) hash ^= Height.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "width" field. + public const int WidthFieldNumber = 3; + private readonly static uint WidthDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + private uint width_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Width { + get { if ((_hasBits0 & 4) != 0) { return width_; } else { return WidthDefaultValue; } } + set { + _hasBits0 |= 4; + width_ = value; + } + } + /// Gets whether the "width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWidth { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWidth() { + _hasBits0 &= ~4; + } + + /// Field number for the "height" field. + public const int HeightFieldNumber = 4; + private readonly static uint HeightDefaultValue = 0; + + private uint height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Height { + get { if ((_hasBits0 & 8) != 0) { return height_; } else { return HeightDefaultValue; } } + set { + _hasBits0 |= 8; + height_ = value; + } + } + /// Gets whether the "height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHeight { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHeight() { + _hasBits0 &= ~8; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Box); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Box other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Width != other.Width) return false; + if (Height != other.Height) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasWidth) hash ^= Width.GetHashCode(); + if (HasHeight) hash ^= Height.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasX) { output.WriteRawTag(8); output.WriteUInt32(X); @@ -2007,103 +1471,80 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasX) - { - output.WriteRawTag(8); - output.WriteUInt32(X); - } - if (HasY) - { - output.WriteRawTag(16); - output.WriteUInt32(Y); - } - if (HasWidth) - { - output.WriteRawTag(24); - output.WriteUInt32(Width); - } - if (HasHeight) - { - output.WriteRawTag(32); - output.WriteUInt32(Height); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasX) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(X); - } - if (HasY) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Y); - } - if (HasWidth) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); - } - if (HasHeight) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteUInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteUInt32(Y); + } + if (HasWidth) { + output.WriteRawTag(24); + output.WriteUInt32(Width); + } + if (HasHeight) { + output.WriteRawTag(32); + output.WriteUInt32(Height); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Box other) - { - if (other == null) - { - return; - } - if (other.HasX) - { - X = other.X; - } - if (other.HasY) - { - Y = other.Y; - } - if (other.HasWidth) - { - Width = other.Width; - } - if (other.HasHeight) - { - Height = other.Height; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Y); + } + if (HasWidth) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Width); + } + if (HasHeight) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Height); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Box other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasWidth) { + Width = other.Width; + } + if (other.HasHeight) { + Height = other.Height; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2128,398 +1569,506 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - X = input.ReadUInt32(); - break; - } - case 16: - { - Y = input.ReadUInt32(); - break; - } - case 24: - { - Width = input.ReadUInt32(); - break; - } - case 32: - { - Height = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class SpriteInfo : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpriteInfo()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[5]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadUInt32(); + break; + } + case 16: { + Y = input.ReadUInt32(); + break; + } + case 24: { + Width = input.ReadUInt32(); + break; + } + case 32: { + Height = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class SpriteInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpriteInfo()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[4]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpriteInfo() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpriteInfo() { + OnConstruction(); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpriteInfo(SpriteInfo other) : this() - { - _hasBits0 = other._hasBits0; - patternWidth_ = other.patternWidth_; - patternHeight_ = other.patternHeight_; - patternDepth_ = other.patternDepth_; - layers_ = other.layers_; - spriteId_ = other.spriteId_.Clone(); - boundingSquare_ = other.boundingSquare_; - animation_ = other.animation_ != null ? other.animation_.Clone() : null; - isOpaque_ = other.isOpaque_; - boundingBoxPerDirection_ = other.boundingBoxPerDirection_.Clone(); - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpriteInfo(SpriteInfo other) : this() { + _hasBits0 = other._hasBits0; + patternWidth_ = other.patternWidth_; + patternHeight_ = other.patternHeight_; + patternDepth_ = other.patternDepth_; + layers_ = other.layers_; + spriteId_ = other.spriteId_.Clone(); + boundingSquare_ = other.boundingSquare_; + animation_ = other.animation_ != null ? other.animation_.Clone() : null; + isOpaque_ = other.isOpaque_; + boundingBoxPerDirection_ = other.boundingBoxPerDirection_.Clone(); + patternSize_ = other.patternSize_; + patternLayers_ = other.patternLayers_; + patternX_ = other.patternX_; + patternY_ = other.patternY_; + patternZ_ = other.patternZ_; + patternFrames_ = other.patternFrames_; + isAnimation_ = other.isAnimation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpriteInfo Clone() - { - return new SpriteInfo(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpriteInfo Clone() { + return new SpriteInfo(this); + } - /// Field number for the "pattern_width" field. - public const int PatternWidthFieldNumber = 1; - private readonly static uint PatternWidthDefaultValue = 0; - - private uint patternWidth_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PatternWidth - { - get { if ((_hasBits0 & 1) != 0) { return patternWidth_; } else { return PatternWidthDefaultValue; } } - set - { - _hasBits0 |= 1; - patternWidth_ = value; - } - } - /// Gets whether the "pattern_width" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPatternWidth - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "pattern_width" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPatternWidth() - { - _hasBits0 &= ~1; - } + /// Field number for the "pattern_width" field. + public const int PatternWidthFieldNumber = 1; + private readonly static uint PatternWidthDefaultValue = 0; - /// Field number for the "pattern_height" field. - public const int PatternHeightFieldNumber = 2; - private readonly static uint PatternHeightDefaultValue = 0; - - private uint patternHeight_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PatternHeight - { - get { if ((_hasBits0 & 2) != 0) { return patternHeight_; } else { return PatternHeightDefaultValue; } } - set - { - _hasBits0 |= 2; - patternHeight_ = value; - } - } - /// Gets whether the "pattern_height" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPatternHeight - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "pattern_height" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPatternHeight() - { - _hasBits0 &= ~2; - } + private uint patternWidth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PatternWidth { + get { if ((_hasBits0 & 1) != 0) { return patternWidth_; } else { return PatternWidthDefaultValue; } } + set { + _hasBits0 |= 1; + patternWidth_ = value; + } + } + /// Gets whether the "pattern_width" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatternWidth { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "pattern_width" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatternWidth() { + _hasBits0 &= ~1; + } - /// Field number for the "pattern_depth" field. - public const int PatternDepthFieldNumber = 3; - private readonly static uint PatternDepthDefaultValue = 0; - - private uint patternDepth_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PatternDepth - { - get { if ((_hasBits0 & 4) != 0) { return patternDepth_; } else { return PatternDepthDefaultValue; } } - set - { - _hasBits0 |= 4; - patternDepth_ = value; - } - } - /// Gets whether the "pattern_depth" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPatternDepth - { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "pattern_depth" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPatternDepth() - { - _hasBits0 &= ~4; - } + /// Field number for the "pattern_height" field. + public const int PatternHeightFieldNumber = 2; + private readonly static uint PatternHeightDefaultValue = 0; - /// Field number for the "layers" field. - public const int LayersFieldNumber = 4; - private readonly static uint LayersDefaultValue = 0; - - private uint layers_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Layers - { - get { if ((_hasBits0 & 8) != 0) { return layers_; } else { return LayersDefaultValue; } } - set - { - _hasBits0 |= 8; - layers_ = value; - } - } - /// Gets whether the "layers" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLayers - { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "layers" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLayers() - { - _hasBits0 &= ~8; - } + private uint patternHeight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PatternHeight { + get { if ((_hasBits0 & 2) != 0) { return patternHeight_; } else { return PatternHeightDefaultValue; } } + set { + _hasBits0 |= 2; + patternHeight_ = value; + } + } + /// Gets whether the "pattern_height" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatternHeight { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "pattern_height" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatternHeight() { + _hasBits0 &= ~2; + } - /// Field number for the "sprite_id" field. - public const int SpriteIdFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_spriteId_codec - = pb::FieldCodec.ForUInt32(40); - private readonly pbc::RepeatedField spriteId_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField SpriteId - { - get { return spriteId_; } - } + /// Field number for the "pattern_depth" field. + public const int PatternDepthFieldNumber = 3; + private readonly static uint PatternDepthDefaultValue = 0; - /// Field number for the "bounding_square" field. - public const int BoundingSquareFieldNumber = 7; - private readonly static uint BoundingSquareDefaultValue = 0; - - private uint boundingSquare_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint BoundingSquare - { - get { if ((_hasBits0 & 16) != 0) { return boundingSquare_; } else { return BoundingSquareDefaultValue; } } - set - { - _hasBits0 |= 16; - boundingSquare_ = value; - } - } - /// Gets whether the "bounding_square" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBoundingSquare - { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "bounding_square" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBoundingSquare() - { - _hasBits0 &= ~16; - } + private uint patternDepth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PatternDepth { + get { if ((_hasBits0 & 4) != 0) { return patternDepth_; } else { return PatternDepthDefaultValue; } } + set { + _hasBits0 |= 4; + patternDepth_ = value; + } + } + /// Gets whether the "pattern_depth" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatternDepth { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "pattern_depth" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatternDepth() { + _hasBits0 &= ~4; + } - /// Field number for the "animation" field. - public const int AnimationFieldNumber = 6; - private global::Tibia.Protobuf.Appearances.SpriteAnimation animation_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.SpriteAnimation Animation - { - get { return animation_; } - set - { - animation_ = value; - } - } + /// Field number for the "layers" field. + public const int LayersFieldNumber = 4; + private readonly static uint LayersDefaultValue = 0; - /// Field number for the "is_opaque" field. - public const int IsOpaqueFieldNumber = 8; - private readonly static bool IsOpaqueDefaultValue = false; - - private bool isOpaque_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IsOpaque - { - get { if ((_hasBits0 & 32) != 0) { return isOpaque_; } else { return IsOpaqueDefaultValue; } } - set - { - _hasBits0 |= 32; - isOpaque_ = value; - } - } - /// Gets whether the "is_opaque" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIsOpaque - { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "is_opaque" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIsOpaque() - { - _hasBits0 &= ~32; - } + private uint layers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Layers { + get { if ((_hasBits0 & 8) != 0) { return layers_; } else { return LayersDefaultValue; } } + set { + _hasBits0 |= 8; + layers_ = value; + } + } + /// Gets whether the "layers" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLayers { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "layers" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLayers() { + _hasBits0 &= ~8; + } - /// Field number for the "bounding_box_per_direction" field. - public const int BoundingBoxPerDirectionFieldNumber = 9; - private static readonly pb::FieldCodec _repeated_boundingBoxPerDirection_codec - = pb::FieldCodec.ForMessage(74, global::Tibia.Protobuf.Appearances.Box.Parser); - private readonly pbc::RepeatedField boundingBoxPerDirection_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField BoundingBoxPerDirection - { - get { return boundingBoxPerDirection_; } - } + /// Field number for the "sprite_id" field. + public const int SpriteIdFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_spriteId_codec + = pb::FieldCodec.ForUInt32(40); + private readonly pbc::RepeatedField spriteId_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SpriteId { + get { return spriteId_; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as SpriteInfo); - } + /// Field number for the "bounding_square" field. + public const int BoundingSquareFieldNumber = 7; + private readonly static uint BoundingSquareDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpriteInfo other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (PatternWidth != other.PatternWidth) return false; - if (PatternHeight != other.PatternHeight) return false; - if (PatternDepth != other.PatternDepth) return false; - if (Layers != other.Layers) return false; - if (!spriteId_.Equals(other.spriteId_)) return false; - if (BoundingSquare != other.BoundingSquare) return false; - if (!object.Equals(Animation, other.Animation)) return false; - if (IsOpaque != other.IsOpaque) return false; - if (!boundingBoxPerDirection_.Equals(other.boundingBoxPerDirection_)) return false; - return Equals(_unknownFields, other._unknownFields); - } + private uint boundingSquare_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint BoundingSquare { + get { if ((_hasBits0 & 16) != 0) { return boundingSquare_; } else { return BoundingSquareDefaultValue; } } + set { + _hasBits0 |= 16; + boundingSquare_ = value; + } + } + /// Gets whether the "bounding_square" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBoundingSquare { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "bounding_square" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBoundingSquare() { + _hasBits0 &= ~16; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasPatternWidth) hash ^= PatternWidth.GetHashCode(); - if (HasPatternHeight) hash ^= PatternHeight.GetHashCode(); - if (HasPatternDepth) hash ^= PatternDepth.GetHashCode(); - if (HasLayers) hash ^= Layers.GetHashCode(); - hash ^= spriteId_.GetHashCode(); - if (HasBoundingSquare) hash ^= BoundingSquare.GetHashCode(); - if (animation_ != null) hash ^= Animation.GetHashCode(); - if (HasIsOpaque) hash ^= IsOpaque.GetHashCode(); - hash ^= boundingBoxPerDirection_.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "animation" field. + public const int AnimationFieldNumber = 6; + private global::Tibia.Protobuf.Appearances.SpriteAnimation animation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.SpriteAnimation Animation { + get { return animation_; } + set { + animation_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + /// Field number for the "is_opaque" field. + public const int IsOpaqueFieldNumber = 8; + private readonly static bool IsOpaqueDefaultValue = false; + + private bool isOpaque_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsOpaque { + get { if ((_hasBits0 & 32) != 0) { return isOpaque_; } else { return IsOpaqueDefaultValue; } } + set { + _hasBits0 |= 32; + isOpaque_ = value; + } + } + /// Gets whether the "is_opaque" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsOpaque { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "is_opaque" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsOpaque() { + _hasBits0 &= ~32; + } + + /// Field number for the "bounding_box_per_direction" field. + public const int BoundingBoxPerDirectionFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_boundingBoxPerDirection_codec + = pb::FieldCodec.ForMessage(74, global::Tibia.Protobuf.Appearances.Box.Parser); + private readonly pbc::RepeatedField boundingBoxPerDirection_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField BoundingBoxPerDirection { + get { return boundingBoxPerDirection_; } + } + + /// Field number for the "pattern_size" field. + public const int PatternSizeFieldNumber = 10; + private readonly static uint PatternSizeDefaultValue = 0; + + private uint patternSize_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PatternSize { + get { if ((_hasBits0 & 64) != 0) { return patternSize_; } else { return PatternSizeDefaultValue; } } + set { + _hasBits0 |= 64; + patternSize_ = value; + } + } + /// Gets whether the "pattern_size" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatternSize { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "pattern_size" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatternSize() { + _hasBits0 &= ~64; + } + + /// Field number for the "pattern_layers" field. + public const int PatternLayersFieldNumber = 11; + private readonly static uint PatternLayersDefaultValue = 0; + + private uint patternLayers_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PatternLayers { + get { if ((_hasBits0 & 128) != 0) { return patternLayers_; } else { return PatternLayersDefaultValue; } } + set { + _hasBits0 |= 128; + patternLayers_ = value; + } + } + /// Gets whether the "pattern_layers" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatternLayers { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "pattern_layers" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatternLayers() { + _hasBits0 &= ~128; + } + + /// Field number for the "pattern_x" field. + public const int PatternXFieldNumber = 12; + private readonly static uint PatternXDefaultValue = 0; + + private uint patternX_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PatternX { + get { if ((_hasBits0 & 256) != 0) { return patternX_; } else { return PatternXDefaultValue; } } + set { + _hasBits0 |= 256; + patternX_ = value; + } + } + /// Gets whether the "pattern_x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatternX { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "pattern_x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatternX() { + _hasBits0 &= ~256; + } + + /// Field number for the "pattern_y" field. + public const int PatternYFieldNumber = 13; + private readonly static uint PatternYDefaultValue = 0; + + private uint patternY_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PatternY { + get { if ((_hasBits0 & 512) != 0) { return patternY_; } else { return PatternYDefaultValue; } } + set { + _hasBits0 |= 512; + patternY_ = value; + } + } + /// Gets whether the "pattern_y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatternY { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "pattern_y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatternY() { + _hasBits0 &= ~512; + } + + /// Field number for the "pattern_z" field. + public const int PatternZFieldNumber = 14; + private readonly static uint PatternZDefaultValue = 0; + + private uint patternZ_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PatternZ { + get { if ((_hasBits0 & 1024) != 0) { return patternZ_; } else { return PatternZDefaultValue; } } + set { + _hasBits0 |= 1024; + patternZ_ = value; + } + } + /// Gets whether the "pattern_z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatternZ { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "pattern_z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatternZ() { + _hasBits0 &= ~1024; + } + + /// Field number for the "pattern_frames" field. + public const int PatternFramesFieldNumber = 15; + private readonly static uint PatternFramesDefaultValue = 0; + + private uint patternFrames_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PatternFrames { + get { if ((_hasBits0 & 2048) != 0) { return patternFrames_; } else { return PatternFramesDefaultValue; } } + set { + _hasBits0 |= 2048; + patternFrames_ = value; + } + } + /// Gets whether the "pattern_frames" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPatternFrames { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "pattern_frames" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPatternFrames() { + _hasBits0 &= ~2048; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + /// Field number for the "is_animation" field. + public const int IsAnimationFieldNumber = 16; + private readonly static bool IsAnimationDefaultValue = false; + + private bool isAnimation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IsAnimation { + get { if ((_hasBits0 & 4096) != 0) { return isAnimation_; } else { return IsAnimationDefaultValue; } } + set { + _hasBits0 |= 4096; + isAnimation_ = value; + } + } + /// Gets whether the "is_animation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIsAnimation { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "is_animation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIsAnimation() { + _hasBits0 &= ~4096; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SpriteInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SpriteInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PatternWidth != other.PatternWidth) return false; + if (PatternHeight != other.PatternHeight) return false; + if (PatternDepth != other.PatternDepth) return false; + if (Layers != other.Layers) return false; + if(!spriteId_.Equals(other.spriteId_)) return false; + if (BoundingSquare != other.BoundingSquare) return false; + if (!object.Equals(Animation, other.Animation)) return false; + if (IsOpaque != other.IsOpaque) return false; + if(!boundingBoxPerDirection_.Equals(other.boundingBoxPerDirection_)) return false; + if (PatternSize != other.PatternSize) return false; + if (PatternLayers != other.PatternLayers) return false; + if (PatternX != other.PatternX) return false; + if (PatternY != other.PatternY) return false; + if (PatternZ != other.PatternZ) return false; + if (PatternFrames != other.PatternFrames) return false; + if (IsAnimation != other.IsAnimation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasPatternWidth) hash ^= PatternWidth.GetHashCode(); + if (HasPatternHeight) hash ^= PatternHeight.GetHashCode(); + if (HasPatternDepth) hash ^= PatternDepth.GetHashCode(); + if (HasLayers) hash ^= Layers.GetHashCode(); + hash ^= spriteId_.GetHashCode(); + if (HasBoundingSquare) hash ^= BoundingSquare.GetHashCode(); + if (animation_ != null) hash ^= Animation.GetHashCode(); + if (HasIsOpaque) hash ^= IsOpaque.GetHashCode(); + hash ^= boundingBoxPerDirection_.GetHashCode(); + if (HasPatternSize) hash ^= PatternSize.GetHashCode(); + if (HasPatternLayers) hash ^= PatternLayers.GetHashCode(); + if (HasPatternX) hash ^= PatternX.GetHashCode(); + if (HasPatternY) hash ^= PatternY.GetHashCode(); + if (HasPatternZ) hash ^= PatternZ.GetHashCode(); + if (HasPatternFrames) hash ^= PatternFrames.GetHashCode(); + if (HasIsAnimation) hash ^= IsAnimation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasPatternWidth) { output.WriteRawTag(8); output.WriteUInt32(PatternWidth); @@ -2550,155 +2099,220 @@ public void WriteTo(pb::CodedOutputStream output) output.WriteBool(IsOpaque); } boundingBoxPerDirection_.WriteTo(output, _repeated_boundingBoxPerDirection_codec); + if (HasPatternSize) { + output.WriteRawTag(80); + output.WriteUInt32(PatternSize); + } + if (HasPatternLayers) { + output.WriteRawTag(88); + output.WriteUInt32(PatternLayers); + } + if (HasPatternX) { + output.WriteRawTag(96); + output.WriteUInt32(PatternX); + } + if (HasPatternY) { + output.WriteRawTag(104); + output.WriteUInt32(PatternY); + } + if (HasPatternZ) { + output.WriteRawTag(112); + output.WriteUInt32(PatternZ); + } + if (HasPatternFrames) { + output.WriteRawTag(120); + output.WriteUInt32(PatternFrames); + } + if (HasIsAnimation) { + output.WriteRawTag(128, 1); + output.WriteBool(IsAnimation); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasPatternWidth) - { - output.WriteRawTag(8); - output.WriteUInt32(PatternWidth); - } - if (HasPatternHeight) - { - output.WriteRawTag(16); - output.WriteUInt32(PatternHeight); - } - if (HasPatternDepth) - { - output.WriteRawTag(24); - output.WriteUInt32(PatternDepth); - } - if (HasLayers) - { - output.WriteRawTag(32); - output.WriteUInt32(Layers); - } - spriteId_.WriteTo(ref output, _repeated_spriteId_codec); - if (animation_ != null) - { - output.WriteRawTag(50); - output.WriteMessage(Animation); - } - if (HasBoundingSquare) - { - output.WriteRawTag(56); - output.WriteUInt32(BoundingSquare); - } - if (HasIsOpaque) - { - output.WriteRawTag(64); - output.WriteBool(IsOpaque); - } - boundingBoxPerDirection_.WriteTo(ref output, _repeated_boundingBoxPerDirection_codec); - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasPatternWidth) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternWidth); - } - if (HasPatternHeight) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternHeight); - } - if (HasPatternDepth) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternDepth); - } - if (HasLayers) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Layers); - } - size += spriteId_.CalculateSize(_repeated_spriteId_codec); - if (HasBoundingSquare) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BoundingSquare); - } - if (animation_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Animation); - } - if (HasIsOpaque) - { - size += 1 + 1; - } - size += boundingBoxPerDirection_.CalculateSize(_repeated_boundingBoxPerDirection_codec); - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasPatternWidth) { + output.WriteRawTag(8); + output.WriteUInt32(PatternWidth); + } + if (HasPatternHeight) { + output.WriteRawTag(16); + output.WriteUInt32(PatternHeight); + } + if (HasPatternDepth) { + output.WriteRawTag(24); + output.WriteUInt32(PatternDepth); + } + if (HasLayers) { + output.WriteRawTag(32); + output.WriteUInt32(Layers); + } + spriteId_.WriteTo(ref output, _repeated_spriteId_codec); + if (animation_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Animation); + } + if (HasBoundingSquare) { + output.WriteRawTag(56); + output.WriteUInt32(BoundingSquare); + } + if (HasIsOpaque) { + output.WriteRawTag(64); + output.WriteBool(IsOpaque); + } + boundingBoxPerDirection_.WriteTo(ref output, _repeated_boundingBoxPerDirection_codec); + if (HasPatternSize) { + output.WriteRawTag(80); + output.WriteUInt32(PatternSize); + } + if (HasPatternLayers) { + output.WriteRawTag(88); + output.WriteUInt32(PatternLayers); + } + if (HasPatternX) { + output.WriteRawTag(96); + output.WriteUInt32(PatternX); + } + if (HasPatternY) { + output.WriteRawTag(104); + output.WriteUInt32(PatternY); + } + if (HasPatternZ) { + output.WriteRawTag(112); + output.WriteUInt32(PatternZ); + } + if (HasPatternFrames) { + output.WriteRawTag(120); + output.WriteUInt32(PatternFrames); + } + if (HasIsAnimation) { + output.WriteRawTag(128, 1); + output.WriteBool(IsAnimation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpriteInfo other) - { - if (other == null) - { - return; - } - if (other.HasPatternWidth) - { - PatternWidth = other.PatternWidth; - } - if (other.HasPatternHeight) - { - PatternHeight = other.PatternHeight; - } - if (other.HasPatternDepth) - { - PatternDepth = other.PatternDepth; - } - if (other.HasLayers) - { - Layers = other.Layers; - } - spriteId_.Add(other.spriteId_); - if (other.HasBoundingSquare) - { - BoundingSquare = other.BoundingSquare; - } - if (other.animation_ != null) - { - if (animation_ == null) - { - Animation = new global::Tibia.Protobuf.Appearances.SpriteAnimation(); - } - Animation.MergeFrom(other.Animation); - } - if (other.HasIsOpaque) - { - IsOpaque = other.IsOpaque; - } - boundingBoxPerDirection_.Add(other.boundingBoxPerDirection_); - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasPatternWidth) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternWidth); + } + if (HasPatternHeight) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternHeight); + } + if (HasPatternDepth) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternDepth); + } + if (HasLayers) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Layers); + } + size += spriteId_.CalculateSize(_repeated_spriteId_codec); + if (HasBoundingSquare) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BoundingSquare); + } + if (animation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Animation); + } + if (HasIsOpaque) { + size += 1 + 1; + } + size += boundingBoxPerDirection_.CalculateSize(_repeated_boundingBoxPerDirection_codec); + if (HasPatternSize) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternSize); + } + if (HasPatternLayers) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternLayers); + } + if (HasPatternX) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternX); + } + if (HasPatternY) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternY); + } + if (HasPatternZ) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternZ); + } + if (HasPatternFrames) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PatternFrames); + } + if (HasIsAnimation) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SpriteInfo other) { + if (other == null) { + return; + } + if (other.HasPatternWidth) { + PatternWidth = other.PatternWidth; + } + if (other.HasPatternHeight) { + PatternHeight = other.PatternHeight; + } + if (other.HasPatternDepth) { + PatternDepth = other.PatternDepth; + } + if (other.HasLayers) { + Layers = other.Layers; + } + spriteId_.Add(other.spriteId_); + if (other.HasBoundingSquare) { + BoundingSquare = other.BoundingSquare; + } + if (other.animation_ != null) { + if (animation_ == null) { + Animation = new global::Tibia.Protobuf.Appearances.SpriteAnimation(); } + Animation.MergeFrom(other.Animation); + } + if (other.HasIsOpaque) { + IsOpaque = other.IsOpaque; + } + boundingBoxPerDirection_.Add(other.boundingBoxPerDirection_); + if (other.HasPatternSize) { + PatternSize = other.PatternSize; + } + if (other.HasPatternLayers) { + PatternLayers = other.PatternLayers; + } + if (other.HasPatternX) { + PatternX = other.PatternX; + } + if (other.HasPatternY) { + PatternY = other.PatternY; + } + if (other.HasPatternZ) { + PatternZ = other.PatternZ; + } + if (other.HasPatternFrames) { + PatternFrames = other.PatternFrames; + } + if (other.HasIsAnimation) { + IsAnimation = other.IsAnimation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -2745,264 +2359,265 @@ public void MergeFrom(pb::CodedInputStream input) boundingBoxPerDirection_.AddEntriesFrom(input, _repeated_boundingBoxPerDirection_codec); break; } + case 80: { + PatternSize = input.ReadUInt32(); + break; + } + case 88: { + PatternLayers = input.ReadUInt32(); + break; + } + case 96: { + PatternX = input.ReadUInt32(); + break; + } + case 104: { + PatternY = input.ReadUInt32(); + break; + } + case 112: { + PatternZ = input.ReadUInt32(); + break; + } + case 120: { + PatternFrames = input.ReadUInt32(); + break; + } + case 128: { + IsAnimation = input.ReadBool(); + break; + } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - PatternWidth = input.ReadUInt32(); - break; - } - case 16: - { - PatternHeight = input.ReadUInt32(); - break; - } - case 24: - { - PatternDepth = input.ReadUInt32(); - break; - } - case 32: - { - Layers = input.ReadUInt32(); - break; - } - case 42: - case 40: - { - spriteId_.AddEntriesFrom(ref input, _repeated_spriteId_codec); - break; - } - case 50: - { - if (animation_ == null) - { - Animation = new global::Tibia.Protobuf.Appearances.SpriteAnimation(); - } - input.ReadMessage(Animation); - break; - } - case 56: - { - BoundingSquare = input.ReadUInt32(); - break; - } - case 64: - { - IsOpaque = input.ReadBool(); - break; - } - case 74: - { - boundingBoxPerDirection_.AddEntriesFrom(ref input, _repeated_boundingBoxPerDirection_codec); - break; - } - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + PatternWidth = input.ReadUInt32(); + break; + } + case 16: { + PatternHeight = input.ReadUInt32(); + break; + } + case 24: { + PatternDepth = input.ReadUInt32(); + break; + } + case 32: { + Layers = input.ReadUInt32(); + break; + } + case 42: + case 40: { + spriteId_.AddEntriesFrom(ref input, _repeated_spriteId_codec); + break; + } + case 50: { + if (animation_ == null) { + Animation = new global::Tibia.Protobuf.Appearances.SpriteAnimation(); } + input.ReadMessage(Animation); + break; + } + case 56: { + BoundingSquare = input.ReadUInt32(); + break; + } + case 64: { + IsOpaque = input.ReadBool(); + break; + } + case 74: { + boundingBoxPerDirection_.AddEntriesFrom(ref input, _repeated_boundingBoxPerDirection_codec); + break; + } + case 80: { + PatternSize = input.ReadUInt32(); + break; + } + case 88: { + PatternLayers = input.ReadUInt32(); + break; + } + case 96: { + PatternX = input.ReadUInt32(); + break; + } + case 104: { + PatternY = input.ReadUInt32(); + break; + } + case 112: { + PatternZ = input.ReadUInt32(); + break; + } + case 120: { + PatternFrames = input.ReadUInt32(); + break; + } + case 128: { + IsAnimation = input.ReadBool(); + break; + } } -#endif - - } - - public sealed partial class FrameGroup : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameGroup()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[6]; } - } + } + } + #endif + + } + + public sealed partial class FrameGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FrameGroup()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[5]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrameGroup() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FrameGroup() { + OnConstruction(); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrameGroup(FrameGroup other) : this() - { - _hasBits0 = other._hasBits0; - fixedFrameGroup_ = other.fixedFrameGroup_; - id_ = other.id_; - spriteInfo_ = other.spriteInfo_ != null ? other.spriteInfo_.Clone() : null; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FrameGroup Clone() - { - return new FrameGroup(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FrameGroup(FrameGroup other) : this() { + _hasBits0 = other._hasBits0; + fixedFrameGroup_ = other.fixedFrameGroup_; + id_ = other.id_; + spriteInfo_ = other.spriteInfo_ != null ? other.spriteInfo_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// Field number for the "fixed_frame_group" field. - public const int FixedFrameGroupFieldNumber = 1; - private readonly static global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP FixedFrameGroupDefaultValue = global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP.OutfitIdle; - - private global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP fixedFrameGroup_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP FixedFrameGroup - { - get { if ((_hasBits0 & 1) != 0) { return fixedFrameGroup_; } else { return FixedFrameGroupDefaultValue; } } - set - { - _hasBits0 |= 1; - fixedFrameGroup_ = value; - } - } - /// Gets whether the "fixed_frame_group" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFixedFrameGroup - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "fixed_frame_group" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFixedFrameGroup() - { - _hasBits0 &= ~1; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public FrameGroup Clone() { + return new FrameGroup(this); + } - /// Field number for the "id" field. - public const int IdFieldNumber = 2; - private readonly static uint IdDefaultValue = 0; - - private uint id_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Id - { - get { if ((_hasBits0 & 2) != 0) { return id_; } else { return IdDefaultValue; } } - set - { - _hasBits0 |= 2; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() - { - _hasBits0 &= ~2; - } + /// Field number for the "fixed_frame_group" field. + public const int FixedFrameGroupFieldNumber = 1; + private readonly static global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP FixedFrameGroupDefaultValue = global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP.OutfitIdle; - /// Field number for the "sprite_info" field. - public const int SpriteInfoFieldNumber = 3; - private global::Tibia.Protobuf.Appearances.SpriteInfo spriteInfo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.SpriteInfo SpriteInfo - { - get { return spriteInfo_; } - set - { - spriteInfo_ = value; - } - } + private global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP fixedFrameGroup_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP FixedFrameGroup { + get { if ((_hasBits0 & 1) != 0) { return fixedFrameGroup_; } else { return FixedFrameGroupDefaultValue; } } + set { + _hasBits0 |= 1; + fixedFrameGroup_ = value; + } + } + /// Gets whether the "fixed_frame_group" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFixedFrameGroup { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "fixed_frame_group" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFixedFrameGroup() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as FrameGroup); - } + /// Field number for the "id" field. + public const int IdFieldNumber = 2; + private readonly static uint IdDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FrameGroup other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (FixedFrameGroup != other.FixedFrameGroup) return false; - if (Id != other.Id) return false; - if (!object.Equals(SpriteInfo, other.SpriteInfo)) return false; - return Equals(_unknownFields, other._unknownFields); - } + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 2) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 2; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~2; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasFixedFrameGroup) hash ^= FixedFrameGroup.GetHashCode(); - if (HasId) hash ^= Id.GetHashCode(); - if (spriteInfo_ != null) hash ^= SpriteInfo.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "sprite_info" field. + public const int SpriteInfoFieldNumber = 3; + private global::Tibia.Protobuf.Appearances.SpriteInfo spriteInfo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.SpriteInfo SpriteInfo { + get { return spriteInfo_; } + set { + spriteInfo_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as FrameGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(FrameGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FixedFrameGroup != other.FixedFrameGroup) return false; + if (Id != other.Id) return false; + if (!object.Equals(SpriteInfo, other.SpriteInfo)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasFixedFrameGroup) hash ^= FixedFrameGroup.GetHashCode(); + if (HasId) hash ^= Id.GetHashCode(); + if (spriteInfo_ != null) hash ^= SpriteInfo.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasFixedFrameGroup) { output.WriteRawTag(8); output.WriteEnum((int) FixedFrameGroup); @@ -3018,94 +2633,73 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } - -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasFixedFrameGroup) - { - output.WriteRawTag(8); - output.WriteEnum((int)FixedFrameGroup); - } - if (HasId) - { - output.WriteRawTag(16); - output.WriteUInt32(Id); - } - if (spriteInfo_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(SpriteInfo); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasFixedFrameGroup) - { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)FixedFrameGroup); - } - if (HasId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - if (spriteInfo_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpriteInfo); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FrameGroup other) - { - if (other == null) - { - return; - } - if (other.HasFixedFrameGroup) - { - FixedFrameGroup = other.FixedFrameGroup; - } - if (other.HasId) - { - Id = other.Id; - } - if (other.spriteInfo_ != null) - { - if (spriteInfo_ == null) - { - SpriteInfo = new global::Tibia.Protobuf.Appearances.SpriteInfo(); - } - SpriteInfo.MergeFrom(other.SpriteInfo); - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasFixedFrameGroup) { + output.WriteRawTag(8); + output.WriteEnum((int) FixedFrameGroup); + } + if (HasId) { + output.WriteRawTag(16); + output.WriteUInt32(Id); + } + if (spriteInfo_ != null) { + output.WriteRawTag(26); + output.WriteMessage(SpriteInfo); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasFixedFrameGroup) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FixedFrameGroup); + } + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (spriteInfo_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(SpriteInfo); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(FrameGroup other) { + if (other == null) { + return; + } + if (other.HasFixedFrameGroup) { + FixedFrameGroup = other.FixedFrameGroup; + } + if (other.HasId) { + Id = other.Id; + } + if (other.spriteInfo_ != null) { + if (spriteInfo_ == null) { + SpriteInfo = new global::Tibia.Protobuf.Appearances.SpriteInfo(); } + SpriteInfo.MergeFrom(other.SpriteInfo); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3129,278 +2723,260 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - FixedFrameGroup = (global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP)input.ReadEnum(); - break; - } - case 16: - { - Id = input.ReadUInt32(); - break; - } - case 26: - { - if (spriteInfo_ == null) - { - SpriteInfo = new global::Tibia.Protobuf.Appearances.SpriteInfo(); - } - input.ReadMessage(SpriteInfo); - break; - } - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + FixedFrameGroup = (global::Tibia.Protobuf.Appearances.FIXED_FRAME_GROUP) input.ReadEnum(); + break; + } + case 16: { + Id = input.ReadUInt32(); + break; + } + case 26: { + if (spriteInfo_ == null) { + SpriteInfo = new global::Tibia.Protobuf.Appearances.SpriteInfo(); } + input.ReadMessage(SpriteInfo); + break; + } } -#endif - - } - - public sealed partial class Appearance : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Appearance()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[7]; } - } + } + } + #endif + + } + + public sealed partial class Appearance : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Appearance()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[6]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Appearance() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Appearance() { + OnConstruction(); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Appearance(Appearance other) : this() - { - _hasBits0 = other._hasBits0; - id_ = other.id_; - frameGroup_ = other.frameGroup_.Clone(); - flags_ = other.flags_ != null ? other.flags_.Clone() : null; - name_ = other.name_; - description_ = other.description_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Appearance(Appearance other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + frameGroup_ = other.frameGroup_.Clone(); + flags_ = other.flags_ != null ? other.flags_.Clone() : null; + name_ = other.name_; + description_ = other.description_; + appearanceType_ = other.appearanceType_; + spriteData_ = other.spriteData_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Appearance Clone() - { - return new Appearance(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Appearance Clone() { + return new Appearance(this); + } - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private readonly static uint IdDefaultValue = 0; - - private uint id_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Id - { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } - set - { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() - { - _hasBits0 &= ~1; - } + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; - /// Field number for the "frame_group" field. - public const int FrameGroupFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_frameGroup_codec - = pb::FieldCodec.ForMessage(18, global::Tibia.Protobuf.Appearances.FrameGroup.Parser); - private readonly pbc::RepeatedField frameGroup_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField FrameGroup - { - get { return frameGroup_; } - } + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } - /// Field number for the "flags" field. - public const int FlagsFieldNumber = 3; - private global::Tibia.Protobuf.Appearances.AppearanceFlags flags_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlags Flags - { - get { return flags_; } - set - { - flags_ = value; - } - } + /// Field number for the "frame_group" field. + public const int FrameGroupFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_frameGroup_codec + = pb::FieldCodec.ForMessage(18, global::Tibia.Protobuf.Appearances.FrameGroup.Parser); + private readonly pbc::RepeatedField frameGroup_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField FrameGroup { + get { return frameGroup_; } + } - /// Field number for the "name" field. - public const int NameFieldNumber = 4; - private readonly static pb::ByteString NameDefaultValue = pb::ByteString.Empty; - - private pb::ByteString name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Name - { - get { return name_ ?? NameDefaultValue; } - set - { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName - { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() - { - name_ = null; - } + /// Field number for the "flags" field. + public const int FlagsFieldNumber = 3; + private global::Tibia.Protobuf.Appearances.AppearanceFlags flags_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlags Flags { + get { return flags_; } + set { + flags_ = value; + } + } - /// Field number for the "description" field. - public const int DescriptionFieldNumber = 5; - private readonly static pb::ByteString DescriptionDefaultValue = pb::ByteString.Empty; - - private pb::ByteString description_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Description - { - get { return description_ ?? DescriptionDefaultValue; } - set - { - description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "description" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDescription - { - get { return description_ != null; } - } - /// Clears the value of the "description" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDescription() - { - description_ = null; - } + /// Field number for the "name" field. + public const int NameFieldNumber = 4; + private readonly static string NameDefaultValue = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as Appearance); - } + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Appearance other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - if (!frameGroup_.Equals(other.frameGroup_)) return false; - if (!object.Equals(Flags, other.Flags)) return false; - if (Name != other.Name) return false; - if (Description != other.Description) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 5; + private readonly static string DescriptionDefaultValue = ""; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasId) hash ^= Id.GetHashCode(); - hash ^= frameGroup_.GetHashCode(); - if (flags_ != null) hash ^= Flags.GetHashCode(); - if (HasName) hash ^= Name.GetHashCode(); - if (HasDescription) hash ^= Description.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + private string description_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Description { + get { return description_ ?? DescriptionDefaultValue; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "description" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDescription { + get { return description_ != null; } + } + /// Clears the value of the "description" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDescription() { + description_ = null; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + /// Field number for the "appearance_type" field. + public const int AppearanceTypeFieldNumber = 6; + private readonly static global::Tibia.Protobuf.Appearances.APPEARANCE_TYPE AppearanceTypeDefaultValue = global::Tibia.Protobuf.Appearances.APPEARANCE_TYPE.AppearanceObject; + + private global::Tibia.Protobuf.Appearances.APPEARANCE_TYPE appearanceType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.APPEARANCE_TYPE AppearanceType { + get { if ((_hasBits0 & 2) != 0) { return appearanceType_; } else { return AppearanceTypeDefaultValue; } } + set { + _hasBits0 |= 2; + appearanceType_ = value; + } + } + /// Gets whether the "appearance_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAppearanceType { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "appearance_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAppearanceType() { + _hasBits0 &= ~2; + } + + /// Field number for the "sprite_data" field. + public const int SpriteDataFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_spriteData_codec + = pb::FieldCodec.ForBytes(58); + private readonly pbc::RepeatedField spriteData_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField SpriteData { + get { return spriteData_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Appearance); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Appearance other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if(!frameGroup_.Equals(other.frameGroup_)) return false; + if (!object.Equals(Flags, other.Flags)) return false; + if (Name != other.Name) return false; + if (Description != other.Description) return false; + if (AppearanceType != other.AppearanceType) return false; + if(!spriteData_.Equals(other.spriteData_)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + hash ^= frameGroup_.GetHashCode(); + if (flags_ != null) hash ^= Flags.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasDescription) hash ^= Description.GetHashCode(); + if (HasAppearanceType) hash ^= AppearanceType.GetHashCode(); + hash ^= spriteData_.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasId) { output.WriteRawTag(8); output.WriteUInt32(Id); @@ -3412,119 +2988,113 @@ public void WriteTo(pb::CodedOutputStream output) } if (HasName) { output.WriteRawTag(34); - output.WriteBytes(Name); + output.WriteString(Name); } if (HasDescription) { output.WriteRawTag(42); - output.WriteBytes(Description); + output.WriteString(Description); + } + if (HasAppearanceType) { + output.WriteRawTag(48); + output.WriteEnum((int) AppearanceType); } + spriteData_.WriteTo(output, _repeated_spriteData_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasId) - { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - frameGroup_.WriteTo(ref output, _repeated_frameGroup_codec); - if (flags_ != null) - { - output.WriteRawTag(26); - output.WriteMessage(Flags); - } - if (HasName) - { - output.WriteRawTag(34); - output.WriteBytes(Name); - } - if (HasDescription) - { - output.WriteRawTag(42); - output.WriteBytes(Description); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - size += frameGroup_.CalculateSize(_repeated_frameGroup_codec); - if (flags_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Flags); - } - if (HasName) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Name); - } - if (HasDescription) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Description); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + frameGroup_.WriteTo(ref output, _repeated_frameGroup_codec); + if (flags_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Flags); + } + if (HasName) { + output.WriteRawTag(34); + output.WriteString(Name); + } + if (HasDescription) { + output.WriteRawTag(42); + output.WriteString(Description); + } + if (HasAppearanceType) { + output.WriteRawTag(48); + output.WriteEnum((int) AppearanceType); + } + spriteData_.WriteTo(ref output, _repeated_spriteData_codec); + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Appearance other) - { - if (other == null) - { - return; - } - if (other.HasId) - { - Id = other.Id; - } - frameGroup_.Add(other.frameGroup_); - if (other.flags_ != null) - { - if (flags_ == null) - { - Flags = new global::Tibia.Protobuf.Appearances.AppearanceFlags(); - } - Flags.MergeFrom(other.Flags); - } - if (other.HasName) - { - Name = other.Name; - } - if (other.HasDescription) - { - Description = other.Description; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + size += frameGroup_.CalculateSize(_repeated_frameGroup_codec); + if (flags_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Flags); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasDescription) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (HasAppearanceType) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AppearanceType); + } + size += spriteData_.CalculateSize(_repeated_spriteData_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Appearance other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + frameGroup_.Add(other.frameGroup_); + if (other.flags_ != null) { + if (flags_ == null) { + Flags = new global::Tibia.Protobuf.Appearances.AppearanceFlags(); } + Flags.MergeFrom(other.Flags); + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasDescription) { + Description = other.Description; + } + if (other.HasAppearanceType) { + AppearanceType = other.AppearanceType; + } + spriteData_.Add(other.spriteData_); + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -3547,1831 +3117,1533 @@ public void MergeFrom(pb::CodedInputStream input) break; } case 34: { - Name = input.ReadBytes(); + Name = input.ReadString(); break; } case 42: { - Description = input.ReadBytes(); + Description = input.ReadString(); + break; + } + case 48: { + AppearanceType = (global::Tibia.Protobuf.Appearances.APPEARANCE_TYPE) input.ReadEnum(); + break; + } + case 58: { + spriteData_.AddEntriesFrom(input, _repeated_spriteData_codec); break; } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Id = input.ReadUInt32(); - break; - } - case 18: - { - frameGroup_.AddEntriesFrom(ref input, _repeated_frameGroup_codec); - break; - } - case 26: - { - if (flags_ == null) - { - Flags = new global::Tibia.Protobuf.Appearances.AppearanceFlags(); - } - input.ReadMessage(Flags); - break; - } - case 34: - { - Name = input.ReadBytes(); - break; - } - case 42: - { - Description = input.ReadBytes(); - break; - } - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } + case 18: { + frameGroup_.AddEntriesFrom(ref input, _repeated_frameGroup_codec); + break; + } + case 26: { + if (flags_ == null) { + Flags = new global::Tibia.Protobuf.Appearances.AppearanceFlags(); } + input.ReadMessage(Flags); + break; + } + case 34: { + Name = input.ReadString(); + break; + } + case 42: { + Description = input.ReadString(); + break; + } + case 48: { + AppearanceType = (global::Tibia.Protobuf.Appearances.APPEARANCE_TYPE) input.ReadEnum(); + break; + } + case 58: { + spriteData_.AddEntriesFrom(ref input, _repeated_spriteData_codec); + break; + } } -#endif - - } - - public sealed partial class AppearanceFlags : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlags()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - private int _hasBits1; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[8]; } - } + } + } + #endif + + } + + public sealed partial class AppearanceFlags : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlags()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + private int _hasBits1; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[7]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlags() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlags() { + OnConstruction(); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlags(AppearanceFlags other) : this() - { - _hasBits0 = other._hasBits0; - _hasBits1 = other._hasBits1; - bank_ = other.bank_ != null ? other.bank_.Clone() : null; - clip_ = other.clip_; - bottom_ = other.bottom_; - top_ = other.top_; - container_ = other.container_; - cumulative_ = other.cumulative_; - usable_ = other.usable_; - forceuse_ = other.forceuse_; - multiuse_ = other.multiuse_; - write_ = other.write_ != null ? other.write_.Clone() : null; - writeOnce_ = other.writeOnce_ != null ? other.writeOnce_.Clone() : null; - liquidpool_ = other.liquidpool_; - unpass_ = other.unpass_; - unmove_ = other.unmove_; - unsight_ = other.unsight_; - avoid_ = other.avoid_; - noMovementAnimation_ = other.noMovementAnimation_; - take_ = other.take_; - liquidcontainer_ = other.liquidcontainer_; - hang_ = other.hang_; - hook_ = other.hook_ != null ? other.hook_.Clone() : null; - rotate_ = other.rotate_; - light_ = other.light_ != null ? other.light_.Clone() : null; - dontHide_ = other.dontHide_; - translucent_ = other.translucent_; - shift_ = other.shift_ != null ? other.shift_.Clone() : null; - height_ = other.height_ != null ? other.height_.Clone() : null; - lyingObject_ = other.lyingObject_; - animateAlways_ = other.animateAlways_; - automap_ = other.automap_ != null ? other.automap_.Clone() : null; - lenshelp_ = other.lenshelp_ != null ? other.lenshelp_.Clone() : null; - fullbank_ = other.fullbank_; - ignoreLook_ = other.ignoreLook_; - clothes_ = other.clothes_ != null ? other.clothes_.Clone() : null; - defaultAction_ = other.defaultAction_ != null ? other.defaultAction_.Clone() : null; - market_ = other.market_ != null ? other.market_.Clone() : null; - wrap_ = other.wrap_; - unwrap_ = other.unwrap_; - topeffect_ = other.topeffect_; - npcsaledata_ = other.npcsaledata_.Clone(); - changedtoexpire_ = other.changedtoexpire_ != null ? other.changedtoexpire_.Clone() : null; - corpse_ = other.corpse_; - playerCorpse_ = other.playerCorpse_; - cyclopediaitem_ = other.cyclopediaitem_ != null ? other.cyclopediaitem_.Clone() : null; - ammo_ = other.ammo_; - showOffSocket_ = other.showOffSocket_; - reportable_ = other.reportable_; - upgradeclassification_ = other.upgradeclassification_ != null ? other.upgradeclassification_.Clone() : null; - reverseAddonsEast_ = other.reverseAddonsEast_; - reverseAddonsWest_ = other.reverseAddonsWest_; - reverseAddonsSouth_ = other.reverseAddonsSouth_; - reverseAddonsNorth_ = other.reverseAddonsNorth_; - wearout_ = other.wearout_; - clockexpire_ = other.clockexpire_; - expire_ = other.expire_; - expirestop_ = other.expirestop_; - wrapkit_ = other.wrapkit_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlags(AppearanceFlags other) : this() { + _hasBits0 = other._hasBits0; + _hasBits1 = other._hasBits1; + bank_ = other.bank_ != null ? other.bank_.Clone() : null; + clip_ = other.clip_; + bottom_ = other.bottom_; + top_ = other.top_; + container_ = other.container_; + cumulative_ = other.cumulative_; + usable_ = other.usable_; + forceuse_ = other.forceuse_; + multiuse_ = other.multiuse_; + write_ = other.write_ != null ? other.write_.Clone() : null; + writeOnce_ = other.writeOnce_ != null ? other.writeOnce_.Clone() : null; + liquidpool_ = other.liquidpool_; + unpass_ = other.unpass_; + unmove_ = other.unmove_; + unsight_ = other.unsight_; + avoid_ = other.avoid_; + noMovementAnimation_ = other.noMovementAnimation_; + take_ = other.take_; + liquidcontainer_ = other.liquidcontainer_; + hang_ = other.hang_; + hook_ = other.hook_ != null ? other.hook_.Clone() : null; + rotate_ = other.rotate_; + light_ = other.light_ != null ? other.light_.Clone() : null; + dontHide_ = other.dontHide_; + translucent_ = other.translucent_; + shift_ = other.shift_ != null ? other.shift_.Clone() : null; + height_ = other.height_ != null ? other.height_.Clone() : null; + lyingObject_ = other.lyingObject_; + animateAlways_ = other.animateAlways_; + automap_ = other.automap_ != null ? other.automap_.Clone() : null; + lenshelp_ = other.lenshelp_ != null ? other.lenshelp_.Clone() : null; + fullbank_ = other.fullbank_; + ignoreLook_ = other.ignoreLook_; + clothes_ = other.clothes_ != null ? other.clothes_.Clone() : null; + defaultAction_ = other.defaultAction_ != null ? other.defaultAction_.Clone() : null; + market_ = other.market_ != null ? other.market_.Clone() : null; + wrap_ = other.wrap_; + unwrap_ = other.unwrap_; + topeffect_ = other.topeffect_; + npcsaledata_ = other.npcsaledata_.Clone(); + changedtoexpire_ = other.changedtoexpire_ != null ? other.changedtoexpire_.Clone() : null; + corpse_ = other.corpse_; + playerCorpse_ = other.playerCorpse_; + cyclopediaitem_ = other.cyclopediaitem_ != null ? other.cyclopediaitem_.Clone() : null; + ammo_ = other.ammo_; + showOffSocket_ = other.showOffSocket_; + reportable_ = other.reportable_; + upgradeclassification_ = other.upgradeclassification_ != null ? other.upgradeclassification_.Clone() : null; + reverseAddonsEast_ = other.reverseAddonsEast_; + reverseAddonsWest_ = other.reverseAddonsWest_; + reverseAddonsSouth_ = other.reverseAddonsSouth_; + reverseAddonsNorth_ = other.reverseAddonsNorth_; + wearout_ = other.wearout_; + clockexpire_ = other.clockexpire_; + expire_ = other.expire_; + expirestop_ = other.expirestop_; + decoItemKit_ = other.decoItemKit_; + hookSouth_ = other.hookSouth_; + hookEast_ = other.hookEast_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlags Clone() - { - return new AppearanceFlags(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlags Clone() { + return new AppearanceFlags(this); + } - /// Field number for the "bank" field. - public const int BankFieldNumber = 1; - private global::Tibia.Protobuf.Appearances.AppearanceFlagBank bank_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagBank Bank - { - get { return bank_; } - set - { - bank_ = value; - } - } + /// Field number for the "bank" field. + public const int BankFieldNumber = 1; + private global::Tibia.Protobuf.Appearances.AppearanceFlagBank bank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagBank Bank { + get { return bank_; } + set { + bank_ = value; + } + } - /// Field number for the "clip" field. - public const int ClipFieldNumber = 2; - private readonly static bool ClipDefaultValue = false; - - private bool clip_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Clip - { - get { if ((_hasBits0 & 1) != 0) { return clip_; } else { return ClipDefaultValue; } } - set - { - _hasBits0 |= 1; - clip_ = value; - } - } - /// Gets whether the "clip" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClip - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "clip" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClip() - { - _hasBits0 &= ~1; - } + /// Field number for the "clip" field. + public const int ClipFieldNumber = 2; + private readonly static bool ClipDefaultValue = false; - /// Field number for the "bottom" field. - public const int BottomFieldNumber = 3; - private readonly static bool BottomDefaultValue = false; - - private bool bottom_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Bottom - { - get { if ((_hasBits0 & 2) != 0) { return bottom_; } else { return BottomDefaultValue; } } - set - { - _hasBits0 |= 2; - bottom_ = value; - } - } - /// Gets whether the "bottom" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBottom - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "bottom" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBottom() - { - _hasBits0 &= ~2; - } + private bool clip_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Clip { + get { if ((_hasBits0 & 1) != 0) { return clip_; } else { return ClipDefaultValue; } } + set { + _hasBits0 |= 1; + clip_ = value; + } + } + /// Gets whether the "clip" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClip { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "clip" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClip() { + _hasBits0 &= ~1; + } - /// Field number for the "top" field. - public const int TopFieldNumber = 4; - private readonly static bool TopDefaultValue = false; - - private bool top_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Top - { - get { if ((_hasBits0 & 4) != 0) { return top_; } else { return TopDefaultValue; } } - set - { - _hasBits0 |= 4; - top_ = value; - } - } - /// Gets whether the "top" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTop - { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "top" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTop() - { - _hasBits0 &= ~4; - } + /// Field number for the "bottom" field. + public const int BottomFieldNumber = 3; + private readonly static bool BottomDefaultValue = false; - /// Field number for the "container" field. - public const int ContainerFieldNumber = 5; - private readonly static bool ContainerDefaultValue = false; - - private bool container_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Container - { - get { if ((_hasBits0 & 8) != 0) { return container_; } else { return ContainerDefaultValue; } } - set - { - _hasBits0 |= 8; - container_ = value; - } - } - /// Gets whether the "container" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasContainer - { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "container" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearContainer() - { - _hasBits0 &= ~8; - } + private bool bottom_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Bottom { + get { if ((_hasBits0 & 2) != 0) { return bottom_; } else { return BottomDefaultValue; } } + set { + _hasBits0 |= 2; + bottom_ = value; + } + } + /// Gets whether the "bottom" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBottom { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "bottom" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBottom() { + _hasBits0 &= ~2; + } - /// Field number for the "cumulative" field. - public const int CumulativeFieldNumber = 6; - private readonly static bool CumulativeDefaultValue = false; - - private bool cumulative_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Cumulative - { - get { if ((_hasBits0 & 16) != 0) { return cumulative_; } else { return CumulativeDefaultValue; } } - set - { - _hasBits0 |= 16; - cumulative_ = value; - } - } - /// Gets whether the "cumulative" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCumulative - { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "cumulative" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCumulative() - { - _hasBits0 &= ~16; - } + /// Field number for the "top" field. + public const int TopFieldNumber = 4; + private readonly static bool TopDefaultValue = false; - /// Field number for the "usable" field. - public const int UsableFieldNumber = 7; - private readonly static bool UsableDefaultValue = false; - - private bool usable_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Usable - { - get { if ((_hasBits0 & 32) != 0) { return usable_; } else { return UsableDefaultValue; } } - set - { - _hasBits0 |= 32; - usable_ = value; - } - } - /// Gets whether the "usable" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUsable - { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "usable" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUsable() - { - _hasBits0 &= ~32; - } + private bool top_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Top { + get { if ((_hasBits0 & 4) != 0) { return top_; } else { return TopDefaultValue; } } + set { + _hasBits0 |= 4; + top_ = value; + } + } + /// Gets whether the "top" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTop { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "top" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTop() { + _hasBits0 &= ~4; + } - /// Field number for the "forceuse" field. - public const int ForceuseFieldNumber = 8; - private readonly static bool ForceuseDefaultValue = false; - - private bool forceuse_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Forceuse - { - get { if ((_hasBits0 & 64) != 0) { return forceuse_; } else { return ForceuseDefaultValue; } } - set - { - _hasBits0 |= 64; - forceuse_ = value; - } - } - /// Gets whether the "forceuse" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasForceuse - { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "forceuse" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearForceuse() - { - _hasBits0 &= ~64; - } + /// Field number for the "container" field. + public const int ContainerFieldNumber = 5; + private readonly static bool ContainerDefaultValue = false; - /// Field number for the "multiuse" field. - public const int MultiuseFieldNumber = 9; - private readonly static bool MultiuseDefaultValue = false; - - private bool multiuse_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Multiuse - { - get { if ((_hasBits0 & 128) != 0) { return multiuse_; } else { return MultiuseDefaultValue; } } - set - { - _hasBits0 |= 128; - multiuse_ = value; - } - } - /// Gets whether the "multiuse" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMultiuse - { - get { return (_hasBits0 & 128) != 0; } - } - /// Clears the value of the "multiuse" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMultiuse() - { - _hasBits0 &= ~128; - } + private bool container_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Container { + get { if ((_hasBits0 & 8) != 0) { return container_; } else { return ContainerDefaultValue; } } + set { + _hasBits0 |= 8; + container_ = value; + } + } + /// Gets whether the "container" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasContainer { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "container" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearContainer() { + _hasBits0 &= ~8; + } - /// Field number for the "write" field. - public const int WriteFieldNumber = 10; - private global::Tibia.Protobuf.Appearances.AppearanceFlagWrite write_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagWrite Write - { - get { return write_; } - set - { - write_ = value; - } - } + /// Field number for the "cumulative" field. + public const int CumulativeFieldNumber = 6; + private readonly static bool CumulativeDefaultValue = false; - /// Field number for the "write_once" field. - public const int WriteOnceFieldNumber = 11; - private global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce writeOnce_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce WriteOnce - { - get { return writeOnce_; } - set - { - writeOnce_ = value; - } - } + private bool cumulative_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Cumulative { + get { if ((_hasBits0 & 16) != 0) { return cumulative_; } else { return CumulativeDefaultValue; } } + set { + _hasBits0 |= 16; + cumulative_ = value; + } + } + /// Gets whether the "cumulative" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCumulative { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "cumulative" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCumulative() { + _hasBits0 &= ~16; + } - /// Field number for the "liquidpool" field. - public const int LiquidpoolFieldNumber = 12; - private readonly static bool LiquidpoolDefaultValue = false; - - private bool liquidpool_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Liquidpool - { - get { if ((_hasBits0 & 256) != 0) { return liquidpool_; } else { return LiquidpoolDefaultValue; } } - set - { - _hasBits0 |= 256; - liquidpool_ = value; - } - } - /// Gets whether the "liquidpool" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLiquidpool - { - get { return (_hasBits0 & 256) != 0; } - } - /// Clears the value of the "liquidpool" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLiquidpool() - { - _hasBits0 &= ~256; - } + /// Field number for the "usable" field. + public const int UsableFieldNumber = 7; + private readonly static bool UsableDefaultValue = false; - /// Field number for the "unpass" field. - public const int UnpassFieldNumber = 13; - private readonly static bool UnpassDefaultValue = false; - - private bool unpass_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Unpass - { - get { if ((_hasBits0 & 512) != 0) { return unpass_; } else { return UnpassDefaultValue; } } - set - { - _hasBits0 |= 512; - unpass_ = value; - } - } - /// Gets whether the "unpass" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUnpass - { - get { return (_hasBits0 & 512) != 0; } - } - /// Clears the value of the "unpass" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUnpass() - { - _hasBits0 &= ~512; - } + private bool usable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Usable { + get { if ((_hasBits0 & 32) != 0) { return usable_; } else { return UsableDefaultValue; } } + set { + _hasBits0 |= 32; + usable_ = value; + } + } + /// Gets whether the "usable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUsable { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "usable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUsable() { + _hasBits0 &= ~32; + } - /// Field number for the "unmove" field. - public const int UnmoveFieldNumber = 14; - private readonly static bool UnmoveDefaultValue = false; - - private bool unmove_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Unmove - { - get { if ((_hasBits0 & 1024) != 0) { return unmove_; } else { return UnmoveDefaultValue; } } - set - { - _hasBits0 |= 1024; - unmove_ = value; - } - } - /// Gets whether the "unmove" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUnmove - { - get { return (_hasBits0 & 1024) != 0; } - } - /// Clears the value of the "unmove" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUnmove() - { - _hasBits0 &= ~1024; - } + /// Field number for the "forceuse" field. + public const int ForceuseFieldNumber = 8; + private readonly static bool ForceuseDefaultValue = false; - /// Field number for the "unsight" field. - public const int UnsightFieldNumber = 15; - private readonly static bool UnsightDefaultValue = false; - - private bool unsight_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Unsight - { - get { if ((_hasBits0 & 2048) != 0) { return unsight_; } else { return UnsightDefaultValue; } } - set - { - _hasBits0 |= 2048; - unsight_ = value; - } - } - /// Gets whether the "unsight" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUnsight - { - get { return (_hasBits0 & 2048) != 0; } - } - /// Clears the value of the "unsight" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUnsight() - { - _hasBits0 &= ~2048; - } + private bool forceuse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Forceuse { + get { if ((_hasBits0 & 64) != 0) { return forceuse_; } else { return ForceuseDefaultValue; } } + set { + _hasBits0 |= 64; + forceuse_ = value; + } + } + /// Gets whether the "forceuse" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasForceuse { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "forceuse" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearForceuse() { + _hasBits0 &= ~64; + } - /// Field number for the "avoid" field. - public const int AvoidFieldNumber = 16; - private readonly static bool AvoidDefaultValue = false; - - private bool avoid_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Avoid - { - get { if ((_hasBits0 & 4096) != 0) { return avoid_; } else { return AvoidDefaultValue; } } - set - { - _hasBits0 |= 4096; - avoid_ = value; - } - } - /// Gets whether the "avoid" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAvoid - { - get { return (_hasBits0 & 4096) != 0; } - } - /// Clears the value of the "avoid" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAvoid() - { - _hasBits0 &= ~4096; - } + /// Field number for the "multiuse" field. + public const int MultiuseFieldNumber = 9; + private readonly static bool MultiuseDefaultValue = false; - /// Field number for the "no_movement_animation" field. - public const int NoMovementAnimationFieldNumber = 17; - private readonly static bool NoMovementAnimationDefaultValue = false; - - private bool noMovementAnimation_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool NoMovementAnimation - { - get { if ((_hasBits0 & 8192) != 0) { return noMovementAnimation_; } else { return NoMovementAnimationDefaultValue; } } - set - { - _hasBits0 |= 8192; - noMovementAnimation_ = value; - } - } - /// Gets whether the "no_movement_animation" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasNoMovementAnimation - { - get { return (_hasBits0 & 8192) != 0; } - } - /// Clears the value of the "no_movement_animation" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearNoMovementAnimation() - { - _hasBits0 &= ~8192; - } + private bool multiuse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Multiuse { + get { if ((_hasBits0 & 128) != 0) { return multiuse_; } else { return MultiuseDefaultValue; } } + set { + _hasBits0 |= 128; + multiuse_ = value; + } + } + /// Gets whether the "multiuse" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMultiuse { + get { return (_hasBits0 & 128) != 0; } + } + /// Clears the value of the "multiuse" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMultiuse() { + _hasBits0 &= ~128; + } - /// Field number for the "take" field. - public const int TakeFieldNumber = 18; - private readonly static bool TakeDefaultValue = false; - - private bool take_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Take - { - get { if ((_hasBits0 & 16384) != 0) { return take_; } else { return TakeDefaultValue; } } - set - { - _hasBits0 |= 16384; - take_ = value; - } - } - /// Gets whether the "take" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTake - { - get { return (_hasBits0 & 16384) != 0; } - } - /// Clears the value of the "take" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTake() - { - _hasBits0 &= ~16384; - } + /// Field number for the "write" field. + public const int WriteFieldNumber = 10; + private global::Tibia.Protobuf.Appearances.AppearanceFlagWrite write_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagWrite Write { + get { return write_; } + set { + write_ = value; + } + } - /// Field number for the "liquidcontainer" field. - public const int LiquidcontainerFieldNumber = 19; - private readonly static bool LiquidcontainerDefaultValue = false; - - private bool liquidcontainer_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Liquidcontainer - { - get { if ((_hasBits0 & 32768) != 0) { return liquidcontainer_; } else { return LiquidcontainerDefaultValue; } } - set - { - _hasBits0 |= 32768; - liquidcontainer_ = value; - } - } - /// Gets whether the "liquidcontainer" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLiquidcontainer - { - get { return (_hasBits0 & 32768) != 0; } - } - /// Clears the value of the "liquidcontainer" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLiquidcontainer() - { - _hasBits0 &= ~32768; - } + /// Field number for the "write_once" field. + public const int WriteOnceFieldNumber = 11; + private global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce writeOnce_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce WriteOnce { + get { return writeOnce_; } + set { + writeOnce_ = value; + } + } - /// Field number for the "hang" field. - public const int HangFieldNumber = 20; - private readonly static bool HangDefaultValue = false; - - private bool hang_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Hang - { - get { if ((_hasBits0 & 65536) != 0) { return hang_; } else { return HangDefaultValue; } } - set - { - _hasBits0 |= 65536; - hang_ = value; - } - } - /// Gets whether the "hang" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasHang - { - get { return (_hasBits0 & 65536) != 0; } - } - /// Clears the value of the "hang" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearHang() - { - _hasBits0 &= ~65536; - } + /// Field number for the "liquidpool" field. + public const int LiquidpoolFieldNumber = 12; + private readonly static bool LiquidpoolDefaultValue = false; - /// Field number for the "hook" field. - public const int HookFieldNumber = 21; - private global::Tibia.Protobuf.Appearances.AppearanceFlagHook hook_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagHook Hook - { - get { return hook_; } - set - { - hook_ = value; - } - } + private bool liquidpool_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Liquidpool { + get { if ((_hasBits0 & 256) != 0) { return liquidpool_; } else { return LiquidpoolDefaultValue; } } + set { + _hasBits0 |= 256; + liquidpool_ = value; + } + } + /// Gets whether the "liquidpool" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLiquidpool { + get { return (_hasBits0 & 256) != 0; } + } + /// Clears the value of the "liquidpool" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLiquidpool() { + _hasBits0 &= ~256; + } - /// Field number for the "rotate" field. - public const int RotateFieldNumber = 22; - private readonly static bool RotateDefaultValue = false; - - private bool rotate_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Rotate - { - get { if ((_hasBits0 & 131072) != 0) { return rotate_; } else { return RotateDefaultValue; } } - set - { - _hasBits0 |= 131072; - rotate_ = value; - } - } - /// Gets whether the "rotate" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRotate - { - get { return (_hasBits0 & 131072) != 0; } - } - /// Clears the value of the "rotate" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRotate() - { - _hasBits0 &= ~131072; - } + /// Field number for the "unpass" field. + public const int UnpassFieldNumber = 13; + private readonly static bool UnpassDefaultValue = false; - /// Field number for the "light" field. - public const int LightFieldNumber = 23; - private global::Tibia.Protobuf.Appearances.AppearanceFlagLight light_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagLight Light - { - get { return light_; } - set - { - light_ = value; - } - } + private bool unpass_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Unpass { + get { if ((_hasBits0 & 512) != 0) { return unpass_; } else { return UnpassDefaultValue; } } + set { + _hasBits0 |= 512; + unpass_ = value; + } + } + /// Gets whether the "unpass" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUnpass { + get { return (_hasBits0 & 512) != 0; } + } + /// Clears the value of the "unpass" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUnpass() { + _hasBits0 &= ~512; + } - /// Field number for the "dont_hide" field. - public const int DontHideFieldNumber = 24; - private readonly static bool DontHideDefaultValue = false; - - private bool dontHide_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool DontHide - { - get { if ((_hasBits0 & 262144) != 0) { return dontHide_; } else { return DontHideDefaultValue; } } - set - { - _hasBits0 |= 262144; - dontHide_ = value; - } - } - /// Gets whether the "dont_hide" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDontHide - { - get { return (_hasBits0 & 262144) != 0; } - } - /// Clears the value of the "dont_hide" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDontHide() - { - _hasBits0 &= ~262144; - } + /// Field number for the "unmove" field. + public const int UnmoveFieldNumber = 14; + private readonly static bool UnmoveDefaultValue = false; - /// Field number for the "translucent" field. - public const int TranslucentFieldNumber = 25; - private readonly static bool TranslucentDefaultValue = false; - - private bool translucent_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Translucent - { - get { if ((_hasBits0 & 524288) != 0) { return translucent_; } else { return TranslucentDefaultValue; } } - set - { - _hasBits0 |= 524288; - translucent_ = value; - } - } - /// Gets whether the "translucent" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTranslucent - { - get { return (_hasBits0 & 524288) != 0; } - } - /// Clears the value of the "translucent" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTranslucent() - { - _hasBits0 &= ~524288; - } + private bool unmove_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Unmove { + get { if ((_hasBits0 & 1024) != 0) { return unmove_; } else { return UnmoveDefaultValue; } } + set { + _hasBits0 |= 1024; + unmove_ = value; + } + } + /// Gets whether the "unmove" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUnmove { + get { return (_hasBits0 & 1024) != 0; } + } + /// Clears the value of the "unmove" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUnmove() { + _hasBits0 &= ~1024; + } - /// Field number for the "shift" field. - public const int ShiftFieldNumber = 26; - private global::Tibia.Protobuf.Appearances.AppearanceFlagShift shift_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagShift Shift - { - get { return shift_; } - set - { - shift_ = value; - } - } + /// Field number for the "unsight" field. + public const int UnsightFieldNumber = 15; + private readonly static bool UnsightDefaultValue = false; - /// Field number for the "height" field. - public const int HeightFieldNumber = 27; - private global::Tibia.Protobuf.Appearances.AppearanceFlagHeight height_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagHeight Height - { - get { return height_; } - set - { - height_ = value; - } - } + private bool unsight_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Unsight { + get { if ((_hasBits0 & 2048) != 0) { return unsight_; } else { return UnsightDefaultValue; } } + set { + _hasBits0 |= 2048; + unsight_ = value; + } + } + /// Gets whether the "unsight" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUnsight { + get { return (_hasBits0 & 2048) != 0; } + } + /// Clears the value of the "unsight" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUnsight() { + _hasBits0 &= ~2048; + } - /// Field number for the "lying_object" field. - public const int LyingObjectFieldNumber = 28; - private readonly static bool LyingObjectDefaultValue = false; - - private bool lyingObject_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool LyingObject - { - get { if ((_hasBits0 & 1048576) != 0) { return lyingObject_; } else { return LyingObjectDefaultValue; } } - set - { - _hasBits0 |= 1048576; - lyingObject_ = value; - } - } - /// Gets whether the "lying_object" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLyingObject - { - get { return (_hasBits0 & 1048576) != 0; } - } - /// Clears the value of the "lying_object" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLyingObject() - { - _hasBits0 &= ~1048576; - } + /// Field number for the "avoid" field. + public const int AvoidFieldNumber = 16; + private readonly static bool AvoidDefaultValue = false; - /// Field number for the "animate_always" field. - public const int AnimateAlwaysFieldNumber = 29; - private readonly static bool AnimateAlwaysDefaultValue = false; - - private bool animateAlways_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool AnimateAlways - { - get { if ((_hasBits0 & 2097152) != 0) { return animateAlways_; } else { return AnimateAlwaysDefaultValue; } } - set - { - _hasBits0 |= 2097152; - animateAlways_ = value; - } - } - /// Gets whether the "animate_always" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAnimateAlways - { - get { return (_hasBits0 & 2097152) != 0; } - } - /// Clears the value of the "animate_always" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAnimateAlways() - { - _hasBits0 &= ~2097152; - } + private bool avoid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Avoid { + get { if ((_hasBits0 & 4096) != 0) { return avoid_; } else { return AvoidDefaultValue; } } + set { + _hasBits0 |= 4096; + avoid_ = value; + } + } + /// Gets whether the "avoid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAvoid { + get { return (_hasBits0 & 4096) != 0; } + } + /// Clears the value of the "avoid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAvoid() { + _hasBits0 &= ~4096; + } - /// Field number for the "automap" field. - public const int AutomapFieldNumber = 30; - private global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap automap_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap Automap - { - get { return automap_; } - set - { - automap_ = value; - } - } + /// Field number for the "no_movement_animation" field. + public const int NoMovementAnimationFieldNumber = 17; + private readonly static bool NoMovementAnimationDefaultValue = false; - /// Field number for the "lenshelp" field. - public const int LenshelpFieldNumber = 31; - private global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp lenshelp_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp Lenshelp - { - get { return lenshelp_; } - set - { - lenshelp_ = value; - } - } + private bool noMovementAnimation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool NoMovementAnimation { + get { if ((_hasBits0 & 8192) != 0) { return noMovementAnimation_; } else { return NoMovementAnimationDefaultValue; } } + set { + _hasBits0 |= 8192; + noMovementAnimation_ = value; + } + } + /// Gets whether the "no_movement_animation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasNoMovementAnimation { + get { return (_hasBits0 & 8192) != 0; } + } + /// Clears the value of the "no_movement_animation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearNoMovementAnimation() { + _hasBits0 &= ~8192; + } - /// Field number for the "fullbank" field. - public const int FullbankFieldNumber = 32; - private readonly static bool FullbankDefaultValue = false; - - private bool fullbank_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Fullbank - { - get { if ((_hasBits0 & 4194304) != 0) { return fullbank_; } else { return FullbankDefaultValue; } } - set - { - _hasBits0 |= 4194304; - fullbank_ = value; - } - } - /// Gets whether the "fullbank" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFullbank - { - get { return (_hasBits0 & 4194304) != 0; } - } - /// Clears the value of the "fullbank" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFullbank() - { - _hasBits0 &= ~4194304; - } + /// Field number for the "take" field. + public const int TakeFieldNumber = 18; + private readonly static bool TakeDefaultValue = false; - /// Field number for the "ignore_look" field. - public const int IgnoreLookFieldNumber = 33; - private readonly static bool IgnoreLookDefaultValue = false; - - private bool ignoreLook_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool IgnoreLook - { - get { if ((_hasBits0 & 8388608) != 0) { return ignoreLook_; } else { return IgnoreLookDefaultValue; } } - set - { - _hasBits0 |= 8388608; - ignoreLook_ = value; - } - } - /// Gets whether the "ignore_look" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasIgnoreLook - { - get { return (_hasBits0 & 8388608) != 0; } - } - /// Clears the value of the "ignore_look" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearIgnoreLook() - { - _hasBits0 &= ~8388608; - } + private bool take_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Take { + get { if ((_hasBits0 & 16384) != 0) { return take_; } else { return TakeDefaultValue; } } + set { + _hasBits0 |= 16384; + take_ = value; + } + } + /// Gets whether the "take" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTake { + get { return (_hasBits0 & 16384) != 0; } + } + /// Clears the value of the "take" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTake() { + _hasBits0 &= ~16384; + } - /// Field number for the "clothes" field. - public const int ClothesFieldNumber = 34; - private global::Tibia.Protobuf.Appearances.AppearanceFlagClothes clothes_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagClothes Clothes - { - get { return clothes_; } - set - { - clothes_ = value; - } - } + /// Field number for the "liquidcontainer" field. + public const int LiquidcontainerFieldNumber = 19; + private readonly static bool LiquidcontainerDefaultValue = false; - /// Field number for the "default_action" field. - public const int DefaultActionFieldNumber = 35; - private global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction defaultAction_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction DefaultAction - { - get { return defaultAction_; } - set - { - defaultAction_ = value; - } - } + private bool liquidcontainer_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Liquidcontainer { + get { if ((_hasBits0 & 32768) != 0) { return liquidcontainer_; } else { return LiquidcontainerDefaultValue; } } + set { + _hasBits0 |= 32768; + liquidcontainer_ = value; + } + } + /// Gets whether the "liquidcontainer" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLiquidcontainer { + get { return (_hasBits0 & 32768) != 0; } + } + /// Clears the value of the "liquidcontainer" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLiquidcontainer() { + _hasBits0 &= ~32768; + } - /// Field number for the "market" field. - public const int MarketFieldNumber = 36; - private global::Tibia.Protobuf.Appearances.AppearanceFlagMarket market_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagMarket Market - { - get { return market_; } - set - { - market_ = value; - } - } + /// Field number for the "hang" field. + public const int HangFieldNumber = 20; + private readonly static bool HangDefaultValue = false; - /// Field number for the "wrap" field. - public const int WrapFieldNumber = 37; - private readonly static bool WrapDefaultValue = false; - - private bool wrap_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Wrap - { - get { if ((_hasBits0 & 16777216) != 0) { return wrap_; } else { return WrapDefaultValue; } } - set - { - _hasBits0 |= 16777216; - wrap_ = value; - } - } - /// Gets whether the "wrap" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasWrap - { - get { return (_hasBits0 & 16777216) != 0; } - } - /// Clears the value of the "wrap" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearWrap() - { - _hasBits0 &= ~16777216; - } + private bool hang_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Hang { + get { if ((_hasBits0 & 65536) != 0) { return hang_; } else { return HangDefaultValue; } } + set { + _hasBits0 |= 65536; + hang_ = value; + } + } + /// Gets whether the "hang" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHang { + get { return (_hasBits0 & 65536) != 0; } + } + /// Clears the value of the "hang" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHang() { + _hasBits0 &= ~65536; + } - /// Field number for the "unwrap" field. - public const int UnwrapFieldNumber = 38; - private readonly static bool UnwrapDefaultValue = false; - - private bool unwrap_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Unwrap - { - get { if ((_hasBits0 & 33554432) != 0) { return unwrap_; } else { return UnwrapDefaultValue; } } - set - { - _hasBits0 |= 33554432; - unwrap_ = value; - } - } - /// Gets whether the "unwrap" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUnwrap - { - get { return (_hasBits0 & 33554432) != 0; } - } - /// Clears the value of the "unwrap" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUnwrap() - { - _hasBits0 &= ~33554432; - } + /// Field number for the "hook" field. + public const int HookFieldNumber = 21; + private global::Tibia.Protobuf.Appearances.AppearanceFlagHook hook_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagHook Hook { + get { return hook_; } + set { + hook_ = value; + } + } - /// Field number for the "topeffect" field. - public const int TopeffectFieldNumber = 39; - private readonly static bool TopeffectDefaultValue = false; - - private bool topeffect_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Topeffect - { - get { if ((_hasBits0 & 67108864) != 0) { return topeffect_; } else { return TopeffectDefaultValue; } } - set - { - _hasBits0 |= 67108864; - topeffect_ = value; - } - } - /// Gets whether the "topeffect" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTopeffect - { - get { return (_hasBits0 & 67108864) != 0; } - } - /// Clears the value of the "topeffect" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTopeffect() - { - _hasBits0 &= ~67108864; - } + /// Field number for the "rotate" field. + public const int RotateFieldNumber = 22; + private readonly static bool RotateDefaultValue = false; - /// Field number for the "npcsaledata" field. - public const int NpcsaledataFieldNumber = 40; - private static readonly pb::FieldCodec _repeated_npcsaledata_codec - = pb::FieldCodec.ForMessage(322, global::Tibia.Protobuf.Appearances.AppearanceFlagNPC.Parser); - private readonly pbc::RepeatedField npcsaledata_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Npcsaledata - { - get { return npcsaledata_; } - } + private bool rotate_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Rotate { + get { if ((_hasBits0 & 131072) != 0) { return rotate_; } else { return RotateDefaultValue; } } + set { + _hasBits0 |= 131072; + rotate_ = value; + } + } + /// Gets whether the "rotate" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasRotate { + get { return (_hasBits0 & 131072) != 0; } + } + /// Clears the value of the "rotate" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearRotate() { + _hasBits0 &= ~131072; + } - /// Field number for the "changedtoexpire" field. - public const int ChangedtoexpireFieldNumber = 41; - private global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire changedtoexpire_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire Changedtoexpire - { - get { return changedtoexpire_; } - set - { - changedtoexpire_ = value; - } - } + /// Field number for the "light" field. + public const int LightFieldNumber = 23; + private global::Tibia.Protobuf.Appearances.AppearanceFlagLight light_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagLight Light { + get { return light_; } + set { + light_ = value; + } + } - /// Field number for the "corpse" field. - public const int CorpseFieldNumber = 42; - private readonly static bool CorpseDefaultValue = false; - - private bool corpse_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Corpse - { - get { if ((_hasBits0 & 134217728) != 0) { return corpse_; } else { return CorpseDefaultValue; } } - set - { - _hasBits0 |= 134217728; - corpse_ = value; - } - } - /// Gets whether the "corpse" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCorpse - { - get { return (_hasBits0 & 134217728) != 0; } - } - /// Clears the value of the "corpse" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCorpse() - { - _hasBits0 &= ~134217728; - } + /// Field number for the "dont_hide" field. + public const int DontHideFieldNumber = 24; + private readonly static bool DontHideDefaultValue = false; - /// Field number for the "player_corpse" field. - public const int PlayerCorpseFieldNumber = 43; - private readonly static bool PlayerCorpseDefaultValue = false; - - private bool playerCorpse_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool PlayerCorpse - { - get { if ((_hasBits0 & 268435456) != 0) { return playerCorpse_; } else { return PlayerCorpseDefaultValue; } } - set - { - _hasBits0 |= 268435456; - playerCorpse_ = value; - } - } - /// Gets whether the "player_corpse" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlayerCorpse - { - get { return (_hasBits0 & 268435456) != 0; } - } - /// Clears the value of the "player_corpse" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlayerCorpse() - { - _hasBits0 &= ~268435456; - } + private bool dontHide_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool DontHide { + get { if ((_hasBits0 & 262144) != 0) { return dontHide_; } else { return DontHideDefaultValue; } } + set { + _hasBits0 |= 262144; + dontHide_ = value; + } + } + /// Gets whether the "dont_hide" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDontHide { + get { return (_hasBits0 & 262144) != 0; } + } + /// Clears the value of the "dont_hide" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDontHide() { + _hasBits0 &= ~262144; + } - /// Field number for the "cyclopediaitem" field. - public const int CyclopediaitemFieldNumber = 44; - private global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia cyclopediaitem_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia Cyclopediaitem - { - get { return cyclopediaitem_; } - set - { - cyclopediaitem_ = value; - } - } + /// Field number for the "translucent" field. + public const int TranslucentFieldNumber = 25; + private readonly static bool TranslucentDefaultValue = false; - /// Field number for the "ammo" field. - public const int AmmoFieldNumber = 45; - private readonly static bool AmmoDefaultValue = false; - - private bool ammo_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Ammo - { - get { if ((_hasBits0 & 536870912) != 0) { return ammo_; } else { return AmmoDefaultValue; } } - set - { - _hasBits0 |= 536870912; - ammo_ = value; - } - } - /// Gets whether the "ammo" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAmmo - { - get { return (_hasBits0 & 536870912) != 0; } - } - /// Clears the value of the "ammo" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAmmo() - { - _hasBits0 &= ~536870912; - } + private bool translucent_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Translucent { + get { if ((_hasBits0 & 524288) != 0) { return translucent_; } else { return TranslucentDefaultValue; } } + set { + _hasBits0 |= 524288; + translucent_ = value; + } + } + /// Gets whether the "translucent" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTranslucent { + get { return (_hasBits0 & 524288) != 0; } + } + /// Clears the value of the "translucent" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTranslucent() { + _hasBits0 &= ~524288; + } - /// Field number for the "show_off_socket" field. - public const int ShowOffSocketFieldNumber = 46; - private readonly static bool ShowOffSocketDefaultValue = false; - - private bool showOffSocket_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ShowOffSocket - { - get { if ((_hasBits0 & 1073741824) != 0) { return showOffSocket_; } else { return ShowOffSocketDefaultValue; } } - set - { - _hasBits0 |= 1073741824; - showOffSocket_ = value; - } - } - /// Gets whether the "show_off_socket" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasShowOffSocket - { - get { return (_hasBits0 & 1073741824) != 0; } - } - /// Clears the value of the "show_off_socket" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearShowOffSocket() - { - _hasBits0 &= ~1073741824; - } + /// Field number for the "shift" field. + public const int ShiftFieldNumber = 26; + private global::Tibia.Protobuf.Appearances.AppearanceFlagShift shift_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagShift Shift { + get { return shift_; } + set { + shift_ = value; + } + } - /// Field number for the "reportable" field. - public const int ReportableFieldNumber = 47; - private readonly static bool ReportableDefaultValue = false; - - private bool reportable_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Reportable - { - get { if ((_hasBits0 & -2147483648) != 0) { return reportable_; } else { return ReportableDefaultValue; } } - set - { - _hasBits0 |= -2147483648; - reportable_ = value; - } - } - /// Gets whether the "reportable" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasReportable - { - get { return (_hasBits0 & -2147483648) != 0; } - } - /// Clears the value of the "reportable" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearReportable() - { - _hasBits0 &= ~-2147483648; - } + /// Field number for the "height" field. + public const int HeightFieldNumber = 27; + private global::Tibia.Protobuf.Appearances.AppearanceFlagHeight height_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagHeight Height { + get { return height_; } + set { + height_ = value; + } + } - /// Field number for the "upgradeclassification" field. - public const int UpgradeclassificationFieldNumber = 48; - private global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification upgradeclassification_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification Upgradeclassification - { - get { return upgradeclassification_; } - set - { - upgradeclassification_ = value; - } - } + /// Field number for the "lying_object" field. + public const int LyingObjectFieldNumber = 28; + private readonly static bool LyingObjectDefaultValue = false; - /// Field number for the "reverse_addons_east" field. - public const int ReverseAddonsEastFieldNumber = 49; - private readonly static bool ReverseAddonsEastDefaultValue = false; - - private bool reverseAddonsEast_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ReverseAddonsEast - { - get { if ((_hasBits1 & 1) != 0) { return reverseAddonsEast_; } else { return ReverseAddonsEastDefaultValue; } } - set - { - _hasBits1 |= 1; - reverseAddonsEast_ = value; - } - } - /// Gets whether the "reverse_addons_east" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasReverseAddonsEast - { - get { return (_hasBits1 & 1) != 0; } - } - /// Clears the value of the "reverse_addons_east" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearReverseAddonsEast() - { - _hasBits1 &= ~1; - } + private bool lyingObject_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool LyingObject { + get { if ((_hasBits0 & 1048576) != 0) { return lyingObject_; } else { return LyingObjectDefaultValue; } } + set { + _hasBits0 |= 1048576; + lyingObject_ = value; + } + } + /// Gets whether the "lying_object" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLyingObject { + get { return (_hasBits0 & 1048576) != 0; } + } + /// Clears the value of the "lying_object" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLyingObject() { + _hasBits0 &= ~1048576; + } - /// Field number for the "reverse_addons_west" field. - public const int ReverseAddonsWestFieldNumber = 50; - private readonly static bool ReverseAddonsWestDefaultValue = false; - - private bool reverseAddonsWest_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ReverseAddonsWest - { - get { if ((_hasBits1 & 2) != 0) { return reverseAddonsWest_; } else { return ReverseAddonsWestDefaultValue; } } - set - { - _hasBits1 |= 2; - reverseAddonsWest_ = value; - } - } - /// Gets whether the "reverse_addons_west" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasReverseAddonsWest - { - get { return (_hasBits1 & 2) != 0; } - } - /// Clears the value of the "reverse_addons_west" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearReverseAddonsWest() - { - _hasBits1 &= ~2; - } + /// Field number for the "animate_always" field. + public const int AnimateAlwaysFieldNumber = 29; + private readonly static bool AnimateAlwaysDefaultValue = false; - /// Field number for the "reverse_addons_south" field. - public const int ReverseAddonsSouthFieldNumber = 51; - private readonly static bool ReverseAddonsSouthDefaultValue = false; - - private bool reverseAddonsSouth_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ReverseAddonsSouth - { - get { if ((_hasBits1 & 4) != 0) { return reverseAddonsSouth_; } else { return ReverseAddonsSouthDefaultValue; } } - set - { - _hasBits1 |= 4; - reverseAddonsSouth_ = value; - } - } - /// Gets whether the "reverse_addons_south" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasReverseAddonsSouth - { - get { return (_hasBits1 & 4) != 0; } - } - /// Clears the value of the "reverse_addons_south" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearReverseAddonsSouth() - { - _hasBits1 &= ~4; - } + private bool animateAlways_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool AnimateAlways { + get { if ((_hasBits0 & 2097152) != 0) { return animateAlways_; } else { return AnimateAlwaysDefaultValue; } } + set { + _hasBits0 |= 2097152; + animateAlways_ = value; + } + } + /// Gets whether the "animate_always" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAnimateAlways { + get { return (_hasBits0 & 2097152) != 0; } + } + /// Clears the value of the "animate_always" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAnimateAlways() { + _hasBits0 &= ~2097152; + } - /// Field number for the "reverse_addons_north" field. - public const int ReverseAddonsNorthFieldNumber = 52; - private readonly static bool ReverseAddonsNorthDefaultValue = false; - - private bool reverseAddonsNorth_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool ReverseAddonsNorth - { - get { if ((_hasBits1 & 8) != 0) { return reverseAddonsNorth_; } else { return ReverseAddonsNorthDefaultValue; } } - set - { - _hasBits1 |= 8; - reverseAddonsNorth_ = value; - } - } - /// Gets whether the "reverse_addons_north" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasReverseAddonsNorth - { - get { return (_hasBits1 & 8) != 0; } - } - /// Clears the value of the "reverse_addons_north" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearReverseAddonsNorth() - { - _hasBits1 &= ~8; - } + /// Field number for the "automap" field. + public const int AutomapFieldNumber = 30; + private global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap automap_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap Automap { + get { return automap_; } + set { + automap_ = value; + } + } - /// Field number for the "wearout" field. - public const int WearoutFieldNumber = 53; - private readonly static bool WearoutDefaultValue = false; - - private bool wearout_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Wearout - { - get { if ((_hasBits1 & 16) != 0) { return wearout_; } else { return WearoutDefaultValue; } } - set - { - _hasBits1 |= 16; - wearout_ = value; - } - } - /// Gets whether the "wearout" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasWearout - { - get { return (_hasBits1 & 16) != 0; } - } - /// Clears the value of the "wearout" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearWearout() - { - _hasBits1 &= ~16; - } + /// Field number for the "lenshelp" field. + public const int LenshelpFieldNumber = 31; + private global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp lenshelp_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp Lenshelp { + get { return lenshelp_; } + set { + lenshelp_ = value; + } + } - /// Field number for the "clockexpire" field. - public const int ClockexpireFieldNumber = 54; - private readonly static bool ClockexpireDefaultValue = false; - - private bool clockexpire_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Clockexpire - { - get { if ((_hasBits1 & 32) != 0) { return clockexpire_; } else { return ClockexpireDefaultValue; } } - set - { - _hasBits1 |= 32; - clockexpire_ = value; - } - } - /// Gets whether the "clockexpire" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasClockexpire - { - get { return (_hasBits1 & 32) != 0; } - } - /// Clears the value of the "clockexpire" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearClockexpire() - { - _hasBits1 &= ~32; - } + /// Field number for the "fullbank" field. + public const int FullbankFieldNumber = 32; + private readonly static bool FullbankDefaultValue = false; - /// Field number for the "expire" field. - public const int ExpireFieldNumber = 55; - private readonly static bool ExpireDefaultValue = false; - - private bool expire_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Expire - { - get { if ((_hasBits1 & 64) != 0) { return expire_; } else { return ExpireDefaultValue; } } - set - { - _hasBits1 |= 64; - expire_ = value; - } - } - /// Gets whether the "expire" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExpire - { - get { return (_hasBits1 & 64) != 0; } - } - /// Clears the value of the "expire" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExpire() - { - _hasBits1 &= ~64; - } + private bool fullbank_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Fullbank { + get { if ((_hasBits0 & 4194304) != 0) { return fullbank_; } else { return FullbankDefaultValue; } } + set { + _hasBits0 |= 4194304; + fullbank_ = value; + } + } + /// Gets whether the "fullbank" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFullbank { + get { return (_hasBits0 & 4194304) != 0; } + } + /// Clears the value of the "fullbank" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFullbank() { + _hasBits0 &= ~4194304; + } - /// Field number for the "expirestop" field. - public const int ExpirestopFieldNumber = 56; - private readonly static bool ExpirestopDefaultValue = false; - - private bool expirestop_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Expirestop - { - get { if ((_hasBits1 & 128) != 0) { return expirestop_; } else { return ExpirestopDefaultValue; } } - set - { - _hasBits1 |= 128; - expirestop_ = value; - } - } - /// Gets whether the "expirestop" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasExpirestop - { - get { return (_hasBits1 & 128) != 0; } - } - /// Clears the value of the "expirestop" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearExpirestop() - { - _hasBits1 &= ~128; - } + /// Field number for the "ignore_look" field. + public const int IgnoreLookFieldNumber = 33; + private readonly static bool IgnoreLookDefaultValue = false; - /// Field number for the "wrapkit" field. - public const int WrapkitFieldNumber = 57; - private readonly static bool WrapkitDefaultValue = false; - - private bool wrapkit_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Wrapkit - { - get { if ((_hasBits1 & 256) != 0) { return wrapkit_; } else { return WrapkitDefaultValue; } } - set - { - _hasBits1 |= 256; - wrapkit_ = value; - } - } - /// Gets whether the "wrapkit" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasWrapkit - { - get { return (_hasBits1 & 256) != 0; } - } - /// Clears the value of the "wrapkit" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearWrapkit() - { - _hasBits1 &= ~256; - } + private bool ignoreLook_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool IgnoreLook { + get { if ((_hasBits0 & 8388608) != 0) { return ignoreLook_; } else { return IgnoreLookDefaultValue; } } + set { + _hasBits0 |= 8388608; + ignoreLook_ = value; + } + } + /// Gets whether the "ignore_look" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasIgnoreLook { + get { return (_hasBits0 & 8388608) != 0; } + } + /// Clears the value of the "ignore_look" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearIgnoreLook() { + _hasBits0 &= ~8388608; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlags); - } + /// Field number for the "clothes" field. + public const int ClothesFieldNumber = 34; + private global::Tibia.Protobuf.Appearances.AppearanceFlagClothes clothes_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagClothes Clothes { + get { return clothes_; } + set { + clothes_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlags other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (!object.Equals(Bank, other.Bank)) return false; - if (Clip != other.Clip) return false; - if (Bottom != other.Bottom) return false; - if (Top != other.Top) return false; - if (Container != other.Container) return false; - if (Cumulative != other.Cumulative) return false; - if (Usable != other.Usable) return false; - if (Forceuse != other.Forceuse) return false; - if (Multiuse != other.Multiuse) return false; - if (!object.Equals(Write, other.Write)) return false; - if (!object.Equals(WriteOnce, other.WriteOnce)) return false; - if (Liquidpool != other.Liquidpool) return false; - if (Unpass != other.Unpass) return false; - if (Unmove != other.Unmove) return false; - if (Unsight != other.Unsight) return false; - if (Avoid != other.Avoid) return false; - if (NoMovementAnimation != other.NoMovementAnimation) return false; - if (Take != other.Take) return false; - if (Liquidcontainer != other.Liquidcontainer) return false; - if (Hang != other.Hang) return false; - if (!object.Equals(Hook, other.Hook)) return false; - if (Rotate != other.Rotate) return false; - if (!object.Equals(Light, other.Light)) return false; - if (DontHide != other.DontHide) return false; - if (Translucent != other.Translucent) return false; - if (!object.Equals(Shift, other.Shift)) return false; - if (!object.Equals(Height, other.Height)) return false; - if (LyingObject != other.LyingObject) return false; - if (AnimateAlways != other.AnimateAlways) return false; - if (!object.Equals(Automap, other.Automap)) return false; - if (!object.Equals(Lenshelp, other.Lenshelp)) return false; - if (Fullbank != other.Fullbank) return false; - if (IgnoreLook != other.IgnoreLook) return false; - if (!object.Equals(Clothes, other.Clothes)) return false; - if (!object.Equals(DefaultAction, other.DefaultAction)) return false; - if (!object.Equals(Market, other.Market)) return false; - if (Wrap != other.Wrap) return false; - if (Unwrap != other.Unwrap) return false; - if (Topeffect != other.Topeffect) return false; - if (!npcsaledata_.Equals(other.npcsaledata_)) return false; - if (!object.Equals(Changedtoexpire, other.Changedtoexpire)) return false; - if (Corpse != other.Corpse) return false; - if (PlayerCorpse != other.PlayerCorpse) return false; - if (!object.Equals(Cyclopediaitem, other.Cyclopediaitem)) return false; - if (Ammo != other.Ammo) return false; - if (ShowOffSocket != other.ShowOffSocket) return false; - if (Reportable != other.Reportable) return false; - if (!object.Equals(Upgradeclassification, other.Upgradeclassification)) return false; - if (ReverseAddonsEast != other.ReverseAddonsEast) return false; - if (ReverseAddonsWest != other.ReverseAddonsWest) return false; - if (ReverseAddonsSouth != other.ReverseAddonsSouth) return false; - if (ReverseAddonsNorth != other.ReverseAddonsNorth) return false; - if (Wearout != other.Wearout) return false; - if (Clockexpire != other.Clockexpire) return false; - if (Expire != other.Expire) return false; - if (Expirestop != other.Expirestop) return false; - if (Wrapkit != other.Wrapkit) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "default_action" field. + public const int DefaultActionFieldNumber = 35; + private global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction defaultAction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction DefaultAction { + get { return defaultAction_; } + set { + defaultAction_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (bank_ != null) hash ^= Bank.GetHashCode(); - if (HasClip) hash ^= Clip.GetHashCode(); - if (HasBottom) hash ^= Bottom.GetHashCode(); - if (HasTop) hash ^= Top.GetHashCode(); - if (HasContainer) hash ^= Container.GetHashCode(); - if (HasCumulative) hash ^= Cumulative.GetHashCode(); - if (HasUsable) hash ^= Usable.GetHashCode(); - if (HasForceuse) hash ^= Forceuse.GetHashCode(); - if (HasMultiuse) hash ^= Multiuse.GetHashCode(); - if (write_ != null) hash ^= Write.GetHashCode(); - if (writeOnce_ != null) hash ^= WriteOnce.GetHashCode(); - if (HasLiquidpool) hash ^= Liquidpool.GetHashCode(); - if (HasUnpass) hash ^= Unpass.GetHashCode(); - if (HasUnmove) hash ^= Unmove.GetHashCode(); - if (HasUnsight) hash ^= Unsight.GetHashCode(); - if (HasAvoid) hash ^= Avoid.GetHashCode(); - if (HasNoMovementAnimation) hash ^= NoMovementAnimation.GetHashCode(); - if (HasTake) hash ^= Take.GetHashCode(); - if (HasLiquidcontainer) hash ^= Liquidcontainer.GetHashCode(); - if (HasHang) hash ^= Hang.GetHashCode(); - if (hook_ != null) hash ^= Hook.GetHashCode(); - if (HasRotate) hash ^= Rotate.GetHashCode(); - if (light_ != null) hash ^= Light.GetHashCode(); - if (HasDontHide) hash ^= DontHide.GetHashCode(); - if (HasTranslucent) hash ^= Translucent.GetHashCode(); - if (shift_ != null) hash ^= Shift.GetHashCode(); - if (height_ != null) hash ^= Height.GetHashCode(); - if (HasLyingObject) hash ^= LyingObject.GetHashCode(); - if (HasAnimateAlways) hash ^= AnimateAlways.GetHashCode(); - if (automap_ != null) hash ^= Automap.GetHashCode(); - if (lenshelp_ != null) hash ^= Lenshelp.GetHashCode(); - if (HasFullbank) hash ^= Fullbank.GetHashCode(); - if (HasIgnoreLook) hash ^= IgnoreLook.GetHashCode(); - if (clothes_ != null) hash ^= Clothes.GetHashCode(); - if (defaultAction_ != null) hash ^= DefaultAction.GetHashCode(); - if (market_ != null) hash ^= Market.GetHashCode(); - if (HasWrap) hash ^= Wrap.GetHashCode(); - if (HasUnwrap) hash ^= Unwrap.GetHashCode(); - if (HasTopeffect) hash ^= Topeffect.GetHashCode(); - hash ^= npcsaledata_.GetHashCode(); - if (changedtoexpire_ != null) hash ^= Changedtoexpire.GetHashCode(); - if (HasCorpse) hash ^= Corpse.GetHashCode(); - if (HasPlayerCorpse) hash ^= PlayerCorpse.GetHashCode(); - if (cyclopediaitem_ != null) hash ^= Cyclopediaitem.GetHashCode(); - if (HasAmmo) hash ^= Ammo.GetHashCode(); - if (HasShowOffSocket) hash ^= ShowOffSocket.GetHashCode(); - if (HasReportable) hash ^= Reportable.GetHashCode(); - if (upgradeclassification_ != null) hash ^= Upgradeclassification.GetHashCode(); - if (HasReverseAddonsEast) hash ^= ReverseAddonsEast.GetHashCode(); - if (HasReverseAddonsWest) hash ^= ReverseAddonsWest.GetHashCode(); - if (HasReverseAddonsSouth) hash ^= ReverseAddonsSouth.GetHashCode(); - if (HasReverseAddonsNorth) hash ^= ReverseAddonsNorth.GetHashCode(); - if (HasWearout) hash ^= Wearout.GetHashCode(); - if (HasClockexpire) hash ^= Clockexpire.GetHashCode(); - if (HasExpire) hash ^= Expire.GetHashCode(); - if (HasExpirestop) hash ^= Expirestop.GetHashCode(); - if (HasWrapkit) hash ^= Wrapkit.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "market" field. + public const int MarketFieldNumber = 36; + private global::Tibia.Protobuf.Appearances.AppearanceFlagMarket market_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagMarket Market { + get { return market_; } + set { + market_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + /// Field number for the "wrap" field. + public const int WrapFieldNumber = 37; + private readonly static bool WrapDefaultValue = false; + + private bool wrap_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Wrap { + get { if ((_hasBits0 & 16777216) != 0) { return wrap_; } else { return WrapDefaultValue; } } + set { + _hasBits0 |= 16777216; + wrap_ = value; + } + } + /// Gets whether the "wrap" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWrap { + get { return (_hasBits0 & 16777216) != 0; } + } + /// Clears the value of the "wrap" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWrap() { + _hasBits0 &= ~16777216; + } + + /// Field number for the "unwrap" field. + public const int UnwrapFieldNumber = 38; + private readonly static bool UnwrapDefaultValue = false; + + private bool unwrap_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Unwrap { + get { if ((_hasBits0 & 33554432) != 0) { return unwrap_; } else { return UnwrapDefaultValue; } } + set { + _hasBits0 |= 33554432; + unwrap_ = value; + } + } + /// Gets whether the "unwrap" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUnwrap { + get { return (_hasBits0 & 33554432) != 0; } + } + /// Clears the value of the "unwrap" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUnwrap() { + _hasBits0 &= ~33554432; + } + + /// Field number for the "topeffect" field. + public const int TopeffectFieldNumber = 39; + private readonly static bool TopeffectDefaultValue = false; + + private bool topeffect_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Topeffect { + get { if ((_hasBits0 & 67108864) != 0) { return topeffect_; } else { return TopeffectDefaultValue; } } + set { + _hasBits0 |= 67108864; + topeffect_ = value; + } + } + /// Gets whether the "topeffect" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTopeffect { + get { return (_hasBits0 & 67108864) != 0; } + } + /// Clears the value of the "topeffect" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTopeffect() { + _hasBits0 &= ~67108864; + } + + /// Field number for the "npcsaledata" field. + public const int NpcsaledataFieldNumber = 40; + private static readonly pb::FieldCodec _repeated_npcsaledata_codec + = pb::FieldCodec.ForMessage(322, global::Tibia.Protobuf.Appearances.AppearanceFlagNPC.Parser); + private readonly pbc::RepeatedField npcsaledata_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField Npcsaledata { + get { return npcsaledata_; } + } + + /// Field number for the "changedtoexpire" field. + public const int ChangedtoexpireFieldNumber = 41; + private global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire changedtoexpire_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire Changedtoexpire { + get { return changedtoexpire_; } + set { + changedtoexpire_ = value; + } + } + + /// Field number for the "corpse" field. + public const int CorpseFieldNumber = 42; + private readonly static bool CorpseDefaultValue = false; + + private bool corpse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Corpse { + get { if ((_hasBits0 & 134217728) != 0) { return corpse_; } else { return CorpseDefaultValue; } } + set { + _hasBits0 |= 134217728; + corpse_ = value; + } + } + /// Gets whether the "corpse" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCorpse { + get { return (_hasBits0 & 134217728) != 0; } + } + /// Clears the value of the "corpse" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCorpse() { + _hasBits0 &= ~134217728; + } + + /// Field number for the "player_corpse" field. + public const int PlayerCorpseFieldNumber = 43; + private readonly static bool PlayerCorpseDefaultValue = false; + + private bool playerCorpse_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool PlayerCorpse { + get { if ((_hasBits0 & 268435456) != 0) { return playerCorpse_; } else { return PlayerCorpseDefaultValue; } } + set { + _hasBits0 |= 268435456; + playerCorpse_ = value; + } + } + /// Gets whether the "player_corpse" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPlayerCorpse { + get { return (_hasBits0 & 268435456) != 0; } + } + /// Clears the value of the "player_corpse" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPlayerCorpse() { + _hasBits0 &= ~268435456; + } + + /// Field number for the "cyclopediaitem" field. + public const int CyclopediaitemFieldNumber = 44; + private global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia cyclopediaitem_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia Cyclopediaitem { + get { return cyclopediaitem_; } + set { + cyclopediaitem_ = value; + } + } + + /// Field number for the "ammo" field. + public const int AmmoFieldNumber = 45; + private readonly static bool AmmoDefaultValue = false; + + private bool ammo_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Ammo { + get { if ((_hasBits0 & 536870912) != 0) { return ammo_; } else { return AmmoDefaultValue; } } + set { + _hasBits0 |= 536870912; + ammo_ = value; + } + } + /// Gets whether the "ammo" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAmmo { + get { return (_hasBits0 & 536870912) != 0; } + } + /// Clears the value of the "ammo" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAmmo() { + _hasBits0 &= ~536870912; + } + + /// Field number for the "show_off_socket" field. + public const int ShowOffSocketFieldNumber = 46; + private readonly static bool ShowOffSocketDefaultValue = false; + + private bool showOffSocket_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ShowOffSocket { + get { if ((_hasBits0 & 1073741824) != 0) { return showOffSocket_; } else { return ShowOffSocketDefaultValue; } } + set { + _hasBits0 |= 1073741824; + showOffSocket_ = value; + } + } + /// Gets whether the "show_off_socket" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasShowOffSocket { + get { return (_hasBits0 & 1073741824) != 0; } + } + /// Clears the value of the "show_off_socket" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearShowOffSocket() { + _hasBits0 &= ~1073741824; + } + + /// Field number for the "reportable" field. + public const int ReportableFieldNumber = 47; + private readonly static bool ReportableDefaultValue = false; + + private bool reportable_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Reportable { + get { if ((_hasBits0 & -2147483648) != 0) { return reportable_; } else { return ReportableDefaultValue; } } + set { + _hasBits0 |= -2147483648; + reportable_ = value; + } + } + /// Gets whether the "reportable" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReportable { + get { return (_hasBits0 & -2147483648) != 0; } + } + /// Clears the value of the "reportable" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReportable() { + _hasBits0 &= ~-2147483648; + } + + /// Field number for the "upgradeclassification" field. + public const int UpgradeclassificationFieldNumber = 48; + private global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification upgradeclassification_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification Upgradeclassification { + get { return upgradeclassification_; } + set { + upgradeclassification_ = value; + } + } + + /// Field number for the "reverse_addons_east" field. + public const int ReverseAddonsEastFieldNumber = 49; + private readonly static bool ReverseAddonsEastDefaultValue = false; + + private bool reverseAddonsEast_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ReverseAddonsEast { + get { if ((_hasBits1 & 1) != 0) { return reverseAddonsEast_; } else { return ReverseAddonsEastDefaultValue; } } + set { + _hasBits1 |= 1; + reverseAddonsEast_ = value; + } + } + /// Gets whether the "reverse_addons_east" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReverseAddonsEast { + get { return (_hasBits1 & 1) != 0; } + } + /// Clears the value of the "reverse_addons_east" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReverseAddonsEast() { + _hasBits1 &= ~1; + } + + /// Field number for the "reverse_addons_west" field. + public const int ReverseAddonsWestFieldNumber = 50; + private readonly static bool ReverseAddonsWestDefaultValue = false; + + private bool reverseAddonsWest_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ReverseAddonsWest { + get { if ((_hasBits1 & 2) != 0) { return reverseAddonsWest_; } else { return ReverseAddonsWestDefaultValue; } } + set { + _hasBits1 |= 2; + reverseAddonsWest_ = value; + } + } + /// Gets whether the "reverse_addons_west" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReverseAddonsWest { + get { return (_hasBits1 & 2) != 0; } + } + /// Clears the value of the "reverse_addons_west" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReverseAddonsWest() { + _hasBits1 &= ~2; + } + + /// Field number for the "reverse_addons_south" field. + public const int ReverseAddonsSouthFieldNumber = 51; + private readonly static bool ReverseAddonsSouthDefaultValue = false; + + private bool reverseAddonsSouth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ReverseAddonsSouth { + get { if ((_hasBits1 & 4) != 0) { return reverseAddonsSouth_; } else { return ReverseAddonsSouthDefaultValue; } } + set { + _hasBits1 |= 4; + reverseAddonsSouth_ = value; + } + } + /// Gets whether the "reverse_addons_south" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReverseAddonsSouth { + get { return (_hasBits1 & 4) != 0; } + } + /// Clears the value of the "reverse_addons_south" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReverseAddonsSouth() { + _hasBits1 &= ~4; + } + + /// Field number for the "reverse_addons_north" field. + public const int ReverseAddonsNorthFieldNumber = 52; + private readonly static bool ReverseAddonsNorthDefaultValue = false; + + private bool reverseAddonsNorth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool ReverseAddonsNorth { + get { if ((_hasBits1 & 8) != 0) { return reverseAddonsNorth_; } else { return ReverseAddonsNorthDefaultValue; } } + set { + _hasBits1 |= 8; + reverseAddonsNorth_ = value; + } + } + /// Gets whether the "reverse_addons_north" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasReverseAddonsNorth { + get { return (_hasBits1 & 8) != 0; } + } + /// Clears the value of the "reverse_addons_north" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearReverseAddonsNorth() { + _hasBits1 &= ~8; + } + + /// Field number for the "wearout" field. + public const int WearoutFieldNumber = 53; + private readonly static bool WearoutDefaultValue = false; + + private bool wearout_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Wearout { + get { if ((_hasBits1 & 16) != 0) { return wearout_; } else { return WearoutDefaultValue; } } + set { + _hasBits1 |= 16; + wearout_ = value; + } + } + /// Gets whether the "wearout" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWearout { + get { return (_hasBits1 & 16) != 0; } + } + /// Clears the value of the "wearout" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWearout() { + _hasBits1 &= ~16; + } + + /// Field number for the "clockexpire" field. + public const int ClockexpireFieldNumber = 54; + private readonly static bool ClockexpireDefaultValue = false; + + private bool clockexpire_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Clockexpire { + get { if ((_hasBits1 & 32) != 0) { return clockexpire_; } else { return ClockexpireDefaultValue; } } + set { + _hasBits1 |= 32; + clockexpire_ = value; + } + } + /// Gets whether the "clockexpire" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasClockexpire { + get { return (_hasBits1 & 32) != 0; } + } + /// Clears the value of the "clockexpire" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearClockexpire() { + _hasBits1 &= ~32; + } + + /// Field number for the "expire" field. + public const int ExpireFieldNumber = 55; + private readonly static bool ExpireDefaultValue = false; + + private bool expire_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Expire { + get { if ((_hasBits1 & 64) != 0) { return expire_; } else { return ExpireDefaultValue; } } + set { + _hasBits1 |= 64; + expire_ = value; + } + } + /// Gets whether the "expire" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExpire { + get { return (_hasBits1 & 64) != 0; } + } + /// Clears the value of the "expire" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExpire() { + _hasBits1 &= ~64; + } + + /// Field number for the "expirestop" field. + public const int ExpirestopFieldNumber = 56; + private readonly static bool ExpirestopDefaultValue = false; + + private bool expirestop_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Expirestop { + get { if ((_hasBits1 & 128) != 0) { return expirestop_; } else { return ExpirestopDefaultValue; } } + set { + _hasBits1 |= 128; + expirestop_ = value; + } + } + /// Gets whether the "expirestop" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasExpirestop { + get { return (_hasBits1 & 128) != 0; } + } + /// Clears the value of the "expirestop" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearExpirestop() { + _hasBits1 &= ~128; + } + + /// Field number for the "deco_item_kit" field. + public const int DecoItemKitFieldNumber = 57; + private readonly static bool DecoItemKitDefaultValue = false; + + private bool decoItemKit_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool DecoItemKit { + get { if ((_hasBits1 & 256) != 0) { return decoItemKit_; } else { return DecoItemKitDefaultValue; } } + set { + _hasBits1 |= 256; + decoItemKit_ = value; + } + } + /// Gets whether the "deco_item_kit" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDecoItemKit { + get { return (_hasBits1 & 256) != 0; } + } + /// Clears the value of the "deco_item_kit" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDecoItemKit() { + _hasBits1 &= ~256; + } + + /// Field number for the "hook_south" field. + public const int HookSouthFieldNumber = 58; + private readonly static bool HookSouthDefaultValue = false; + + private bool hookSouth_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HookSouth { + get { if ((_hasBits1 & 512) != 0) { return hookSouth_; } else { return HookSouthDefaultValue; } } + set { + _hasBits1 |= 512; + hookSouth_ = value; + } + } + /// Gets whether the "hook_south" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHookSouth { + get { return (_hasBits1 & 512) != 0; } + } + /// Clears the value of the "hook_south" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHookSouth() { + _hasBits1 &= ~512; + } + + /// Field number for the "hook_east" field. + public const int HookEastFieldNumber = 59; + private readonly static bool HookEastDefaultValue = false; + + private bool hookEast_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HookEast { + get { if ((_hasBits1 & 1024) != 0) { return hookEast_; } else { return HookEastDefaultValue; } } + set { + _hasBits1 |= 1024; + hookEast_ = value; + } + } + /// Gets whether the "hook_east" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasHookEast { + get { return (_hasBits1 & 1024) != 0; } + } + /// Clears the value of the "hook_east" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearHookEast() { + _hasBits1 &= ~1024; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlags); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlags other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Bank, other.Bank)) return false; + if (Clip != other.Clip) return false; + if (Bottom != other.Bottom) return false; + if (Top != other.Top) return false; + if (Container != other.Container) return false; + if (Cumulative != other.Cumulative) return false; + if (Usable != other.Usable) return false; + if (Forceuse != other.Forceuse) return false; + if (Multiuse != other.Multiuse) return false; + if (!object.Equals(Write, other.Write)) return false; + if (!object.Equals(WriteOnce, other.WriteOnce)) return false; + if (Liquidpool != other.Liquidpool) return false; + if (Unpass != other.Unpass) return false; + if (Unmove != other.Unmove) return false; + if (Unsight != other.Unsight) return false; + if (Avoid != other.Avoid) return false; + if (NoMovementAnimation != other.NoMovementAnimation) return false; + if (Take != other.Take) return false; + if (Liquidcontainer != other.Liquidcontainer) return false; + if (Hang != other.Hang) return false; + if (!object.Equals(Hook, other.Hook)) return false; + if (Rotate != other.Rotate) return false; + if (!object.Equals(Light, other.Light)) return false; + if (DontHide != other.DontHide) return false; + if (Translucent != other.Translucent) return false; + if (!object.Equals(Shift, other.Shift)) return false; + if (!object.Equals(Height, other.Height)) return false; + if (LyingObject != other.LyingObject) return false; + if (AnimateAlways != other.AnimateAlways) return false; + if (!object.Equals(Automap, other.Automap)) return false; + if (!object.Equals(Lenshelp, other.Lenshelp)) return false; + if (Fullbank != other.Fullbank) return false; + if (IgnoreLook != other.IgnoreLook) return false; + if (!object.Equals(Clothes, other.Clothes)) return false; + if (!object.Equals(DefaultAction, other.DefaultAction)) return false; + if (!object.Equals(Market, other.Market)) return false; + if (Wrap != other.Wrap) return false; + if (Unwrap != other.Unwrap) return false; + if (Topeffect != other.Topeffect) return false; + if(!npcsaledata_.Equals(other.npcsaledata_)) return false; + if (!object.Equals(Changedtoexpire, other.Changedtoexpire)) return false; + if (Corpse != other.Corpse) return false; + if (PlayerCorpse != other.PlayerCorpse) return false; + if (!object.Equals(Cyclopediaitem, other.Cyclopediaitem)) return false; + if (Ammo != other.Ammo) return false; + if (ShowOffSocket != other.ShowOffSocket) return false; + if (Reportable != other.Reportable) return false; + if (!object.Equals(Upgradeclassification, other.Upgradeclassification)) return false; + if (ReverseAddonsEast != other.ReverseAddonsEast) return false; + if (ReverseAddonsWest != other.ReverseAddonsWest) return false; + if (ReverseAddonsSouth != other.ReverseAddonsSouth) return false; + if (ReverseAddonsNorth != other.ReverseAddonsNorth) return false; + if (Wearout != other.Wearout) return false; + if (Clockexpire != other.Clockexpire) return false; + if (Expire != other.Expire) return false; + if (Expirestop != other.Expirestop) return false; + if (DecoItemKit != other.DecoItemKit) return false; + if (HookSouth != other.HookSouth) return false; + if (HookEast != other.HookEast) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (bank_ != null) hash ^= Bank.GetHashCode(); + if (HasClip) hash ^= Clip.GetHashCode(); + if (HasBottom) hash ^= Bottom.GetHashCode(); + if (HasTop) hash ^= Top.GetHashCode(); + if (HasContainer) hash ^= Container.GetHashCode(); + if (HasCumulative) hash ^= Cumulative.GetHashCode(); + if (HasUsable) hash ^= Usable.GetHashCode(); + if (HasForceuse) hash ^= Forceuse.GetHashCode(); + if (HasMultiuse) hash ^= Multiuse.GetHashCode(); + if (write_ != null) hash ^= Write.GetHashCode(); + if (writeOnce_ != null) hash ^= WriteOnce.GetHashCode(); + if (HasLiquidpool) hash ^= Liquidpool.GetHashCode(); + if (HasUnpass) hash ^= Unpass.GetHashCode(); + if (HasUnmove) hash ^= Unmove.GetHashCode(); + if (HasUnsight) hash ^= Unsight.GetHashCode(); + if (HasAvoid) hash ^= Avoid.GetHashCode(); + if (HasNoMovementAnimation) hash ^= NoMovementAnimation.GetHashCode(); + if (HasTake) hash ^= Take.GetHashCode(); + if (HasLiquidcontainer) hash ^= Liquidcontainer.GetHashCode(); + if (HasHang) hash ^= Hang.GetHashCode(); + if (hook_ != null) hash ^= Hook.GetHashCode(); + if (HasRotate) hash ^= Rotate.GetHashCode(); + if (light_ != null) hash ^= Light.GetHashCode(); + if (HasDontHide) hash ^= DontHide.GetHashCode(); + if (HasTranslucent) hash ^= Translucent.GetHashCode(); + if (shift_ != null) hash ^= Shift.GetHashCode(); + if (height_ != null) hash ^= Height.GetHashCode(); + if (HasLyingObject) hash ^= LyingObject.GetHashCode(); + if (HasAnimateAlways) hash ^= AnimateAlways.GetHashCode(); + if (automap_ != null) hash ^= Automap.GetHashCode(); + if (lenshelp_ != null) hash ^= Lenshelp.GetHashCode(); + if (HasFullbank) hash ^= Fullbank.GetHashCode(); + if (HasIgnoreLook) hash ^= IgnoreLook.GetHashCode(); + if (clothes_ != null) hash ^= Clothes.GetHashCode(); + if (defaultAction_ != null) hash ^= DefaultAction.GetHashCode(); + if (market_ != null) hash ^= Market.GetHashCode(); + if (HasWrap) hash ^= Wrap.GetHashCode(); + if (HasUnwrap) hash ^= Unwrap.GetHashCode(); + if (HasTopeffect) hash ^= Topeffect.GetHashCode(); + hash ^= npcsaledata_.GetHashCode(); + if (changedtoexpire_ != null) hash ^= Changedtoexpire.GetHashCode(); + if (HasCorpse) hash ^= Corpse.GetHashCode(); + if (HasPlayerCorpse) hash ^= PlayerCorpse.GetHashCode(); + if (cyclopediaitem_ != null) hash ^= Cyclopediaitem.GetHashCode(); + if (HasAmmo) hash ^= Ammo.GetHashCode(); + if (HasShowOffSocket) hash ^= ShowOffSocket.GetHashCode(); + if (HasReportable) hash ^= Reportable.GetHashCode(); + if (upgradeclassification_ != null) hash ^= Upgradeclassification.GetHashCode(); + if (HasReverseAddonsEast) hash ^= ReverseAddonsEast.GetHashCode(); + if (HasReverseAddonsWest) hash ^= ReverseAddonsWest.GetHashCode(); + if (HasReverseAddonsSouth) hash ^= ReverseAddonsSouth.GetHashCode(); + if (HasReverseAddonsNorth) hash ^= ReverseAddonsNorth.GetHashCode(); + if (HasWearout) hash ^= Wearout.GetHashCode(); + if (HasClockexpire) hash ^= Clockexpire.GetHashCode(); + if (HasExpire) hash ^= Expire.GetHashCode(); + if (HasExpirestop) hash ^= Expirestop.GetHashCode(); + if (HasDecoItemKit) hash ^= DecoItemKit.GetHashCode(); + if (HasHookSouth) hash ^= HookSouth.GetHashCode(); + if (HasHookEast) hash ^= HookEast.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (bank_ != null) { output.WriteRawTag(10); output.WriteMessage(Bank); @@ -5593,854 +4865,983 @@ public void WriteTo(pb::CodedOutputStream output) output.WriteRawTag(192, 3); output.WriteBool(Expirestop); } - if (HasWrapkit) { + if (HasDecoItemKit) { output.WriteRawTag(200, 3); - output.WriteBool(Wrapkit); + output.WriteBool(DecoItemKit); + } + if (HasHookSouth) { + output.WriteRawTag(208, 3); + output.WriteBool(HookSouth); + } + if (HasHookEast) { + output.WriteRawTag(216, 3); + output.WriteBool(HookEast); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (bank_ != null) - { - output.WriteRawTag(10); - output.WriteMessage(Bank); - } - if (HasClip) - { - output.WriteRawTag(16); - output.WriteBool(Clip); - } - if (HasBottom) - { - output.WriteRawTag(24); - output.WriteBool(Bottom); - } - if (HasTop) - { - output.WriteRawTag(32); - output.WriteBool(Top); - } - if (HasContainer) - { - output.WriteRawTag(40); - output.WriteBool(Container); - } - if (HasCumulative) - { - output.WriteRawTag(48); - output.WriteBool(Cumulative); - } - if (HasUsable) - { - output.WriteRawTag(56); - output.WriteBool(Usable); - } - if (HasForceuse) - { - output.WriteRawTag(64); - output.WriteBool(Forceuse); - } - if (HasMultiuse) - { - output.WriteRawTag(72); - output.WriteBool(Multiuse); - } - if (write_ != null) - { - output.WriteRawTag(82); - output.WriteMessage(Write); - } - if (writeOnce_ != null) - { - output.WriteRawTag(90); - output.WriteMessage(WriteOnce); - } - if (HasLiquidpool) - { - output.WriteRawTag(96); - output.WriteBool(Liquidpool); - } - if (HasUnpass) - { - output.WriteRawTag(104); - output.WriteBool(Unpass); - } - if (HasUnmove) - { - output.WriteRawTag(112); - output.WriteBool(Unmove); - } - if (HasUnsight) - { - output.WriteRawTag(120); - output.WriteBool(Unsight); - } - if (HasAvoid) - { - output.WriteRawTag(128, 1); - output.WriteBool(Avoid); - } - if (HasNoMovementAnimation) - { - output.WriteRawTag(136, 1); - output.WriteBool(NoMovementAnimation); - } - if (HasTake) - { - output.WriteRawTag(144, 1); - output.WriteBool(Take); - } - if (HasLiquidcontainer) - { - output.WriteRawTag(152, 1); - output.WriteBool(Liquidcontainer); - } - if (HasHang) - { - output.WriteRawTag(160, 1); - output.WriteBool(Hang); - } - if (hook_ != null) - { - output.WriteRawTag(170, 1); - output.WriteMessage(Hook); - } - if (HasRotate) - { - output.WriteRawTag(176, 1); - output.WriteBool(Rotate); - } - if (light_ != null) - { - output.WriteRawTag(186, 1); - output.WriteMessage(Light); - } - if (HasDontHide) - { - output.WriteRawTag(192, 1); - output.WriteBool(DontHide); - } - if (HasTranslucent) - { - output.WriteRawTag(200, 1); - output.WriteBool(Translucent); - } - if (shift_ != null) - { - output.WriteRawTag(210, 1); - output.WriteMessage(Shift); - } - if (height_ != null) - { - output.WriteRawTag(218, 1); - output.WriteMessage(Height); - } - if (HasLyingObject) - { - output.WriteRawTag(224, 1); - output.WriteBool(LyingObject); - } - if (HasAnimateAlways) - { - output.WriteRawTag(232, 1); - output.WriteBool(AnimateAlways); - } - if (automap_ != null) - { - output.WriteRawTag(242, 1); - output.WriteMessage(Automap); - } - if (lenshelp_ != null) - { - output.WriteRawTag(250, 1); - output.WriteMessage(Lenshelp); - } - if (HasFullbank) - { - output.WriteRawTag(128, 2); - output.WriteBool(Fullbank); - } - if (HasIgnoreLook) - { - output.WriteRawTag(136, 2); - output.WriteBool(IgnoreLook); - } - if (clothes_ != null) - { - output.WriteRawTag(146, 2); - output.WriteMessage(Clothes); - } - if (defaultAction_ != null) - { - output.WriteRawTag(154, 2); - output.WriteMessage(DefaultAction); - } - if (market_ != null) - { - output.WriteRawTag(162, 2); - output.WriteMessage(Market); - } - if (HasWrap) - { - output.WriteRawTag(168, 2); - output.WriteBool(Wrap); - } - if (HasUnwrap) - { - output.WriteRawTag(176, 2); - output.WriteBool(Unwrap); - } - if (HasTopeffect) - { - output.WriteRawTag(184, 2); - output.WriteBool(Topeffect); - } - npcsaledata_.WriteTo(ref output, _repeated_npcsaledata_codec); - if (changedtoexpire_ != null) - { - output.WriteRawTag(202, 2); - output.WriteMessage(Changedtoexpire); - } - if (HasCorpse) - { - output.WriteRawTag(208, 2); - output.WriteBool(Corpse); - } - if (HasPlayerCorpse) - { - output.WriteRawTag(216, 2); - output.WriteBool(PlayerCorpse); - } - if (cyclopediaitem_ != null) - { - output.WriteRawTag(226, 2); - output.WriteMessage(Cyclopediaitem); - } - if (HasAmmo) - { - output.WriteRawTag(232, 2); - output.WriteBool(Ammo); - } - if (HasShowOffSocket) - { - output.WriteRawTag(240, 2); - output.WriteBool(ShowOffSocket); - } - if (HasReportable) - { - output.WriteRawTag(248, 2); - output.WriteBool(Reportable); - } - if (upgradeclassification_ != null) - { - output.WriteRawTag(130, 3); - output.WriteMessage(Upgradeclassification); - } - if (HasReverseAddonsEast) - { - output.WriteRawTag(136, 3); - output.WriteBool(ReverseAddonsEast); - } - if (HasReverseAddonsWest) - { - output.WriteRawTag(144, 3); - output.WriteBool(ReverseAddonsWest); - } - if (HasReverseAddonsSouth) - { - output.WriteRawTag(152, 3); - output.WriteBool(ReverseAddonsSouth); - } - if (HasReverseAddonsNorth) - { - output.WriteRawTag(160, 3); - output.WriteBool(ReverseAddonsNorth); - } - if (HasWearout) - { - output.WriteRawTag(168, 3); - output.WriteBool(Wearout); - } - if (HasClockexpire) - { - output.WriteRawTag(176, 3); - output.WriteBool(Clockexpire); - } - if (HasExpire) - { - output.WriteRawTag(184, 3); - output.WriteBool(Expire); - } - if (HasExpirestop) - { - output.WriteRawTag(192, 3); - output.WriteBool(Expirestop); - } - if (HasWrapkit) - { - output.WriteRawTag(200, 3); - output.WriteBool(Wrapkit); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (bank_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bank); - } - if (HasClip) - { - size += 1 + 1; - } - if (HasBottom) - { - size += 1 + 1; - } - if (HasTop) - { - size += 1 + 1; - } - if (HasContainer) - { - size += 1 + 1; - } - if (HasCumulative) - { - size += 1 + 1; - } - if (HasUsable) - { - size += 1 + 1; - } - if (HasForceuse) - { - size += 1 + 1; - } - if (HasMultiuse) - { - size += 1 + 1; - } - if (write_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Write); - } - if (writeOnce_ != null) - { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(WriteOnce); - } - if (HasLiquidpool) - { - size += 1 + 1; - } - if (HasUnpass) - { - size += 1 + 1; - } - if (HasUnmove) - { - size += 1 + 1; - } - if (HasUnsight) - { - size += 1 + 1; - } - if (HasAvoid) - { - size += 2 + 1; - } - if (HasNoMovementAnimation) - { - size += 2 + 1; - } - if (HasTake) - { - size += 2 + 1; - } - if (HasLiquidcontainer) - { - size += 2 + 1; - } - if (HasHang) - { - size += 2 + 1; - } - if (hook_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Hook); - } - if (HasRotate) - { - size += 2 + 1; - } - if (light_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Light); - } - if (HasDontHide) - { - size += 2 + 1; - } - if (HasTranslucent) - { - size += 2 + 1; - } - if (shift_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Shift); - } - if (height_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Height); - } - if (HasLyingObject) - { - size += 2 + 1; - } - if (HasAnimateAlways) - { - size += 2 + 1; - } - if (automap_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Automap); - } - if (lenshelp_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Lenshelp); - } - if (HasFullbank) - { - size += 2 + 1; - } - if (HasIgnoreLook) - { - size += 2 + 1; - } - if (clothes_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Clothes); - } - if (defaultAction_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(DefaultAction); - } - if (market_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Market); - } - if (HasWrap) - { - size += 2 + 1; - } - if (HasUnwrap) - { - size += 2 + 1; - } - if (HasTopeffect) - { - size += 2 + 1; - } - size += npcsaledata_.CalculateSize(_repeated_npcsaledata_codec); - if (changedtoexpire_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Changedtoexpire); - } - if (HasCorpse) - { - size += 2 + 1; - } - if (HasPlayerCorpse) - { - size += 2 + 1; - } - if (cyclopediaitem_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Cyclopediaitem); - } - if (HasAmmo) - { - size += 2 + 1; - } - if (HasShowOffSocket) - { - size += 2 + 1; - } - if (HasReportable) - { - size += 2 + 1; - } - if (upgradeclassification_ != null) - { - size += 2 + pb::CodedOutputStream.ComputeMessageSize(Upgradeclassification); - } - if (HasReverseAddonsEast) - { - size += 2 + 1; - } - if (HasReverseAddonsWest) - { - size += 2 + 1; - } - if (HasReverseAddonsSouth) - { - size += 2 + 1; - } - if (HasReverseAddonsNorth) - { - size += 2 + 1; - } - if (HasWearout) - { - size += 2 + 1; - } - if (HasClockexpire) - { - size += 2 + 1; - } - if (HasExpire) - { - size += 2 + 1; - } - if (HasExpirestop) - { - size += 2 + 1; - } - if (HasWrapkit) - { - size += 2 + 1; - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (bank_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Bank); + } + if (HasClip) { + output.WriteRawTag(16); + output.WriteBool(Clip); + } + if (HasBottom) { + output.WriteRawTag(24); + output.WriteBool(Bottom); + } + if (HasTop) { + output.WriteRawTag(32); + output.WriteBool(Top); + } + if (HasContainer) { + output.WriteRawTag(40); + output.WriteBool(Container); + } + if (HasCumulative) { + output.WriteRawTag(48); + output.WriteBool(Cumulative); + } + if (HasUsable) { + output.WriteRawTag(56); + output.WriteBool(Usable); + } + if (HasForceuse) { + output.WriteRawTag(64); + output.WriteBool(Forceuse); + } + if (HasMultiuse) { + output.WriteRawTag(72); + output.WriteBool(Multiuse); + } + if (write_ != null) { + output.WriteRawTag(82); + output.WriteMessage(Write); + } + if (writeOnce_ != null) { + output.WriteRawTag(90); + output.WriteMessage(WriteOnce); + } + if (HasLiquidpool) { + output.WriteRawTag(96); + output.WriteBool(Liquidpool); + } + if (HasUnpass) { + output.WriteRawTag(104); + output.WriteBool(Unpass); + } + if (HasUnmove) { + output.WriteRawTag(112); + output.WriteBool(Unmove); + } + if (HasUnsight) { + output.WriteRawTag(120); + output.WriteBool(Unsight); + } + if (HasAvoid) { + output.WriteRawTag(128, 1); + output.WriteBool(Avoid); + } + if (HasNoMovementAnimation) { + output.WriteRawTag(136, 1); + output.WriteBool(NoMovementAnimation); + } + if (HasTake) { + output.WriteRawTag(144, 1); + output.WriteBool(Take); + } + if (HasLiquidcontainer) { + output.WriteRawTag(152, 1); + output.WriteBool(Liquidcontainer); + } + if (HasHang) { + output.WriteRawTag(160, 1); + output.WriteBool(Hang); + } + if (hook_ != null) { + output.WriteRawTag(170, 1); + output.WriteMessage(Hook); + } + if (HasRotate) { + output.WriteRawTag(176, 1); + output.WriteBool(Rotate); + } + if (light_ != null) { + output.WriteRawTag(186, 1); + output.WriteMessage(Light); + } + if (HasDontHide) { + output.WriteRawTag(192, 1); + output.WriteBool(DontHide); + } + if (HasTranslucent) { + output.WriteRawTag(200, 1); + output.WriteBool(Translucent); + } + if (shift_ != null) { + output.WriteRawTag(210, 1); + output.WriteMessage(Shift); + } + if (height_ != null) { + output.WriteRawTag(218, 1); + output.WriteMessage(Height); + } + if (HasLyingObject) { + output.WriteRawTag(224, 1); + output.WriteBool(LyingObject); + } + if (HasAnimateAlways) { + output.WriteRawTag(232, 1); + output.WriteBool(AnimateAlways); + } + if (automap_ != null) { + output.WriteRawTag(242, 1); + output.WriteMessage(Automap); + } + if (lenshelp_ != null) { + output.WriteRawTag(250, 1); + output.WriteMessage(Lenshelp); + } + if (HasFullbank) { + output.WriteRawTag(128, 2); + output.WriteBool(Fullbank); + } + if (HasIgnoreLook) { + output.WriteRawTag(136, 2); + output.WriteBool(IgnoreLook); + } + if (clothes_ != null) { + output.WriteRawTag(146, 2); + output.WriteMessage(Clothes); + } + if (defaultAction_ != null) { + output.WriteRawTag(154, 2); + output.WriteMessage(DefaultAction); + } + if (market_ != null) { + output.WriteRawTag(162, 2); + output.WriteMessage(Market); + } + if (HasWrap) { + output.WriteRawTag(168, 2); + output.WriteBool(Wrap); + } + if (HasUnwrap) { + output.WriteRawTag(176, 2); + output.WriteBool(Unwrap); + } + if (HasTopeffect) { + output.WriteRawTag(184, 2); + output.WriteBool(Topeffect); + } + npcsaledata_.WriteTo(ref output, _repeated_npcsaledata_codec); + if (changedtoexpire_ != null) { + output.WriteRawTag(202, 2); + output.WriteMessage(Changedtoexpire); + } + if (HasCorpse) { + output.WriteRawTag(208, 2); + output.WriteBool(Corpse); + } + if (HasPlayerCorpse) { + output.WriteRawTag(216, 2); + output.WriteBool(PlayerCorpse); + } + if (cyclopediaitem_ != null) { + output.WriteRawTag(226, 2); + output.WriteMessage(Cyclopediaitem); + } + if (HasAmmo) { + output.WriteRawTag(232, 2); + output.WriteBool(Ammo); + } + if (HasShowOffSocket) { + output.WriteRawTag(240, 2); + output.WriteBool(ShowOffSocket); + } + if (HasReportable) { + output.WriteRawTag(248, 2); + output.WriteBool(Reportable); + } + if (upgradeclassification_ != null) { + output.WriteRawTag(130, 3); + output.WriteMessage(Upgradeclassification); + } + if (HasReverseAddonsEast) { + output.WriteRawTag(136, 3); + output.WriteBool(ReverseAddonsEast); + } + if (HasReverseAddonsWest) { + output.WriteRawTag(144, 3); + output.WriteBool(ReverseAddonsWest); + } + if (HasReverseAddonsSouth) { + output.WriteRawTag(152, 3); + output.WriteBool(ReverseAddonsSouth); + } + if (HasReverseAddonsNorth) { + output.WriteRawTag(160, 3); + output.WriteBool(ReverseAddonsNorth); + } + if (HasWearout) { + output.WriteRawTag(168, 3); + output.WriteBool(Wearout); + } + if (HasClockexpire) { + output.WriteRawTag(176, 3); + output.WriteBool(Clockexpire); + } + if (HasExpire) { + output.WriteRawTag(184, 3); + output.WriteBool(Expire); + } + if (HasExpirestop) { + output.WriteRawTag(192, 3); + output.WriteBool(Expirestop); + } + if (HasDecoItemKit) { + output.WriteRawTag(200, 3); + output.WriteBool(DecoItemKit); + } + if (HasHookSouth) { + output.WriteRawTag(208, 3); + output.WriteBool(HookSouth); + } + if (HasHookEast) { + output.WriteRawTag(216, 3); + output.WriteBool(HookEast); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (bank_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bank); + } + if (HasClip) { + size += 1 + 1; + } + if (HasBottom) { + size += 1 + 1; + } + if (HasTop) { + size += 1 + 1; + } + if (HasContainer) { + size += 1 + 1; + } + if (HasCumulative) { + size += 1 + 1; + } + if (HasUsable) { + size += 1 + 1; + } + if (HasForceuse) { + size += 1 + 1; + } + if (HasMultiuse) { + size += 1 + 1; + } + if (write_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Write); + } + if (writeOnce_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(WriteOnce); + } + if (HasLiquidpool) { + size += 1 + 1; + } + if (HasUnpass) { + size += 1 + 1; + } + if (HasUnmove) { + size += 1 + 1; + } + if (HasUnsight) { + size += 1 + 1; + } + if (HasAvoid) { + size += 2 + 1; + } + if (HasNoMovementAnimation) { + size += 2 + 1; + } + if (HasTake) { + size += 2 + 1; + } + if (HasLiquidcontainer) { + size += 2 + 1; + } + if (HasHang) { + size += 2 + 1; + } + if (hook_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Hook); + } + if (HasRotate) { + size += 2 + 1; + } + if (light_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Light); + } + if (HasDontHide) { + size += 2 + 1; + } + if (HasTranslucent) { + size += 2 + 1; + } + if (shift_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Shift); + } + if (height_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Height); + } + if (HasLyingObject) { + size += 2 + 1; + } + if (HasAnimateAlways) { + size += 2 + 1; + } + if (automap_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Automap); + } + if (lenshelp_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Lenshelp); + } + if (HasFullbank) { + size += 2 + 1; + } + if (HasIgnoreLook) { + size += 2 + 1; + } + if (clothes_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Clothes); + } + if (defaultAction_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(DefaultAction); + } + if (market_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Market); + } + if (HasWrap) { + size += 2 + 1; + } + if (HasUnwrap) { + size += 2 + 1; + } + if (HasTopeffect) { + size += 2 + 1; + } + size += npcsaledata_.CalculateSize(_repeated_npcsaledata_codec); + if (changedtoexpire_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Changedtoexpire); + } + if (HasCorpse) { + size += 2 + 1; + } + if (HasPlayerCorpse) { + size += 2 + 1; + } + if (cyclopediaitem_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Cyclopediaitem); + } + if (HasAmmo) { + size += 2 + 1; + } + if (HasShowOffSocket) { + size += 2 + 1; + } + if (HasReportable) { + size += 2 + 1; + } + if (upgradeclassification_ != null) { + size += 2 + pb::CodedOutputStream.ComputeMessageSize(Upgradeclassification); + } + if (HasReverseAddonsEast) { + size += 2 + 1; + } + if (HasReverseAddonsWest) { + size += 2 + 1; + } + if (HasReverseAddonsSouth) { + size += 2 + 1; + } + if (HasReverseAddonsNorth) { + size += 2 + 1; + } + if (HasWearout) { + size += 2 + 1; + } + if (HasClockexpire) { + size += 2 + 1; + } + if (HasExpire) { + size += 2 + 1; + } + if (HasExpirestop) { + size += 2 + 1; + } + if (HasDecoItemKit) { + size += 2 + 1; + } + if (HasHookSouth) { + size += 2 + 1; + } + if (HasHookEast) { + size += 2 + 1; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlags other) { + if (other == null) { + return; + } + if (other.bank_ != null) { + if (bank_ == null) { + Bank = new global::Tibia.Protobuf.Appearances.AppearanceFlagBank(); + } + Bank.MergeFrom(other.Bank); + } + if (other.HasClip) { + Clip = other.Clip; + } + if (other.HasBottom) { + Bottom = other.Bottom; + } + if (other.HasTop) { + Top = other.Top; + } + if (other.HasContainer) { + Container = other.Container; + } + if (other.HasCumulative) { + Cumulative = other.Cumulative; + } + if (other.HasUsable) { + Usable = other.Usable; + } + if (other.HasForceuse) { + Forceuse = other.Forceuse; + } + if (other.HasMultiuse) { + Multiuse = other.Multiuse; + } + if (other.write_ != null) { + if (write_ == null) { + Write = new global::Tibia.Protobuf.Appearances.AppearanceFlagWrite(); + } + Write.MergeFrom(other.Write); + } + if (other.writeOnce_ != null) { + if (writeOnce_ == null) { + WriteOnce = new global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce(); + } + WriteOnce.MergeFrom(other.WriteOnce); + } + if (other.HasLiquidpool) { + Liquidpool = other.Liquidpool; + } + if (other.HasUnpass) { + Unpass = other.Unpass; + } + if (other.HasUnmove) { + Unmove = other.Unmove; + } + if (other.HasUnsight) { + Unsight = other.Unsight; + } + if (other.HasAvoid) { + Avoid = other.Avoid; + } + if (other.HasNoMovementAnimation) { + NoMovementAnimation = other.NoMovementAnimation; + } + if (other.HasTake) { + Take = other.Take; + } + if (other.HasLiquidcontainer) { + Liquidcontainer = other.Liquidcontainer; + } + if (other.HasHang) { + Hang = other.Hang; + } + if (other.hook_ != null) { + if (hook_ == null) { + Hook = new global::Tibia.Protobuf.Appearances.AppearanceFlagHook(); + } + Hook.MergeFrom(other.Hook); + } + if (other.HasRotate) { + Rotate = other.Rotate; + } + if (other.light_ != null) { + if (light_ == null) { + Light = new global::Tibia.Protobuf.Appearances.AppearanceFlagLight(); + } + Light.MergeFrom(other.Light); + } + if (other.HasDontHide) { + DontHide = other.DontHide; + } + if (other.HasTranslucent) { + Translucent = other.Translucent; + } + if (other.shift_ != null) { + if (shift_ == null) { + Shift = new global::Tibia.Protobuf.Appearances.AppearanceFlagShift(); + } + Shift.MergeFrom(other.Shift); + } + if (other.height_ != null) { + if (height_ == null) { + Height = new global::Tibia.Protobuf.Appearances.AppearanceFlagHeight(); + } + Height.MergeFrom(other.Height); + } + if (other.HasLyingObject) { + LyingObject = other.LyingObject; + } + if (other.HasAnimateAlways) { + AnimateAlways = other.AnimateAlways; + } + if (other.automap_ != null) { + if (automap_ == null) { + Automap = new global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap(); + } + Automap.MergeFrom(other.Automap); + } + if (other.lenshelp_ != null) { + if (lenshelp_ == null) { + Lenshelp = new global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp(); + } + Lenshelp.MergeFrom(other.Lenshelp); + } + if (other.HasFullbank) { + Fullbank = other.Fullbank; + } + if (other.HasIgnoreLook) { + IgnoreLook = other.IgnoreLook; + } + if (other.clothes_ != null) { + if (clothes_ == null) { + Clothes = new global::Tibia.Protobuf.Appearances.AppearanceFlagClothes(); + } + Clothes.MergeFrom(other.Clothes); + } + if (other.defaultAction_ != null) { + if (defaultAction_ == null) { + DefaultAction = new global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction(); + } + DefaultAction.MergeFrom(other.DefaultAction); + } + if (other.market_ != null) { + if (market_ == null) { + Market = new global::Tibia.Protobuf.Appearances.AppearanceFlagMarket(); + } + Market.MergeFrom(other.Market); + } + if (other.HasWrap) { + Wrap = other.Wrap; + } + if (other.HasUnwrap) { + Unwrap = other.Unwrap; + } + if (other.HasTopeffect) { + Topeffect = other.Topeffect; + } + npcsaledata_.Add(other.npcsaledata_); + if (other.changedtoexpire_ != null) { + if (changedtoexpire_ == null) { + Changedtoexpire = new global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire(); + } + Changedtoexpire.MergeFrom(other.Changedtoexpire); + } + if (other.HasCorpse) { + Corpse = other.Corpse; + } + if (other.HasPlayerCorpse) { + PlayerCorpse = other.PlayerCorpse; + } + if (other.cyclopediaitem_ != null) { + if (cyclopediaitem_ == null) { + Cyclopediaitem = new global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia(); } + Cyclopediaitem.MergeFrom(other.Cyclopediaitem); + } + if (other.HasAmmo) { + Ammo = other.Ammo; + } + if (other.HasShowOffSocket) { + ShowOffSocket = other.ShowOffSocket; + } + if (other.HasReportable) { + Reportable = other.Reportable; + } + if (other.upgradeclassification_ != null) { + if (upgradeclassification_ == null) { + Upgradeclassification = new global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification(); + } + Upgradeclassification.MergeFrom(other.Upgradeclassification); + } + if (other.HasReverseAddonsEast) { + ReverseAddonsEast = other.ReverseAddonsEast; + } + if (other.HasReverseAddonsWest) { + ReverseAddonsWest = other.ReverseAddonsWest; + } + if (other.HasReverseAddonsSouth) { + ReverseAddonsSouth = other.ReverseAddonsSouth; + } + if (other.HasReverseAddonsNorth) { + ReverseAddonsNorth = other.ReverseAddonsNorth; + } + if (other.HasWearout) { + Wearout = other.Wearout; + } + if (other.HasClockexpire) { + Clockexpire = other.Clockexpire; + } + if (other.HasExpire) { + Expire = other.Expire; + } + if (other.HasExpirestop) { + Expirestop = other.Expirestop; + } + if (other.HasDecoItemKit) { + DecoItemKit = other.DecoItemKit; + } + if (other.HasHookSouth) { + HookSouth = other.HookSouth; + } + if (other.HasHookEast) { + HookEast = other.HookEast; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlags other) - { - if (other == null) - { - return; - } - if (other.bank_ != null) - { - if (bank_ == null) - { - Bank = new global::Tibia.Protobuf.Appearances.AppearanceFlagBank(); - } - Bank.MergeFrom(other.Bank); - } - if (other.HasClip) - { - Clip = other.Clip; - } - if (other.HasBottom) - { - Bottom = other.Bottom; - } - if (other.HasTop) - { - Top = other.Top; - } - if (other.HasContainer) - { - Container = other.Container; - } - if (other.HasCumulative) - { - Cumulative = other.Cumulative; - } - if (other.HasUsable) - { - Usable = other.Usable; - } - if (other.HasForceuse) - { - Forceuse = other.Forceuse; - } - if (other.HasMultiuse) - { - Multiuse = other.Multiuse; - } - if (other.write_ != null) - { - if (write_ == null) - { - Write = new global::Tibia.Protobuf.Appearances.AppearanceFlagWrite(); - } - Write.MergeFrom(other.Write); - } - if (other.writeOnce_ != null) - { - if (writeOnce_ == null) - { - WriteOnce = new global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce(); - } - WriteOnce.MergeFrom(other.WriteOnce); - } - if (other.HasLiquidpool) - { - Liquidpool = other.Liquidpool; - } - if (other.HasUnpass) - { - Unpass = other.Unpass; - } - if (other.HasUnmove) - { - Unmove = other.Unmove; - } - if (other.HasUnsight) - { - Unsight = other.Unsight; - } - if (other.HasAvoid) - { - Avoid = other.Avoid; - } - if (other.HasNoMovementAnimation) - { - NoMovementAnimation = other.NoMovementAnimation; - } - if (other.HasTake) - { - Take = other.Take; - } - if (other.HasLiquidcontainer) - { - Liquidcontainer = other.Liquidcontainer; - } - if (other.HasHang) - { - Hang = other.Hang; - } - if (other.hook_ != null) - { - if (hook_ == null) - { - Hook = new global::Tibia.Protobuf.Appearances.AppearanceFlagHook(); - } - Hook.MergeFrom(other.Hook); - } - if (other.HasRotate) - { - Rotate = other.Rotate; - } - if (other.light_ != null) - { - if (light_ == null) - { - Light = new global::Tibia.Protobuf.Appearances.AppearanceFlagLight(); - } - Light.MergeFrom(other.Light); - } - if (other.HasDontHide) - { - DontHide = other.DontHide; - } - if (other.HasTranslucent) - { - Translucent = other.Translucent; - } - if (other.shift_ != null) - { - if (shift_ == null) - { - Shift = new global::Tibia.Protobuf.Appearances.AppearanceFlagShift(); - } - Shift.MergeFrom(other.Shift); - } - if (other.height_ != null) - { - if (height_ == null) - { - Height = new global::Tibia.Protobuf.Appearances.AppearanceFlagHeight(); - } - Height.MergeFrom(other.Height); - } - if (other.HasLyingObject) - { - LyingObject = other.LyingObject; - } - if (other.HasAnimateAlways) - { - AnimateAlways = other.AnimateAlways; - } - if (other.automap_ != null) - { - if (automap_ == null) - { - Automap = new global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap(); - } - Automap.MergeFrom(other.Automap); - } - if (other.lenshelp_ != null) - { - if (lenshelp_ == null) - { - Lenshelp = new global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp(); - } - Lenshelp.MergeFrom(other.Lenshelp); - } - if (other.HasFullbank) - { - Fullbank = other.Fullbank; - } - if (other.HasIgnoreLook) - { - IgnoreLook = other.IgnoreLook; - } - if (other.clothes_ != null) - { - if (clothes_ == null) - { - Clothes = new global::Tibia.Protobuf.Appearances.AppearanceFlagClothes(); - } - Clothes.MergeFrom(other.Clothes); - } - if (other.defaultAction_ != null) - { - if (defaultAction_ == null) - { - DefaultAction = new global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction(); - } - DefaultAction.MergeFrom(other.DefaultAction); - } - if (other.market_ != null) - { - if (market_ == null) - { - Market = new global::Tibia.Protobuf.Appearances.AppearanceFlagMarket(); - } - Market.MergeFrom(other.Market); - } - if (other.HasWrap) - { - Wrap = other.Wrap; - } - if (other.HasUnwrap) - { - Unwrap = other.Unwrap; - } - if (other.HasTopeffect) - { - Topeffect = other.Topeffect; - } - npcsaledata_.Add(other.npcsaledata_); - if (other.changedtoexpire_ != null) - { - if (changedtoexpire_ == null) - { - Changedtoexpire = new global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire(); - } - Changedtoexpire.MergeFrom(other.Changedtoexpire); - } - if (other.HasCorpse) - { - Corpse = other.Corpse; - } - if (other.HasPlayerCorpse) - { - PlayerCorpse = other.PlayerCorpse; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (bank_ == null) { + Bank = new global::Tibia.Protobuf.Appearances.AppearanceFlagBank(); } - if (other.cyclopediaitem_ != null) - { - if (cyclopediaitem_ == null) - { - Cyclopediaitem = new global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia(); - } - Cyclopediaitem.MergeFrom(other.Cyclopediaitem); + input.ReadMessage(Bank); + break; + } + case 16: { + Clip = input.ReadBool(); + break; + } + case 24: { + Bottom = input.ReadBool(); + break; + } + case 32: { + Top = input.ReadBool(); + break; + } + case 40: { + Container = input.ReadBool(); + break; + } + case 48: { + Cumulative = input.ReadBool(); + break; + } + case 56: { + Usable = input.ReadBool(); + break; + } + case 64: { + Forceuse = input.ReadBool(); + break; + } + case 72: { + Multiuse = input.ReadBool(); + break; + } + case 82: { + if (write_ == null) { + Write = new global::Tibia.Protobuf.Appearances.AppearanceFlagWrite(); } - if (other.HasAmmo) - { - Ammo = other.Ammo; + input.ReadMessage(Write); + break; + } + case 90: { + if (writeOnce_ == null) { + WriteOnce = new global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce(); } - if (other.HasShowOffSocket) - { - ShowOffSocket = other.ShowOffSocket; + input.ReadMessage(WriteOnce); + break; + } + case 96: { + Liquidpool = input.ReadBool(); + break; + } + case 104: { + Unpass = input.ReadBool(); + break; + } + case 112: { + Unmove = input.ReadBool(); + break; + } + case 120: { + Unsight = input.ReadBool(); + break; + } + case 128: { + Avoid = input.ReadBool(); + break; + } + case 136: { + NoMovementAnimation = input.ReadBool(); + break; + } + case 144: { + Take = input.ReadBool(); + break; + } + case 152: { + Liquidcontainer = input.ReadBool(); + break; + } + case 160: { + Hang = input.ReadBool(); + break; + } + case 170: { + if (hook_ == null) { + Hook = new global::Tibia.Protobuf.Appearances.AppearanceFlagHook(); } - if (other.HasReportable) - { - Reportable = other.Reportable; + input.ReadMessage(Hook); + break; + } + case 176: { + Rotate = input.ReadBool(); + break; + } + case 186: { + if (light_ == null) { + Light = new global::Tibia.Protobuf.Appearances.AppearanceFlagLight(); } - if (other.upgradeclassification_ != null) - { - if (upgradeclassification_ == null) - { - Upgradeclassification = new global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification(); - } - Upgradeclassification.MergeFrom(other.Upgradeclassification); + input.ReadMessage(Light); + break; + } + case 192: { + DontHide = input.ReadBool(); + break; + } + case 200: { + Translucent = input.ReadBool(); + break; + } + case 210: { + if (shift_ == null) { + Shift = new global::Tibia.Protobuf.Appearances.AppearanceFlagShift(); } - if (other.HasReverseAddonsEast) - { - ReverseAddonsEast = other.ReverseAddonsEast; + input.ReadMessage(Shift); + break; + } + case 218: { + if (height_ == null) { + Height = new global::Tibia.Protobuf.Appearances.AppearanceFlagHeight(); } - if (other.HasReverseAddonsWest) - { - ReverseAddonsWest = other.ReverseAddonsWest; + input.ReadMessage(Height); + break; + } + case 224: { + LyingObject = input.ReadBool(); + break; + } + case 232: { + AnimateAlways = input.ReadBool(); + break; + } + case 242: { + if (automap_ == null) { + Automap = new global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap(); } - if (other.HasReverseAddonsSouth) - { - ReverseAddonsSouth = other.ReverseAddonsSouth; + input.ReadMessage(Automap); + break; + } + case 250: { + if (lenshelp_ == null) { + Lenshelp = new global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp(); } - if (other.HasReverseAddonsNorth) - { - ReverseAddonsNorth = other.ReverseAddonsNorth; + input.ReadMessage(Lenshelp); + break; + } + case 256: { + Fullbank = input.ReadBool(); + break; + } + case 264: { + IgnoreLook = input.ReadBool(); + break; + } + case 274: { + if (clothes_ == null) { + Clothes = new global::Tibia.Protobuf.Appearances.AppearanceFlagClothes(); } - if (other.HasWearout) - { - Wearout = other.Wearout; + input.ReadMessage(Clothes); + break; + } + case 282: { + if (defaultAction_ == null) { + DefaultAction = new global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction(); } - if (other.HasClockexpire) - { - Clockexpire = other.Clockexpire; + input.ReadMessage(DefaultAction); + break; + } + case 290: { + if (market_ == null) { + Market = new global::Tibia.Protobuf.Appearances.AppearanceFlagMarket(); } - if (other.HasExpire) - { - Expire = other.Expire; + input.ReadMessage(Market); + break; + } + case 296: { + Wrap = input.ReadBool(); + break; + } + case 304: { + Unwrap = input.ReadBool(); + break; + } + case 312: { + Topeffect = input.ReadBool(); + break; + } + case 322: { + npcsaledata_.AddEntriesFrom(input, _repeated_npcsaledata_codec); + break; + } + case 330: { + if (changedtoexpire_ == null) { + Changedtoexpire = new global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire(); } - if (other.HasExpirestop) - { - Expirestop = other.Expirestop; + input.ReadMessage(Changedtoexpire); + break; + } + case 336: { + Corpse = input.ReadBool(); + break; + } + case 344: { + PlayerCorpse = input.ReadBool(); + break; + } + case 354: { + if (cyclopediaitem_ == null) { + Cyclopediaitem = new global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia(); } - if (other.HasWrapkit) - { - Wrapkit = other.Wrapkit; + input.ReadMessage(Cyclopediaitem); + break; + } + case 360: { + Ammo = input.ReadBool(); + break; + } + case 368: { + ShowOffSocket = input.ReadBool(); + break; + } + case 376: { + Reportable = input.ReadBool(); + break; + } + case 386: { + if (upgradeclassification_ == null) { + Upgradeclassification = new global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification(); } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + input.ReadMessage(Upgradeclassification); + break; + } + case 392: { + ReverseAddonsEast = input.ReadBool(); + break; + } + case 400: { + ReverseAddonsWest = input.ReadBool(); + break; + } + case 408: { + ReverseAddonsSouth = input.ReadBool(); + break; + } + case 416: { + ReverseAddonsNorth = input.ReadBool(); + break; + } + case 424: { + Wearout = input.ReadBool(); + break; + } + case 432: { + Clockexpire = input.ReadBool(); + break; + } + case 440: { + Expire = input.ReadBool(); + break; + } + case 448: { + Expirestop = input.ReadBool(); + break; + } + case 456: { + DecoItemKit = input.ReadBool(); + break; + } + case 464: { + HookSouth = input.ReadBool(); + break; + } + case 472: { + HookEast = input.ReadBool(); + break; + } } + } + #endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (bank_ == null) { @@ -6635,7 +6036,7 @@ public void MergeFrom(pb::CodedInputStream input) break; } case 322: { - npcsaledata_.AddEntriesFrom(input, _repeated_npcsaledata_codec); + npcsaledata_.AddEntriesFrom(ref input, _repeated_npcsaledata_codec); break; } case 330: { @@ -6712,818 +6113,199 @@ public void MergeFrom(pb::CodedInputStream input) break; } case 456: { - Wrapkit = input.ReadBool(); + DecoItemKit = input.ReadBool(); + break; + } + case 464: { + HookSouth = input.ReadBool(); + break; + } + case 472: { + HookEast = input.ReadBool(); break; } } } -#endif - } + } + #endif + + } + + public sealed partial class AppearanceFlagBank : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagBank()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[8]; } + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - { - if (bank_ == null) - { - Bank = new global::Tibia.Protobuf.Appearances.AppearanceFlagBank(); - } - input.ReadMessage(Bank); - break; - } - case 16: - { - Clip = input.ReadBool(); - break; - } - case 24: - { - Bottom = input.ReadBool(); - break; - } - case 32: - { - Top = input.ReadBool(); - break; - } - case 40: - { - Container = input.ReadBool(); - break; - } - case 48: - { - Cumulative = input.ReadBool(); - break; - } - case 56: - { - Usable = input.ReadBool(); - break; - } - case 64: - { - Forceuse = input.ReadBool(); - break; - } - case 72: - { - Multiuse = input.ReadBool(); - break; - } - case 82: - { - if (write_ == null) - { - Write = new global::Tibia.Protobuf.Appearances.AppearanceFlagWrite(); - } - input.ReadMessage(Write); - break; - } - case 90: - { - if (writeOnce_ == null) - { - WriteOnce = new global::Tibia.Protobuf.Appearances.AppearanceFlagWriteOnce(); - } - input.ReadMessage(WriteOnce); - break; - } - case 96: - { - Liquidpool = input.ReadBool(); - break; - } - case 104: - { - Unpass = input.ReadBool(); - break; - } - case 112: - { - Unmove = input.ReadBool(); - break; - } - case 120: - { - Unsight = input.ReadBool(); - break; - } - case 128: - { - Avoid = input.ReadBool(); - break; - } - case 136: - { - NoMovementAnimation = input.ReadBool(); - break; - } - case 144: - { - Take = input.ReadBool(); - break; - } - case 152: - { - Liquidcontainer = input.ReadBool(); - break; - } - case 160: - { - Hang = input.ReadBool(); - break; - } - case 170: - { - if (hook_ == null) - { - Hook = new global::Tibia.Protobuf.Appearances.AppearanceFlagHook(); - } - input.ReadMessage(Hook); - break; - } - case 176: - { - Rotate = input.ReadBool(); - break; - } - case 186: - { - if (light_ == null) - { - Light = new global::Tibia.Protobuf.Appearances.AppearanceFlagLight(); - } - input.ReadMessage(Light); - break; - } - case 192: - { - DontHide = input.ReadBool(); - break; - } - case 200: - { - Translucent = input.ReadBool(); - break; - } - case 210: - { - if (shift_ == null) - { - Shift = new global::Tibia.Protobuf.Appearances.AppearanceFlagShift(); - } - input.ReadMessage(Shift); - break; - } - case 218: - { - if (height_ == null) - { - Height = new global::Tibia.Protobuf.Appearances.AppearanceFlagHeight(); - } - input.ReadMessage(Height); - break; - } - case 224: - { - LyingObject = input.ReadBool(); - break; - } - case 232: - { - AnimateAlways = input.ReadBool(); - break; - } - case 242: - { - if (automap_ == null) - { - Automap = new global::Tibia.Protobuf.Appearances.AppearanceFlagAutomap(); - } - input.ReadMessage(Automap); - break; - } - case 250: - { - if (lenshelp_ == null) - { - Lenshelp = new global::Tibia.Protobuf.Appearances.AppearanceFlagLenshelp(); - } - input.ReadMessage(Lenshelp); - break; - } - case 256: - { - Fullbank = input.ReadBool(); - break; - } - case 264: - { - IgnoreLook = input.ReadBool(); - break; - } - case 274: - { - if (clothes_ == null) - { - Clothes = new global::Tibia.Protobuf.Appearances.AppearanceFlagClothes(); - } - input.ReadMessage(Clothes); - break; - } - case 282: - { - if (defaultAction_ == null) - { - DefaultAction = new global::Tibia.Protobuf.Appearances.AppearanceFlagDefaultAction(); - } - input.ReadMessage(DefaultAction); - break; - } - case 290: - { - if (market_ == null) - { - Market = new global::Tibia.Protobuf.Appearances.AppearanceFlagMarket(); - } - input.ReadMessage(Market); - break; - } - case 296: - { - Wrap = input.ReadBool(); - break; - } - case 304: - { - Unwrap = input.ReadBool(); - break; - } - case 312: - { - Topeffect = input.ReadBool(); - break; - } - case 322: - { - npcsaledata_.AddEntriesFrom(ref input, _repeated_npcsaledata_codec); - break; - } - case 330: - { - if (changedtoexpire_ == null) - { - Changedtoexpire = new global::Tibia.Protobuf.Appearances.AppearanceFlagChangedToExpire(); - } - input.ReadMessage(Changedtoexpire); - break; - } - case 336: - { - Corpse = input.ReadBool(); - break; - } - case 344: - { - PlayerCorpse = input.ReadBool(); - break; - } - case 354: - { - if (cyclopediaitem_ == null) - { - Cyclopediaitem = new global::Tibia.Protobuf.Appearances.AppearanceFlagCyclopedia(); - } - input.ReadMessage(Cyclopediaitem); - break; - } - case 360: - { - Ammo = input.ReadBool(); - break; - } - case 368: - { - ShowOffSocket = input.ReadBool(); - break; - } - case 376: - { - Reportable = input.ReadBool(); - break; - } - case 386: - { - if (upgradeclassification_ == null) - { - Upgradeclassification = new global::Tibia.Protobuf.Appearances.AppearanceFlagUpgradeClassification(); - } - input.ReadMessage(Upgradeclassification); - break; - } - case 392: - { - ReverseAddonsEast = input.ReadBool(); - break; - } - case 400: - { - ReverseAddonsWest = input.ReadBool(); - break; - } - case 408: - { - ReverseAddonsSouth = input.ReadBool(); - break; - } - case 416: - { - ReverseAddonsNorth = input.ReadBool(); - break; - } - case 424: - { - Wearout = input.ReadBool(); - break; - } - case 432: - { - Clockexpire = input.ReadBool(); - break; - } - case 440: - { - Expire = input.ReadBool(); - break; - } - case 448: - { - Expirestop = input.ReadBool(); - break; - } - case 456: - { - Wrapkit = input.ReadBool(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagUpgradeClassification : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagUpgradeClassification()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[9]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagBank() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagUpgradeClassification() - { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagBank(AppearanceFlagBank other) : this() { + _hasBits0 = other._hasBits0; + waypoints_ = other.waypoints_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagUpgradeClassification(AppearanceFlagUpgradeClassification other) : this() - { - _hasBits0 = other._hasBits0; - upgradeClassification_ = other.upgradeClassification_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagBank Clone() { + return new AppearanceFlagBank(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagUpgradeClassification Clone() - { - return new AppearanceFlagUpgradeClassification(this); - } + /// Field number for the "waypoints" field. + public const int WaypointsFieldNumber = 1; + private readonly static uint WaypointsDefaultValue = 0; - /// Field number for the "upgrade_classification" field. - public const int UpgradeClassificationFieldNumber = 1; - private readonly static uint UpgradeClassificationDefaultValue = 0; - - private uint upgradeClassification_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint UpgradeClassification - { - get { if ((_hasBits0 & 1) != 0) { return upgradeClassification_; } else { return UpgradeClassificationDefaultValue; } } - set - { - _hasBits0 |= 1; - upgradeClassification_ = value; - } - } - /// Gets whether the "upgrade_classification" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasUpgradeClassification - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "upgrade_classification" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearUpgradeClassification() - { - _hasBits0 &= ~1; - } + private uint waypoints_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Waypoints { + get { if ((_hasBits0 & 1) != 0) { return waypoints_; } else { return WaypointsDefaultValue; } } + set { + _hasBits0 |= 1; + waypoints_ = value; + } + } + /// Gets whether the "waypoints" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasWaypoints { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "waypoints" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearWaypoints() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagUpgradeClassification); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagBank); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagUpgradeClassification other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (UpgradeClassification != other.UpgradeClassification) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagBank other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Waypoints != other.Waypoints) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasUpgradeClassification) hash ^= UpgradeClassification.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasWaypoints) hash ^= Waypoints.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else - if (HasUpgradeClassification) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasWaypoints) { output.WriteRawTag(8); - output.WriteUInt32(UpgradeClassification); + output.WriteUInt32(Waypoints); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } - -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasUpgradeClassification) - { - output.WriteRawTag(8); - output.WriteUInt32(UpgradeClassification); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasUpgradeClassification) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UpgradeClassification); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagUpgradeClassification other) - { - if (other == null) - { - return; - } - if (other.HasUpgradeClassification) - { - UpgradeClassification = other.UpgradeClassification; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else - uint tag; - while ((tag = input.ReadTag()) != 0) { - switch(tag) { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - UpgradeClassification = input.ReadUInt32(); - break; - } - } - } -#endif - } - -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - UpgradeClassification = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagBank : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagBank()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[10]; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagBank() - { - OnConstruction(); - } - - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagBank(AppearanceFlagBank other) : this() - { - _hasBits0 = other._hasBits0; - waypoints_ = other.waypoints_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagBank Clone() - { - return new AppearanceFlagBank(this); - } - - /// Field number for the "waypoints" field. - public const int WaypointsFieldNumber = 1; - private readonly static uint WaypointsDefaultValue = 0; - - private uint waypoints_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Waypoints - { - get { if ((_hasBits0 & 1) != 0) { return waypoints_; } else { return WaypointsDefaultValue; } } - set - { - _hasBits0 |= 1; - waypoints_ = value; - } - } - /// Gets whether the "waypoints" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasWaypoints - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "waypoints" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearWaypoints() - { - _hasBits0 &= ~1; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagBank); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagBank other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Waypoints != other.Waypoints) return false; - return Equals(_unknownFields, other._unknownFields); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasWaypoints) hash ^= Waypoints.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + #endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasWaypoints) { output.WriteRawTag(8); output.WriteUInt32(Waypoints); } if (_unknownFields != null) { - _unknownFields.WriteTo(output); + _unknownFields.WriteTo(ref output); } -#endif - } + } + #endif -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasWaypoints) - { - output.WriteRawTag(8); - output.WriteUInt32(Waypoints); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasWaypoints) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Waypoints); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasWaypoints) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Waypoints); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagBank other) - { - if (other == null) - { - return; - } - if (other.HasWaypoints) - { - Waypoints = other.Waypoints; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagBank other) { + if (other == null) { + return; + } + if (other.HasWaypoints) { + Waypoints = other.Waypoints; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Waypoints = input.ReadUInt32(); + break; + } } + } + #endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Waypoints = input.ReadUInt32(); @@ -7531,166 +6313,112 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + } + #endif + + } + + public sealed partial class AppearanceFlagWrite : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagWrite()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[9]; } + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Waypoints = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagWrite : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagWrite()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[11]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagWrite() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagWrite() - { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagWrite(AppearanceFlagWrite other) : this() { + _hasBits0 = other._hasBits0; + maxTextLength_ = other.maxTextLength_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagWrite(AppearanceFlagWrite other) : this() - { - _hasBits0 = other._hasBits0; - maxTextLength_ = other.maxTextLength_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagWrite Clone() { + return new AppearanceFlagWrite(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagWrite Clone() - { - return new AppearanceFlagWrite(this); - } + /// Field number for the "max_text_length" field. + public const int MaxTextLengthFieldNumber = 1; + private readonly static uint MaxTextLengthDefaultValue = 0; - /// Field number for the "max_text_length" field. - public const int MaxTextLengthFieldNumber = 1; - private readonly static uint MaxTextLengthDefaultValue = 0; - - private uint maxTextLength_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MaxTextLength - { - get { if ((_hasBits0 & 1) != 0) { return maxTextLength_; } else { return MaxTextLengthDefaultValue; } } - set - { - _hasBits0 |= 1; - maxTextLength_ = value; - } - } - /// Gets whether the "max_text_length" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMaxTextLength - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "max_text_length" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMaxTextLength() - { - _hasBits0 &= ~1; - } + private uint maxTextLength_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MaxTextLength { + get { if ((_hasBits0 & 1) != 0) { return maxTextLength_; } else { return MaxTextLengthDefaultValue; } } + set { + _hasBits0 |= 1; + maxTextLength_ = value; + } + } + /// Gets whether the "max_text_length" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxTextLength { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "max_text_length" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxTextLength() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagWrite); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagWrite); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagWrite other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (MaxTextLength != other.MaxTextLength) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagWrite other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxTextLength != other.MaxTextLength) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasMaxTextLength) hash ^= MaxTextLength.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMaxTextLength) hash ^= MaxTextLength.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasMaxTextLength) { output.WriteRawTag(8); output.WriteUInt32(MaxTextLength); @@ -7698,64 +6426,50 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasMaxTextLength) - { - output.WriteRawTag(8); - output.WriteUInt32(MaxTextLength); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasMaxTextLength) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxTextLength); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMaxTextLength) { + output.WriteRawTag(8); + output.WriteUInt32(MaxTextLength); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagWrite other) - { - if (other == null) - { - return; - } - if (other.HasMaxTextLength) - { - MaxTextLength = other.MaxTextLength; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMaxTextLength) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxTextLength); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagWrite other) { + if (other == null) { + return; + } + if (other.HasMaxTextLength) { + MaxTextLength = other.MaxTextLength; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -7768,166 +6482,130 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - MaxTextLength = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagWriteOnce : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagWriteOnce()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[12]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MaxTextLength = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagWriteOnce : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagWriteOnce()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[10]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagWriteOnce() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagWriteOnce() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagWriteOnce(AppearanceFlagWriteOnce other) : this() - { - _hasBits0 = other._hasBits0; - maxTextLengthOnce_ = other.maxTextLengthOnce_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagWriteOnce(AppearanceFlagWriteOnce other) : this() { + _hasBits0 = other._hasBits0; + maxTextLengthOnce_ = other.maxTextLengthOnce_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagWriteOnce Clone() - { - return new AppearanceFlagWriteOnce(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagWriteOnce Clone() { + return new AppearanceFlagWriteOnce(this); + } - /// Field number for the "max_text_length_once" field. - public const int MaxTextLengthOnceFieldNumber = 1; - private readonly static uint MaxTextLengthOnceDefaultValue = 0; - - private uint maxTextLengthOnce_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MaxTextLengthOnce - { - get { if ((_hasBits0 & 1) != 0) { return maxTextLengthOnce_; } else { return MaxTextLengthOnceDefaultValue; } } - set - { - _hasBits0 |= 1; - maxTextLengthOnce_ = value; - } - } - /// Gets whether the "max_text_length_once" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMaxTextLengthOnce - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "max_text_length_once" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMaxTextLengthOnce() - { - _hasBits0 &= ~1; - } + /// Field number for the "max_text_length_once" field. + public const int MaxTextLengthOnceFieldNumber = 1; + private readonly static uint MaxTextLengthOnceDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagWriteOnce); - } + private uint maxTextLengthOnce_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MaxTextLengthOnce { + get { if ((_hasBits0 & 1) != 0) { return maxTextLengthOnce_; } else { return MaxTextLengthOnceDefaultValue; } } + set { + _hasBits0 |= 1; + maxTextLengthOnce_ = value; + } + } + /// Gets whether the "max_text_length_once" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMaxTextLengthOnce { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "max_text_length_once" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMaxTextLengthOnce() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagWriteOnce other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (MaxTextLengthOnce != other.MaxTextLengthOnce) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagWriteOnce); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasMaxTextLengthOnce) hash ^= MaxTextLengthOnce.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagWriteOnce other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (MaxTextLengthOnce != other.MaxTextLengthOnce) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasMaxTextLengthOnce) hash ^= MaxTextLengthOnce.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasMaxTextLengthOnce) { output.WriteRawTag(8); output.WriteUInt32(MaxTextLengthOnce); @@ -7935,64 +6613,50 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasMaxTextLengthOnce) - { - output.WriteRawTag(8); - output.WriteUInt32(MaxTextLengthOnce); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasMaxTextLengthOnce) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxTextLengthOnce); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasMaxTextLengthOnce) { + output.WriteRawTag(8); + output.WriteUInt32(MaxTextLengthOnce); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagWriteOnce other) - { - if (other == null) - { - return; - } - if (other.HasMaxTextLengthOnce) - { - MaxTextLengthOnce = other.MaxTextLengthOnce; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasMaxTextLengthOnce) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxTextLengthOnce); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagWriteOnce other) { + if (other == null) { + return; + } + if (other.HasMaxTextLengthOnce) { + MaxTextLengthOnce = other.MaxTextLengthOnce; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8005,200 +6669,157 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - MaxTextLengthOnce = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagLight : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagLight()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[13]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + MaxTextLengthOnce = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagLight : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagLight()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[11]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagLight() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagLight() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagLight(AppearanceFlagLight other) : this() - { - _hasBits0 = other._hasBits0; - brightness_ = other.brightness_; - color_ = other.color_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagLight(AppearanceFlagLight other) : this() { + _hasBits0 = other._hasBits0; + brightness_ = other.brightness_; + color_ = other.color_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagLight Clone() - { - return new AppearanceFlagLight(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagLight Clone() { + return new AppearanceFlagLight(this); + } - /// Field number for the "brightness" field. - public const int BrightnessFieldNumber = 1; - private readonly static uint BrightnessDefaultValue = 0; - - private uint brightness_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Brightness - { - get { if ((_hasBits0 & 1) != 0) { return brightness_; } else { return BrightnessDefaultValue; } } - set - { - _hasBits0 |= 1; - brightness_ = value; - } - } - /// Gets whether the "brightness" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBrightness - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "brightness" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBrightness() - { - _hasBits0 &= ~1; - } + /// Field number for the "brightness" field. + public const int BrightnessFieldNumber = 1; + private readonly static uint BrightnessDefaultValue = 0; - /// Field number for the "color" field. - public const int ColorFieldNumber = 2; - private readonly static uint ColorDefaultValue = 0; - - private uint color_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Color - { - get { if ((_hasBits0 & 2) != 0) { return color_; } else { return ColorDefaultValue; } } - set - { - _hasBits0 |= 2; - color_ = value; - } - } - /// Gets whether the "color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasColor - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearColor() - { - _hasBits0 &= ~2; - } + private uint brightness_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Brightness { + get { if ((_hasBits0 & 1) != 0) { return brightness_; } else { return BrightnessDefaultValue; } } + set { + _hasBits0 |= 1; + brightness_ = value; + } + } + /// Gets whether the "brightness" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBrightness { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "brightness" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBrightness() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagLight); - } + /// Field number for the "color" field. + public const int ColorFieldNumber = 2; + private readonly static uint ColorDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagLight other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Brightness != other.Brightness) return false; - if (Color != other.Color) return false; - return Equals(_unknownFields, other._unknownFields); - } + private uint color_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Color { + get { if ((_hasBits0 & 2) != 0) { return color_; } else { return ColorDefaultValue; } } + set { + _hasBits0 |= 2; + color_ = value; + } + } + /// Gets whether the "color" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasColor { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "color" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearColor() { + _hasBits0 &= ~2; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasBrightness) hash ^= Brightness.GetHashCode(); - if (HasColor) hash ^= Color.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagLight); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagLight other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Brightness != other.Brightness) return false; + if (Color != other.Color) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasBrightness) hash ^= Brightness.GetHashCode(); + if (HasColor) hash ^= Color.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasBrightness) { output.WriteRawTag(8); output.WriteUInt32(Brightness); @@ -8210,82 +6831,87 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasBrightness) - { - output.WriteRawTag(8); - output.WriteUInt32(Brightness); - } - if (HasColor) - { - output.WriteRawTag(16); - output.WriteUInt32(Color); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasBrightness) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Brightness); - } - if (HasColor) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Color); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasBrightness) { + output.WriteRawTag(8); + output.WriteUInt32(Brightness); + } + if (HasColor) { + output.WriteRawTag(16); + output.WriteUInt32(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagLight other) - { - if (other == null) - { - return; - } - if (other.HasBrightness) - { - Brightness = other.Brightness; - } - if (other.HasColor) - { - Color = other.Color; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasBrightness) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Brightness); + } + if (HasColor) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Color); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagLight other) { + if (other == null) { + return; + } + if (other.HasBrightness) { + Brightness = other.Brightness; + } + if (other.HasColor) { + Color = other.Color; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Brightness = input.ReadUInt32(); + break; + } + case 16: { + Color = input.ReadUInt32(); + break; + } } + } + #endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Brightness = input.ReadUInt32(); @@ -8297,171 +6923,112 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + } + #endif + + } + + public sealed partial class AppearanceFlagHeight : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagHeight()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[12]; } + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Brightness = input.ReadUInt32(); - break; - } - case 16: - { - Color = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagHeight : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagHeight()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[14]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagHeight() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagHeight() - { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagHeight(AppearanceFlagHeight other) : this() { + _hasBits0 = other._hasBits0; + elevation_ = other.elevation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagHeight(AppearanceFlagHeight other) : this() - { - _hasBits0 = other._hasBits0; - elevation_ = other.elevation_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagHeight Clone() { + return new AppearanceFlagHeight(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagHeight Clone() - { - return new AppearanceFlagHeight(this); - } + /// Field number for the "elevation" field. + public const int ElevationFieldNumber = 1; + private readonly static uint ElevationDefaultValue = 0; - /// Field number for the "elevation" field. - public const int ElevationFieldNumber = 1; - private readonly static uint ElevationDefaultValue = 0; - - private uint elevation_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Elevation - { - get { if ((_hasBits0 & 1) != 0) { return elevation_; } else { return ElevationDefaultValue; } } - set - { - _hasBits0 |= 1; - elevation_ = value; - } - } - /// Gets whether the "elevation" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasElevation - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "elevation" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearElevation() - { - _hasBits0 &= ~1; - } + private uint elevation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Elevation { + get { if ((_hasBits0 & 1) != 0) { return elevation_; } else { return ElevationDefaultValue; } } + set { + _hasBits0 |= 1; + elevation_ = value; + } + } + /// Gets whether the "elevation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasElevation { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "elevation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearElevation() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagHeight); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagHeight); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagHeight other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Elevation != other.Elevation) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagHeight other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Elevation != other.Elevation) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasElevation) hash ^= Elevation.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasElevation) hash ^= Elevation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasElevation) { output.WriteRawTag(8); output.WriteUInt32(Elevation); @@ -8469,64 +7036,50 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasElevation) - { - output.WriteRawTag(8); - output.WriteUInt32(Elevation); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasElevation) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Elevation); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasElevation) { + output.WriteRawTag(8); + output.WriteUInt32(Elevation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagHeight other) - { - if (other == null) - { - return; - } - if (other.HasElevation) - { - Elevation = other.Elevation; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasElevation) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Elevation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagHeight other) { + if (other == null) { + return; + } + if (other.HasElevation) { + Elevation = other.Elevation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8539,200 +7092,157 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Elevation = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagShift : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagShift()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[15]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Elevation = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagShift : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagShift()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[13]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagShift() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagShift() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagShift(AppearanceFlagShift other) : this() - { - _hasBits0 = other._hasBits0; - x_ = other.x_; - y_ = other.y_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagShift(AppearanceFlagShift other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagShift Clone() - { - return new AppearanceFlagShift(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagShift Clone() { + return new AppearanceFlagShift(this); + } - /// Field number for the "x" field. - public const int XFieldNumber = 1; - private readonly static uint XDefaultValue = 0; - - private uint x_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint X - { - get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } - set - { - _hasBits0 |= 1; - x_ = value; - } - } - /// Gets whether the "x" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasX - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "x" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearX() - { - _hasBits0 &= ~1; - } + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static uint XDefaultValue = 0; - /// Field number for the "y" field. - public const int YFieldNumber = 2; - private readonly static uint YDefaultValue = 0; - - private uint y_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Y - { - get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } - set - { - _hasBits0 |= 2; - y_ = value; - } - } - /// Gets whether the "y" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasY - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "y" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearY() - { - _hasBits0 &= ~2; - } + private uint x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearX() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagShift); - } + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static uint YDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagShift other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (X != other.X) return false; - if (Y != other.Y) return false; - return Equals(_unknownFields, other._unknownFields); - } + private uint y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearY() { + _hasBits0 &= ~2; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasX) hash ^= X.GetHashCode(); - if (HasY) hash ^= Y.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagShift); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagShift other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasX) { output.WriteRawTag(8); output.WriteUInt32(X); @@ -8744,77 +7254,60 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasX) - { - output.WriteRawTag(8); - output.WriteUInt32(X); - } - if (HasY) - { - output.WriteRawTag(16); - output.WriteUInt32(Y); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasX) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(X); - } - if (HasY) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Y); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteUInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteUInt32(Y); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagShift other) - { - if (other == null) - { - return; - } - if (other.HasX) - { - X = other.X; - } - if (other.HasY) - { - Y = other.Y; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Y); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagShift other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -8831,171 +7324,134 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - X = input.ReadUInt32(); - break; - } - case 16: - { - Y = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagClothes : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagClothes()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[16]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadUInt32(); + break; + } + case 16: { + Y = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagClothes : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagClothes()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[14]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagClothes() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagClothes() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagClothes(AppearanceFlagClothes other) : this() - { - _hasBits0 = other._hasBits0; - slot_ = other.slot_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagClothes(AppearanceFlagClothes other) : this() { + _hasBits0 = other._hasBits0; + slot_ = other.slot_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagClothes Clone() - { - return new AppearanceFlagClothes(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagClothes Clone() { + return new AppearanceFlagClothes(this); + } - /// Field number for the "slot" field. - public const int SlotFieldNumber = 1; - private readonly static uint SlotDefaultValue = 0; - - private uint slot_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Slot - { - get { if ((_hasBits0 & 1) != 0) { return slot_; } else { return SlotDefaultValue; } } - set - { - _hasBits0 |= 1; - slot_ = value; - } - } - /// Gets whether the "slot" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSlot - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "slot" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSlot() - { - _hasBits0 &= ~1; - } + /// Field number for the "slot" field. + public const int SlotFieldNumber = 1; + private readonly static uint SlotDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagClothes); - } + private uint slot_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Slot { + get { if ((_hasBits0 & 1) != 0) { return slot_; } else { return SlotDefaultValue; } } + set { + _hasBits0 |= 1; + slot_ = value; + } + } + /// Gets whether the "slot" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSlot { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "slot" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSlot() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagClothes other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Slot != other.Slot) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagClothes); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasSlot) hash ^= Slot.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagClothes other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Slot != other.Slot) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasSlot) hash ^= Slot.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasSlot) { output.WriteRawTag(8); output.WriteUInt32(Slot); @@ -9003,64 +7459,50 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasSlot) - { - output.WriteRawTag(8); - output.WriteUInt32(Slot); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasSlot) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasSlot) { + output.WriteRawTag(8); + output.WriteUInt32(Slot); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagClothes other) - { - if (other == null) - { - return; - } - if (other.HasSlot) - { - Slot = other.Slot; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasSlot) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Slot); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagClothes other) { + if (other == null) { + return; + } + if (other.HasSlot) { + Slot = other.Slot; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9073,166 +7515,130 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Slot = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagDefaultAction : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagDefaultAction()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[17]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Slot = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagDefaultAction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagDefaultAction()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[15]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagDefaultAction() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagDefaultAction() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagDefaultAction(AppearanceFlagDefaultAction other) : this() - { - _hasBits0 = other._hasBits0; - action_ = other.action_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagDefaultAction(AppearanceFlagDefaultAction other) : this() { + _hasBits0 = other._hasBits0; + action_ = other.action_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagDefaultAction Clone() - { - return new AppearanceFlagDefaultAction(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagDefaultAction Clone() { + return new AppearanceFlagDefaultAction(this); + } - /// Field number for the "action" field. - public const int ActionFieldNumber = 1; - private readonly static global::Tibia.Protobuf.Appearances.PLAYER_ACTION ActionDefaultValue = global::Tibia.Protobuf.Appearances.PLAYER_ACTION.None; - - private global::Tibia.Protobuf.Appearances.PLAYER_ACTION action_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.PLAYER_ACTION Action - { - get { if ((_hasBits0 & 1) != 0) { return action_; } else { return ActionDefaultValue; } } - set - { - _hasBits0 |= 1; - action_ = value; - } - } - /// Gets whether the "action" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasAction - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "action" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearAction() - { - _hasBits0 &= ~1; - } + /// Field number for the "action" field. + public const int ActionFieldNumber = 1; + private readonly static global::Tibia.Protobuf.Appearances.PLAYER_ACTION ActionDefaultValue = global::Tibia.Protobuf.Appearances.PLAYER_ACTION.None; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagDefaultAction); - } + private global::Tibia.Protobuf.Appearances.PLAYER_ACTION action_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.PLAYER_ACTION Action { + get { if ((_hasBits0 & 1) != 0) { return action_; } else { return ActionDefaultValue; } } + set { + _hasBits0 |= 1; + action_ = value; + } + } + /// Gets whether the "action" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasAction { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "action" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearAction() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagDefaultAction other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Action != other.Action) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagDefaultAction); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasAction) hash ^= Action.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagDefaultAction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Action != other.Action) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasAction) hash ^= Action.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasAction) { output.WriteRawTag(8); output.WriteEnum((int) Action); @@ -9240,64 +7646,50 @@ public void WriteTo(pb::CodedOutputStream output) if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasAction) - { - output.WriteRawTag(8); - output.WriteEnum((int)Action); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasAction) - { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)Action); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasAction) { + output.WriteRawTag(8); + output.WriteEnum((int) Action); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagDefaultAction other) - { - if (other == null) - { - return; - } - if (other.HasAction) - { - Action = other.Action; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasAction) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Action); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagDefaultAction other) { + if (other == null) { + return; + } + if (other.HasAction) { + Action = other.Action; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9310,283 +7702,277 @@ public void MergeFrom(pb::CodedInputStream input) } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Action = (global::Tibia.Protobuf.Appearances.PLAYER_ACTION)input.ReadEnum(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagMarket : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagMarket()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[18]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Action = (global::Tibia.Protobuf.Appearances.PLAYER_ACTION) input.ReadEnum(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagMarket : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagMarket()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[16]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagMarket() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagMarket() { + OnConstruction(); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagMarket(AppearanceFlagMarket other) : this() - { - _hasBits0 = other._hasBits0; - category_ = other.category_; - tradeAsObjectId_ = other.tradeAsObjectId_; - showAsObjectId_ = other.showAsObjectId_; - restrictToProfession_ = other.restrictToProfession_.Clone(); - minimumLevel_ = other.minimumLevel_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagMarket(AppearanceFlagMarket other) : this() { + _hasBits0 = other._hasBits0; + category_ = other.category_; + tradeAsObjectId_ = other.tradeAsObjectId_; + showAsObjectId_ = other.showAsObjectId_; + restrictToVocation_ = other.restrictToVocation_.Clone(); + minimumLevel_ = other.minimumLevel_; + name_ = other.name_; + vocation_ = other.vocation_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagMarket Clone() - { - return new AppearanceFlagMarket(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagMarket Clone() { + return new AppearanceFlagMarket(this); + } - /// Field number for the "category" field. - public const int CategoryFieldNumber = 1; - private readonly static global::Tibia.Protobuf.Appearances.ITEM_CATEGORY CategoryDefaultValue = global::Tibia.Protobuf.Appearances.ITEM_CATEGORY.Armors; - - private global::Tibia.Protobuf.Appearances.ITEM_CATEGORY category_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.ITEM_CATEGORY Category - { - get { if ((_hasBits0 & 1) != 0) { return category_; } else { return CategoryDefaultValue; } } - set - { - _hasBits0 |= 1; - category_ = value; - } - } - /// Gets whether the "category" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCategory - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "category" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCategory() - { - _hasBits0 &= ~1; - } + /// Field number for the "category" field. + public const int CategoryFieldNumber = 1; + private readonly static global::Tibia.Protobuf.Appearances.ITEM_CATEGORY CategoryDefaultValue = global::Tibia.Protobuf.Appearances.ITEM_CATEGORY.Armors; - /// Field number for the "trade_as_object_id" field. - public const int TradeAsObjectIdFieldNumber = 2; - private readonly static uint TradeAsObjectIdDefaultValue = 0; - - private uint tradeAsObjectId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TradeAsObjectId - { - get { if ((_hasBits0 & 2) != 0) { return tradeAsObjectId_; } else { return TradeAsObjectIdDefaultValue; } } - set - { - _hasBits0 |= 2; - tradeAsObjectId_ = value; - } - } - /// Gets whether the "trade_as_object_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTradeAsObjectId - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "trade_as_object_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTradeAsObjectId() - { - _hasBits0 &= ~2; - } + private global::Tibia.Protobuf.Appearances.ITEM_CATEGORY category_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.ITEM_CATEGORY Category { + get { if ((_hasBits0 & 1) != 0) { return category_; } else { return CategoryDefaultValue; } } + set { + _hasBits0 |= 1; + category_ = value; + } + } + /// Gets whether the "category" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCategory { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "category" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCategory() { + _hasBits0 &= ~1; + } - /// Field number for the "show_as_object_id" field. - public const int ShowAsObjectIdFieldNumber = 3; - private readonly static uint ShowAsObjectIdDefaultValue = 0; - - private uint showAsObjectId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint ShowAsObjectId - { - get { if ((_hasBits0 & 4) != 0) { return showAsObjectId_; } else { return ShowAsObjectIdDefaultValue; } } - set - { - _hasBits0 |= 4; - showAsObjectId_ = value; - } - } - /// Gets whether the "show_as_object_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasShowAsObjectId - { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "show_as_object_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearShowAsObjectId() - { - _hasBits0 &= ~4; - } + /// Field number for the "trade_as_object_id" field. + public const int TradeAsObjectIdFieldNumber = 2; + private readonly static uint TradeAsObjectIdDefaultValue = 0; - /// Field number for the "restrict_to_profession" field. - public const int RestrictToProfessionFieldNumber = 5; - private static readonly pb::FieldCodec _repeated_restrictToProfession_codec - = pb::FieldCodec.ForEnum(40, x => (int)x, x => (global::Tibia.Protobuf.Appearances.PLAYER_PROFESSION)x); - private readonly pbc::RepeatedField restrictToProfession_ = new pbc::RepeatedField(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField RestrictToProfession - { - get { return restrictToProfession_; } - } + private uint tradeAsObjectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint TradeAsObjectId { + get { if ((_hasBits0 & 2) != 0) { return tradeAsObjectId_; } else { return TradeAsObjectIdDefaultValue; } } + set { + _hasBits0 |= 2; + tradeAsObjectId_ = value; + } + } + /// Gets whether the "trade_as_object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTradeAsObjectId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "trade_as_object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTradeAsObjectId() { + _hasBits0 &= ~2; + } - /// Field number for the "minimum_level" field. - public const int MinimumLevelFieldNumber = 6; - private readonly static uint MinimumLevelDefaultValue = 0; - - private uint minimumLevel_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint MinimumLevel - { - get { if ((_hasBits0 & 8) != 0) { return minimumLevel_; } else { return MinimumLevelDefaultValue; } } - set - { - _hasBits0 |= 8; - minimumLevel_ = value; - } - } - /// Gets whether the "minimum_level" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasMinimumLevel - { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "minimum_level" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearMinimumLevel() - { - _hasBits0 &= ~8; - } + /// Field number for the "show_as_object_id" field. + public const int ShowAsObjectIdFieldNumber = 3; + private readonly static uint ShowAsObjectIdDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagMarket); - } + private uint showAsObjectId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint ShowAsObjectId { + get { if ((_hasBits0 & 4) != 0) { return showAsObjectId_; } else { return ShowAsObjectIdDefaultValue; } } + set { + _hasBits0 |= 4; + showAsObjectId_ = value; + } + } + /// Gets whether the "show_as_object_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasShowAsObjectId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "show_as_object_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearShowAsObjectId() { + _hasBits0 &= ~4; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagMarket other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Category != other.Category) return false; - if (TradeAsObjectId != other.TradeAsObjectId) return false; - if (ShowAsObjectId != other.ShowAsObjectId) return false; - if (!restrictToProfession_.Equals(other.restrictToProfession_)) return false; - if (MinimumLevel != other.MinimumLevel) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "restrict_to_vocation" field. + public const int RestrictToVocationFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_restrictToVocation_codec + = pb::FieldCodec.ForEnum(40, x => (int) x, x => (global::Tibia.Protobuf.Appearances.VOCATION) x); + private readonly pbc::RepeatedField restrictToVocation_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField RestrictToVocation { + get { return restrictToVocation_; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasCategory) hash ^= Category.GetHashCode(); - if (HasTradeAsObjectId) hash ^= TradeAsObjectId.GetHashCode(); - if (HasShowAsObjectId) hash ^= ShowAsObjectId.GetHashCode(); - hash ^= restrictToProfession_.GetHashCode(); - if (HasMinimumLevel) hash ^= MinimumLevel.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + /// Field number for the "minimum_level" field. + public const int MinimumLevelFieldNumber = 6; + private readonly static uint MinimumLevelDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + private uint minimumLevel_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint MinimumLevel { + get { if ((_hasBits0 & 8) != 0) { return minimumLevel_; } else { return MinimumLevelDefaultValue; } } + set { + _hasBits0 |= 8; + minimumLevel_ = value; + } + } + /// Gets whether the "minimum_level" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasMinimumLevel { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "minimum_level" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearMinimumLevel() { + _hasBits0 &= ~8; + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 7; + private readonly static string NameDefaultValue = ""; + + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } + + /// Field number for the "vocation" field. + public const int VocationFieldNumber = 8; + private readonly static global::Tibia.Protobuf.Appearances.VOCATION VocationDefaultValue = global::Tibia.Protobuf.Appearances.VOCATION.Any; + + private global::Tibia.Protobuf.Appearances.VOCATION vocation_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.VOCATION Vocation { + get { if ((_hasBits0 & 16) != 0) { return vocation_; } else { return VocationDefaultValue; } } + set { + _hasBits0 |= 16; + vocation_ = value; + } + } + /// Gets whether the "vocation" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasVocation { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "vocation" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearVocation() { + _hasBits0 &= ~16; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagMarket); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagMarket other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Category != other.Category) return false; + if (TradeAsObjectId != other.TradeAsObjectId) return false; + if (ShowAsObjectId != other.ShowAsObjectId) return false; + if(!restrictToVocation_.Equals(other.restrictToVocation_)) return false; + if (MinimumLevel != other.MinimumLevel) return false; + if (Name != other.Name) return false; + if (Vocation != other.Vocation) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCategory) hash ^= Category.GetHashCode(); + if (HasTradeAsObjectId) hash ^= TradeAsObjectId.GetHashCode(); + if (HasShowAsObjectId) hash ^= ShowAsObjectId.GetHashCode(); + hash ^= restrictToVocation_.GetHashCode(); + if (HasMinimumLevel) hash ^= MinimumLevel.GetHashCode(); + if (HasName) hash ^= Name.GetHashCode(); + if (HasVocation) hash ^= Vocation.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasCategory) { output.WriteRawTag(8); output.WriteEnum((int) Category); @@ -9599,114 +7985,119 @@ public void WriteTo(pb::CodedOutputStream output) output.WriteRawTag(24); output.WriteUInt32(ShowAsObjectId); } - restrictToProfession_.WriteTo(output, _repeated_restrictToProfession_codec); + restrictToVocation_.WriteTo(output, _repeated_restrictToVocation_codec); if (HasMinimumLevel) { output.WriteRawTag(48); output.WriteUInt32(MinimumLevel); } + if (HasName) { + output.WriteRawTag(58); + output.WriteString(Name); + } + if (HasVocation) { + output.WriteRawTag(64); + output.WriteEnum((int) Vocation); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasCategory) - { - output.WriteRawTag(8); - output.WriteEnum((int)Category); - } - if (HasTradeAsObjectId) - { - output.WriteRawTag(16); - output.WriteUInt32(TradeAsObjectId); - } - if (HasShowAsObjectId) - { - output.WriteRawTag(24); - output.WriteUInt32(ShowAsObjectId); - } - restrictToProfession_.WriteTo(ref output, _repeated_restrictToProfession_codec); - if (HasMinimumLevel) - { - output.WriteRawTag(48); - output.WriteUInt32(MinimumLevel); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasCategory) - { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)Category); - } - if (HasTradeAsObjectId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TradeAsObjectId); - } - if (HasShowAsObjectId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShowAsObjectId); - } - size += restrictToProfession_.CalculateSize(_repeated_restrictToProfession_codec); - if (HasMinimumLevel) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinimumLevel); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasCategory) { + output.WriteRawTag(8); + output.WriteEnum((int) Category); + } + if (HasTradeAsObjectId) { + output.WriteRawTag(16); + output.WriteUInt32(TradeAsObjectId); + } + if (HasShowAsObjectId) { + output.WriteRawTag(24); + output.WriteUInt32(ShowAsObjectId); + } + restrictToVocation_.WriteTo(ref output, _repeated_restrictToVocation_codec); + if (HasMinimumLevel) { + output.WriteRawTag(48); + output.WriteUInt32(MinimumLevel); + } + if (HasName) { + output.WriteRawTag(58); + output.WriteString(Name); + } + if (HasVocation) { + output.WriteRawTag(64); + output.WriteEnum((int) Vocation); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagMarket other) - { - if (other == null) - { - return; - } - if (other.HasCategory) - { - Category = other.Category; - } - if (other.HasTradeAsObjectId) - { - TradeAsObjectId = other.TradeAsObjectId; - } - if (other.HasShowAsObjectId) - { - ShowAsObjectId = other.ShowAsObjectId; - } - restrictToProfession_.Add(other.restrictToProfession_); - if (other.HasMinimumLevel) - { - MinimumLevel = other.MinimumLevel; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCategory) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Category); + } + if (HasTradeAsObjectId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TradeAsObjectId); + } + if (HasShowAsObjectId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShowAsObjectId); + } + size += restrictToVocation_.CalculateSize(_repeated_restrictToVocation_codec); + if (HasMinimumLevel) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinimumLevel); + } + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasVocation) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Vocation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagMarket other) { + if (other == null) { + return; + } + if (other.HasCategory) { + Category = other.Category; + } + if (other.HasTradeAsObjectId) { + TradeAsObjectId = other.TradeAsObjectId; + } + if (other.HasShowAsObjectId) { + ShowAsObjectId = other.ShowAsObjectId; + } + restrictToVocation_.Add(other.restrictToVocation_); + if (other.HasMinimumLevel) { + MinimumLevel = other.MinimumLevel; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasVocation) { + Vocation = other.Vocation; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -9727,370 +8118,311 @@ public void MergeFrom(pb::CodedInputStream input) } case 42: case 40: { - restrictToProfession_.AddEntriesFrom(input, _repeated_restrictToProfession_codec); + restrictToVocation_.AddEntriesFrom(input, _repeated_restrictToVocation_codec); break; } case 48: { MinimumLevel = input.ReadUInt32(); break; } + case 58: { + Name = input.ReadString(); + break; + } + case 64: { + Vocation = (global::Tibia.Protobuf.Appearances.VOCATION) input.ReadEnum(); + break; + } } } -#endif + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Category = (global::Tibia.Protobuf.Appearances.ITEM_CATEGORY) input.ReadEnum(); + break; + } + case 16: { + TradeAsObjectId = input.ReadUInt32(); + break; + } + case 24: { + ShowAsObjectId = input.ReadUInt32(); + break; + } + case 42: + case 40: { + restrictToVocation_.AddEntriesFrom(ref input, _repeated_restrictToVocation_codec); + break; + } + case 48: { + MinimumLevel = input.ReadUInt32(); + break; + } + case 58: { + Name = input.ReadString(); + break; + } + case 64: { + Vocation = (global::Tibia.Protobuf.Appearances.VOCATION) input.ReadEnum(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagNPC : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagNPC()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[17]; } + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Category = (global::Tibia.Protobuf.Appearances.ITEM_CATEGORY)input.ReadEnum(); - break; - } - case 16: - { - TradeAsObjectId = input.ReadUInt32(); - break; - } - case 24: - { - ShowAsObjectId = input.ReadUInt32(); - break; - } - case 42: - case 40: - { - restrictToProfession_.AddEntriesFrom(ref input, _repeated_restrictToProfession_codec); - break; - } - case 48: - { - MinimumLevel = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagNPC : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagNPC()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[19]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagNPC() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagNPC() - { - OnConstruction(); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagNPC(AppearanceFlagNPC other) : this() { + _hasBits0 = other._hasBits0; + name_ = other.name_; + location_ = other.location_; + salePrice_ = other.salePrice_; + buyPrice_ = other.buyPrice_; + currencyObjectTypeId_ = other.currencyObjectTypeId_; + currencyQuestFlagDisplayName_ = other.currencyQuestFlagDisplayName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagNPC(AppearanceFlagNPC other) : this() - { - _hasBits0 = other._hasBits0; - name_ = other.name_; - location_ = other.location_; - salePrice_ = other.salePrice_; - buyPrice_ = other.buyPrice_; - currencyObjectTypeId_ = other.currencyObjectTypeId_; - currencyQuestFlagDisplayName_ = other.currencyQuestFlagDisplayName_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagNPC Clone() { + return new AppearanceFlagNPC(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagNPC Clone() - { - return new AppearanceFlagNPC(this); - } + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private readonly static string NameDefaultValue = ""; - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private readonly static pb::ByteString NameDefaultValue = pb::ByteString.Empty; - - private pb::ByteString name_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Name - { - get { return name_ ?? NameDefaultValue; } - set - { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasName - { - get { return name_ != null; } - } - /// Clears the value of the "name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearName() - { - name_ = null; - } + private string name_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Name { + get { return name_ ?? NameDefaultValue; } + set { + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasName { + get { return name_ != null; } + } + /// Clears the value of the "name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearName() { + name_ = null; + } - /// Field number for the "location" field. - public const int LocationFieldNumber = 2; - private readonly static pb::ByteString LocationDefaultValue = pb::ByteString.Empty; - - private pb::ByteString location_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Location - { - get { return location_ ?? LocationDefaultValue; } - set - { - location_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "location" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasLocation - { - get { return location_ != null; } - } - /// Clears the value of the "location" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearLocation() - { - location_ = null; - } + /// Field number for the "location" field. + public const int LocationFieldNumber = 2; + private readonly static string LocationDefaultValue = ""; - /// Field number for the "sale_price" field. - public const int SalePriceFieldNumber = 3; - private readonly static uint SalePriceDefaultValue = 0; - - private uint salePrice_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint SalePrice - { - get { if ((_hasBits0 & 1) != 0) { return salePrice_; } else { return SalePriceDefaultValue; } } - set - { - _hasBits0 |= 1; - salePrice_ = value; - } - } - /// Gets whether the "sale_price" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSalePrice - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "sale_price" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSalePrice() - { - _hasBits0 &= ~1; - } + private string location_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string Location { + get { return location_ ?? LocationDefaultValue; } + set { + location_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "location" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasLocation { + get { return location_ != null; } + } + /// Clears the value of the "location" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearLocation() { + location_ = null; + } - /// Field number for the "buy_price" field. - public const int BuyPriceFieldNumber = 4; - private readonly static uint BuyPriceDefaultValue = 0; - - private uint buyPrice_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint BuyPrice - { - get { if ((_hasBits0 & 2) != 0) { return buyPrice_; } else { return BuyPriceDefaultValue; } } - set - { - _hasBits0 |= 2; - buyPrice_ = value; - } - } - /// Gets whether the "buy_price" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasBuyPrice - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "buy_price" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearBuyPrice() - { - _hasBits0 &= ~2; - } + /// Field number for the "sale_price" field. + public const int SalePriceFieldNumber = 3; + private readonly static uint SalePriceDefaultValue = 0; - /// Field number for the "currency_object_type_id" field. - public const int CurrencyObjectTypeIdFieldNumber = 5; - private readonly static uint CurrencyObjectTypeIdDefaultValue = 0; - - private uint currencyObjectTypeId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint CurrencyObjectTypeId - { - get { if ((_hasBits0 & 4) != 0) { return currencyObjectTypeId_; } else { return CurrencyObjectTypeIdDefaultValue; } } - set - { - _hasBits0 |= 4; - currencyObjectTypeId_ = value; - } - } - /// Gets whether the "currency_object_type_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyObjectTypeId - { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "currency_object_type_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyObjectTypeId() - { - _hasBits0 &= ~4; - } + private uint salePrice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint SalePrice { + get { if ((_hasBits0 & 1) != 0) { return salePrice_; } else { return SalePriceDefaultValue; } } + set { + _hasBits0 |= 1; + salePrice_ = value; + } + } + /// Gets whether the "sale_price" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSalePrice { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "sale_price" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSalePrice() { + _hasBits0 &= ~1; + } - /// Field number for the "currency_quest_flag_display_name" field. - public const int CurrencyQuestFlagDisplayNameFieldNumber = 6; - private readonly static pb::ByteString CurrencyQuestFlagDisplayNameDefaultValue = pb::ByteString.Empty; - - private pb::ByteString currencyQuestFlagDisplayName_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString CurrencyQuestFlagDisplayName - { - get { return currencyQuestFlagDisplayName_ ?? CurrencyQuestFlagDisplayNameDefaultValue; } - set - { - currencyQuestFlagDisplayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } - } - /// Gets whether the "currency_quest_flag_display_name" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCurrencyQuestFlagDisplayName - { - get { return currencyQuestFlagDisplayName_ != null; } - } - /// Clears the value of the "currency_quest_flag_display_name" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCurrencyQuestFlagDisplayName() - { - currencyQuestFlagDisplayName_ = null; - } + /// Field number for the "buy_price" field. + public const int BuyPriceFieldNumber = 4; + private readonly static uint BuyPriceDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagNPC); - } + private uint buyPrice_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint BuyPrice { + get { if ((_hasBits0 & 2) != 0) { return buyPrice_; } else { return BuyPriceDefaultValue; } } + set { + _hasBits0 |= 2; + buyPrice_ = value; + } + } + /// Gets whether the "buy_price" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasBuyPrice { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "buy_price" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearBuyPrice() { + _hasBits0 &= ~2; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagNPC other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Name != other.Name) return false; - if (Location != other.Location) return false; - if (SalePrice != other.SalePrice) return false; - if (BuyPrice != other.BuyPrice) return false; - if (CurrencyObjectTypeId != other.CurrencyObjectTypeId) return false; - if (CurrencyQuestFlagDisplayName != other.CurrencyQuestFlagDisplayName) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "currency_object_type_id" field. + public const int CurrencyObjectTypeIdFieldNumber = 5; + private readonly static uint CurrencyObjectTypeIdDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasName) hash ^= Name.GetHashCode(); - if (HasLocation) hash ^= Location.GetHashCode(); - if (HasSalePrice) hash ^= SalePrice.GetHashCode(); - if (HasBuyPrice) hash ^= BuyPrice.GetHashCode(); - if (HasCurrencyObjectTypeId) hash ^= CurrencyObjectTypeId.GetHashCode(); - if (HasCurrencyQuestFlagDisplayName) hash ^= CurrencyQuestFlagDisplayName.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + private uint currencyObjectTypeId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint CurrencyObjectTypeId { + get { if ((_hasBits0 & 4) != 0) { return currencyObjectTypeId_; } else { return CurrencyObjectTypeIdDefaultValue; } } + set { + _hasBits0 |= 4; + currencyObjectTypeId_ = value; + } + } + /// Gets whether the "currency_object_type_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCurrencyObjectTypeId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "currency_object_type_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCurrencyObjectTypeId() { + _hasBits0 &= ~4; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + /// Field number for the "currency_quest_flag_display_name" field. + public const int CurrencyQuestFlagDisplayNameFieldNumber = 6; + private readonly static string CurrencyQuestFlagDisplayNameDefaultValue = ""; + + private string currencyQuestFlagDisplayName_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public string CurrencyQuestFlagDisplayName { + get { return currencyQuestFlagDisplayName_ ?? CurrencyQuestFlagDisplayNameDefaultValue; } + set { + currencyQuestFlagDisplayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + /// Gets whether the "currency_quest_flag_display_name" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCurrencyQuestFlagDisplayName { + get { return currencyQuestFlagDisplayName_ != null; } + } + /// Clears the value of the "currency_quest_flag_display_name" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCurrencyQuestFlagDisplayName() { + currencyQuestFlagDisplayName_ = null; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagNPC); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagNPC other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (Location != other.Location) return false; + if (SalePrice != other.SalePrice) return false; + if (BuyPrice != other.BuyPrice) return false; + if (CurrencyObjectTypeId != other.CurrencyObjectTypeId) return false; + if (CurrencyQuestFlagDisplayName != other.CurrencyQuestFlagDisplayName) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasName) hash ^= Name.GetHashCode(); + if (HasLocation) hash ^= Location.GetHashCode(); + if (HasSalePrice) hash ^= SalePrice.GetHashCode(); + if (HasBuyPrice) hash ^= BuyPrice.GetHashCode(); + if (HasCurrencyObjectTypeId) hash ^= CurrencyObjectTypeId.GetHashCode(); + if (HasCurrencyQuestFlagDisplayName) hash ^= CurrencyQuestFlagDisplayName.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasName) { output.WriteRawTag(10); - output.WriteBytes(Name); + output.WriteString(Name); } if (HasLocation) { output.WriteRawTag(18); - output.WriteBytes(Location); + output.WriteString(Location); } if (HasSalePrice) { output.WriteRawTag(24); @@ -10106,134 +8438,105 @@ public void WriteTo(pb::CodedOutputStream output) } if (HasCurrencyQuestFlagDisplayName) { output.WriteRawTag(50); - output.WriteBytes(CurrencyQuestFlagDisplayName); + output.WriteString(CurrencyQuestFlagDisplayName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasName) - { - output.WriteRawTag(10); - output.WriteBytes(Name); - } - if (HasLocation) - { - output.WriteRawTag(18); - output.WriteBytes(Location); - } - if (HasSalePrice) - { - output.WriteRawTag(24); - output.WriteUInt32(SalePrice); - } - if (HasBuyPrice) - { - output.WriteRawTag(32); - output.WriteUInt32(BuyPrice); - } - if (HasCurrencyObjectTypeId) - { - output.WriteRawTag(40); - output.WriteUInt32(CurrencyObjectTypeId); - } - if (HasCurrencyQuestFlagDisplayName) - { - output.WriteRawTag(50); - output.WriteBytes(CurrencyQuestFlagDisplayName); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasName) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Name); - } - if (HasLocation) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Location); - } - if (HasSalePrice) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SalePrice); - } - if (HasBuyPrice) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuyPrice); - } - if (HasCurrencyObjectTypeId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrencyObjectTypeId); - } - if (HasCurrencyQuestFlagDisplayName) - { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(CurrencyQuestFlagDisplayName); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasName) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (HasLocation) { + output.WriteRawTag(18); + output.WriteString(Location); + } + if (HasSalePrice) { + output.WriteRawTag(24); + output.WriteUInt32(SalePrice); + } + if (HasBuyPrice) { + output.WriteRawTag(32); + output.WriteUInt32(BuyPrice); + } + if (HasCurrencyObjectTypeId) { + output.WriteRawTag(40); + output.WriteUInt32(CurrencyObjectTypeId); + } + if (HasCurrencyQuestFlagDisplayName) { + output.WriteRawTag(50); + output.WriteString(CurrencyQuestFlagDisplayName); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagNPC other) - { - if (other == null) - { - return; - } - if (other.HasName) - { - Name = other.Name; - } - if (other.HasLocation) - { - Location = other.Location; - } - if (other.HasSalePrice) - { - SalePrice = other.SalePrice; - } - if (other.HasBuyPrice) - { - BuyPrice = other.BuyPrice; - } - if (other.HasCurrencyObjectTypeId) - { - CurrencyObjectTypeId = other.CurrencyObjectTypeId; - } - if (other.HasCurrencyQuestFlagDisplayName) - { - CurrencyQuestFlagDisplayName = other.CurrencyQuestFlagDisplayName; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (HasLocation) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); + } + if (HasSalePrice) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SalePrice); + } + if (HasBuyPrice) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BuyPrice); + } + if (HasCurrencyObjectTypeId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CurrencyObjectTypeId); + } + if (HasCurrencyQuestFlagDisplayName) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrencyQuestFlagDisplayName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagNPC other) { + if (other == null) { + return; + } + if (other.HasName) { + Name = other.Name; + } + if (other.HasLocation) { + Location = other.Location; + } + if (other.HasSalePrice) { + SalePrice = other.SalePrice; + } + if (other.HasBuyPrice) { + BuyPrice = other.BuyPrice; + } + if (other.HasCurrencyObjectTypeId) { + CurrencyObjectTypeId = other.CurrencyObjectTypeId; + } + if (other.HasCurrencyQuestFlagDisplayName) { + CurrencyQuestFlagDisplayName = other.CurrencyQuestFlagDisplayName; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10241,281 +8544,413 @@ public void MergeFrom(pb::CodedInputStream input) _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Name = input.ReadBytes(); + Name = input.ReadString(); + break; + } + case 18: { + Location = input.ReadString(); + break; + } + case 24: { + SalePrice = input.ReadUInt32(); + break; + } + case 32: { + BuyPrice = input.ReadUInt32(); + break; + } + case 40: { + CurrencyObjectTypeId = input.ReadUInt32(); + break; + } + case 50: { + CurrencyQuestFlagDisplayName = input.ReadString(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + Name = input.ReadString(); break; } case 18: { - Location = input.ReadBytes(); + Location = input.ReadString(); break; } case 24: { SalePrice = input.ReadUInt32(); break; - } - case 32: { - BuyPrice = input.ReadUInt32(); + } + case 32: { + BuyPrice = input.ReadUInt32(); + break; + } + case 40: { + CurrencyObjectTypeId = input.ReadUInt32(); + break; + } + case 50: { + CurrencyQuestFlagDisplayName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AppearanceFlagAutomap : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagAutomap()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[18]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagAutomap() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagAutomap(AppearanceFlagAutomap other) : this() { + _hasBits0 = other._hasBits0; + color_ = other.color_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagAutomap Clone() { + return new AppearanceFlagAutomap(this); + } + + /// Field number for the "color" field. + public const int ColorFieldNumber = 1; + private readonly static uint ColorDefaultValue = 0; + + private uint color_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Color { + get { if ((_hasBits0 & 1) != 0) { return color_; } else { return ColorDefaultValue; } } + set { + _hasBits0 |= 1; + color_ = value; + } + } + /// Gets whether the "color" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasColor { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "color" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearColor() { + _hasBits0 &= ~1; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagAutomap); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagAutomap other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Color != other.Color) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasColor) hash ^= Color.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasColor) { + output.WriteRawTag(8); + output.WriteUInt32(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasColor) { + output.WriteRawTag(8); + output.WriteUInt32(Color); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasColor) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Color); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagAutomap other) { + if (other == null) { + return; + } + if (other.HasColor) { + Color = other.Color; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + Color = input.ReadUInt32(); break; } - case 40: { - CurrencyObjectTypeId = input.ReadUInt32(); + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - } - case 50: { - CurrencyQuestFlagDisplayName = input.ReadBytes(); + case 8: { + Color = input.ReadUInt32(); break; } } } -#endif - } + } + #endif + + } + + public sealed partial class AppearanceFlagHook : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagHook()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[19]; } + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 10: - { - Name = input.ReadBytes(); - break; - } - case 18: - { - Location = input.ReadBytes(); - break; - } - case 24: - { - SalePrice = input.ReadUInt32(); - break; - } - case 32: - { - BuyPrice = input.ReadUInt32(); - break; - } - case 40: - { - CurrencyObjectTypeId = input.ReadUInt32(); - break; - } - case 50: - { - CurrencyQuestFlagDisplayName = input.ReadBytes(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagAutomap : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagAutomap()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[20]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagHook() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagAutomap() - { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagHook(AppearanceFlagHook other) : this() { + _hasBits0 = other._hasBits0; + direction_ = other.direction_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagAutomap(AppearanceFlagAutomap other) : this() - { - _hasBits0 = other._hasBits0; - color_ = other.color_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagHook Clone() { + return new AppearanceFlagHook(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagAutomap Clone() - { - return new AppearanceFlagAutomap(this); - } + /// Field number for the "direction" field. + public const int DirectionFieldNumber = 1; + private readonly static global::Tibia.Protobuf.Appearances.HOOK_TYPE DirectionDefaultValue = global::Tibia.Protobuf.Appearances.HOOK_TYPE.South; - /// Field number for the "color" field. - public const int ColorFieldNumber = 1; - private readonly static uint ColorDefaultValue = 0; - - private uint color_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Color - { - get { if ((_hasBits0 & 1) != 0) { return color_; } else { return ColorDefaultValue; } } - set - { - _hasBits0 |= 1; - color_ = value; - } - } - /// Gets whether the "color" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasColor - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "color" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearColor() - { - _hasBits0 &= ~1; - } + private global::Tibia.Protobuf.Appearances.HOOK_TYPE direction_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tibia.Protobuf.Appearances.HOOK_TYPE Direction { + get { if ((_hasBits0 & 1) != 0) { return direction_; } else { return DirectionDefaultValue; } } + set { + _hasBits0 |= 1; + direction_ = value; + } + } + /// Gets whether the "direction" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasDirection { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "direction" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearDirection() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagAutomap); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagHook); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagAutomap other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Color != other.Color) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagHook other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Direction != other.Direction) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasColor) hash ^= Color.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasDirection) hash ^= Direction.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else - if (HasColor) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasDirection) { output.WriteRawTag(8); - output.WriteUInt32(Color); + output.WriteEnum((int) Direction); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasColor) - { - output.WriteRawTag(8); - output.WriteUInt32(Color); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasColor) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Color); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasDirection) { + output.WriteRawTag(8); + output.WriteEnum((int) Direction); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagAutomap other) - { - if (other == null) - { - return; - } - if (other.HasColor) - { - Color = other.Color; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasDirection) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Direction); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagHook other) { + if (other == null) { + return; + } + if (other.HasDirection) { + Direction = other.Direction; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10523,236 +8958,186 @@ public void MergeFrom(pb::CodedInputStream input) _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - Color = input.ReadUInt32(); + Direction = (global::Tibia.Protobuf.Appearances.HOOK_TYPE) input.ReadEnum(); break; } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Color = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagHook : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagHook()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[21]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Direction = (global::Tibia.Protobuf.Appearances.HOOK_TYPE) input.ReadEnum(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagLenshelp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagLenshelp()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[20]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagHook() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagLenshelp() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagHook(AppearanceFlagHook other) : this() - { - _hasBits0 = other._hasBits0; - direction_ = other.direction_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagLenshelp(AppearanceFlagLenshelp other) : this() { + _hasBits0 = other._hasBits0; + id_ = other.id_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagHook Clone() - { - return new AppearanceFlagHook(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagLenshelp Clone() { + return new AppearanceFlagLenshelp(this); + } - /// Field number for the "direction" field. - public const int DirectionFieldNumber = 1; - private readonly static global::Tibia.Protobuf.Appearances.HOOK_TYPE DirectionDefaultValue = global::Tibia.Protobuf.Appearances.HOOK_TYPE.South; - - private global::Tibia.Protobuf.Appearances.HOOK_TYPE direction_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::Tibia.Protobuf.Appearances.HOOK_TYPE Direction - { - get { if ((_hasBits0 & 1) != 0) { return direction_; } else { return DirectionDefaultValue; } } - set - { - _hasBits0 |= 1; - direction_ = value; - } - } - /// Gets whether the "direction" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasDirection - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "direction" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearDirection() - { - _hasBits0 &= ~1; - } + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private readonly static uint IdDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagHook); - } + private uint id_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Id { + get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } + set { + _hasBits0 |= 1; + id_ = value; + } + } + /// Gets whether the "id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearId() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagHook other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Direction != other.Direction) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagLenshelp); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasDirection) hash ^= Direction.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagLenshelp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasId) hash ^= Id.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else - if (HasDirection) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasId) { output.WriteRawTag(8); - output.WriteEnum((int) Direction); + output.WriteUInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasDirection) - { - output.WriteRawTag(8); - output.WriteEnum((int)Direction); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasDirection) - { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)Direction); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasId) { + output.WriteRawTag(8); + output.WriteUInt32(Id); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagHook other) - { - if (other == null) - { - return; - } - if (other.HasDirection) - { - Direction = other.Direction; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagLenshelp other) { + if (other == null) { + return; + } + if (other.HasId) { + Id = other.Id; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -10760,473 +9145,373 @@ public void MergeFrom(pb::CodedInputStream input) _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - Direction = (global::Tibia.Protobuf.Appearances.HOOK_TYPE) input.ReadEnum(); + Id = input.ReadUInt32(); break; } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Direction = (global::Tibia.Protobuf.Appearances.HOOK_TYPE)input.ReadEnum(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagLenshelp : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagLenshelp()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[22]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Id = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagChangedToExpire : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagChangedToExpire()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[21]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagLenshelp() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagChangedToExpire() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagLenshelp(AppearanceFlagLenshelp other) : this() - { - _hasBits0 = other._hasBits0; - id_ = other.id_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagChangedToExpire(AppearanceFlagChangedToExpire other) : this() { + _hasBits0 = other._hasBits0; + formerObjectTypeid_ = other.formerObjectTypeid_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagLenshelp Clone() - { - return new AppearanceFlagLenshelp(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagChangedToExpire Clone() { + return new AppearanceFlagChangedToExpire(this); + } - /// Field number for the "id" field. - public const int IdFieldNumber = 1; - private readonly static uint IdDefaultValue = 0; - - private uint id_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint Id - { - get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } } - set - { - _hasBits0 |= 1; - id_ = value; - } - } - /// Gets whether the "id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasId - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearId() - { - _hasBits0 &= ~1; - } + /// Field number for the "former_object_typeid" field. + public const int FormerObjectTypeidFieldNumber = 1; + private readonly static uint FormerObjectTypeidDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagLenshelp); - } + private uint formerObjectTypeid_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint FormerObjectTypeid { + get { if ((_hasBits0 & 1) != 0) { return formerObjectTypeid_; } else { return FormerObjectTypeidDefaultValue; } } + set { + _hasBits0 |= 1; + formerObjectTypeid_ = value; + } + } + /// Gets whether the "former_object_typeid" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasFormerObjectTypeid { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "former_object_typeid" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearFormerObjectTypeid() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagLenshelp other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (Id != other.Id) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagChangedToExpire); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasId) hash ^= Id.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagChangedToExpire other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (FormerObjectTypeid != other.FormerObjectTypeid) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasFormerObjectTypeid) hash ^= FormerObjectTypeid.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else - if (HasId) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasFormerObjectTypeid) { output.WriteRawTag(8); - output.WriteUInt32(Id); + output.WriteUInt32(FormerObjectTypeid); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasId) - { - output.WriteRawTag(8); - output.WriteUInt32(Id); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasFormerObjectTypeid) { + output.WriteRawTag(8); + output.WriteUInt32(FormerObjectTypeid); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagLenshelp other) - { - if (other == null) - { - return; - } - if (other.HasId) - { - Id = other.Id; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasFormerObjectTypeid) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FormerObjectTypeid); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagChangedToExpire other) { + if (other == null) { + return; + } + if (other.HasFormerObjectTypeid) { + FormerObjectTypeid = other.FormerObjectTypeid; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + FormerObjectTypeid = input.ReadUInt32(); + break; + } } + } + #endif + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - Id = input.ReadUInt32(); + FormerObjectTypeid = input.ReadUInt32(); break; } } } -#endif - } + } + #endif + + } + + public sealed partial class AppearanceFlagCyclopedia : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagCyclopedia()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[22]; } + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - Id = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagChangedToExpire : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagChangedToExpire()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[23]; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagCyclopedia() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagChangedToExpire() - { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagCyclopedia(AppearanceFlagCyclopedia other) : this() { + _hasBits0 = other._hasBits0; + cyclopediaType_ = other.cyclopediaType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagChangedToExpire(AppearanceFlagChangedToExpire other) : this() - { - _hasBits0 = other._hasBits0; - formerObjectTypeid_ = other.formerObjectTypeid_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagCyclopedia Clone() { + return new AppearanceFlagCyclopedia(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagChangedToExpire Clone() - { - return new AppearanceFlagChangedToExpire(this); - } + /// Field number for the "cyclopedia_type" field. + public const int CyclopediaTypeFieldNumber = 1; + private readonly static uint CyclopediaTypeDefaultValue = 0; - /// Field number for the "former_object_typeid" field. - public const int FormerObjectTypeidFieldNumber = 1; - private readonly static uint FormerObjectTypeidDefaultValue = 0; - - private uint formerObjectTypeid_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint FormerObjectTypeid - { - get { if ((_hasBits0 & 1) != 0) { return formerObjectTypeid_; } else { return FormerObjectTypeidDefaultValue; } } - set - { - _hasBits0 |= 1; - formerObjectTypeid_ = value; - } - } - /// Gets whether the "former_object_typeid" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasFormerObjectTypeid - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "former_object_typeid" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearFormerObjectTypeid() - { - _hasBits0 &= ~1; - } + private uint cyclopediaType_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint CyclopediaType { + get { if ((_hasBits0 & 1) != 0) { return cyclopediaType_; } else { return CyclopediaTypeDefaultValue; } } + set { + _hasBits0 |= 1; + cyclopediaType_ = value; + } + } + /// Gets whether the "cyclopedia_type" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCyclopediaType { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "cyclopedia_type" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCyclopediaType() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagChangedToExpire); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagCyclopedia); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagChangedToExpire other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (FormerObjectTypeid != other.FormerObjectTypeid) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagCyclopedia other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CyclopediaType != other.CyclopediaType) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasFormerObjectTypeid) hash ^= FormerObjectTypeid.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasCyclopediaType) hash ^= CyclopediaType.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else - if (HasFormerObjectTypeid) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasCyclopediaType) { output.WriteRawTag(8); - output.WriteUInt32(FormerObjectTypeid); + output.WriteUInt32(CyclopediaType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasFormerObjectTypeid) - { - output.WriteRawTag(8); - output.WriteUInt32(FormerObjectTypeid); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasFormerObjectTypeid) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FormerObjectTypeid); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasCyclopediaType) { + output.WriteRawTag(8); + output.WriteUInt32(CyclopediaType); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagChangedToExpire other) - { - if (other == null) - { - return; - } - if (other.HasFormerObjectTypeid) - { - FormerObjectTypeid = other.FormerObjectTypeid; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasCyclopediaType) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CyclopediaType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagCyclopedia other) { + if (other == null) { + return; + } + if (other.HasCyclopediaType) { + CyclopediaType = other.CyclopediaType; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -11234,236 +9519,186 @@ public void MergeFrom(pb::CodedInputStream input) _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - FormerObjectTypeid = input.ReadUInt32(); + CyclopediaType = input.ReadUInt32(); break; } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - FormerObjectTypeid = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class AppearanceFlagCyclopedia : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagCyclopedia()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[24]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + CyclopediaType = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class AppearanceFlagUpgradeClassification : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AppearanceFlagUpgradeClassification()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[23]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagCyclopedia() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagUpgradeClassification() { + OnConstruction(); + } - partial void OnConstruction(); + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagCyclopedia(AppearanceFlagCyclopedia other) : this() - { - _hasBits0 = other._hasBits0; - cyclopediaType_ = other.cyclopediaType_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagUpgradeClassification(AppearanceFlagUpgradeClassification other) : this() { + _hasBits0 = other._hasBits0; + upgradeClassification_ = other.upgradeClassification_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public AppearanceFlagCyclopedia Clone() - { - return new AppearanceFlagCyclopedia(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public AppearanceFlagUpgradeClassification Clone() { + return new AppearanceFlagUpgradeClassification(this); + } - /// Field number for the "cyclopedia_type" field. - public const int CyclopediaTypeFieldNumber = 1; - private readonly static uint CyclopediaTypeDefaultValue = 0; - - private uint cyclopediaType_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint CyclopediaType - { - get { if ((_hasBits0 & 1) != 0) { return cyclopediaType_; } else { return CyclopediaTypeDefaultValue; } } - set - { - _hasBits0 |= 1; - cyclopediaType_ = value; - } - } - /// Gets whether the "cyclopedia_type" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCyclopediaType - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "cyclopedia_type" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCyclopediaType() - { - _hasBits0 &= ~1; - } + /// Field number for the "upgrade_classification" field. + public const int UpgradeClassificationFieldNumber = 1; + private readonly static uint UpgradeClassificationDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as AppearanceFlagCyclopedia); - } + private uint upgradeClassification_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint UpgradeClassification { + get { if ((_hasBits0 & 1) != 0) { return upgradeClassification_; } else { return UpgradeClassificationDefaultValue; } } + set { + _hasBits0 |= 1; + upgradeClassification_ = value; + } + } + /// Gets whether the "upgrade_classification" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasUpgradeClassification { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "upgrade_classification" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearUpgradeClassification() { + _hasBits0 &= ~1; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(AppearanceFlagCyclopedia other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (CyclopediaType != other.CyclopediaType) return false; - return Equals(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as AppearanceFlagUpgradeClassification); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasCyclopediaType) hash ^= CyclopediaType.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(AppearanceFlagUpgradeClassification other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UpgradeClassification != other.UpgradeClassification) return false; + return Equals(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasUpgradeClassification) hash ^= UpgradeClassification.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else - if (HasCyclopediaType) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasUpgradeClassification) { output.WriteRawTag(8); - output.WriteUInt32(CyclopediaType); + output.WriteUInt32(UpgradeClassification); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasCyclopediaType) - { - output.WriteRawTag(8); - output.WriteUInt32(CyclopediaType); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasCyclopediaType) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CyclopediaType); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasUpgradeClassification) { + output.WriteRawTag(8); + output.WriteUInt32(UpgradeClassification); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(AppearanceFlagCyclopedia other) - { - if (other == null) - { - return; - } - if (other.HasCyclopediaType) - { - CyclopediaType = other.CyclopediaType; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasUpgradeClassification) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UpgradeClassification); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(AppearanceFlagUpgradeClassification other) { + if (other == null) { + return; + } + if (other.HasUpgradeClassification) { + UpgradeClassification = other.UpgradeClassification; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -11471,375 +9706,297 @@ public void MergeFrom(pb::CodedInputStream input) _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - CyclopediaType = input.ReadUInt32(); + UpgradeClassification = input.ReadUInt32(); break; } } } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - CyclopediaType = input.ReadUInt32(); - break; - } - } - } - } -#endif - - } - - public sealed partial class SpecialMeaningAppearanceIds : pb::IMessage -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - , pb::IBufferMessage -#endif - { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecialMeaningAppearanceIds()); - private pb::UnknownFieldSet _unknownFields; - private int _hasBits0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pbr::MessageDescriptor Descriptor - { - get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[25]; } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + UpgradeClassification = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class SpecialMeaningAppearanceIds : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpecialMeaningAppearanceIds()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[24]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor - { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecialMeaningAppearanceIds() - { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpecialMeaningAppearanceIds() { + OnConstruction(); + } - partial void OnConstruction(); - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecialMeaningAppearanceIds(SpecialMeaningAppearanceIds other) : this() - { - _hasBits0 = other._hasBits0; - goldCoinId_ = other.goldCoinId_; - platinumCoinId_ = other.platinumCoinId_; - crystalCoinId_ = other.crystalCoinId_; - tibiaCoinId_ = other.tibiaCoinId_; - stampedLetterId_ = other.stampedLetterId_; - supplyStashId_ = other.supplyStashId_; - rewardChestId_ = other.rewardChestId_; - _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); - } + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpecialMeaningAppearanceIds(SpecialMeaningAppearanceIds other) : this() { + _hasBits0 = other._hasBits0; + goldCoinId_ = other.goldCoinId_; + platinumCoinId_ = other.platinumCoinId_; + crystalCoinId_ = other.crystalCoinId_; + tibiaCoinId_ = other.tibiaCoinId_; + stampedLetterId_ = other.stampedLetterId_; + supplyStashId_ = other.supplyStashId_; + standardRewardChestId_ = other.standardRewardChestId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public SpecialMeaningAppearanceIds Clone() - { - return new SpecialMeaningAppearanceIds(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SpecialMeaningAppearanceIds Clone() { + return new SpecialMeaningAppearanceIds(this); + } - /// Field number for the "gold_coin_id" field. - public const int GoldCoinIdFieldNumber = 1; - private readonly static uint GoldCoinIdDefaultValue = 0; - - private uint goldCoinId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint GoldCoinId - { - get { if ((_hasBits0 & 1) != 0) { return goldCoinId_; } else { return GoldCoinIdDefaultValue; } } - set - { - _hasBits0 |= 1; - goldCoinId_ = value; - } - } - /// Gets whether the "gold_coin_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasGoldCoinId - { - get { return (_hasBits0 & 1) != 0; } - } - /// Clears the value of the "gold_coin_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearGoldCoinId() - { - _hasBits0 &= ~1; - } + /// Field number for the "gold_coin_id" field. + public const int GoldCoinIdFieldNumber = 1; + private readonly static uint GoldCoinIdDefaultValue = 0; - /// Field number for the "platinum_coin_id" field. - public const int PlatinumCoinIdFieldNumber = 2; - private readonly static uint PlatinumCoinIdDefaultValue = 0; - - private uint platinumCoinId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint PlatinumCoinId - { - get { if ((_hasBits0 & 2) != 0) { return platinumCoinId_; } else { return PlatinumCoinIdDefaultValue; } } - set - { - _hasBits0 |= 2; - platinumCoinId_ = value; - } - } - /// Gets whether the "platinum_coin_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasPlatinumCoinId - { - get { return (_hasBits0 & 2) != 0; } - } - /// Clears the value of the "platinum_coin_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearPlatinumCoinId() - { - _hasBits0 &= ~2; - } + private uint goldCoinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint GoldCoinId { + get { if ((_hasBits0 & 1) != 0) { return goldCoinId_; } else { return GoldCoinIdDefaultValue; } } + set { + _hasBits0 |= 1; + goldCoinId_ = value; + } + } + /// Gets whether the "gold_coin_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasGoldCoinId { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "gold_coin_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearGoldCoinId() { + _hasBits0 &= ~1; + } - /// Field number for the "crystal_coin_id" field. - public const int CrystalCoinIdFieldNumber = 3; - private readonly static uint CrystalCoinIdDefaultValue = 0; - - private uint crystalCoinId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint CrystalCoinId - { - get { if ((_hasBits0 & 4) != 0) { return crystalCoinId_; } else { return CrystalCoinIdDefaultValue; } } - set - { - _hasBits0 |= 4; - crystalCoinId_ = value; - } - } - /// Gets whether the "crystal_coin_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasCrystalCoinId - { - get { return (_hasBits0 & 4) != 0; } - } - /// Clears the value of the "crystal_coin_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearCrystalCoinId() - { - _hasBits0 &= ~4; - } + /// Field number for the "platinum_coin_id" field. + public const int PlatinumCoinIdFieldNumber = 2; + private readonly static uint PlatinumCoinIdDefaultValue = 0; - /// Field number for the "tibia_coin_id" field. - public const int TibiaCoinIdFieldNumber = 4; - private readonly static uint TibiaCoinIdDefaultValue = 0; - - private uint tibiaCoinId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint TibiaCoinId - { - get { if ((_hasBits0 & 8) != 0) { return tibiaCoinId_; } else { return TibiaCoinIdDefaultValue; } } - set - { - _hasBits0 |= 8; - tibiaCoinId_ = value; - } - } - /// Gets whether the "tibia_coin_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasTibiaCoinId - { - get { return (_hasBits0 & 8) != 0; } - } - /// Clears the value of the "tibia_coin_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearTibiaCoinId() - { - _hasBits0 &= ~8; - } + private uint platinumCoinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint PlatinumCoinId { + get { if ((_hasBits0 & 2) != 0) { return platinumCoinId_; } else { return PlatinumCoinIdDefaultValue; } } + set { + _hasBits0 |= 2; + platinumCoinId_ = value; + } + } + /// Gets whether the "platinum_coin_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasPlatinumCoinId { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "platinum_coin_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearPlatinumCoinId() { + _hasBits0 &= ~2; + } - /// Field number for the "stamped_letter_id" field. - public const int StampedLetterIdFieldNumber = 5; - private readonly static uint StampedLetterIdDefaultValue = 0; - - private uint stampedLetterId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint StampedLetterId - { - get { if ((_hasBits0 & 16) != 0) { return stampedLetterId_; } else { return StampedLetterIdDefaultValue; } } - set - { - _hasBits0 |= 16; - stampedLetterId_ = value; - } - } - /// Gets whether the "stamped_letter_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasStampedLetterId - { - get { return (_hasBits0 & 16) != 0; } - } - /// Clears the value of the "stamped_letter_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearStampedLetterId() - { - _hasBits0 &= ~16; - } + /// Field number for the "crystal_coin_id" field. + public const int CrystalCoinIdFieldNumber = 3; + private readonly static uint CrystalCoinIdDefaultValue = 0; - /// Field number for the "supply_stash_id" field. - public const int SupplyStashIdFieldNumber = 6; - private readonly static uint SupplyStashIdDefaultValue = 0; - - private uint supplyStashId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint SupplyStashId - { - get { if ((_hasBits0 & 32) != 0) { return supplyStashId_; } else { return SupplyStashIdDefaultValue; } } - set - { - _hasBits0 |= 32; - supplyStashId_ = value; - } - } - /// Gets whether the "supply_stash_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasSupplyStashId - { - get { return (_hasBits0 & 32) != 0; } - } - /// Clears the value of the "supply_stash_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearSupplyStashId() - { - _hasBits0 &= ~32; - } + private uint crystalCoinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint CrystalCoinId { + get { if ((_hasBits0 & 4) != 0) { return crystalCoinId_; } else { return CrystalCoinIdDefaultValue; } } + set { + _hasBits0 |= 4; + crystalCoinId_ = value; + } + } + /// Gets whether the "crystal_coin_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasCrystalCoinId { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "crystal_coin_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearCrystalCoinId() { + _hasBits0 &= ~4; + } - /// Field number for the "reward_chest_id" field. - public const int RewardChestIdFieldNumber = 7; - private readonly static uint RewardChestIdDefaultValue = 0; - - private uint rewardChestId_; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public uint RewardChestId - { - get { if ((_hasBits0 & 64) != 0) { return rewardChestId_; } else { return RewardChestIdDefaultValue; } } - set - { - _hasBits0 |= 64; - rewardChestId_ = value; - } - } - /// Gets whether the "reward_chest_id" field is set - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool HasRewardChestId - { - get { return (_hasBits0 & 64) != 0; } - } - /// Clears the value of the "reward_chest_id" field - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void ClearRewardChestId() - { - _hasBits0 &= ~64; - } + /// Field number for the "tibia_coin_id" field. + public const int TibiaCoinIdFieldNumber = 4; + private readonly static uint TibiaCoinIdDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) - { - return Equals(other as SpecialMeaningAppearanceIds); - } + private uint tibiaCoinId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint TibiaCoinId { + get { if ((_hasBits0 & 8) != 0) { return tibiaCoinId_; } else { return TibiaCoinIdDefaultValue; } } + set { + _hasBits0 |= 8; + tibiaCoinId_ = value; + } + } + /// Gets whether the "tibia_coin_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasTibiaCoinId { + get { return (_hasBits0 & 8) != 0; } + } + /// Clears the value of the "tibia_coin_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearTibiaCoinId() { + _hasBits0 &= ~8; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SpecialMeaningAppearanceIds other) - { - if (ReferenceEquals(other, null)) - { - return false; - } - if (ReferenceEquals(other, this)) - { - return true; - } - if (GoldCoinId != other.GoldCoinId) return false; - if (PlatinumCoinId != other.PlatinumCoinId) return false; - if (CrystalCoinId != other.CrystalCoinId) return false; - if (TibiaCoinId != other.TibiaCoinId) return false; - if (StampedLetterId != other.StampedLetterId) return false; - if (SupplyStashId != other.SupplyStashId) return false; - if (RewardChestId != other.RewardChestId) return false; - return Equals(_unknownFields, other._unknownFields); - } + /// Field number for the "stamped_letter_id" field. + public const int StampedLetterIdFieldNumber = 5; + private readonly static uint StampedLetterIdDefaultValue = 0; - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override int GetHashCode() - { - int hash = 1; - if (HasGoldCoinId) hash ^= GoldCoinId.GetHashCode(); - if (HasPlatinumCoinId) hash ^= PlatinumCoinId.GetHashCode(); - if (HasCrystalCoinId) hash ^= CrystalCoinId.GetHashCode(); - if (HasTibiaCoinId) hash ^= TibiaCoinId.GetHashCode(); - if (HasStampedLetterId) hash ^= StampedLetterId.GetHashCode(); - if (HasSupplyStashId) hash ^= SupplyStashId.GetHashCode(); - if (HasRewardChestId) hash ^= RewardChestId.GetHashCode(); - if (_unknownFields != null) - { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + private uint stampedLetterId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint StampedLetterId { + get { if ((_hasBits0 & 16) != 0) { return stampedLetterId_; } else { return StampedLetterIdDefaultValue; } } + set { + _hasBits0 |= 16; + stampedLetterId_ = value; + } + } + /// Gets whether the "stamped_letter_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStampedLetterId { + get { return (_hasBits0 & 16) != 0; } + } + /// Clears the value of the "stamped_letter_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStampedLetterId() { + _hasBits0 &= ~16; + } + + /// Field number for the "supply_stash_id" field. + public const int SupplyStashIdFieldNumber = 6; + private readonly static uint SupplyStashIdDefaultValue = 0; + + private uint supplyStashId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint SupplyStashId { + get { if ((_hasBits0 & 32) != 0) { return supplyStashId_; } else { return SupplyStashIdDefaultValue; } } + set { + _hasBits0 |= 32; + supplyStashId_ = value; + } + } + /// Gets whether the "supply_stash_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasSupplyStashId { + get { return (_hasBits0 & 32) != 0; } + } + /// Clears the value of the "supply_stash_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearSupplyStashId() { + _hasBits0 &= ~32; + } + + /// Field number for the "standard_reward_chest_id" field. + public const int StandardRewardChestIdFieldNumber = 7; + private readonly static uint StandardRewardChestIdDefaultValue = 0; + + private uint standardRewardChestId_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint StandardRewardChestId { + get { if ((_hasBits0 & 64) != 0) { return standardRewardChestId_; } else { return StandardRewardChestIdDefaultValue; } } + set { + _hasBits0 |= 64; + standardRewardChestId_ = value; + } + } + /// Gets whether the "standard_reward_chest_id" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasStandardRewardChestId { + get { return (_hasBits0 & 64) != 0; } + } + /// Clears the value of the "standard_reward_chest_id" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearStandardRewardChestId() { + _hasBits0 &= ~64; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SpecialMeaningAppearanceIds); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SpecialMeaningAppearanceIds other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GoldCoinId != other.GoldCoinId) return false; + if (PlatinumCoinId != other.PlatinumCoinId) return false; + if (CrystalCoinId != other.CrystalCoinId) return false; + if (TibiaCoinId != other.TibiaCoinId) return false; + if (StampedLetterId != other.StampedLetterId) return false; + if (SupplyStashId != other.SupplyStashId) return false; + if (StandardRewardChestId != other.StandardRewardChestId) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasGoldCoinId) hash ^= GoldCoinId.GetHashCode(); + if (HasPlatinumCoinId) hash ^= PlatinumCoinId.GetHashCode(); + if (HasCrystalCoinId) hash ^= CrystalCoinId.GetHashCode(); + if (HasTibiaCoinId) hash ^= TibiaCoinId.GetHashCode(); + if (HasStampedLetterId) hash ^= StampedLetterId.GetHashCode(); + if (HasSupplyStashId) hash ^= SupplyStashId.GetHashCode(); + if (HasStandardRewardChestId) hash ^= StandardRewardChestId.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() - { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void WriteTo(pb::CodedOutputStream output) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - output.WriteRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else if (HasGoldCoinId) { output.WriteRawTag(8); output.WriteUInt32(GoldCoinId); @@ -11864,149 +10021,117 @@ public void WriteTo(pb::CodedOutputStream output) output.WriteRawTag(48); output.WriteUInt32(SupplyStashId); } - if (HasRewardChestId) { + if (HasStandardRewardChestId) { output.WriteRawTag(56); - output.WriteUInt32(RewardChestId); + output.WriteUInt32(StandardRewardChestId); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } -#endif - } + #endif + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) - { - if (HasGoldCoinId) - { - output.WriteRawTag(8); - output.WriteUInt32(GoldCoinId); - } - if (HasPlatinumCoinId) - { - output.WriteRawTag(16); - output.WriteUInt32(PlatinumCoinId); - } - if (HasCrystalCoinId) - { - output.WriteRawTag(24); - output.WriteUInt32(CrystalCoinId); - } - if (HasTibiaCoinId) - { - output.WriteRawTag(32); - output.WriteUInt32(TibiaCoinId); - } - if (HasStampedLetterId) - { - output.WriteRawTag(40); - output.WriteUInt32(StampedLetterId); - } - if (HasSupplyStashId) - { - output.WriteRawTag(48); - output.WriteUInt32(SupplyStashId); - } - if (HasRewardChestId) - { - output.WriteRawTag(56); - output.WriteUInt32(RewardChestId); - } - if (_unknownFields != null) - { - _unknownFields.WriteTo(ref output); - } - } -#endif - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int CalculateSize() - { - int size = 0; - if (HasGoldCoinId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoldCoinId); - } - if (HasPlatinumCoinId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlatinumCoinId); - } - if (HasCrystalCoinId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CrystalCoinId); - } - if (HasTibiaCoinId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TibiaCoinId); - } - if (HasStampedLetterId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StampedLetterId); - } - if (HasSupplyStashId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SupplyStashId); - } - if (HasRewardChestId) - { - size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RewardChestId); - } - if (_unknownFields != null) - { - size += _unknownFields.CalculateSize(); - } - return size; - } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasGoldCoinId) { + output.WriteRawTag(8); + output.WriteUInt32(GoldCoinId); + } + if (HasPlatinumCoinId) { + output.WriteRawTag(16); + output.WriteUInt32(PlatinumCoinId); + } + if (HasCrystalCoinId) { + output.WriteRawTag(24); + output.WriteUInt32(CrystalCoinId); + } + if (HasTibiaCoinId) { + output.WriteRawTag(32); + output.WriteUInt32(TibiaCoinId); + } + if (HasStampedLetterId) { + output.WriteRawTag(40); + output.WriteUInt32(StampedLetterId); + } + if (HasSupplyStashId) { + output.WriteRawTag(48); + output.WriteUInt32(SupplyStashId); + } + if (HasStandardRewardChestId) { + output.WriteRawTag(56); + output.WriteUInt32(StandardRewardChestId); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SpecialMeaningAppearanceIds other) - { - if (other == null) - { - return; - } - if (other.HasGoldCoinId) - { - GoldCoinId = other.GoldCoinId; - } - if (other.HasPlatinumCoinId) - { - PlatinumCoinId = other.PlatinumCoinId; - } - if (other.HasCrystalCoinId) - { - CrystalCoinId = other.CrystalCoinId; - } - if (other.HasTibiaCoinId) - { - TibiaCoinId = other.TibiaCoinId; - } - if (other.HasStampedLetterId) - { - StampedLetterId = other.StampedLetterId; - } - if (other.HasSupplyStashId) - { - SupplyStashId = other.SupplyStashId; - } - if (other.HasRewardChestId) - { - RewardChestId = other.RewardChestId; - } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasGoldCoinId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoldCoinId); + } + if (HasPlatinumCoinId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PlatinumCoinId); + } + if (HasCrystalCoinId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CrystalCoinId); + } + if (HasTibiaCoinId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TibiaCoinId); + } + if (HasStampedLetterId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StampedLetterId); + } + if (HasSupplyStashId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SupplyStashId); + } + if (HasStandardRewardChestId) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(StandardRewardChestId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SpecialMeaningAppearanceIds other) { + if (other == null) { + return; + } + if (other.HasGoldCoinId) { + GoldCoinId = other.GoldCoinId; + } + if (other.HasPlatinumCoinId) { + PlatinumCoinId = other.PlatinumCoinId; + } + if (other.HasCrystalCoinId) { + CrystalCoinId = other.CrystalCoinId; + } + if (other.HasTibiaCoinId) { + TibiaCoinId = other.TibiaCoinId; + } + if (other.HasStampedLetterId) { + StampedLetterId = other.StampedLetterId; + } + if (other.HasSupplyStashId) { + SupplyStashId = other.SupplyStashId; + } + if (other.HasStandardRewardChestId) { + StandardRewardChestId = other.StandardRewardChestId; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(pb::CodedInputStream input) - { -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - input.ReadRawMessage(this); -#else + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { @@ -12038,70 +10163,344 @@ public void MergeFrom(pb::CodedInputStream input) break; } case 56: { - RewardChestId = input.ReadUInt32(); + StandardRewardChestId = input.ReadUInt32(); break; } } } -#endif + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + GoldCoinId = input.ReadUInt32(); + break; + } + case 16: { + PlatinumCoinId = input.ReadUInt32(); + break; + } + case 24: { + CrystalCoinId = input.ReadUInt32(); + break; + } + case 32: { + TibiaCoinId = input.ReadUInt32(); + break; + } + case 40: { + StampedLetterId = input.ReadUInt32(); + break; + } + case 48: { + SupplyStashId = input.ReadUInt32(); + break; + } + case 56: { + StandardRewardChestId = input.ReadUInt32(); + break; + } } + } + } + #endif + + } + + public sealed partial class Coordinate : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Coordinate()); + private pb::UnknownFieldSet _unknownFields; + private int _hasBits0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tibia.Protobuf.Appearances.AppearancesReflection.Descriptor.MessageTypes[25]; } + } -#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) - { - uint tag; - while ((tag = input.ReadTag()) != 0) - { - switch (tag) - { - default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); - break; - case 8: - { - GoldCoinId = input.ReadUInt32(); - break; - } - case 16: - { - PlatinumCoinId = input.ReadUInt32(); - break; - } - case 24: - { - CrystalCoinId = input.ReadUInt32(); - break; - } - case 32: - { - TibiaCoinId = input.ReadUInt32(); - break; - } - case 40: - { - StampedLetterId = input.ReadUInt32(); - break; - } - case 48: - { - SupplyStashId = input.ReadUInt32(); - break; - } - case 56: - { - RewardChestId = input.ReadUInt32(); - break; - } - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Coordinate() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Coordinate(Coordinate other) : this() { + _hasBits0 = other._hasBits0; + x_ = other.x_; + y_ = other.y_; + z_ = other.z_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public Coordinate Clone() { + return new Coordinate(this); + } + + /// Field number for the "x" field. + public const int XFieldNumber = 1; + private readonly static uint XDefaultValue = 0; + + private uint x_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint X { + get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } } + set { + _hasBits0 |= 1; + x_ = value; + } + } + /// Gets whether the "x" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasX { + get { return (_hasBits0 & 1) != 0; } + } + /// Clears the value of the "x" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearX() { + _hasBits0 &= ~1; + } + + /// Field number for the "y" field. + public const int YFieldNumber = 2; + private readonly static uint YDefaultValue = 0; + + private uint y_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Y { + get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } } + set { + _hasBits0 |= 2; + y_ = value; + } + } + /// Gets whether the "y" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasY { + get { return (_hasBits0 & 2) != 0; } + } + /// Clears the value of the "y" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearY() { + _hasBits0 &= ~2; + } + + /// Field number for the "z" field. + public const int ZFieldNumber = 3; + private readonly static uint ZDefaultValue = 0; + + private uint z_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public uint Z { + get { if ((_hasBits0 & 4) != 0) { return z_; } else { return ZDefaultValue; } } + set { + _hasBits0 |= 4; + z_ = value; + } + } + /// Gets whether the "z" field is set + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool HasZ { + get { return (_hasBits0 & 4) != 0; } + } + /// Clears the value of the "z" field + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void ClearZ() { + _hasBits0 &= ~4; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as Coordinate); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(Coordinate other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (X != other.X) return false; + if (Y != other.Y) return false; + if (Z != other.Z) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (HasX) hash ^= X.GetHashCode(); + if (HasY) hash ^= Y.GetHashCode(); + if (HasZ) hash ^= Z.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (HasX) { + output.WriteRawTag(8); + output.WriteUInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteUInt32(Y); + } + if (HasZ) { + output.WriteRawTag(24); + output.WriteUInt32(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (HasX) { + output.WriteRawTag(8); + output.WriteUInt32(X); + } + if (HasY) { + output.WriteRawTag(16); + output.WriteUInt32(Y); + } + if (HasZ) { + output.WriteRawTag(24); + output.WriteUInt32(Z); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (HasX) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(X); + } + if (HasY) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Y); + } + if (HasZ) { + size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Z); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(Coordinate other) { + if (other == null) { + return; + } + if (other.HasX) { + X = other.X; + } + if (other.HasY) { + Y = other.Y; + } + if (other.HasZ) { + Z = other.Z; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + X = input.ReadUInt32(); + break; + } + case 16: { + Y = input.ReadUInt32(); + break; + } + case 24: { + Z = input.ReadUInt32(); + break; + } } -#endif + } + #endif + } + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + X = input.ReadUInt32(); + break; + } + case 16: { + Y = input.ReadUInt32(); + break; + } + case 24: { + Z = input.ReadUInt32(); + break; + } + } + } } + #endif - #endregion + } + + #endregion } diff --git a/Assets Editor/AssetsEditor.csproj b/Assets Editor/AssetsEditor.csproj index adde731..0f37482 100644 --- a/Assets Editor/AssetsEditor.csproj +++ b/Assets Editor/AssetsEditor.csproj @@ -2,21 +2,46 @@ WinExe - netcoreapp3.1 + net6.0-windows Assets_Editor true true Assets Editor Walking_000.ico + 2.0.0 + 2.0.0 - + + + + + - - + + - + + + + + + + + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + \ No newline at end of file diff --git a/Assets Editor/AssetsEditor.csproj.user b/Assets Editor/AssetsEditor.csproj.user index dafb428..d90a2e2 100644 --- a/Assets Editor/AssetsEditor.csproj.user +++ b/Assets Editor/AssetsEditor.csproj.user @@ -6,20 +6,50 @@ + + Code + Code + + Code + + + Code + + + Code + + + Code + Code + + Designer + Designer + + Designer + + + Designer + Designer + + Designer + + + Designer + Designer diff --git a/Assets Editor/DatEditor.xaml b/Assets Editor/DatEditor.xaml index 64ef8d5..7b1d102 100644 --- a/Assets Editor/DatEditor.xaml +++ b/Assets Editor/DatEditor.xaml @@ -3,536 +3,589 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:local="clr-namespace:Assets_Editor" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" + xmlns:local="clr-namespace:Assets_Editor" xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" + xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" + xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" mc:Ignorable="d" - Title="DatEditor" Height="860" Width="1220" materialDesign:ShadowAssist.CacheMode="{x:Null}"> - - - - - - - - - - + Title="DatEditor" Height="860" Width="1220" materialDesign:ShadowAssist.CacheMode="{x:Null}" Loaded="Window_Loaded"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Assets Editor/DatEditor.xaml.cs b/Assets Editor/DatEditor.xaml.cs index 5664a59..c80b79f 100644 --- a/Assets Editor/DatEditor.xaml.cs +++ b/Assets Editor/DatEditor.xaml.cs @@ -9,12 +9,14 @@ using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; -using System.Text; +using System.Linq; using System.Text.RegularExpressions; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Media.Imaging; using Tibia.Protobuf.Appearances; namespace Assets_Editor @@ -32,19 +34,30 @@ public partial class DatEditor : Window public AppearanceFlags CurrentFlags = null; List NpcDataList = new List(); public ObservableCollection BoundingBoxList = new ObservableCollection(); - private int CurrentSprDir = 1; - private ObservableCollection ObjectSprList = new ObservableCollection(); - - private ObservableCollection ObjectOutfitSprList = new ObservableCollection(); - private ObservableCollection ObjectAddonSprList = new ObservableCollection(); - private ObservableCollection ObjectMountSprList = new ObservableCollection(); - private ObservableCollection ObjectAddonMountSprList = new ObservableCollection(); + private int CurrentSprDir = 0; + private bool isPageLoaded = false; + private uint blankSpr = 158019; + private bool isObjectLoaded = false; + private Appearances exportObjects = new Appearances(); + private uint exportSprCounter = 0; + private int importSprCounter = 0; + private Dictionary importSprIdList = new Dictionary(); + private class ImportSpriteInfo + { + public MemoryStream Stream { get; set; } + public int OriginalIndex { get; set; } + public System.Drawing.Size Size { get; set; } + } protected override void OnClosed(EventArgs e) { base.OnClosed(e); Application.Current.Shutdown(); } + private void Window_Loaded(object sender, RoutedEventArgs e) + { + isPageLoaded = true; + } public DatEditor() { InitializeComponent(); @@ -77,6 +90,26 @@ public DatEditor(Appearances appearances) SprListView.ItemsSource = MainWindow.AllSprList; UpdateShowList(ObjectMenu.SelectedIndex); } + private void UpdateShowList(int selection) + { + if (ObjListView != null) + { + ObjListViewSelectedIndex.Minimum = 1; + if (selection == 0) + ObjListView.ItemsSource = ThingsOutfit; + else if (selection == 1) + { + ObjListView.ItemsSource = ThingsItem; + ObjListViewSelectedIndex.Minimum = 100; + } + else if (selection == 2) + ObjListView.ItemsSource = ThingsEffect; + else if (selection == 3) + ObjListView.ItemsSource = ThingsMissile; + + ObjListView.SelectedIndex = 0; + } + } private void SprListView_ScrollChanged(object sender, ScrollChangedEventArgs e) { VirtualizingStackPanel panel = Utils.FindVisualChild(SprListView); @@ -86,7 +119,7 @@ private void SprListView_ScrollChanged(object sender, ScrollChangedEventArgs e) //int maxOffset = (int)panel.ViewportHeight; for (int i = 0; i < SprListView.Items.Count; i++) { - if (i >= offset && i < Math.Min(offset + 14, SprListView.Items.Count) && MainWindow.SprLists.ContainsKey(i)) + if (i >= offset && i < Math.Min(offset + 20, SprListView.Items.Count) && MainWindow.SprLists.ContainsKey(i)) MainWindow.AllSprList[i].Image = Utils.BitmapToBitmapImage(MainWindow.SprLists[i]); else MainWindow.AllSprList[i].Image = null; @@ -123,26 +156,6 @@ private void SprListViewSelectedIndex_ValueChanged(object sender, RoutedProperty scrollViewer.ScrollToVerticalOffset(SprListView.SelectedIndex); } } - private void UpdateShowList(int selection) - { - if (ObjListView != null) - { - ObjListViewSelectedIndex.Minimum = 1; - if (selection == 0) - ObjListView.ItemsSource = ThingsOutfit; - else if (selection == 1) - { - ObjListView.ItemsSource = ThingsItem; - ObjListViewSelectedIndex.Minimum = 100; - } - else if (selection == 2) - ObjListView.ItemsSource = ThingsEffect; - else if (selection == 3) - ObjListView.ItemsSource = ThingsMissile; - - ObjListView.SelectedIndex = 0; - } - } private void ObjectMenuChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { @@ -157,8 +170,9 @@ private void ObjListView_ScrollChanged(object sender, System.Windows.Controls.Sc for (int i = 0; i < ObjListView.Items.Count; i++) { - if (i >= offset && i < Math.Min(offset + 14, ObjListView.Items.Count)) + if (i >= offset && i < Math.Min(offset + 20, ObjListView.Items.Count)) { + ShowList item = (ShowList)ObjListView.Items[i]; if (ObjectMenu.SelectedIndex == 0) ThingsOutfit[i].Image = Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)MainWindow.appearances.Outfit[i].FrameGroup[0].SpriteInfo.SpriteId[0]]); else if (ObjectMenu.SelectedIndex == 1) @@ -167,6 +181,8 @@ private void ObjListView_ScrollChanged(object sender, System.Windows.Controls.Sc ThingsEffect[i].Image = Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)MainWindow.appearances.Effect[i].FrameGroup[0].SpriteInfo.SpriteId[0]]); else if (ObjectMenu.SelectedIndex == 3) ThingsMissile[i].Image = Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)MainWindow.appearances.Missile[i].FrameGroup[0].SpriteInfo.SpriteId[0]]); + + AnimateSelectedListItem(item); } else { @@ -215,15 +231,12 @@ private void ObjListView_SelectionChanged(object sender, System.Windows.Controls if (ObjectMenu.SelectedIndex == 0) LoadSelectedObjectAppearances(MainWindow.appearances.Outfit[ObjListView.SelectedIndex]); else if (ObjectMenu.SelectedIndex == 1) - { LoadSelectedObjectAppearances(MainWindow.appearances.Object[ObjListView.SelectedIndex]); - } else if (ObjectMenu.SelectedIndex == 2) LoadSelectedObjectAppearances(MainWindow.appearances.Effect[ObjListView.SelectedIndex]); else if (ObjectMenu.SelectedIndex == 3) LoadSelectedObjectAppearances(MainWindow.appearances.Missile[ObjListView.SelectedIndex]); - ObjListViewSelectedIndex.Value = (int)showList.Id; if (ObjectMenu.SelectedIndex == 0) { SprUpArrow.Visibility = Visibility.Visible; @@ -243,28 +256,83 @@ private void ObjListView_SelectionChanged(object sender, System.Windows.Controls } } + private void LoadSelectedObjectAppearances(Appearance ObjectAppearance) { CurrentObjectAppearance = ObjectAppearance.Clone(); LoadCurrentObjectAppearances(); SprGroupSlider.ValueChanged -= SprGroupSlider_ValueChanged; + SprGroupSlider.Value = 0; + ChangeGroupType(0); + SprGroupSlider.ValueChanged += SprGroupSlider_ValueChanged; + + } + + private void ChangeGroupType(int group) + { + isObjectLoaded = false; A_SprGroups.Value = CurrentObjectAppearance.FrameGroup.Count; - SprFramesSlider.Value = 0; + A_SprLayers.Value = (int)CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Layers; + A_SprPaternX.Value = (int)CurrentObjectAppearance.FrameGroup[group].SpriteInfo.PatternWidth; + A_SprPaternY.Value = (int)CurrentObjectAppearance.FrameGroup[group].SpriteInfo.PatternHeight; + A_SprPaternZ.Value = (int)CurrentObjectAppearance.FrameGroup[group].SpriteInfo.PatternDepth; + A_SprAnimation.Value = CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation != null ? (int)CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.SpritePhase.Count : 1; + + CurrentSprDir = 2; + ButtonProgressAssist.SetIsIndicatorVisible(SprUpArrow, false); + ButtonProgressAssist.SetIsIndicatorVisible(SprRightArrow, false); + ButtonProgressAssist.SetIsIndicatorVisible(SprDownArrow, true); + ButtonProgressAssist.SetIsIndicatorVisible(SprLeftArrow, false); + ForceSliderChange(); + SprFramesSlider.Maximum = (double)A_SprAnimation.Value - 1; + AnimationTab.IsEnabled = CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation != null; + if (A_SprAnimation.Value > 1) + { + SprDefaultPhase.Value = CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.HasDefaultStartPhase ? (int)CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.DefaultStartPhase : 0; + SprRandomPhase.IsChecked = CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.HasRandomStartPhase ? CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.RandomStartPhase : false; + SprSynchronized.IsChecked = CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.HasSynchronized ? CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.Synchronized : false; + if (CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.HasLoopType) + { + if (CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.LoopType == ANIMATION_LOOP_TYPE.Pingpong) + SprLoopType.SelectedIndex = 0; + else if (CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.LoopType == ANIMATION_LOOP_TYPE.Infinite) + SprLoopType.SelectedIndex = 1; + else if (CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.LoopType == ANIMATION_LOOP_TYPE.Counted) + SprLoopType.SelectedIndex = 2; + else + SprLoopType.SelectedIndex = -1; + } + SprLoopCount.Value = CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.HasLoopCount ? (int)CurrentObjectAppearance.FrameGroup[group].SpriteInfo.Animation.LoopCount : 0; - SprGroupSlider.Value = 0; - SprGroupType.Content = "Idle"; + } - LoadSprPatterns((int)SprGroupSlider.Value); - SprGroupSlider.ValueChanged += SprGroupSlider_ValueChanged; - CurrentSprDir = 1; - SprBlendLayer.IsChecked = false; - SprMount.IsChecked = false; - SprFramesSliderCounter.Content = 1; - ChangeObjectSprImg(CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value], true); - + A_SprOpaque.IsChecked = CurrentObjectAppearance.FrameGroup[group].SpriteInfo.IsOpaque; + A_SprBounding.Value = CurrentObjectAppearance.FrameGroup[group].SpriteInfo.HasBoundingSquare ? (int)CurrentObjectAppearance.FrameGroup[group].SpriteInfo.BoundingSquare : 0; + + if (CurrentObjectAppearance.FrameGroup[group].SpriteInfo.BoundingBoxPerDirection != null) + { + BoundingBoxList.Clear(); + foreach (var box in CurrentObjectAppearance.FrameGroup[group].SpriteInfo.BoundingBoxPerDirection) + BoundingBoxList.Add(new Box() { X = box.X, Y = box.Y, Width = box.Width, Height = box.Height }); + BoxPerDirection.ItemsSource = null; + BoxPerDirection.ItemsSource = BoundingBoxList; + + } + SprGroupType.Content = SprGroupSlider.Value == 0 ? "Idle" : "Walking"; + isObjectLoaded = true; + } + private void ForceSliderChange() + { + SprFramesSlider.ValueChanged -= SprFramesSlider_ValueChanged; + SprFramesSlider.Minimum = -1; + SprFramesSlider.Value = -1; + SprFramesSlider.ValueChanged += SprFramesSlider_ValueChanged; + SprFramesSlider.Minimum = 0; } + private void LoadCurrentObjectAppearances() { + A_FlagId.Value = (int)CurrentObjectAppearance.Id; A_FlagGround.IsChecked = CurrentObjectAppearance.Flags.Bank != null; A_FlagGroundSpeed.Value = (CurrentObjectAppearance.Flags.Bank != null && CurrentObjectAppearance.Flags.Bank.HasWaypoints) ? (int)CurrentObjectAppearance.Flags.Bank.Waypoints : 0; A_FlagClip.IsChecked = CurrentObjectAppearance.Flags.Clip; @@ -324,32 +392,32 @@ private void LoadCurrentObjectAppearances() A_FlagProfessionSorcerer.IsChecked = false; A_FlagProfessionDruid.IsChecked = false; A_FlagProfessionPromoted.IsChecked = false; - if (CurrentObjectAppearance.Flags.Market != null && CurrentObjectAppearance.Flags.Market.RestrictToProfession.Count > 0) + if (CurrentObjectAppearance.Flags.Market != null && CurrentObjectAppearance.Flags.Market.RestrictToVocation.Count > 0) { - foreach (var profession in CurrentObjectAppearance.Flags.Market.RestrictToProfession) + foreach (var profession in CurrentObjectAppearance.Flags.Market.RestrictToVocation) { - if (profession == PLAYER_PROFESSION.Any) + if (profession == VOCATION.Any) A_FlagProfessionAny.IsChecked = true; - else if (profession == PLAYER_PROFESSION.None) + else if (profession == VOCATION.None) A_FlagProfessionNone.IsChecked = true; - else if (profession == PLAYER_PROFESSION.Knight) + else if (profession == VOCATION.Knight) A_FlagProfessionKnight.IsChecked = true; - else if (profession == PLAYER_PROFESSION.Paladin) + else if (profession == VOCATION.Paladin) A_FlagProfessionPaladin.IsChecked = true; - else if (profession == PLAYER_PROFESSION.Sorcerer) + else if (profession == VOCATION.Sorcerer) A_FlagProfessionSorcerer.IsChecked = true; - else if (profession == PLAYER_PROFESSION.Druid) + else if (profession == VOCATION.Druid) A_FlagProfessionDruid.IsChecked = true; - else if (profession == PLAYER_PROFESSION.Promoted) + else if (profession == VOCATION.Promoted) A_FlagProfessionPromoted.IsChecked = true; } } A_FlagMarketlevel.Value = (CurrentObjectAppearance.Flags.Market != null && CurrentObjectAppearance.Flags.Market.HasMinimumLevel) ? (int)CurrentObjectAppearance.Flags.Market.MinimumLevel : 0; - A_FlagName.Text = CurrentObjectAppearance.HasName ? CurrentObjectAppearance.Name.ToString() : null; - A_FlagDescription.Text = CurrentObjectAppearance.HasDescription ? CurrentObjectAppearance.Description.ToString() : null; + A_FlagName.Text = CurrentObjectAppearance.HasName ? CurrentObjectAppearance.Name : null; + A_FlagDescription.Text = CurrentObjectAppearance.HasDescription ? CurrentObjectAppearance.Description : null; A_FlagWrap.IsChecked = CurrentObjectAppearance.Flags.HasWrap; A_FlagUnwrap.IsChecked = CurrentObjectAppearance.Flags.HasUnwrap; - A_FlagWrapkit.IsChecked = CurrentObjectAppearance.Flags.HasWrapkit; + A_FlagDecoItemKit.IsChecked = CurrentObjectAppearance.Flags.HasDecoItemKit; A_FlagTopeffect.IsChecked = CurrentObjectAppearance.Flags.HasTop; A_FlagChangedToExpire.IsChecked = CurrentObjectAppearance.Flags.Changedtoexpire != null; A_FlagChangedToExpireId.Value = (CurrentObjectAppearance.Flags.Changedtoexpire != null && CurrentObjectAppearance.Flags.Changedtoexpire.HasFormerObjectTypeid) ? (int)CurrentObjectAppearance.Flags.Changedtoexpire.FormerObjectTypeid : 0; @@ -383,6 +451,7 @@ private void LoadCurrentObjectAppearances() A_FlagNPCData.ItemsSource = null; A_FlagNPCData.ItemsSource = NpcDataList; + A_FullInfo.Text = CurrentObjectAppearance.ToString(); } private void A_FlagLightColorPickerChanged(object sender, RoutedPropertyChangedEventArgs e) { @@ -413,348 +482,281 @@ private void A_FlagMarketProfession_SelectionChanged(object sender, SelectionCha { A_FlagMarketProfession.SelectedIndex = -1; } - - - private void Spr_Drop(object sender, DragEventArgs e) - { - Image img = e.Source as Image; - ShowList data = (ShowList)e.Data.GetData(typeof(ShowList)); - ObjectSprList[(int)SprFramesSlider.Value + (int)img.Tag].Id = data.Id; - ObjectSprList[(int)SprFramesSlider.Value + (int)img.Tag].Image = data.Image; - img.Source = data.Image; - - uint patternHeight = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.HasPatternHeight ? CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.PatternHeight : 1; - uint patternWidth = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.HasPatternWidth ? CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.PatternWidth : 1; - ObjectSprImgPanel.Width = ObjectMenu.SelectedIndex == 0 ? data.Image.Width : data.Image.Width * patternWidth; - ObjectSprImgPanel.Height = ObjectMenu.SelectedIndex == 0 ? data.Image.Height : data.Image.Height * patternHeight; - } - - private void SprFramesSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) { - SprFramesSliderCounter.Content = (int)(SprFramesSlider.Value / SprFramesSlider.TickFrequency) + 1; - SetSpriteFrame(); - } - - private void SetSpriteFrame() - { - if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation != null) - { - SpriteAnimationGroup.IsEnabled = true; - SprPhaseMin.Value = (int)CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.SpritePhase[(int)(SprFramesSlider.Value / SprFramesSlider.TickFrequency)].DurationMin; - SprPhaseMax.Value = (int)CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.SpritePhase[(int)(SprFramesSlider.Value / SprFramesSlider.TickFrequency)].DurationMax; - - List images = Utils.GetLogicalChildCollection(ObjectSprImgPanel); - foreach (Image child in images) - { - child.Source = ObjectSprList[(int)child.Tag + ((int)SprFramesSlider.Value * images.Count)].Image; - } - } - else - SpriteAnimationGroup.IsEnabled = false; - } - private void SprGroupSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) - { - SaveSprPatterns(SprGroupSlider.Value == 0 ? 1 : 0); - LoadSprPatterns((int)SprGroupSlider.Value); - SprGroupType.Content = SprGroupSlider.Value == 0 ? "Idle" : "Walking"; - StorePreviousGroup(SprGroupSlider.Value == 0 ? 1 : 0); - ChangeObjectSprImg(CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value], true); - } - private void LoadSprPatterns(int groupId) - { - A_SprLayers.Value = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.HasLayers ? (int)CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Layers : 1; - A_SprPaternX.Value = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.HasPatternWidth ? (int)CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.PatternWidth : 1; - A_SprPaternY.Value = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.HasPatternHeight ? (int)CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.PatternHeight : 1; - A_SprPaternZ.Value = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.HasPatternDepth ? (int)CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.PatternDepth : 1; - AnimationTab.IsEnabled = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation != null; - if (CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation != null) + FrameGroup frameGroup = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value]; + if (frameGroup.SpriteInfo.Animation != null) { - SprDefaultPhase.Value = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.HasDefaultStartPhase ? (int)CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.DefaultStartPhase : 0; - SprRandomPhase.IsChecked = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.HasRandomStartPhase ? CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.RandomStartPhase : false; - SprSynchronized.IsChecked = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.HasSynchronized ? CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.Synchronized : false; - - if (CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.HasLoopType) - { - if (CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.LoopType == ANIMATION_LOOP_TYPE.Pingpong) - SprLoopType.SelectedIndex = 0; - else if (CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.LoopType == ANIMATION_LOOP_TYPE.Infinite) - SprLoopType.SelectedIndex = 1; - else if (CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.LoopType == ANIMATION_LOOP_TYPE.Counted) - SprLoopType.SelectedIndex = 2; - else - SprLoopType.SelectedIndex = -1; - } - SprLoopCount.Value = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.HasLoopCount ? (int)CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.LoopCount : 0; + SprPhaseMin.Value = (int)frameGroup.SpriteInfo.Animation.SpritePhase[(int)SprFramesSlider.Value].DurationMin; + SprPhaseMax.Value = (int)frameGroup.SpriteInfo.Animation.SpritePhase[(int)SprFramesSlider.Value].DurationMax; } - A_SprOpaque.IsChecked = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.IsOpaque; - A_SprBounding.Value = CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.HasBoundingSquare ? (int)CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.BoundingSquare : 0; - if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.BoundingBoxPerDirection != null) + SpriteViewerGrid.Children.Clear(); + SpriteViewerGrid.RowDefinitions.Clear(); + SpriteViewerGrid.ColumnDefinitions.Clear(); + int gridWidth = 1; + int gridHeight = 1; + if (ObjectMenu.SelectedIndex != 0) { - BoundingBoxList.Clear(); - foreach (var box in CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.BoundingBoxPerDirection) - BoundingBoxList.Add(new Box() { X = box.X, Y = box.Y, Width = box.Width, Height = box.Height }); - BoxPerDirection.ItemsSource = null; - BoxPerDirection.ItemsSource = BoundingBoxList; - + gridWidth = (int)frameGroup.SpriteInfo.PatternHeight; + gridHeight = (int)frameGroup.SpriteInfo.PatternWidth; } - } - private void SaveSprPatterns(int groupId) - { - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.IsOpaque = (bool)A_SprOpaque.IsChecked; - A_SprOpaque.IsChecked = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.IsOpaque; - - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.BoundingSquare = (uint)A_SprBounding.Value; - A_SprBounding.Value = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.HasBoundingSquare ? (int)CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.BoundingSquare : 0; + int imgWidth = (int)Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)frameGroup.SpriteInfo.SpriteId[0]]).Width; + int imgHeight = (int)Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)frameGroup.SpriteInfo.SpriteId[0]]).Height; - - if (CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation != null) + for (int i = 0; i < gridWidth; i++) { - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.DefaultStartPhase = (uint)SprDefaultPhase.Value; - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.RandomStartPhase = (bool)SprRandomPhase.IsChecked; - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.Synchronized = (bool)SprSynchronized.IsChecked; - - if (SprLoopType.SelectedIndex > -1) - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.LoopType = (ANIMATION_LOOP_TYPE)(SprLoopType.SelectedIndex - 1); - if (SprLoopCount.Value > 0) - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.Animation.LoopCount = (uint)SprLoopCount.Value; + RowDefinition rowDef = new RowDefinition(); + rowDef.Height = new GridLength(imgHeight); + SpriteViewerGrid.RowDefinitions.Add(rowDef); } - - if (BoundingBoxList.Count > 0) + for (int i = 0; i < gridHeight; i++) { - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.BoundingBoxPerDirection.Clear(); - foreach (var box in BoundingBoxList) - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.BoundingBoxPerDirection.Add(box); + ColumnDefinition colDef = new ColumnDefinition(); + colDef.Width = new GridLength(imgWidth); + SpriteViewerGrid.ColumnDefinitions.Add(colDef); } - } - private void StorePreviousGroup(int groupId) - { - foreach (ShowList showList in ObjectOutfitSprList) - { - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.SpriteId[showList.Pos] = showList.Id; - } - foreach (ShowList showList in ObjectMountSprList) - { - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.SpriteId[showList.Pos] = showList.Id; - } - foreach (ShowList showList in ObjectAddonSprList) + if (ObjectMenu.SelectedIndex == 0) { - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.SpriteId[showList.Pos] = showList.Id; + int layer = SprBlendLayer.IsChecked == true ? (int)frameGroup.SpriteInfo.Layers - 1 : 0; + int mount = SprMount.IsChecked == true ? (int)frameGroup.SpriteInfo.PatternDepth - 1 : 0; + int addon = frameGroup.SpriteInfo.PatternWidth > 1 ? (int)SprAddonSlider.Value : 0; + int index = GetSpriteIndex(frameGroup, layer, (int)Math.Min(CurrentSprDir, frameGroup.SpriteInfo.PatternWidth - 1), addon, mount, (int)SprFramesSlider.Value); + int spriteId = (int)frameGroup.SpriteInfo.SpriteId[index]; + SetImageInGrid(SpriteViewerGrid, gridWidth, gridHeight, Utils.BitmapToBitmapImage(MainWindow.SprLists[spriteId]), 1, spriteId, index); } - foreach (ShowList showList in ObjectAddonMountSprList) + else { - CurrentObjectAppearance.FrameGroup[groupId].SpriteInfo.SpriteId[showList.Pos] = showList.Id; + int counter = 1; + int mount = SprMount.IsChecked == true ? (int)frameGroup.SpriteInfo.PatternDepth - 1 : 0; + for (int ph = 0; ph < frameGroup.SpriteInfo.PatternHeight; ph++) + { + for (int pw = 0; pw < frameGroup.SpriteInfo.PatternWidth; pw++) + { + int index = GetSpriteIndex(frameGroup, 0, pw, ph, mount, (int)SprFramesSlider.Value); + int spriteId = (int)frameGroup.SpriteInfo.SpriteId[index]; + SetImageInGrid(SpriteViewerGrid, gridWidth, gridHeight, Utils.BitmapToBitmapImage(MainWindow.SprLists[spriteId]), counter, spriteId, index); + counter++; + } + } } } - private void ChangeDirection(object sender, System.Windows.Input.MouseButtonEventArgs e) - { - Button _dir = (Button)sender; - - CurrentSprDir = int.Parse(_dir.Uid); - ChangeSprDirection(); - } - - private void ChangeSprDirection() + private void SetImageInGrid(Grid grid, int gridWidth, int gridHeight, BitmapImage image, int id, int spriteId, int index) { - uint patternLayers = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.HasLayers ? CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Layers : 1; - uint patternHeight = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.HasPatternHeight ? CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.PatternHeight : 1; - uint patternWidth = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.HasPatternWidth ? CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.PatternWidth : 1; - uint patternDepth = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.HasPatternDepth ? CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.PatternDepth : 1; - int SprPreFrame = (int)(patternWidth * patternHeight * patternDepth * patternLayers); - int AnimationCount = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.SpriteId.Count / SprPreFrame; + // Get the row and column of the cell based on the ID number + int row = (id - 1) / gridHeight; + int col = (id - 1) % gridHeight; - SprFramesSlider.Minimum = CurrentSprDir; - SprFramesSlider.Maximum = ObjectSprList.Count - ((4 - CurrentSprDir) * patternLayers); - if (patternLayers > 1) + // Get the existing Image control in the cell, or create a new one if it doesn't exist + Image existingImage = null; + foreach (UIElement element in grid.Children) { - if (CurrentSprDir > 0) + if (Grid.GetRow(element) == row && Grid.GetColumn(element) == col && element is Image) { - SprFramesSlider.Minimum += (CurrentSprDir * 1); - } - - if (SprBlendLayer.IsChecked == true) - { - SprFramesSlider.Minimum += 1; - if (A_SprAnimation.Value > 1) - SprFramesSlider.Maximum += 1; + existingImage = element as Image; + break; } } - - SprFramesSlider.TickFrequency = patternWidth * patternLayers; - if (SprAddonSlider.Value > 0) + if (existingImage == null) { - SprFramesSlider.TickFrequency = (SprFramesSlider.TickFrequency * 2); - if (SprAddonSlider.Value == 1) - SprFramesSlider.Maximum -= (patternWidth * patternLayers); - else if (SprAddonSlider.Value == 2) - SprFramesSlider.Minimum += (patternWidth * patternLayers); + existingImage = new Image(); + existingImage.Width = image.Width; + existingImage.Height = image.Height; + AllowDrop = true; + Grid.SetRow(existingImage, row); + Grid.SetColumn(existingImage, col); + grid.Children.Add(existingImage); } - - SprFramesSlider.Value = SprFramesSlider.Minimum; - - if (ObjectMenu.SelectedIndex != 0) + existingImage.MouseLeftButtonDown += Img_PreviewMouseLeftButtonDown; + existingImage.Drop += Spr_Drop; + existingImage.ToolTip = spriteId.ToString(); + existingImage.Tag = index; + // Set the Source property of the Image control to the specified Image + existingImage.Source = image; + RenderOptions.SetBitmapScalingMode(existingImage, BitmapScalingMode.NearestNeighbor); + } + private void Spr_Drop(object sender, DragEventArgs e) + { + Image img = e.Source as Image; + ShowList data = (ShowList)e.Data.GetData(typeof(ShowList)); + img.Source = data.Image; + img.Width = data.Image.Width; + img.Height = data.Image.Height; + foreach (ColumnDefinition column in SpriteViewerGrid.ColumnDefinitions) { - SprFramesSlider.Maximum = (int)A_SprAnimation.Value - 1; - SprFramesSlider.TickFrequency = 1; + column.Width = new GridLength(img.Width); } - List images = Utils.GetLogicalChildCollection(ObjectSprImgPanel); - foreach (Image child in images) + foreach (RowDefinition row in SpriteViewerGrid.RowDefinitions) { - ObjectSprImgPanel.Children.Remove(child); + row.Height = new GridLength(img.Height); } - int ObjectSprImgCount = ObjectMenu.SelectedIndex == 0 ? 1 : (int)(patternWidth * patternHeight); - int ImgPanelWidth = 32; - int ImgPanelHeight = 32; + img.ToolTip = data.Id.ToString(); + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.SpriteId[(int)img.Tag] = uint.Parse((string)img.ToolTip); + } - if (ObjectSprList.Count == 1) - { - SprFramesSlider.Minimum = 0; - SprFramesSlider.Maximum = 0; - } + public int GetSpriteIndex(FrameGroup frameGroup, int layers, int patternX, int patternY, int patternZ, int frames) + { + var spriteInfo = frameGroup.SpriteInfo; + int index = 0; + + if (spriteInfo.Animation != null) + index = (int)(frames % spriteInfo.Animation.SpritePhase.Count); + index = index * (int)spriteInfo.PatternDepth + patternZ; + index = index * (int)spriteInfo.PatternHeight + patternY; + index = index * (int)spriteInfo.PatternWidth + patternX; + index = index * (int)spriteInfo.Layers + layers; + return index; + } - for (int i = 0; i < (ObjectSprImgCount); i++) - { - Image img = new Image - { - Stretch = Stretch.None, - MinWidth = 32, - MinHeight = 32, - HorizontalAlignment = HorizontalAlignment.Center, - VerticalAlignment = VerticalAlignment.Center, - AllowDrop = true - }; - img.Drop += Spr_Drop; - img.PreviewMouseLeftButtonDown += Img_PreviewMouseLeftButtonDown; - img.Source = ObjectSprList[(int)SprFramesSlider.Minimum + i].Image; - img.Tag = i; - ObjectSprImgPanel.Children.Add(img); - if (ObjectSprList[i].Image.Width > ImgPanelWidth) - ImgPanelWidth = (int)ObjectSprList[i].Image.Width; - if (ObjectSprList[i].Image.Height > ImgPanelHeight) - ImgPanelHeight = (int)ObjectSprList[i].Image.Height; + private void SprGroupSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) + { + ChangeGroupType((int)SprGroupSlider.Value); + } - } - ObjectSprImgPanel.Width = ObjectMenu.SelectedIndex == 0 ? ImgPanelWidth : ImgPanelWidth * patternWidth; - ObjectSprImgPanel.Height = ObjectMenu.SelectedIndex == 0 ? ImgPanelHeight : ImgPanelHeight * patternHeight; + private void ChangeDirection(object sender, System.Windows.Input.MouseButtonEventArgs e) + { + Button _dir = (Button)sender; + + CurrentSprDir = int.Parse(_dir.Uid); + ForceSliderChange(); + ButtonProgressAssist.SetIsIndicatorVisible(SprUpArrow, false); + ButtonProgressAssist.SetIsIndicatorVisible(SprRightArrow, false); + ButtonProgressAssist.SetIsIndicatorVisible(SprDownArrow, false); + ButtonProgressAssist.SetIsIndicatorVisible(SprLeftArrow, false); + ButtonProgressAssist.SetIsIndicatorVisible(_dir, true); } + private void Img_PreviewMouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { Image img = e.Source as Image; - List images = Utils.GetLogicalChildCollection(ObjectSprImgPanel); - SprListView.SelectedIndex = (int)ObjectSprList[((int)SprFramesSlider.Value * images.Count) + (int)img.Tag].Id; + SprListView.SelectedIndex = int.Parse((string)img.ToolTip); ScrollViewer scrollViewer = Utils.FindVisualChild(SprListView); scrollViewer.ScrollToVerticalOffset(SprListView.SelectedIndex); } - private void ChangeObjectSprImg(FrameGroup frameGroup, bool reset) - { - uint patternWidth = frameGroup.SpriteInfo.HasPatternWidth ? frameGroup.SpriteInfo.PatternWidth : 1; - uint patternHeight = frameGroup.SpriteInfo.HasPatternHeight ? frameGroup.SpriteInfo.PatternHeight : 1; - uint patternDepth = frameGroup.SpriteInfo.HasPatternDepth ? frameGroup.SpriteInfo.PatternDepth : 1; - uint patternLayers = frameGroup.SpriteInfo.HasLayers ? frameGroup.SpriteInfo.Layers : 1; - int SprPreFrame = (int)(patternWidth * patternHeight * patternDepth * patternLayers); - int AnimationCount = frameGroup.SpriteInfo.SpriteId.Count / SprPreFrame; - - SprAddonSlider.Maximum = patternHeight - 1; - A_SprAnimation.Value = AnimationCount; - - CurrentSprDir = 0; - if (reset) - { - ObjectOutfitSprList.Clear(); - ObjectAddonSprList.Clear(); - ObjectMountSprList.Clear(); - ObjectAddonMountSprList.Clear(); - ObjectSprList.Clear(); - - for (int x = 0; x < A_SprAnimation.Value; x++) - { - for (int i = SprPreFrame * x; i < SprPreFrame * (x + 1); i++) - { - if ((i < (patternWidth * patternLayers) + (SprPreFrame * x)) || ObjectMenu.SelectedIndex != 0) - { - if (i < ((patternWidth * patternHeight * patternLayers) + (SprPreFrame * x))) - ObjectOutfitSprList.Add(new ShowList() { Id = frameGroup.SpriteInfo.SpriteId[i], Image = Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)frameGroup.SpriteInfo.SpriteId[i]]), Pos = i }); - else - ObjectMountSprList.Add(new ShowList() { Id = frameGroup.SpriteInfo.SpriteId[i], Image = Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)frameGroup.SpriteInfo.SpriteId[i]]), Pos = i }); - } - else if ((i >= (patternWidth * patternLayers) + (SprPreFrame * x) && i < (patternWidth * patternHeight * patternLayers) + (SprPreFrame * x))) - ObjectAddonSprList.Add(new ShowList() { Id = frameGroup.SpriteInfo.SpriteId[i], Image = Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)frameGroup.SpriteInfo.SpriteId[i]]), Pos = i }); - else if (i >= ((patternWidth * patternHeight * patternLayers) + (SprPreFrame * x)) && i < (patternWidth * patternHeight * patternDepth * patternLayers - (patternWidth * patternDepth * patternLayers) + (SprPreFrame * x))) - ObjectMountSprList.Add(new ShowList() { Id = frameGroup.SpriteInfo.SpriteId[i], Image = Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)frameGroup.SpriteInfo.SpriteId[i]]), Pos = i }); - else if (i >= (patternWidth * patternHeight * patternDepth * patternLayers - (patternWidth * patternDepth * patternLayers) + (SprPreFrame * x))) - ObjectAddonMountSprList.Add(new ShowList() { Id = frameGroup.SpriteInfo.SpriteId[i], Image = Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)frameGroup.SpriteInfo.SpriteId[i]]), Pos = i }); - } - - } - } - - if (SprAddonSlider.Value == 0 && SprMount.IsChecked == false) - ObjectSprList = ObjectOutfitSprList; - else if (SprAddonSlider.Value == 0 && SprMount.IsChecked == true) - ObjectSprList = ObjectMountSprList; - else if (SprAddonSlider.Value > 0 && SprMount.IsChecked == false) - ObjectSprList = ObjectAddonSprList; - else if (SprAddonSlider.Value > 0 && SprMount.IsChecked == true) - ObjectSprList = ObjectAddonMountSprList; - - ChangeSprDirection(); - SetSpriteFrame(); - - } private void SprMount_Click(object sender, RoutedEventArgs e) { - ChangeObjectSprImg(CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value], false); + ForceSliderChange(); } private void SprBlendLayer_Click(object sender, RoutedEventArgs e) { - ChangeObjectSprImg(CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value], false); + ForceSliderChange(); } private void SprAddonSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) { - ChangeObjectSprImg(CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value], false); + ForceSliderChange(); } private void BoxPerDirection_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e) { if (BoundingBoxList.Count > 4) BoundingBoxList.RemoveAt(BoundingBoxList.Count - 1); - } - private void A_SprGroups_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) - { - SprGroupSlider.Maximum = (int)A_SprGroups.Value - 1; + if (BoundingBoxList.Count > 0) + { + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.BoundingBoxPerDirection.Clear(); + foreach (var box in BoundingBoxList) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.BoundingBoxPerDirection.Add(box); + } } - - private void A_SprLayers_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) + private void FixSpritesCount() { - if (A_SprLayers.Value > 1) - SprBlendLayer.IsEnabled = true; - else - SprBlendLayer.IsEnabled = false; - } + SpriteInfo spriteInfo = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo; + int NumSprites = (int)(spriteInfo.PatternWidth * spriteInfo.PatternHeight * spriteInfo.PatternDepth * spriteInfo.Layers * A_SprAnimation.Value); - private void A_SprPaternZ_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) + if (spriteInfo.SpriteId.Count > NumSprites) + { + int excessCount = spriteInfo.SpriteId.Count - NumSprites; + for (int i = 0; i < excessCount; i++) + { + spriteInfo.SpriteId.RemoveAt(spriteInfo.SpriteId.Count - 1); + } + } + else if (spriteInfo.SpriteId.Count < NumSprites) + { + int missingCount = NumSprites - spriteInfo.SpriteId.Count; + for (int i = 0; i < missingCount; i++) + { + spriteInfo.SpriteId.Add(blankSpr); + } + } + } + private void A_Texture_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) { - if (A_SprPaternZ.Value > 1) - SprMount.IsEnabled = true; - else - SprMount.IsEnabled = false; + if (!isPageLoaded || isObjectLoaded == false) + return; + + FrameworkElement frameworkElement = sender as FrameworkElement; + SpriteInfo spriteInfo = CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo; + if (frameworkElement.Name == "A_SprGroups") + { + if (A_SprGroups.Value == 1 && CurrentObjectAppearance.FrameGroup.Count == 2) + { + CurrentObjectAppearance.FrameGroup.RemoveAt(1); + CurrentObjectAppearance.FrameGroup[0].FixedFrameGroup = FIXED_FRAME_GROUP.OutfitMoving; + } + else if (A_SprGroups.Value == 2 && CurrentObjectAppearance.FrameGroup.Count == 1) + { + FrameGroup newFrameGroup = CurrentObjectAppearance.FrameGroup[0].Clone(); + CurrentObjectAppearance.FrameGroup.Add(newFrameGroup); + CurrentObjectAppearance.FrameGroup[0].FixedFrameGroup = FIXED_FRAME_GROUP.OutfitIdle; + } + } + else if (frameworkElement.Name == "A_SprLayers") + { + spriteInfo.Layers = (uint)A_SprLayers.Value; + FixSpritesCount(); + SprBlendLayer.IsEnabled = A_SprLayers.Value > 1 ? true : false; + } + else if (frameworkElement.Name == "A_SprPaternX") + { + spriteInfo.PatternWidth = (uint)A_SprPaternX.Value; + FixSpritesCount(); + } + else if (frameworkElement.Name == "A_SprPaternY") + { + spriteInfo.PatternHeight = (uint)A_SprPaternY.Value; + FixSpritesCount(); + } + else if (frameworkElement.Name == "A_SprPaternZ") + { + spriteInfo.PatternDepth = (uint)A_SprPaternZ.Value; + FixSpritesCount(); + SprMount.IsEnabled = A_SprPaternZ.Value > 1 ? true : false; + } + else if (frameworkElement.Name == "A_SprAnimation") + { + if (A_SprAnimation.Value == 1) + { + spriteInfo.Animation = null; + } + else + { + SpriteAnimation spriteAnimation = new SpriteAnimation(); + for (int i = 0; i < A_SprAnimation.Value; i++) + spriteAnimation.SpritePhase.Add(new SpritePhase() { DurationMin = 100, DurationMax = 100 }); + spriteInfo.Animation = spriteAnimation; + } + + FixSpritesCount(); + SpriteAnimationGroup.IsEnabled = A_SprAnimation.Value > 1 ? true : false; + SprFramesSlider.Maximum = (double)A_SprAnimation.Value - 1; + } } + private void ObjectSave_PreviewMouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (!string.IsNullOrWhiteSpace(A_FlagName.Text)) - CurrentObjectAppearance.Name = ByteString.CopyFrom(A_FlagName.Text, Encoding.UTF8); + CurrentObjectAppearance.Name = A_FlagName.Text; if (!string.IsNullOrWhiteSpace(A_FlagDescription.Text)) - CurrentObjectAppearance.Description = ByteString.CopyFrom(A_FlagDescription.Text, Encoding.UTF8); + CurrentObjectAppearance.Description = A_FlagDescription.Text; if ((bool)A_FlagGround.IsChecked) { CurrentObjectAppearance.Flags.Bank = new AppearanceFlagBank @@ -1051,14 +1053,14 @@ private void ObjectSave_PreviewMouseLeftButtonDown(object sender, System.Windows ShowAsObjectId = (uint)A_FlagMarketShow.Value, MinimumLevel = (uint)A_FlagMarketlevel.Value, }; - CurrentObjectAppearance.Flags.Market.RestrictToProfession.Clear(); - if ((bool)A_FlagProfessionAny.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToProfession.Add(PLAYER_PROFESSION.Any); - if ((bool)A_FlagProfessionNone.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToProfession.Add(PLAYER_PROFESSION.None); - if ((bool)A_FlagProfessionKnight.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToProfession.Add(PLAYER_PROFESSION.Knight); - if ((bool)A_FlagProfessionPaladin.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToProfession.Add(PLAYER_PROFESSION.Paladin); - if ((bool)A_FlagProfessionSorcerer.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToProfession.Add(PLAYER_PROFESSION.Sorcerer); - if ((bool)A_FlagProfessionDruid.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToProfession.Add(PLAYER_PROFESSION.Druid); - if ((bool)A_FlagProfessionPromoted.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToProfession.Add(PLAYER_PROFESSION.Promoted); + CurrentObjectAppearance.Flags.Market.RestrictToVocation.Clear(); + if ((bool)A_FlagProfessionAny.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToVocation.Add(VOCATION.Any); + if ((bool)A_FlagProfessionNone.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToVocation.Add(VOCATION.None); + if ((bool)A_FlagProfessionKnight.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToVocation.Add(VOCATION.Knight); + if ((bool)A_FlagProfessionPaladin.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToVocation.Add(VOCATION.Paladin); + if ((bool)A_FlagProfessionSorcerer.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToVocation.Add(VOCATION.Sorcerer); + if ((bool)A_FlagProfessionDruid.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToVocation.Add(VOCATION.Druid); + if ((bool)A_FlagProfessionPromoted.IsChecked) CurrentObjectAppearance.Flags.Market.RestrictToVocation.Add(VOCATION.Promoted); } else CurrentObjectAppearance.Flags.Market = null; @@ -1073,10 +1075,10 @@ private void ObjectSave_PreviewMouseLeftButtonDown(object sender, System.Windows else if (CurrentObjectAppearance.Flags.HasUnwrap) CurrentObjectAppearance.Flags.ClearUnwrap(); - if ((bool)A_FlagWrapkit.IsChecked) - CurrentObjectAppearance.Flags.Wrapkit = true; - else if (CurrentObjectAppearance.Flags.HasWrapkit) - CurrentObjectAppearance.Flags.ClearWrapkit(); + if ((bool)A_FlagDecoItemKit.IsChecked) + CurrentObjectAppearance.Flags.DecoItemKit = true; + else if (CurrentObjectAppearance.Flags.HasDecoItemKit) + CurrentObjectAppearance.Flags.ClearDecoItemKit(); if ((bool)A_FlagTopeffect.IsChecked) CurrentObjectAppearance.Flags.Topeffect = true; @@ -1125,8 +1127,6 @@ private void ObjectSave_PreviewMouseLeftButtonDown(object sender, System.Windows } } - SaveSprPatterns((int)SprGroupSlider.Value); - StorePreviousGroup((int)SprGroupSlider.Value); if (ObjectMenu.SelectedIndex == 0) MainWindow.appearances.Outfit[ObjListView.SelectedIndex] = CurrentObjectAppearance.Clone(); else if (ObjectMenu.SelectedIndex == 1) @@ -1135,23 +1135,62 @@ private void ObjectSave_PreviewMouseLeftButtonDown(object sender, System.Windows MainWindow.appearances.Effect[ObjListView.SelectedIndex] = CurrentObjectAppearance.Clone(); else if (ObjectMenu.SelectedIndex == 3) MainWindow.appearances.Missile[ObjListView.SelectedIndex] = CurrentObjectAppearance.Clone(); - StatusBar.MessageQueue.Enqueue($"Saved Current Object.", null, null, null, false, true, TimeSpan.FromSeconds(2)); - } - private void SprPhaseMin_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) - { - if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation != null) - CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.SpritePhase[(int)(SprFramesSlider.Value / SprFramesSlider.TickFrequency)].DurationMin = (uint)SprPhaseMin.Value; - } + ShowList showList = ObjListView.SelectedItem as ShowList; - private void SprPhaseMax_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) - { - if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation != null) - CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.SpritePhase[(int)(SprFramesSlider.Value / SprFramesSlider.TickFrequency)].DurationMax = (uint)SprPhaseMax.Value; - } - private void CopyObjectFlags(object sender, System.Windows.Input.MouseButtonEventArgs e) - { - CurrentFlags = CurrentObjectAppearance.Flags.Clone(); + if(showList.Id != CurrentObjectAppearance.Id) + { + showList.Id = CurrentObjectAppearance.Id; + List sortedAppearances = new List(); + if (ObjectMenu.SelectedIndex == 0) + { + sortedAppearances = MainWindow.appearances.Outfit.OrderBy(item => item.Id).ToList(); + MainWindow.appearances.Outfit.Clear(); + foreach (Appearance appearance in sortedAppearances) + { + MainWindow.appearances.Outfit.Add(appearance); + } + ThingsOutfit = new ObservableCollection(ThingsOutfit.OrderBy(item => item.Id)); + } + else if (ObjectMenu.SelectedIndex == 1) + { + sortedAppearances = MainWindow.appearances.Object.OrderBy(item => item.Id).ToList(); + MainWindow.appearances.Object.Clear(); + foreach (Appearance appearance in sortedAppearances) + { + MainWindow.appearances.Object.Add(appearance); + } + ThingsItem = new ObservableCollection(ThingsItem.OrderBy(item => item.Id)); + } + else if (ObjectMenu.SelectedIndex == 2) + { + sortedAppearances = MainWindow.appearances.Effect.OrderBy(item => item.Id).ToList(); + MainWindow.appearances.Effect.Clear(); + foreach (Appearance appearance in sortedAppearances) + { + MainWindow.appearances.Effect.Add(appearance); + } + ThingsEffect = new ObservableCollection(ThingsEffect.OrderBy(item => item.Id)); + } + else if (ObjectMenu.SelectedIndex == 3) + { + sortedAppearances = MainWindow.appearances.Missile.OrderBy(item => item.Id).ToList(); + MainWindow.appearances.Missile.Clear(); + foreach (Appearance appearance in sortedAppearances) + { + MainWindow.appearances.Missile.Add(appearance); + } + ThingsMissile = new ObservableCollection(ThingsMissile.OrderBy(item => item.Id)); + } + UpdateShowList(ObjectMenu.SelectedIndex); + } + + + StatusBar.MessageQueue.Enqueue($"Saved Current Object.", null, null, null, false, true, TimeSpan.FromSeconds(2)); + } + private void CopyObjectFlags(object sender, System.Windows.Input.MouseButtonEventArgs e) + { + CurrentFlags = CurrentObjectAppearance.Flags.Clone(); StatusBar.MessageQueue.Enqueue($"Copied Current Object Flags.", null, null, null, false, true, TimeSpan.FromSeconds(2)); } private void PasteObjectFlags(object sender, System.Windows.Input.MouseButtonEventArgs e) @@ -1161,42 +1200,28 @@ private void PasteObjectFlags(object sender, System.Windows.Input.MouseButtonEve CurrentObjectAppearance.Flags = CurrentFlags.Clone(); LoadCurrentObjectAppearances(); StatusBar.MessageQueue.Enqueue($"Pasted Object Flags.", null, null, null, false, true, TimeSpan.FromSeconds(2)); - }else + } + else StatusBar.MessageQueue.Enqueue($"Copy Flags First.", null, null, null, false, true, TimeSpan.FromSeconds(2)); } + private void SprPhaseMin_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) + { + if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation != null) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.SpritePhase[(int)(SprFramesSlider.Value / SprFramesSlider.TickFrequency)].DurationMin = (uint)SprPhaseMin.Value; + } + + private void SprPhaseMax_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) + { + if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation != null) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.SpritePhase[(int)(SprFramesSlider.Value / SprFramesSlider.TickFrequency)].DurationMax = (uint)SprPhaseMax.Value; + } + + private void OpenSpriteManager_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { - SprEditor sprEditor = new SprEditor(); + SprEditor sprEditor = new SprEditor(this); SprEditor.CustomSheetsList.Clear(); - foreach (MainWindow.Catalog sheet in MainWindow.catalog) - { - string _sprPath = String.Format("{0}{1}", MainWindow._assetsPath, sheet.File); - if (File.Exists(_sprPath)) - { - if (sheet.FirstSpriteid >= 250000) - { - MainWindow.CustomSprLastId = sheet.LastSpriteid; - SprEditor.CustomCatalog.Add(sheet); - using System.Drawing.Bitmap SheetM = LZMA.DecompressFileLZMA(_sprPath); - var lockedBitmap = new LockBitmap(SheetM); - lockedBitmap.LockBits(); - for (int y = 0; y < SheetM.Height; y++) - { - for (int x = 0; x < SheetM.Width; x++) - { - if (lockedBitmap.GetPixel(x, y) == System.Drawing.Color.FromArgb(255, 255, 0, 255)) - { - lockedBitmap.SetPixel(x, y, System.Drawing.Color.FromArgb(0, 255, 0, 255)); - } - } - } - lockedBitmap.UnlockBits(); - SprEditor.CustomSheetsList.Add(new ShowList() { Id = (uint)sheet.FirstSpriteid, Image = Utils.BitmapToBitmapImage(SheetM), Name = sheet.File }); - } - } - } - sprEditor.SheetsList.ItemsSource = SprEditor.CustomSheetsList; sprEditor.Show(); } @@ -1240,198 +1265,705 @@ private void NumberValidationTextBox(object sender, TextCompositionEventArgs e) Regex regex = new Regex("[^0-9]+"); e.Handled = regex.IsMatch(e.Text); } - private void NewObjectDialogHost_OnDialogClosing(object sender, DialogClosingEventArgs eventArgs) + + private void SpriteExport_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { - if (!Equals(eventArgs.Parameter, true)) return; + List selectedItems = SprListView.SelectedItems.Cast().ToList(); + if (selectedItems.Any()) + { + SaveFileDialog saveFileDialog = new SaveFileDialog + { + Filter = "Bitmap Image (.bmp)|*.bmp|Gif Image (.gif)|*.gif|JPEG Image (.jpeg)|*.jpeg|Png Image (.png)|*.png", + FileName = " " + }; + if (saveFileDialog.ShowDialog() == true) + { + foreach (var item in selectedItems) + { + if (item.Image != null) + { + System.Drawing.Bitmap targetImg = new System.Drawing.Bitmap((int)item.Image.Width, (int)item.Image.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); + System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(targetImg); + if (saveFileDialog.FilterIndex != 4) + g.Clear(System.Drawing.Color.FromArgb(255, 255, 0, 255)); + System.Drawing.Image image = System.Drawing.Image.FromStream(MainWindow.SprLists[(int)item.Id]); + g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality; + g.DrawImage(image, new System.Drawing.Rectangle(0, 0, targetImg.Width, targetImg.Height), new System.Drawing.Rectangle(0, 0, targetImg.Width, targetImg.Height), System.Drawing.GraphicsUnit.Pixel); + g.Dispose(); + string directoryPath = System.IO.Path.GetDirectoryName(saveFileDialog.FileName); + switch (saveFileDialog.FilterIndex) + { + case 1: + targetImg.Save(directoryPath + "\\" + item.Id.ToString() + ".bmp", System.Drawing.Imaging.ImageFormat.Bmp); + break; + case 2: + targetImg.Save(directoryPath + "\\" + item.Id.ToString() + ".gif", System.Drawing.Imaging.ImageFormat.Gif); + break; + case 3: + targetImg.Save(directoryPath + "\\" + item.Id.ToString() + ".jpg", System.Drawing.Imaging.ImageFormat.Jpeg); + break; + case 4: + targetImg.Save(directoryPath + "\\" + item.Id.ToString() + ".png", System.Drawing.Imaging.ImageFormat.Png); + break; + } + targetImg.Dispose(); + } + } + } + } + } + private void NewObject_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { Appearance newObject = new Appearance(); + newObject.Flags = new AppearanceFlags(); - FrameGroup frameIdleGroup = new FrameGroup(); - frameIdleGroup.SpriteInfo = new SpriteInfo(); - frameIdleGroup.SpriteInfo.Layers = uint.Parse(NLayers.Text); - frameIdleGroup.SpriteInfo.PatternWidth = uint.Parse(NPatternX.Text); - frameIdleGroup.SpriteInfo.PatternHeight = uint.Parse(NPatternY.Text); - frameIdleGroup.SpriteInfo.PatternDepth = uint.Parse(NPatternZ.Text); - - if (NObjectType.SelectedIndex == 0) - { - frameIdleGroup.Id = 0; - frameIdleGroup.FixedFrameGroup = FIXED_FRAME_GROUP.OutfitIdle; - if (int.Parse(NIdleGroupCount.Text) > 1) + + FrameGroup frameGroup = new FrameGroup(); + frameGroup.SpriteInfo = new SpriteInfo(); + + frameGroup.SpriteInfo.Layers = 1; + frameGroup.SpriteInfo.PatternWidth = 1; + frameGroup.SpriteInfo.PatternHeight = 1; + frameGroup.SpriteInfo.PatternDepth = 1; + + if (ObjectMenu.SelectedIndex == 0) + frameGroup.FixedFrameGroup = FIXED_FRAME_GROUP.OutfitIdle; + else + frameGroup.FixedFrameGroup = FIXED_FRAME_GROUP.ObjectInitial; + + frameGroup.SpriteInfo.SpriteId.Add(blankSpr); + newObject.FrameGroup.Add(frameGroup); + + if (ObjectMenu.SelectedIndex == 0) + { + newObject.Id = (uint)(MainWindow.appearances.Outfit[^1].Id + 1); + MainWindow.appearances.Outfit.Add(newObject); + ThingsOutfit.Add(new ShowList() { Id = newObject.Id }); + } + else if (ObjectMenu.SelectedIndex == 1) + { + newObject.Id = (uint)(MainWindow.appearances.Object[^1].Id + 1); + MainWindow.appearances.Object.Add(newObject); + ThingsItem.Add(new ShowList() { Id = newObject.Id }); + } + else if (ObjectMenu.SelectedIndex == 2) + { + newObject.Id = (uint)(MainWindow.appearances.Effect[^1].Id + 1); + MainWindow.appearances.Effect.Add(newObject); + ThingsEffect.Add(new ShowList() { Id = newObject.Id }); + + } + else if (ObjectMenu.SelectedIndex == 3) + { + newObject.Id = (uint)(MainWindow.appearances.Missile[^1].Id + 1); + MainWindow.appearances.Missile.Add(newObject); + ThingsMissile.Add(new ShowList() { Id = newObject.Id }); + + } + + ObjectMenu.SelectedIndex = ObjectMenu.SelectedIndex; + UpdateShowList(ObjectMenu.SelectedIndex); + + StatusBar.MessageQueue.Enqueue($"Object successfully created.", null, null, null, false, true, TimeSpan.FromSeconds(2)); + } + + private void ObjectClone_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + Appearance NewObject = CurrentObjectAppearance.Clone(); + if (ObjectMenu.SelectedIndex == 0) + { + NewObject.Id = (uint)MainWindow.appearances.Outfit[^1].Id + 1; + MainWindow.appearances.Outfit.Add(NewObject); + ThingsOutfit.Add(new ShowList() { Id = NewObject.Id }); + } + else if (ObjectMenu.SelectedIndex == 1) + { + NewObject.Id = (uint)MainWindow.appearances.Object[^1].Id + 1; + MainWindow.appearances.Object.Add(NewObject); + ThingsItem.Add(new ShowList() { Id = NewObject.Id }); + } + else if (ObjectMenu.SelectedIndex == 2) + { + NewObject.Id = (uint)MainWindow.appearances.Effect[^1].Id + 1; + MainWindow.appearances.Effect.Add(NewObject); + ThingsEffect.Add(new ShowList() { Id = NewObject.Id }); + } + else if (ObjectMenu.SelectedIndex == 3) + { + NewObject.Id = (uint)MainWindow.appearances.Missile[^1].Id + 1; + MainWindow.appearances.Missile.Add(NewObject); + ThingsMissile.Add(new ShowList() { Id = NewObject.Id }); + } + ObjectMenu.SelectedIndex = ObjectMenu.SelectedIndex; + UpdateShowList(ObjectMenu.SelectedIndex); + + StatusBar.MessageQueue.Enqueue($"Object successfully duplicated.", null, null, null, false, true, TimeSpan.FromSeconds(2)); + } + + private void DeleteObject_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + if (ObjectMenu.SelectedIndex == 0) + { + MainWindow.appearances.Outfit.RemoveAt(ObjListView.SelectedIndex); + ThingsOutfit.Remove((ShowList)ObjListView.SelectedItem); + } + else if (ObjectMenu.SelectedIndex == 1) + { + MainWindow.appearances.Object.RemoveAt(ObjListView.SelectedIndex); + ThingsItem.Remove((ShowList)ObjListView.SelectedItem); + } + else if (ObjectMenu.SelectedIndex == 2) + { + MainWindow.appearances.Effect.RemoveAt(ObjListView.SelectedIndex); + ThingsEffect.Remove((ShowList)ObjListView.SelectedItem); + + } + else if (ObjectMenu.SelectedIndex == 3) + { + MainWindow.appearances.Missile.RemoveAt(ObjListView.SelectedIndex); + ThingsMissile.Remove((ShowList)ObjListView.SelectedItem); + + } + ObjListView.SelectedIndex = 0; + StatusBar.MessageQueue.Enqueue($"Object successfully deleted.", null, null, null, false, true, TimeSpan.FromSeconds(2)); + } + + private void SprDefaultPhase_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation != null) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.DefaultStartPhase = (uint)SprDefaultPhase.Value; + } + + private void SprLoopCount_ValueChanged(object sender, RoutedPropertyChangedEventArgs e) + { + if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation != null) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.LoopCount = (uint)SprLoopCount.Value; + + } + + private void SprSynchronized_Click(object sender, RoutedEventArgs e) + { + if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation != null) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.Synchronized = (bool)SprSynchronized.IsChecked; + + } + + private void SprRandomPhase_Click(object sender, RoutedEventArgs e) + { + if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation != null) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.RandomStartPhase = (bool)SprRandomPhase.IsChecked; + + } + + private void SprLoopType_SelectionChanged(object sender, SelectionChangedEventArgs e) + { + if (CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.HasLoopType) + { + if (SprLoopType.SelectedIndex == 0) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.LoopType = ANIMATION_LOOP_TYPE.Pingpong; + else if (SprLoopType.SelectedIndex == 1) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.LoopType = ANIMATION_LOOP_TYPE.Infinite; + else if (SprLoopType.SelectedIndex == 2) + CurrentObjectAppearance.FrameGroup[(int)SprGroupSlider.Value].SpriteInfo.Animation.LoopType = ANIMATION_LOOP_TYPE.Counted; + } + } + private void SearchItem_Click(object sender, RoutedEventArgs e) + { + SearchWindow searchWindow = new SearchWindow(this, false); + searchWindow.Show(); + } + private void OTBEditor_Click(object sender, RoutedEventArgs e) + { + OTBEditor oTBEditor = new OTBEditor(this, false); + oTBEditor.Show(); + } + + private List CreateSpriteSheetsAndSaveAsPng(List spriteStreams, string outputDirectory) + { + Directory.CreateDirectory(outputDirectory); + + var spriteSizes = new List + { + new System.Drawing.Size(32, 32), + new System.Drawing.Size(32, 64), + new System.Drawing.Size(64, 32), + new System.Drawing.Size(64, 64) + }; + + var spriteInfos = spriteStreams.Select((stream, index) => + { + stream.Position = 0; + using (var image = System.Drawing.Image.FromStream(stream)) { - SpriteAnimation spriteAnimation = new SpriteAnimation(); - for (int i = 0; i < (int.Parse(NIdleGroupCount.Text)); i++) - spriteAnimation.SpritePhase.Add(new SpritePhase() { DurationMin = 100, DurationMax = 100 }); - frameIdleGroup.SpriteInfo.Animation = spriteAnimation; + return new ImportSpriteInfo { Stream = stream, OriginalIndex = index, Size = new System.Drawing.Size(image.Width, image.Height) }; + } + }).ToList(); + + var catalogs = new List(); + foreach (var size in spriteSizes) + { + var matchingSprites = spriteInfos.Where(si => si.Size == size).ToList(); + if (!matchingSprites.Any()) continue; + + var spriteType = spriteSizes.IndexOf(size); + var spriteSheetResults = ProcessSpriteGroup(matchingSprites, size, outputDirectory, spriteType); + catalogs.AddRange(spriteSheetResults); + } + + return catalogs; + } + private List ProcessSpriteGroup(List spriteInfos, System.Drawing.Size spriteSize, string outputDirectory, int spriteType) + { + int spritesPerRow = 384 / spriteSize.Width; + int spritesPerColumn = 384 / spriteSize.Height; + int spritesPerSheet = spritesPerRow * spritesPerColumn; + + var catalogs = new List(); + System.Drawing.Bitmap currentSheet = null; + System.Drawing.Graphics graphics = null; + int sheetNumber = 0; + int currentSpriteIndex = 0; // Counter for sprites in the current sheet + + Action finalizeSheet = () => + { + string GenerateUniqueFilePath(string path) + { + var random = new Random(); + string directory = Path.GetDirectoryName(path); + string filenameWithoutExt = Path.GetFileNameWithoutExtension(path); + string extension = Path.GetExtension(path); + string newFilePath; + + do + { + int randomNumber = random.Next(1000, 9999); // You can choose the range for random numbers + newFilePath = $"{filenameWithoutExt.Substring(0, filenameWithoutExt.Length - 9)}_{randomNumber}.bmp.lzma"; + } + while (MainWindow.catalog.Any(catalog => catalog.File.Equals(newFilePath, StringComparison.OrdinalIgnoreCase))); + + return newFilePath; } - int spritecount = (int)(frameIdleGroup.SpriteInfo.Layers * frameIdleGroup.SpriteInfo.PatternWidth * frameIdleGroup.SpriteInfo.PatternHeight * frameIdleGroup.SpriteInfo.PatternDepth * int.Parse(NIdleGroupCount.Text)); - for (int i = 0; i < spritecount; i++) - frameIdleGroup.SpriteInfo.SpriteId.Add(0); - if (String.IsNullOrEmpty(ID.Text)) + if (currentSheet != null && graphics != null && currentSpriteIndex > 0) // Make sure the sheet has sprites { - newObject.Id = (uint)(MainWindow.appearances.Outfit[^1].Id + 1); + string fileName = MainWindow._assetsPath; + LZMA.ExportLzmaFile(currentSheet, ref fileName); + bool catalogExists = MainWindow.catalog.Any(catalog => catalog.File.Equals(fileName, StringComparison.OrdinalIgnoreCase)); + + if (catalogExists) + { + string uniqueFilePath = GenerateUniqueFilePath(MainWindow._assetsPath + "\\" + fileName); + File.Copy(MainWindow._assetsPath + "\\" + fileName, MainWindow._assetsPath + "\\" + uniqueFilePath); + fileName = uniqueFilePath; + } + catalogs.Add(new MainWindow.Catalog + { + Type = "sprite", + File = fileName, + SpriteType = spriteType, + FirstSpriteid = importSprCounter - currentSpriteIndex, + LastSpriteid = importSprCounter - 1, + Area = 0 + }); + sheetNumber++; } - else + + if (currentSheet != null) { - newObject.Id = uint.Parse(ID.Text); + currentSheet.Dispose(); + currentSheet = null; } - newObject.FrameGroup.Add(frameIdleGroup); - if (NMoveGroup.IsChecked == true) + if (graphics != null) { - FrameGroup frameMoveGroup = new FrameGroup(); - frameMoveGroup.Id = 1; - frameMoveGroup.FixedFrameGroup = FIXED_FRAME_GROUP.OutfitMoving; - frameMoveGroup.SpriteInfo = new SpriteInfo(); - frameMoveGroup.SpriteInfo.Layers = uint.Parse(NLayers.Text); - frameMoveGroup.SpriteInfo.PatternWidth = uint.Parse(NPatternX.Text); - frameMoveGroup.SpriteInfo.PatternHeight = uint.Parse(NPatternY.Text); - frameMoveGroup.SpriteInfo.PatternDepth = uint.Parse(NPatternZ.Text); - SpriteAnimation spriteMoveAnimation = new SpriteAnimation(); - for (int i = 0; i < (int.Parse(NMoveGroupCount.Text)); i++) - spriteMoveAnimation.SpritePhase.Add(new SpritePhase() { DurationMin = 100, DurationMax = 100 }); - frameMoveGroup.SpriteInfo.Animation = spriteMoveAnimation; - spritecount = (int)(frameMoveGroup.SpriteInfo.Layers * frameMoveGroup.SpriteInfo.PatternWidth * frameMoveGroup.SpriteInfo.PatternHeight * frameMoveGroup.SpriteInfo.PatternDepth * int.Parse(NMoveGroupCount.Text)); - for (int i = 0; i < spritecount; i++) - frameMoveGroup.SpriteInfo.SpriteId.Add(0); - newObject.FrameGroup.Add(frameMoveGroup); + graphics.Dispose(); + graphics = null; } - MainWindow.appearances.Outfit.Add(newObject); - ThingsOutfit.Add(new ShowList() { Id = newObject.Id}); + currentSpriteIndex = 0; // Reset the current sprite index for the next sheet + }; - } - else if (NObjectType.SelectedIndex == 1) + foreach (var spriteInfo in spriteInfos) { - frameIdleGroup.FixedFrameGroup = FIXED_FRAME_GROUP.ObjectInitial; - if (int.Parse(NIdleGroupCount.Text) > 1) + if (currentSheet == null || currentSpriteIndex >= spritesPerSheet) { - SpriteAnimation spriteAnimation = new SpriteAnimation(); - for (int i = 0; i < (int.Parse(NIdleGroupCount.Text)); i++) - spriteAnimation.SpritePhase.Add(new SpritePhase() { DurationMin = 100, DurationMax = 100 }); - frameIdleGroup.SpriteInfo.Animation = spriteAnimation; - } - int spritecount = (int)(frameIdleGroup.SpriteInfo.Layers * frameIdleGroup.SpriteInfo.PatternWidth * frameIdleGroup.SpriteInfo.PatternHeight * frameIdleGroup.SpriteInfo.PatternDepth * int.Parse(NIdleGroupCount.Text)); - for (int i = 0; i < spritecount; i++) - frameIdleGroup.SpriteInfo.SpriteId.Add(0); + finalizeSheet(); // Finalize the current sheet before starting a new one - if (String.IsNullOrEmpty(ID.Text)) - { - newObject.Id = (uint)(MainWindow.appearances.Object[^1].Id + 1); + currentSheet = new System.Drawing.Bitmap(384, 384, System.Drawing.Imaging.PixelFormat.Format32bppArgb); + graphics = System.Drawing.Graphics.FromImage(currentSheet); + graphics.Clear(System.Drawing.Color.FromArgb(0, 255, 0, 255)); } - else + + int x = (currentSpriteIndex % spritesPerRow) * spriteSize.Width; + int y = (currentSpriteIndex / spritesPerRow) * spriteSize.Height; + + graphics.DrawImage(System.Drawing.Image.FromStream(spriteInfo.Stream), x, y, spriteSize.Width, spriteSize.Height); + MainWindow.SprLists[importSprCounter] = spriteInfo.Stream; + MainWindow.AllSprList.Add(new ShowList() { Id = (uint)importSprCounter }); + importSprIdList[(uint)spriteInfo.OriginalIndex] = (uint)importSprCounter; + importSprCounter++; + currentSpriteIndex++; + } + + // Handle any remaining sprites in the last sheet + finalizeSheet(); + SprListView.ItemsSource = null; + SprListView.ItemsSource = MainWindow.AllSprList; + + if (currentSheet != null) currentSheet.Dispose(); + if (graphics != null) graphics.Dispose(); + + return catalogs; + } + + private void ImportObject_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + Appearances appearances = new Appearances(); + importSprCounter = MainWindow.AllSprList.Count; + importSprIdList.Clear(); + OpenFileDialog openFileDialog = new OpenFileDialog + { + Filter = "assets editor container (*.aec)|*.aec" // Add appropriate filter here + }; + + if (openFileDialog.ShowDialog() == true) + { + using (FileStream fileStream = new FileStream(openFileDialog.FileName, FileMode.Open, FileAccess.Read)) { - newObject.Id = uint.Parse(ID.Text); - } - newObject.FrameGroup.Add(frameIdleGroup); - MainWindow.appearances.Object.Add(newObject); - ThingsItem.Add(new ShowList() { Id = newObject.Id}); + appearances = Appearances.Parser.ParseFrom(fileStream); + var spriteStreams = new List(); + foreach (Appearance appearance in appearances.Outfit) + { + foreach (var spr in appearance.SpriteData) + { + spriteStreams.Add(new MemoryStream(spr.ToByteArray())); + importSprIdList.Add((uint)importSprIdList.Count, 0); + } + } + foreach (Appearance appearance in appearances.Object) + { + foreach (var spr in appearance.SpriteData) + { + spriteStreams.Add(new MemoryStream(spr.ToByteArray())); + importSprIdList.Add((uint)importSprIdList.Count, 0); + } + } + foreach (Appearance appearance in appearances.Effect) + { + foreach (var spr in appearance.SpriteData) + { + spriteStreams.Add(new MemoryStream(spr.ToByteArray())); + importSprIdList.Add((uint)importSprIdList.Count, 0); + } + } + foreach (Appearance appearance in appearances.Missile) + { + foreach (var spr in appearance.SpriteData) + { + spriteStreams.Add(new MemoryStream(spr.ToByteArray())); + importSprIdList.Add((uint)importSprIdList.Count, 0); + } + } + + var outputDirectory = Path.GetDirectoryName(openFileDialog.FileName); + List catalogList = CreateSpriteSheetsAndSaveAsPng(spriteStreams, outputDirectory); + int counter = 0; + foreach (Appearance appearance in appearances.Outfit) + { + for (int i = 0; i < appearance.FrameGroup.Count; i++) + { + for (int s = 0; s < appearance.FrameGroup[i].SpriteInfo.SpriteId.Count; s++) + { + appearance.FrameGroup[i].SpriteInfo.SpriteId[s] = importSprIdList[(uint)counter]; + counter++; + } + } + } + + foreach (Appearance appearance in appearances.Object) + { + for (int i = 0; i < appearance.FrameGroup.Count; i++) + { + for (int s = 0; s < appearance.FrameGroup[i].SpriteInfo.SpriteId.Count; s++) + { + appearance.FrameGroup[i].SpriteInfo.SpriteId[s] = importSprIdList[(uint)counter]; + counter++; + } + } + } + + foreach (Appearance appearance in appearances.Effect) + { + for (int i = 0; i < appearance.FrameGroup.Count; i++) + { + for (int s = 0; s < appearance.FrameGroup[i].SpriteInfo.SpriteId.Count; s++) + { + appearance.FrameGroup[i].SpriteInfo.SpriteId[s] = importSprIdList[(uint)counter]; + counter++; + } + } + } + + foreach (Appearance appearance in appearances.Missile) + { + for (int i = 0; i < appearance.FrameGroup.Count; i++) + { + for (int s = 0; s < appearance.FrameGroup[i].SpriteInfo.SpriteId.Count; s++) + { + appearance.FrameGroup[i].SpriteInfo.SpriteId[s] = importSprIdList[(uint)counter]; + counter++; + } + } + } + foreach (var catalog in catalogList) + { + MainWindow.catalog.Add(catalog); + } + + foreach (Appearance appearance in appearances.Outfit) + { + appearance.SpriteData.Clear(); + appearance.Id = (uint)MainWindow.appearances.Outfit[^1].Id + 1; + MainWindow.appearances.Outfit.Add(appearance.Clone()); + ThingsOutfit.Add(new ShowList() { Id = appearance.Id }); + } + + foreach (Appearance appearance in appearances.Object) + { + appearance.SpriteData.Clear(); + appearance.Id = (uint)MainWindow.appearances.Object[^1].Id + 1; + MainWindow.appearances.Object.Add(appearance.Clone()); + ThingsItem.Add(new ShowList() { Id = appearance.Id }); + } + + foreach (Appearance appearance in appearances.Effect) + { + appearance.SpriteData.Clear(); + appearance.Id = (uint)MainWindow.appearances.Effect[^1].Id + 1; + MainWindow.appearances.Effect.Add(appearance.Clone()); + ThingsEffect.Add(new ShowList() { Id = appearance.Id }); + } + + foreach (Appearance appearance in appearances.Missile) + { + appearance.SpriteData.Clear(); + appearance.Id = (uint)MainWindow.appearances.Missile[^1].Id + 1; + MainWindow.appearances.Missile.Add(appearance.Clone()); + ThingsMissile.Add(new ShowList() { Id = appearance.Id }); + } + + ObjectMenu.SelectedIndex = ObjectMenu.SelectedIndex; + UpdateShowList(ObjectMenu.SelectedIndex); + } } - else if (NObjectType.SelectedIndex == 2) + } + + private void AddExportObject_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + List selectedItems = ObjListView.SelectedItems.Cast().ToList(); + if (selectedItems.Any()) { - frameIdleGroup.FixedFrameGroup = FIXED_FRAME_GROUP.ObjectInitial; - if (int.Parse(NIdleGroupCount.Text) > 1) + ObjListViewSelectedIndex.Value = (int)selectedItems.Last().Id; + + foreach (var item in selectedItems) { - SpriteAnimation spriteAnimation = new SpriteAnimation(); - for (int i = 0; i < (int.Parse(NIdleGroupCount.Text)); i++) - spriteAnimation.SpritePhase.Add(new SpritePhase() { DurationMin = 100, DurationMax = 100 }); - frameIdleGroup.SpriteInfo.Animation = spriteAnimation; + Appearance appearance = new Appearance(); + if (ObjectMenu.SelectedIndex == 0) + { + appearance = MainWindow.appearances.Outfit.FirstOrDefault(o => o.Id == item.Id).Clone(); + if (!exportObjects.Outfit.Any(a => a.Id == appearance.Id)) + { + exportObjects.Outfit.Add(appearance); + AddExportObjectCounter.Badge = int.Parse(AddExportObjectCounter.Badge.ToString() ?? "0") + 1; + + } + } + else if (ObjectMenu.SelectedIndex == 1) + { + appearance = MainWindow.appearances.Object.FirstOrDefault(o => o.Id == item.Id).Clone(); + if (!exportObjects.Object.Any(a => a.Id == appearance.Id)) + { + exportObjects.Object.Add(appearance); + AddExportObjectCounter.Badge = int.Parse(AddExportObjectCounter.Badge.ToString() ?? "0") + 1; + } + } + else if (ObjectMenu.SelectedIndex == 2) + { + appearance = MainWindow.appearances.Effect.FirstOrDefault(o => o.Id == item.Id).Clone(); + if (!exportObjects.Effect.Any(a => a.Id == appearance.Id)) + { + exportObjects.Effect.Add(appearance); + AddExportObjectCounter.Badge = int.Parse(AddExportObjectCounter.Badge.ToString() ?? "0") + 1; + } + + } + else if (ObjectMenu.SelectedIndex == 3) + { + appearance = MainWindow.appearances.Missile.FirstOrDefault(o => o.Id == item.Id).Clone(); + if (!exportObjects.Missile.Any(a => a.Id == appearance.Id)) + { + exportObjects.Missile.Add(appearance); + AddExportObjectCounter.Badge = int.Parse(AddExportObjectCounter.Badge.ToString() ?? "0") + 1; + } + + } + + for (int i = 0; i < appearance.FrameGroup.Count; i++) + { + for (int s = 0; s < appearance.FrameGroup[i].SpriteInfo.SpriteId.Count; s++) + { + ByteString sprData = ByteString.CopyFrom(MainWindow.SprLists[(int)appearance.FrameGroup[i].SpriteInfo.SpriteId[s]].ToArray()); + appearance.SpriteData.Add(sprData); + appearance.FrameGroup[i].SpriteInfo.SpriteId[s] = exportSprCounter; + exportSprCounter++; + } + } } - int spritecount = (int)(frameIdleGroup.SpriteInfo.Layers * frameIdleGroup.SpriteInfo.PatternWidth * frameIdleGroup.SpriteInfo.PatternHeight * frameIdleGroup.SpriteInfo.PatternDepth * int.Parse(NIdleGroupCount.Text)); - for (int i = 0; i < spritecount; i++) - frameIdleGroup.SpriteInfo.SpriteId.Add(0); + } + } + + private void ExportObject_PreviewMouseLeftButtonDown(object sender, RoutedEventArgs e) + { + if(int.Parse(AddExportObjectCounter.Badge.ToString() ?? "0") == 0) + { + StatusBar.MessageQueue.Enqueue($"Export list is empty.", null, null, null, false, true, TimeSpan.FromSeconds(2)); + return; + } + + System.Windows.Forms.FolderBrowserDialog exportPath = new System.Windows.Forms.FolderBrowserDialog(); + if (exportPath.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + string fullPath = Path.Combine(exportPath.SelectedPath, "Appearances.aec"); + var output = File.Create(fullPath); + exportObjects.WriteTo(output); + output.Close(); + AddExportObjectCounter.Badge = 0; + exportSprCounter = 0; + exportObjects = new Appearances(); + StatusBar.MessageQueue.Enqueue($"Successfully exported objects.", null, null, null, false, true, TimeSpan.FromSeconds(2)); + } + } - if (String.IsNullOrEmpty(ID.Text)) + private void AddExportObject_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e) + { + AddExportObjectCounter.Badge = 0; + exportSprCounter = 0; + exportObjects = new Appearances(); + } + + private void A_FlagIdCheck_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) + { + uint newId = (uint)A_FlagId.Value; + + if (ObjectMenu.SelectedIndex == 0) + { + if (!MainWindow.appearances.Outfit.Any(a => a.Id == newId)) { - newObject.Id = (uint)(MainWindow.appearances.Effect[^1].Id + 1); + CurrentObjectAppearance.Id = newId; + StatusBar.MessageQueue.Enqueue($"Valid Id.", null, null, null, false, true, TimeSpan.FromSeconds(2)); } else + StatusBar.MessageQueue.Enqueue($"Invalid Id, make sure the Id is unique.", null, null, null, false, true, TimeSpan.FromSeconds(2)); + } + else if (ObjectMenu.SelectedIndex == 1) + { + if (!MainWindow.appearances.Object.Any(a => a.Id == newId) && newId > 100) { - newObject.Id = uint.Parse(ID.Text); + CurrentObjectAppearance.Id = newId; + StatusBar.MessageQueue.Enqueue($"Valid Id.", null, null, null, false, true, TimeSpan.FromSeconds(2)); } - newObject.FrameGroup.Add(frameIdleGroup); - MainWindow.appearances.Effect.Add(newObject); - ThingsEffect.Add(new ShowList() { Id = newObject.Id}); - + else + StatusBar.MessageQueue.Enqueue($"Invalid Id, make sure the Id is unique.", null, null, null, false, true, TimeSpan.FromSeconds(2)); } - else if (NObjectType.SelectedIndex == 3) + else if (ObjectMenu.SelectedIndex == 2) { - frameIdleGroup.FixedFrameGroup = FIXED_FRAME_GROUP.ObjectInitial; - if (int.Parse(NIdleGroupCount.Text) > 1) + if (!MainWindow.appearances.Effect.Any(a => a.Id == newId)) { - SpriteAnimation spriteAnimation = new SpriteAnimation(); - for (int i = 0; i < (int.Parse(NIdleGroupCount.Text)); i++) - spriteAnimation.SpritePhase.Add(new SpritePhase() { DurationMin = 100, DurationMax = 100 }); - frameIdleGroup.SpriteInfo.Animation = spriteAnimation; + CurrentObjectAppearance.Id = newId; + StatusBar.MessageQueue.Enqueue($"Valid Id.", null, null, null, false, true, TimeSpan.FromSeconds(2)); } - int spritecount = (int)(frameIdleGroup.SpriteInfo.Layers * frameIdleGroup.SpriteInfo.PatternWidth * frameIdleGroup.SpriteInfo.PatternHeight * frameIdleGroup.SpriteInfo.PatternDepth * int.Parse(NIdleGroupCount.Text)); - for (int i = 0; i < spritecount; i++) - frameIdleGroup.SpriteInfo.SpriteId.Add(0); + else + StatusBar.MessageQueue.Enqueue($"Invalid Id, make sure the Id is unique.", null, null, null, false, true, TimeSpan.FromSeconds(2)); - if (String.IsNullOrEmpty(ID.Text)) + } + else if (ObjectMenu.SelectedIndex == 3) + { + if (!MainWindow.appearances.Missile.Any(a => a.Id == newId)) { - newObject.Id = (uint)(MainWindow.appearances.Missile[^1].Id + 1); + CurrentObjectAppearance.Id = newId; + StatusBar.MessageQueue.Enqueue($"Valid Id.", null, null, null, false, true, TimeSpan.FromSeconds(2)); } else - { - newObject.Id = uint.Parse(ID.Text); - } - newObject.FrameGroup.Add(frameIdleGroup); - MainWindow.appearances.Missile.Add(newObject); - ThingsMissile.Add(new ShowList() { Id = newObject.Id}); - + StatusBar.MessageQueue.Enqueue($"Invalid Id, make sure the Id is unique.", null, null, null, false, true, TimeSpan.FromSeconds(2)); } } - private void NObjectType_SelectionChanged(object sender, SelectionChangedEventArgs e) + + private void StartSpriteAnimation(Image imageControl, TimeSpan frameRate, ShowList showList, IEnumerable imageFrames) { - if (IsLoaded) + if (imageControl == null) throw new ArgumentNullException(nameof(imageControl)); + + var animation = new ObjectAnimationUsingKeyFrames(); + TimeSpan currentTime = TimeSpan.Zero; + + foreach (BitmapImage imageFrame in imageFrames) { - if (NObjectType.SelectedIndex == 0) - NMoveGroup.IsEnabled = true; - else - NMoveGroup.IsEnabled = false; + var keyFrame = new DiscreteObjectKeyFrame(imageFrame, currentTime); + animation.KeyFrames.Add(keyFrame); + currentTime += frameRate; } + + Storyboard.SetTarget(animation, imageControl); + Storyboard.SetTargetProperty(animation, new PropertyPath(Image.SourceProperty)); + + var storyboard = new Storyboard(); + storyboard.Children.Add(animation); + storyboard.RepeatBehavior = RepeatBehavior.Forever; + storyboard.Begin(); + showList.Storyboard = storyboard; } - private void SpriteExport_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) + private void AnimateSelectedListItem(ShowList showList) { - ShowList data = (ShowList)SprListView.SelectedItem; - if (data != null && data.Image != null) + // Find the ListViewItem for the selected item + var listViewItem = ObjListView.ItemContainerGenerator.ContainerFromItem(showList) as ListViewItem; + if (listViewItem != null) { - System.Drawing.Bitmap targetImg = new System.Drawing.Bitmap((int)data.Image.Width, (int)data.Image.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); - System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(targetImg); - g.Clear(System.Drawing.Color.FromArgb(255, 255, 0, 255)); - System.Drawing.Image image = System.Drawing.Image.FromStream(MainWindow.SprLists[(int)data.Id]); - g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality; - g.DrawImage(image, new System.Drawing.Rectangle(0, 0, targetImg.Width, targetImg.Height), new System.Drawing.Rectangle(0, 0, targetImg.Width, targetImg.Height), System.Drawing.GraphicsUnit.Pixel); - g.Dispose(); - SaveFileDialog saveFileDialog = new SaveFileDialog + // Find the Image control within the ListViewItem + var imageControl = Utils.FindVisualChild(listViewItem); + if (imageControl != null) { - Filter = "Bitmap Image (.bmp)|*.bmp|Gif Image (.gif)|*.gif|JPEG Image (.jpeg)|*.jpeg|Png Image (.png)|*.png" - }; + List imageFrames = new List(); - if (saveFileDialog.ShowDialog() == true) - { - switch (saveFileDialog.FilterIndex) + Appearance appearance = null; + + if (ObjectMenu.SelectedIndex == 0) + appearance = MainWindow.appearances.Outfit.FirstOrDefault(o => o.Id == showList.Id); + else if (ObjectMenu.SelectedIndex == 1) + appearance = MainWindow.appearances.Object.FirstOrDefault(o => o.Id == showList.Id); + else if (ObjectMenu.SelectedIndex == 2) + appearance = MainWindow.appearances.Effect.FirstOrDefault(o => o.Id == showList.Id); + else if (ObjectMenu.SelectedIndex == 3) + appearance = MainWindow.appearances.Missile.FirstOrDefault(o => o.Id == showList.Id); + + TimeSpan frameRate = TimeSpan.FromMilliseconds(200); + + for (int i = 0; i < appearance.FrameGroup[0].SpriteInfo.SpriteId.Count; i++) { - case 1: - targetImg.Save(saveFileDialog.FileName, System.Drawing.Imaging.ImageFormat.Bmp); - break; - case 2: - targetImg.Save(saveFileDialog.FileName, System.Drawing.Imaging.ImageFormat.Gif); - break; - case 3: - targetImg.Save(saveFileDialog.FileName, System.Drawing.Imaging.ImageFormat.Jpeg); - break; - case 4: - targetImg.Save(saveFileDialog.FileName, System.Drawing.Imaging.ImageFormat.Png); - break; + int index = GetSpriteIndex(appearance.FrameGroup[0], 0, (ObjectMenu.SelectedIndex == 0 || ObjectMenu.SelectedIndex == 2) ? (int)Math.Min(2, appearance.FrameGroup[0].SpriteInfo.PatternWidth - 1) : 0, ObjectMenu.SelectedIndex == 2 ? (int)Math.Min(1, appearance.FrameGroup[0].SpriteInfo.PatternHeight - 1) : 0, 0, i); + BitmapImage imageFrame = Utils.BitmapToBitmapImage(MainWindow.SprLists[(int)appearance.FrameGroup[0].SpriteInfo.SpriteId[index]]); + imageFrames.Add(imageFrame); } - targetImg.Dispose(); - } + StartSpriteAnimation(imageControl, frameRate, showList, imageFrames); + } } } + + private void About_Click(object sender, RoutedEventArgs e) + { + AboutWindow aboutWindow = new AboutWindow(); + aboutWindow.Show(); + } } } diff --git a/Assets Editor/ImportManager.xaml b/Assets Editor/ImportManager.xaml new file mode 100644 index 0000000..62d0d63 --- /dev/null +++ b/Assets Editor/ImportManager.xaml @@ -0,0 +1,184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +