Exemple #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int v = reader.ReadInt();

            RugType = (RugHue)reader.ReadInt();
        }
Exemple #2
0
        public TigerRugAddon(RugHue type, bool south)
        {
            RugType = type;

            int hue = 0;
            int cliloc;

            switch (type)
            {
            default:
            case RugHue.Regular:
                cliloc = 1156481;
                break;

            case RugHue.White:
                hue    = 2500;
                cliloc = 1156483;
                break;

            case RugHue.Black:
                hue    = 1175;
                cliloc = 1156482;
                break;
            }

            if (south)
            {
                AddComponent(new LocalizedAddonComponent(40057, cliloc), 0, 0, 0);
                AddComponent(new LocalizedAddonComponent(40058, cliloc), -1, 0, 0);
                AddComponent(new LocalizedAddonComponent(40059, cliloc), 0, -1, 0);
                AddComponent(new LocalizedAddonComponent(40060, cliloc), -1, -1, 0);
                AddComponent(new LocalizedAddonComponent(40061, cliloc), 0, -2, 0);
                AddComponent(new LocalizedAddonComponent(40062, cliloc), -1, -2, 0);
            }
            else
            {
                AddComponent(new LocalizedAddonComponent(40051, cliloc), 0, 0, 0);
                AddComponent(new LocalizedAddonComponent(40052, cliloc), 0, -1, 0);
                AddComponent(new LocalizedAddonComponent(40053, cliloc), -1, 0, 0);
                AddComponent(new LocalizedAddonComponent(40054, cliloc), -1, -1, 0);
                AddComponent(new LocalizedAddonComponent(40055, cliloc), -2, 0, 0);
                AddComponent(new LocalizedAddonComponent(40056, cliloc), -2, -1, 0);
            }

            Hue = hue;
        }
Exemple #3
0
 public TigerRugAddonDeed(RugHue type)
 {
     RugType = type;
 }