当前位置: 首页>>代码示例>>C#>>正文


C# IDataWriter.Write方法代码示例

本文整理汇总了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);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:7,代码来源:BoxCollider.cs

示例2: serialize

 public override void serialize(IDataWriter writer)
 {
     foreach (bool b in m_value)
     {
         writer.Write(b);
     }
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:7,代码来源:Parameter.cs

示例3: doSerialize

 public override void doSerialize(IDataWriter state)
 {
     base.doSerialize(state);
     state.Write(m_fontName);
     state.Write(m_text);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:6,代码来源:TextOverlay.cs

示例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());
 }
开发者ID:piquant,项目名称:AbsyntaxExcelAddIn,代码行数:22,代码来源:ProjectInvocationRule.cs

示例5: Save

 public void Save(IDataWriter writer)
 {
     writer.Write(Data.Array, Data.Offset, Data.Count);
     writer.Channel["BODY_COMPLETED"] = Eof;
 }
开发者ID:hdxhan,项目名称:IKendeLib,代码行数:5,代码来源:HttpBody.cs

示例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);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:7,代码来源:StaticPosition3D.cs

示例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);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:12,代码来源:StaticOrientation3D.cs

示例8: serialize

 public void serialize(IDataWriter state)
 {
     state.Write(x);
     state.Write(y);
     state.Write(w);
     state.Write(h);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:7,代码来源:Camera.cs

示例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);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:8,代码来源:InputContext.cs

示例10: doSerialize

 public override void doSerialize(IDataWriter state)
 {
     state.Write(m_visible);
     state.Write(m_layer);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:5,代码来源:AbstractRenderable.cs

示例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);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:17,代码来源:AbstractCollider.cs

示例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);
     }
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:9,代码来源:ParameterSequence.cs

示例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);
            }
        }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:28,代码来源:InputContext.cs

示例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);
        }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:16,代码来源:OrientedBoxCollider.cs

示例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);
 }
开发者ID:DelBero,项目名称:XnaScrap,代码行数:11,代码来源:PathFollowPosition3D.cs


注:本文中的IDataWriter.Write方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。