Exemplo n.º 1
0
 //
 public static ActivityInterface createActivity(eActivity activity, AvatorCharacter _refAvatar)
 {
     ActivityInterface action = null;
     switch( activity ){
     case eActivity.Think: action = new ActivityThink(); break;
     case eActivity.Move: action = new ActivityMove(); break;
     case eActivity.Conversation: action = new ActivityConversation(); break;
     case eActivity.Working: action = new ActivityWork(); break;
     default: break;
     }
     if( action != null ){
         action.refAvatar = _refAvatar;
     }
     return action;
 }
Exemplo n.º 2
0
 public void ActivityChanged(eActivity activity)
 {
     switch (activity)
       {
     case eActivity.Stamping:
       Cursor.Current = Cursors.WaitCursor;
       StampButton.Enabled = false;
       DrivesListView.Enabled = false;
       Refresh();
       break;
     default:
       DrivesListView.Enabled = true;
       UpdateManualStampButton();
       Cursor.Current = Cursors.Default;
       break;
       }
 }
Exemplo n.º 3
0
        public void ActivityChanged(eActivity activity)
        {
            switch (activity)
            {
            case eActivity.Stamping:
                Cursor.Current         = Cursors.WaitCursor;
                StampButton.Enabled    = false;
                DrivesListView.Enabled = false;
                Refresh();
                break;

            default:
                DrivesListView.Enabled = true;
                UpdateManualStampButton();
                Cursor.Current = Cursors.Default;
                break;
            }
        }
Exemplo n.º 4
0
 unsafe private void ReadActivity()
 {
     byte pAct;
     MemoryProvider.ReadProcessMemory(pol.Handle, (IntPtr)((int)pol.BaseAddress + OFFSET.ACTIVITY_INFO), &pAct, 1, null);
     act = (eActivity)pAct;
 }
Exemplo n.º 5
0
 private unsafe void ReadActivity()
 {
     byte pAct;
     MemoryProvider.ReadProcessMemory(windower.pol.Handle, (IntPtr) ((int) windower.pol.BaseAddress + Offset.Get("ACTIVITY_INFO")), &pAct, 1, null);
     act = (eActivity) pAct;
 }