本文整理汇总了C#中IDataWriter.Write方法的典型用法代码示例。如果您正苦于以下问题:C# IDataWriter.Write方法的具体用法?C# IDataWriter.Write怎么用?C# IDataWriter.Write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataWriter
的用法示例。
在下文中一共展示了IDataWriter.Write方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: doSerialize
public override void doSerialize(IDataWriter state)
{
base.doSerialize(state);
state.Write(m_scale.X);
state.Write(m_scale.Y);
state.Write(m_scale.Z);
}
示例2: serialize
public override void serialize(IDataWriter writer)
{
foreach (bool b in m_value)
{
writer.Write(b);
}
}
示例3: doSerialize
public override void doSerialize(IDataWriter state)
{
base.doSerialize(state);
state.Write(m_fontName);
state.Write(m_text);
}
示例4: Write
/// <summary>
/// Serialises this ProjectInvocationRule.
/// </summary>
/// <param name="writer">An IDataWriter to which field values are written.</param>
public void Write(IDataWriter writer)
{
writer.Write(Id);
writer.Write(UsesInput);
writer.Write(InputSheetKey);
writer.Write(InputCellRange);
writer.Write(InputRangeOrder.ToString());
writer.Write(TimeLimit);
writer.Write(Unit.ToString());
writer.Write(UsesOutput);
writer.Write(OutputSheetKey);
writer.Write(OutputCellRange);
writer.Write(OutputRangeOrder.ToString());
writer.Write(ProjectPath);
writer.Write(ReloadProjectBeforeExecuting);
writer.Write(Enabled);
writer.Write(LastExecutionResult.ToString());
}
示例5: Save
public void Save(IDataWriter writer)
{
writer.Write(Data.Array, Data.Offset, Data.Count);
writer.Channel["BODY_COMPLETED"] = Eof;
}
示例6: doSerialize
public override void doSerialize(IDataWriter state)
{
state.Write(m_position.X);
state.Write(m_position.Y);
state.Write(m_position.Z);
base.doSerialize(state);
}
示例7: doSerialize
public override void doSerialize(IDataWriter state)
{
// TODO convert rad to grad
//state.Write(Math.Atan2(2.0f * (m_orientation.Y * m_orientation.Z + m_orientation.W * m_orientation.X), m_orientation.W * m_orientation.W - m_orientation.X * m_orientation.X - m_orientation.Y * m_orientation.Y + m_orientation.Z * m_orientation.Z));
//state.Write(Math.Asin(-2.0f*(m_orientation.X*m_orientation.Z - m_orientation.W*m_orientation.Y)));
//state.Write(Math.Atan2(2.0f * (m_orientation.X * m_orientation.Y + m_orientation.W * m_orientation.Z), m_orientation.W * m_orientation.W + m_orientation.X * m_orientation.X - m_orientation.Y * m_orientation.Y - m_orientation.Z * m_orientation.Z));
state.Write(m_x);
state.Write(m_y);
state.Write(m_z);
//state.Write(m_orientation.W);
base.doSerialize(state);
}
示例8: serialize
public void serialize(IDataWriter state)
{
state.Write(x);
state.Write(y);
state.Write(w);
state.Write(h);
}
示例9: serialize
public void serialize(IDataWriter state)
{
state.Write(m_bIsPressed);
m_downMsg.serialize(state);
m_upMsg.serialize(state);
m_targetId.serialize(state);
state.Write(m_message);
}
示例10: doSerialize
public override void doSerialize(IDataWriter state)
{
state.Write(m_visible);
state.Write(m_layer);
}
示例11: doSerialize
/// <summary>
///
/// </summary>
/// <param name="state"></param>
public override void doSerialize(IDataWriter state)
{
base.doSerialize(state);
state.Write(m_collisionGroupId.ToString());
state.Write(m_collisionGroupIds.Count);
foreach (XnaScrapId collId in m_collisionGroupIds)
{
state.Write(collId.ToString());
}
state.Write(m_relativePos.X);
state.Write(m_relativePos.Y);
state.Write(m_relativePos.Z);
}
示例12: serialize
public void serialize(IDataWriter writer)
{
// serialise all children of root
foreach (Parameter p in m_root.Parameters.Values)
{
writer.Write(p.getTypeName());
p.serialize(writer);
}
}
示例13: doSerialize
/// <summary>
///
/// </summary>
/// <param name="state"></param>
public override void doSerialize(IDataWriter state)
{
base.doSerialize(state);
state.Write(m_lastKeybaord);
state.Write(m_lastMouse);
state.Write(m_lastTouch);
state.Write(m_lastGamepad);
state.Write(m_playerIndex.ToString());
state.Write(m_keyMappings.Count);
foreach (KeyValuePair<Keys, InputMapping> pair in m_keyMappings)
{
state.Write(pair.Key.ToString());
pair.Value.serialize(state);
}
state.Write(m_gamepadMappings.Count);
foreach (KeyValuePair<Buttons, InputMapping> pair in m_gamepadMappings)
{
state.Write(pair.Key.ToString());
pair.Value.serialize(state);
}
}
示例14: doSerialize
public override void doSerialize(IDataWriter state)
{
base.doSerialize(state);
state.Write(Center.X);
state.Write(Center.Y);
state.Write(Center.Z);
state.Write(HalfExtent.X);
state.Write(HalfExtent.Y);
state.Write(HalfExtent.Z);
state.Write(Orientation.X);
state.Write(Orientation.Y);
state.Write(Orientation.Z);
state.Write(Orientation.W);
}
示例15: doSerialize
public override void doSerialize(IDataWriter state)
{
state.Write(m_path.Count);
foreach (Vector3 v in m_path)
{
state.Write(v.X);
state.Write(v.Y);
state.Write(v.Z);
}
base.doSerialize(state);
}