本文整理汇总了C#中ConfigNode.GetValues方法的典型用法代码示例。如果您正苦于以下问题:C# ConfigNode.GetValues方法的具体用法?C# ConfigNode.GetValues怎么用?C# ConfigNode.GetValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfigNode
的用法示例。
在下文中一共展示了ConfigNode.GetValues方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnLoad
protected override void OnLoad(ConfigNode node)
{
if (node.HasValue("FIELD"))
{
matchFields.AddRange(node.GetValues("FIELD"));
}
}
示例2: OnLoad
public override void OnLoad(ConfigNode node)
{
base.OnLoad(node);
if (must_record_journal_) {
Log.ActivateRecorder(true);
}
if (node.HasValue(principia_key)) {
Cleanup();
SetRotatingFrameThresholds();
RemoveBuggyTidalLocking();
Log.SetBufferedLogging(buffered_logging_);
Log.SetSuppressedLogging(suppressed_logging_);
Log.SetStderrLogging(stderr_logging_);
Log.SetVerboseLogging(verbose_logging_);
IntPtr deserializer = IntPtr.Zero;
String[] serializations = node.GetValues(principia_key);
Log.Info("Serialization has " + serializations.Length + " chunks");
foreach (String serialization in serializations) {
Log.Info("serialization is " + serialization.Length +
" characters long");
Interface.DeserializePlugin(serialization,
serialization.Length,
ref deserializer,
ref plugin_);
}
Interface.DeserializePlugin("", 0, ref deserializer, ref plugin_);
plotting_frame_selector_.reset(
new ReferenceFrameSelector(this,
plugin_,
UpdateRenderingFrame,
"Plotting frame"));
flight_planner_.reset(new FlightPlanner(this, plugin_));
plugin_construction_ = DateTime.Now;
plugin_source_ = PluginSource.SAVED_STATE;
} else {
Log.Warning("No principia state found, creating one");
ResetPlugin();
}
}
示例3: OnLoad
public override void OnLoad(ConfigNode node)
{
base.OnLoad(node);
if (node.HasValue(kPrincipiaKey)) {
Cleanup();
SetRotatingFrameThresholds();
Log.SetBufferedLogging(buffered_logging_);
Log.SetSuppressedLogging(suppressed_logging_);
Log.SetStderrLogging(stderr_logging_);
Log.SetVerboseLogging(verbose_logging_);
IntPtr deserializer = IntPtr.Zero;
String[] serializations = node.GetValues(kPrincipiaKey);
Log.Info("Serialization has " + serializations.Length + " chunks");
foreach (String serialization in serializations) {
Log.Info("serialization is " + serialization.Length +
" characters long");
DeserializePlugin(serialization,
serialization.Length,
ref deserializer,
ref plugin_);
}
DeserializePlugin("", 0, ref deserializer, ref plugin_);
UpdateRenderingFrame();
plugin_construction_ = DateTime.Now;
plugin_source_ = PluginSource.SAVED_STATE;
} else {
Log.Warning("No principia state found, creating one");
ResetPlugin();
}
}