Beispiel #1
0
 protected override void SetOtherData(byte[] buf, int offset)
 {
     AffectHp       = buf.Get2BytesInt(offset + 0x16);
     AffectMp       = buf.Get2BytesInt(offset + 0x18);
     Animation      = Context.LibData.GetSrs(buf[offset + 0x1b] & 0xff, buf[offset + 0x1a] & 0xff);
     _effectBitMask = (int)buf[offset + 0x1c] & 0xff;
 }
Beispiel #2
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();
 }
Beispiel #3
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();
            }