public void Clear(bool RaiseChangedEvent)
        {
            if (RaiseChangedEvent)
            {
                Version          = BgfFile.VERSION10;
                Width            = 0;
                Height           = 0;
                XOffset          = 0;
                YOffset          = 0;
                IsCompressed     = false;
                CompressedLength = 0;
                PixelData        = new byte[0];

                hotspots.Clear();
            }
            else
            {
                version          = BgfFile.VERSION10;
                width            = 0;
                height           = 0;
                xoffset          = 0;
                yoffset          = 0;
                isCompressed     = false;
                compressedLength = 0;
                pixeldata        = new byte[0];

                hotspots.Clear();
            }
        }
Esempio n. 2
0
        public override void Clear(bool RaiseChangedEvent)
        {
            base.Clear(RaiseChangedEvent);

            if (RaiseChangedEvent)
            {
                OverlayFileRID     = 0;
                NameRID            = 0;
                LightFlags         = 0;
                LightIntensity     = 0;
                LightColor         = 0;
                FirstAnimationType = 0;
                ColorTranslation   = 0;
                Effect             = 0;

                if (animation != null)
                {
                    animation.PropertyChanged -= OnAnimationPropertyChanged;
                }

                Animation = new AnimationNone();
                animation.PropertyChanged += OnAnimationPropertyChanged;

                Name        = String.Empty;
                OverlayFile = String.Empty;
                Resource    = null;
            }
            else
            {
                overlayFileRID     = 0;
                nameRID            = 0;
                lightFlags         = 0;
                lightIntensity     = 0;
                lightColor         = 0;
                firstAnimationType = 0;
                colorTranslation   = 0;
                effect             = 0;

                if (animation != null)
                {
                    animation.PropertyChanged -= OnAnimationPropertyChanged;
                }

                animation = new AnimationNone();
                animation.PropertyChanged += OnAnimationPropertyChanged;

                name        = String.Empty;
                overlayFile = String.Empty;
                resource    = null;
            }

            flags.Clear(RaiseChangedEvent);
            subOverlays.Clear();
        }
 public void Clear(bool RaiseChangedEvent)
 {
     if (RaiseChangedEvent)
     {
         GuildHalls.Clear();
     }
     else
     {
         guildHalls.Clear();
     }
 }
Esempio n. 4
0
 public void Clear(bool RaiseChangedEvent)
 {
     if (RaiseChangedEvent)
     {
         serverResponses.Clear();
         trackedObjects.Clear();
     }
     else
     {
         serverResponses.Clear();
         trackedObjects.Clear();
     }
 }
Esempio n. 5
0
 public void Clear(bool RaiseChangedEvent)
 {
     if (RaiseChangedEvent)
     {
         Characters.Clear();
         Ads.Clear();
         MOTD = String.Empty;
     }
     else
     {
         characters.Clear();
         ads.Clear();
         motd = String.Empty;
     }
 }
Esempio n. 6
0
        public void Clear(bool RaiseChangedEvent)
        {
            if (RaiseChangedEvent)
            {
                ID        = 0;
                ClassName = String.Empty;

                properties.Clear();
            }
            else
            {
                id        = 0;
                className = String.Empty;

                properties.Clear();
            }
        }
 public void Clear(bool RaiseChangedEvent)
 {
     if (RaiseChangedEvent)
     {
         Guilds.Clear();
         YouDeclaredAllyList.Clear();
         YouDeclaredEnemyList.Clear();
         DeclaredYouAllyList.Clear();
         DeclaredYouEnemyList.Clear();
     }
     else
     {
         guilds.Clear();
         youDeclaredAllyList.Clear();
         youDeclaredEnemyList.Clear();
         declaredYouAllyList.Clear();
         declaredYouEnemyList.Clear();
     }
 }
Esempio n. 8
0
 public static async void CollectionsToList()
 {
     await Task.Run(() =>
     {
         BaseList.Clear();
         BaseList.AddRange(KingdomList);
         BaseList.AddRange(MonarchyList);
         BaseList.AddRange(RepublicList);
     });
 }
Esempio n. 9
0
        public void Clear(bool RaiseChangedEvent)
        {
            if (RaiseChangedEvent)
            {
                Filename     = DEFAULTFILENAME;
                Version      = VERSION10;
                Name         = String.Empty;
                ShrinkFactor = 1;

                frames.Clear();
                frameSets.Clear();
            }
            else
            {
                filename     = DEFAULTFILENAME;
                version      = VERSION10;
                name         = String.Empty;
                shrinkFactor = 1;

                frames.Clear();
                frameSets.Clear();
            }
        }
Esempio n. 10
0
        public override void Clear(bool RaiseChangedEvent)
        {
            base.Clear(RaiseChangedEvent);

            if (RaiseChangedEvent)
            {
                OverlayFileRID     = 0;
                NameRID            = 0;
                LightFlags         = 0;
                LightIntensity     = 0;
                LightColor         = 0;
                FirstAnimationType = 0;
                ColorTranslation   = 0;
                Effect             = 0;
                Animation          = new AnimationNone();

                MotionFirstAnimationType = 0;
                MotionColorTranslation   = 0;
                MotionEffect             = 0;
                MotionAnimation          = new AnimationNone();

                Name        = String.Empty;
                OverlayFile = String.Empty;
            }
            else
            {
                overlayFileRID     = 0;
                nameRID            = 0;
                lightFlags         = 0;
                lightIntensity     = 0;
                lightColor         = 0;
                firstAnimationType = 0;
                colorTranslation   = 0;
                effect             = 0;
                animation          = new AnimationNone();

                motionFirstAnimationType = 0;
                motionColorTranslation   = 0;
                motionEffect             = 0;
                motionAnimation          = new AnimationNone();

                name        = String.Empty;
                overlayFile = String.Empty;
            }

            flags.Clear(RaiseChangedEvent);
            subOverlays.Clear();
            motionSubOverlays.Clear();
        }
Esempio n. 11
0
 public void Clear(bool RaiseChangedEvent)
 {
     if (RaiseChangedEvent)
     {
         QuestGiver = null;
         QuestList.Clear();
         IsVisible = false;
     }
     else
     {
         QuestGiver = null;
         questList.Clear();
         isVisible = false;
     }
 }
Esempio n. 12
0
        public void UpdateFromModel(DiplomacyInfo Model, bool RaiseChangedEvent)
        {
            if (RaiseChangedEvent)
            {
                // update states first to look them up in guilds
                YouDeclaredAllyList.Clear();
                foreach (ObjectID obj in Model.YouDeclaredAllyList)
                {
                    YouDeclaredAllyList.Add(obj);
                }

                YouDeclaredEnemyList.Clear();
                foreach (ObjectID obj in Model.YouDeclaredEnemyList)
                {
                    YouDeclaredEnemyList.Add(obj);
                }

                DeclaredYouAllyList.Clear();
                foreach (ObjectID obj in Model.DeclaredYouAllyList)
                {
                    DeclaredYouAllyList.Add(obj);
                }

                DeclaredYouEnemyList.Clear();
                foreach (ObjectID obj in Model.DeclaredYouEnemyList)
                {
                    DeclaredYouEnemyList.Add(obj);
                }

                // then guilds
                Guilds.Clear();
                foreach (GuildEntry obj in Model.Guilds)
                {
                    Guilds.Add(obj);
                }
            }
            else
            {
                // update states first to look them up in guilds
                youDeclaredAllyList.Clear();
                foreach (ObjectID obj in Model.YouDeclaredAllyList)
                {
                    youDeclaredAllyList.Add(obj);
                }

                youDeclaredEnemyList.Clear();
                foreach (ObjectID obj in Model.YouDeclaredEnemyList)
                {
                    youDeclaredEnemyList.Add(obj);
                }

                declaredYouAllyList.Clear();
                foreach (ObjectID obj in Model.DeclaredYouAllyList)
                {
                    declaredYouAllyList.Add(obj);
                }

                declaredYouEnemyList.Clear();
                foreach (ObjectID obj in Model.DeclaredYouEnemyList)
                {
                    declaredYouEnemyList.Add(obj);
                }

                // then guilds
                guilds.Clear();
                foreach (GuildEntry obj in Model.Guilds)
                {
                    guilds.Add(obj);
                }
            }
        }