// 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; }
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; } }
unsafe private void ReadActivity() { byte pAct; MemoryProvider.ReadProcessMemory(pol.Handle, (IntPtr)((int)pol.BaseAddress + OFFSET.ACTIVITY_INFO), &pAct, 1, null); act = (eActivity)pAct; }
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; }