本文整理汇总了C#中System.ConfigNode.GetStringValues方法的典型用法代码示例。如果您正苦于以下问题:C# ConfigNode.GetStringValues方法的具体用法?C# ConfigNode.GetStringValues怎么用?C# ConfigNode.GetStringValues使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.ConfigNode
的用法示例。
在下文中一共展示了ConfigNode.GetStringValues方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TextureData
public TextureData(ConfigNode node)
{
meshNames = node.GetStringValues("mesh");
shaderName = node.GetStringValue("shader");
diffuseTextureName = node.GetStringValue("diffuseTexture");
normalTextureName = node.GetStringValue("normalTexture");
emissiveTextureName = node.GetStringValue("emissiveTexture");
}
示例2: SSTUEngineMountDefinition
public SSTUEngineMountDefinition(ConfigNode node)
{
mountName = node.GetStringValue("name");
modelName = node.GetStringValue("modelName");
invertModel = node.GetBoolValue("invertModel", invertModel);
singleModel = node.GetBoolValue("singleModel", singleModel);
verticalOffset = node.GetFloatValue("verticalOffset");
height = node.GetFloatValue("height", height);
fairingDisabled = node.GetBoolValue("fairingDisabled", fairingDisabled);
fairingTopOffset = node.GetFloatValue("fairingTopOffset");
mountMass = node.GetFloatValue("mass", mountMass);
defaultDiameter = node.GetFloatValue("defaultDiameter", defaultDiameter);
volume = node.GetFloatValue("volume", volume);
rcsVerticalPosition = node.GetFloatValue("rcsVerticalPosition", rcsVerticalPosition);
rcsHorizontalPosition = node.GetFloatValue("rcsHorizontalPosition", rcsHorizontalPosition);
rcsVerticalRotation = node.GetFloatValue("rcsVerticalRotation");
rcsHorizontalRotation = node.GetFloatValue("rcsHorizontalRotation");
if (node.HasValue("node"))
{
String[] vals = node.GetStringValues("node");
foreach (String val in vals) { nodePositions.Add(new AttachNodeData(val)); }
if (invertModel) { foreach (AttachNodeData data in nodePositions) { data.invert(); } }
}
}
示例3: ModelSwitchGroup
public ModelSwitchGroup(ConfigNode node, SSTUModelSwitch module)
{
this.owner = module;
this.name = node.GetStringValue("name");
this.defaultModel = node.GetStringValue("defaultModel", string.Empty);
this.parentGroup = node.GetStringValue("parentGroup", string.Empty);
this.parentNode = node.GetStringValue("parentNode", string.Empty);
string[] nodeNames = node.GetStringValues("node");
int len = nodeNames.Length;
modelNodes = new ModelNode[len];
for (int i = 0; i < len; i++)
{
modelNodes[i] = new ModelNode(nodeNames[i], this);
nodeMap.Add(modelNodes[i].name, modelNodes[i]);
}
}
示例4: ModelTextureData
public ModelTextureData(ConfigNode node)
{
diffuseTextureName = node.GetStringValue("diffuseTexture");
normalTextureName = node.GetStringValue("normalTexture");
meshNames = node.GetStringValues("mesh");
}
示例5: ModelSwitchData
public ModelSwitchData(ConfigNode node, Part owner, ModelSwitchGroup group)
{
name = node.GetStringValue("name");
modelName = node.GetStringValue("modelName", name);
groupName = node.GetStringValue("group", groupName);
containerIndex = node.GetIntValue("containerIndex", 0);
moduleIDs = node.GetIntValues("managedModuleID", new int[] { });
localPosition = node.GetVector3("localPosition", Vector3.zero);
localRotation = node.GetVector3("localRotation", Vector3.zero);
scale = node.GetFloatValue("scale", scale);
nodes = ModelNodeData.load(node.GetStringValues("node"));
suppressNode = nodes.Length > 0;
modelDefinition = SSTUModelData.getModelDefinition(modelName);
if (modelDefinition == null) { throw new NullReferenceException("Could not locate model data for name: " + modelName + " :: " + name); }
this.part = owner;
this.group = group;
this.group.add(this);
}