Esempio n. 1
0
        public override void DoAction(IEventArgs args)
        {
            FreeData player = GetPlayer(args);

            if (player != null)
            {
                OnePlayerBuf buf = new OnePlayerBuf();
                buf.buf         = this.buf;
                buf.startAction = (IGameAction)SerializeUtil.Clone(startAction);
                buf.action      = (IGameAction)SerializeUtil.Clone(action);
                buf.endAction   = (IGameAction)SerializeUtil.Clone(endAction);

                player.Bufs.RegisterPlayerBuf(buf);
            }
        }
Esempio n. 2
0
 public void RegisterPlayerBuf(OnePlayerBuf buf)
 {
     bufs[buf.buf] = buf;
 }