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


C# ConfigNode.GetValues方法代码示例

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

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

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


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