private void SaveUndockTarget(ZACommons commons) { string value = null; if (UndockTarget != null) { value = string.Format("{0};{1};{2};{3};{4};{5};{6};{7};{8}", ((Vector3D)UndockTarget).GetDim(0), ((Vector3D)UndockTarget).GetDim(1), ((Vector3D)UndockTarget).GetDim(2), UndockForward.GetDim(0), UndockForward.GetDim(1), UndockForward.GetDim(2), UndockUp.GetDim(0), UndockUp.GetDim(1), UndockUp.GetDim(2)); } commons.SetValue(UndockTargetKey, value); value = null; if (UndockBackward != null) { value = ((byte)UndockBackward).ToString(); } commons.SetValue(BackwardKey, value); }
private void SaveUndockTarget(ZACommons commons) { string value = null; if (UndockTarget != null) { var orientation = QuaternionD.CreateFromForwardUp(UndockForward, UndockUp); value = string.Format("{0};{1};{2};{3};{4};{5};{6}", ((Vector3D)UndockTarget).X, ((Vector3D)UndockTarget).Y, ((Vector3D)UndockTarget).Z, orientation.X, orientation.Y, orientation.Z, orientation.W); } commons.SetValue(UndockTargetKey, value); value = null; if (UndockBackward != null) { value = ((byte)UndockBackward).ToString(); } commons.SetValue(BackwardKey, value); }
private void SaveTarget(ZACommons commons) { string[] output = new string[13]; output[0] = Mode.ToString(); SaveVector3D(StartPoint, output, 1); SaveVector3D(StartDirection, output, 4); SaveVector3D(StartUp, output, 7); SaveVector3D(StartLeft, output, 10); commons.SetValue(LOSMinerKey, string.Join(";", output)); }
private void SetState(ZACommons commons, int newState) { CurrentState = newState; commons.SetValue(StateKey, CurrentState.ToString()); }
private void SetState(ZACommons commons, int newState) { CurrentState = newState; commons.SetValue(StateKey, CurrentState.ToString()); }
private void SaveLastCommand(ZACommons commons, string argument) { commons.SetValue(LastCommandKey, argument); }
private void SaveMode(ZACommons commons) { commons.SetValue(ModeKey, ((int)Mode).ToString()); }
private void SetState(ZACommons commons, States newState) { CurrentState = newState; commons.SetValue(StateKey, ((int)CurrentState).ToString()); }
private void SaveActive(ZACommons commons) { commons.SetValue(ActiveKey, Active.ToString()); }
private void SaveUndockTarget(ZACommons commons) { string value = null; if (UndockTarget != null) { value = string.Format("{0};{1};{2};{3};{4};{5};{6};{7};{8}", ((Vector3D)UndockTarget).GetDim(0), ((Vector3D)UndockTarget).GetDim(1), ((Vector3D)UndockTarget).GetDim(2), UndockForward.GetDim(0), UndockForward.GetDim(1), UndockForward.GetDim(2), UndockUp.GetDim(0), UndockUp.GetDim(1), UndockUp.GetDim(2)); } commons.SetValue(UndockTargetKey, value); value = null; if (UndockBackward != null) { value = ((byte)UndockBackward).ToString(); } commons.SetValue(BackwardKey, value); }
private void SaveMode(ZACommons commons) { commons.SetValue(ModeKey, Mode.ToString()); }
private void SaveLastCommand(ZACommons commons, string argument) { commons.SetValue(LastCommandKey, argument); }
private void ForgetTarget(ZACommons commons) { commons.SetValue(LOSMinerKey, null); }
private void SaveActive(ZACommons commons) { commons.SetValue(ActiveKey, Active.ToString()); }
private void ForgetTarget(ZACommons commons) { commons.SetValue(LOSMinerKey, null); }
private void SaveTarget(ZACommons commons) { string[] output = new string[13]; output[0] = Mode.ToString(); SaveVector3D(StartPoint, output, 1); SaveVector3D(StartDirection, output, 4); SaveVector3D(StartUp, output, 7); SaveVector3D(StartLeft, output, 10); commons.SetValue(LOSMinerKey, string.Join(";", output)); }