本文整理汇总了C#中ZACommons.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# ZACommons.SetValue方法的具体用法?C# ZACommons.SetValue怎么用?C# ZACommons.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZACommons
的用法示例。
在下文中一共展示了ZACommons.SetValue方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SaveLastCommand
private void SaveLastCommand(ZACommons commons, string argument)
{
commons.SetValue(LastCommandKey, argument);
}
示例2: SetState
private void SetState(ZACommons commons, int newState)
{
CurrentState = newState;
commons.SetValue(StateKey, CurrentState.ToString());
}
示例3: SaveUndockTarget
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);
}
示例4: SaveMode
private void SaveMode(ZACommons commons)
{
commons.SetValue(ModeKey, Mode.ToString());
}
示例5: SaveActive
private void SaveActive(ZACommons commons)
{
commons.SetValue(ActiveKey, Active.ToString());
}
示例6: ForgetTarget
private void ForgetTarget(ZACommons commons)
{
commons.SetValue(LOSMinerKey, null);
}
示例7: SaveTarget
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));
}