示例#1
0
        public void InitDefaults()
        {
            if (Setup._dat.DefaultAnimation != 0)
            {
                Sequence.clear_animations();
                var animData = new Animation.AnimData();
                animData.AnimID    = Setup._dat.DefaultAnimation;
                animData.LowFrame  = 0;
                animData.HighFrame = Int32.MaxValue;
                Sequence.append_animation(animData);
                WeenieDesc.Destroy(animData);
            }

            if (Owner != null)
            {
                Owner.InitDefaults(Setup);
            }
        }
示例#2
0
        public void InitDefaults()
        {
            if (Setup.DefaultAnimID != 0)
            {
                Sequence.ClearAnimations();
                var animData      = new AnimData();
                var defaultAnimId = Setup.DefaultAnimID;
                animData.AnimId    = 0;
                animData.LowFrame  = -1;
                animData.HighFrame = 1106247680;
                Sequence.AppendAnimation(animData);
                WeenieDesc.Destroy(animData);
            }

            if (Owner != null)
            {
                Owner.InitDefaults(Setup);
            }
        }