本文整理汇总了C#中com.setName方法的典型用法代码示例。如果您正苦于以下问题:C# com.setName方法的具体用法?C# com.setName怎么用?C# com.setName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com
的用法示例。
在下文中一共展示了com.setName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: copyValuesTo
/// <summary>Sets the values of this instance to the given one.</summary>
/// <remarks>Sets the values of this instance to the given one.</remarks>
/// <param name="object">which has to be manipulated.</param>
public virtual void copyValuesTo(com.brashmonkey.spriter.objects.SpriterAbstractObject
@object)
{
@object.setAngle(angle);
@object.setScaleX(scaleX);
@object.setScaleY(scaleY);
@object.setX(x);
@object.setY(y);
@object.setId(id);
@object.setParentId(parentId);
@object.setParent(parent);
@object.setTimeline(timeline);
@object.setSpin(spin);
@object.setName(name);
}
示例2: loadTimelineKeys
private static void loadTimelineKeys(List<XmlNode> keys,
com.discobeard.spriter.dom.TimeLine timeline)
{
for (int i = 0; i < keys.Count; i++)
{
XmlNode k = keys[i];
XmlNode obj = XmlReader.getChildByName(k, "bone");
com.discobeard.spriter.dom.Key key = new com.discobeard.spriter.dom.Key();
key.setId(XmlReader.getInt(k,"id" ));
key.setSpin(XmlReader.getInt(k,"spin", 1));
key.setTime(System.Convert.ToInt64(XmlReader.getInt(k,"time", 0 )));
string name = XmlReader.getAttribute(k.ParentNode, "name");
timeline.setName(name);
if (obj != null)
{
com.discobeard.spriter.dom.Bone bone = new com.discobeard.spriter.dom.Bone();
bone.setAngle(new java.math.BigDecimal(XmlReader.getFloat(obj,"angle", 0f )));
bone.setX(new java.math.BigDecimal(XmlReader.getFloat(obj,"x", 0f )));
bone.setY(new java.math.BigDecimal(XmlReader.getFloat(obj,"y", 0f )));
bone.setScaleX(new java.math.BigDecimal(XmlReader.getFloat(obj,"scale_x", 1f )));
bone.setScaleY(new java.math.BigDecimal(XmlReader.getFloat(obj,"scale_y", 1f )));
key.setBone(bone);
}
else
{
com.discobeard.spriter.dom.AnimationObject @object = new com.discobeard.spriter.dom.AnimationObject
();
obj = XmlReader.getChildByName(k, "object");
@object.setAngle(new java.math.BigDecimal(XmlReader.getFloat(obj,"angle", 0f )));
@object.setX(new java.math.BigDecimal(XmlReader.getFloat(obj,"x", 0f )));
@object.setY(new java.math.BigDecimal(XmlReader.getFloat(obj,"y", 0f )));
@object.setScaleX(new java.math.BigDecimal(XmlReader.getFloat(obj,"scale_x", 1f )));
@object.setScaleY(new java.math.BigDecimal(XmlReader.getFloat(obj,"scale_y", 1f )));
@object.setFolder(XmlReader.getInt(obj,"folder" ));
@object.setFile(XmlReader.getInt(obj,"file" ));
com.discobeard.spriter.dom.File f = data.getFolder()[@object.getFolder()].getFile
()[@object.getFile()];
@object.setPivotX(new java.math.BigDecimal(XmlReader.getFloat(obj,"pivot_x", f.getPivotX( ))
));
@object.setPivotY(new java.math.BigDecimal(XmlReader.getFloat(obj,"pivot_y", f.getPivotY( ))
));
key.getObject().Add(@object);
}
timeline.getKey().Add(key);
}
}