示例#1
0
 /// <summary>
 /// 动画界面
 /// 247、248、249分别代表游戏开发组的商标、游戏的名称 以及游戏战斗失败后的过场动画
 /// </summary>
 /// <param name="context"></param>
 /// <param name="index"></param>
 public ScreenAnimation(SimulatorContext context, int index) : base(context)
 {
     if (index != 247 && index != 248 && index != 249)
     {
         throw new Exception("只能是247,248,249");
     }
     _index     = index;
     _animation = Context.LibData.GetSrs(1, index);
     _animation.SetIteratorNum(4);
     _animation.StartAni();
 }
示例#2
0
            public CommandMovieOperate(ArraySegment <byte> data, SimulatorContext context) : base(context)
            {
                _type    = data.Get2BytesUInt(0);
                _index   = data.Get2BytesUInt(2);
                _showX   = data.Get2BytesUInt(4);
                _showY   = data.Get2BytesUInt(6);
                _control = data.Get2BytesUInt(8);

                _movie = Context.LibData.GetSrs(_type, _index);
                _movie.SetIteratorNum(5);
                _movie.StartAni();
            }