本文整理汇总了C#中IDataReader.ReadString方法的典型用法代码示例。如果您正苦于以下问题:C# IDataReader.ReadString方法的具体用法?C# IDataReader.ReadString怎么用?C# IDataReader.ReadString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataReader
的用法示例。
在下文中一共展示了IDataReader.ReadString方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TextOverlay
public TextOverlay(IDataReader state)
: base(state)
{
addInterface(typeof(IRenderable2D));
addInterface(typeof(ITextRenderable));
m_fontName = state.ReadString();
m_text = state.ReadString();
}
示例2: Text3DBillboard
public Text3DBillboard(IDataReader state)
: base(state)
{
addInterface(typeof(ITextRenderable));
m_fontName = state.ReadString();
m_text = state.ReadString();
m_offset.X = state.ReadSingle(); m_offset.Y = state.ReadSingle(); m_offset.Z = state.ReadSingle();
}
示例3: Renderable3D
public Renderable3D(IDataReader state)
: base(state)
{
m_modelName = state.ReadString();
m_materialName = state.ReadString();
m_scale.X = state.ReadSingle();
m_scale.Y = state.ReadSingle();
m_scale.Z = state.ReadSingle();
}
示例4: NavigationMeshElement
public NavigationMeshElement(IDataReader state, NavigationMeshService manager)
: base(state)
{
m_manager = manager;
m_MeshName = state.ReadString();
}
示例5: InputContext
public InputContext(IDataReader state, IInputManager inputManager, Core core)
: base(state)
{
m_lastKeybaord = state.ReadBoolean();
m_lastMouse = state.ReadBoolean();
m_lastTouch = state.ReadBoolean();
m_lastGamepad = state.ReadBoolean();
Enum.TryParse(state.ReadString(), out m_playerIndex);
// keyboard
int numInputMappings = state.ReadInt32();
for (int i = 0; i < numInputMappings; ++i)
{
String key = state.ReadString();
Keys k;
if (Enum.TryParse(key, true, out k))
{
m_keyMappings.Add(k, new InputMapping(state, core));
}
else
{
new InputMapping(state,core);
}
}
//gamepad
int numGamepadBindings = state.ReadInt32();
for (int i = 0; i < numGamepadBindings; ++i)
{
String button = state.ReadString();
Buttons b;
if (Enum.TryParse(button,true,out b))
{
m_gamepadMappings.Add(b, new InputMapping(state, core));
}
else
{
new InputMapping(state, core);
}
}
m_inputManager = inputManager;
}
示例6: doHandleMessage
public override void doHandleMessage(IDataReader msg)
{
XnaScrapId msgId = new XnaScrapId(msg);
if (PrintId == msgId)
{
String message = msg.ReadString();
System.Console.WriteLine(message);
}
base.doHandleMessage(msg);
}
示例7: doHandleMessage
public override void doHandleMessage(IDataReader msg)
{
XnaScrapId msgId = new XnaScrapId(msg);
if (msgId == CHANGE_MODEL_MSG_ID)
{
m_modelName = msg.ReadString();
setModel();
}
else if (msgId == CHANGE_MATERIAL_MSG_ID)
{
m_materialName = msg.ReadString();
setMaterial();
}
else if (msgId == CHANGE_SCALE_MSG_ID)
{
m_scale.X = msg.ReadSingle();
m_scale.Y = msg.ReadSingle();
m_scale.Z = msg.ReadSingle();
}
base.doHandleMessage(msg);
}
示例8: Deserialize
public override void Deserialize(IDataReader reader, SemVersion archiveVersion)
{
Value = reader.ReadString();
}
示例9: InputMapping
public InputMapping(IDataReader state, Core core)
{
m_core = core;
m_bIsPressed = state.ReadBoolean();
m_downMsg = new XnaScrapId(state);
m_upMsg = new XnaScrapId(state);
m_targetId = new XnaScrapId(state);
m_message = state.ReadString();
}
示例10: Read
/// <summary>
/// Reads the string
/// </summary>
/// <param name="reader">reader to read from</param>
public void Read(IDataReader reader)
{
Data = reader.ReadString();
}
示例11: deserialise
public void deserialise(IDataReader reader)
{
reader.ReadString();
}
示例12: doHandleMessage
public override void doHandleMessage(IDataReader msg)
{
XnaScrapId msgId = new XnaScrapId(msg);
if (msgId == CHANGE_TEXT_ID)
{
m_text = msg.ReadString();
}
base.doHandleMessage(msg);
}
示例13: doHandleMessage
public override void doHandleMessage(IDataReader msg)
{
XnaScrapId msgId = new XnaScrapId(msg);
if (msgId == CHANGE_TEXTURE_MSG_ID)
{
m_materialName = msg.ReadString();
setTexture(m_materialName);
}
base.doHandleMessage(msg);
}