本文整理汇总了C#中Multiverse.Tools.WorldEditor.WorldEditor类的典型用法代码示例。如果您正苦于以下问题:C# WorldEditor类的具体用法?C# WorldEditor怎么用?C# WorldEditor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WorldEditor类属于Multiverse.Tools.WorldEditor命名空间,在下文中一共展示了WorldEditor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GlobalAmbientLight
public GlobalAmbientLight(IWorldContainer parentContainer,WorldEditor worldEditor, SceneManager sceneManager, ColorEx lightColor)
{
this.parent = parentContainer;
this.app = worldEditor;
this.scene = sceneManager;
this.color = lightColor;
}
示例2: AddObjectCommand
public AddObjectCommand(WorldEditor worldEditor, IWorldContainer parentObject, String objectName,
String meshName, bool randomRotation, bool randomScale, float minScale, float maxScale,
bool multiPlacement)
{
this.app = worldEditor;
this.parent = parentObject;
this.name = objectName;
this.meshName = meshName;
placeMultiple = multiPlacement;
this.randomRotation = randomRotation;
this.randomScale = randomScale;
this.minScale = minScale;
this.maxScale = maxScale;
// apply random scale and rotation
if (randomRotation)
{
rotation = (float)app.Random.NextDouble() * 360f;
}
if (randomScale)
{
float scaleRange = maxScale - minScale;
scale = minScale + (float)app.Random.NextDouble() * scaleRange;
}
placing = true;
}
示例3: Tree
public Tree(XmlReader r, Forest parent, WorldEditor worldEditor)
{
this.app = worldEditor;
this.parent = parent;
FromXml(r);
}
示例4: ParticleEffect
public ParticleEffect(XmlReader r, IWorldObject parent, WorldEditor app)
{
this.parent = parent;
this.app = app;
FromXml(r);
}
示例5: Skybox
public Skybox(IWorldContainer parentContainer, WorldEditor worldEditor, XmlReader r)
{
this.parent = parentContainer;
this.app = worldEditor;
FromXml(r);
}
示例6: RotationChangeCommand
public RotationChangeCommand(WorldEditor app, IObjectRotation rotObj, float oldRot, float newRot)
{
this.rotObj = rotObj;
this.oldRot = oldRot;
this.newRot = newRot;
this.app = app;
}
示例7: SearchDialog
public SearchDialog(WorldTreeNode node, TreeNodeCollection collection, WorldEditor worldEditor)
{
this.rootNode = node;
this.rootNodeCollection = collection;
this.app = worldEditor;
InitializeComponent();
}
示例8: ScaleChangeCommand
public ScaleChangeCommand(WorldEditor app, IObjectScale scaleObj, float oldScale, float newScale)
{
this.scaleObj = scaleObj;
this.oldScale = oldScale;
this.newScale = newScale;
this.app = app;
}
示例9: Grass
public Grass(Boundary parent, WorldEditor app, String name)
{
this.parent = parent;
this.app = app;
this.name = name;
this.plantList = new List<IWorldObject>();
}
示例10: ChangeCollectionCommandFactory
public ChangeCollectionCommandFactory(WorldEditor worldEditor, List<IObjectChangeCollection> changeObjList,
IObjectCollectionParent toCollection)
{
this.app = worldEditor;
this.objList = changeObjList;
this.toCollection = toCollection;
}
示例11: SendUserError
public static void SendUserError(string text, string anchor, int displayTime, bool includeBeep, object objin, WorldEditor appin)
{
app = appin;
link = anchor;
if (includeBeep)
{
SystemSounds.Beep.Play();
}
obj = objin;
if (showing == false)
{
showing = true;
toolStripErrorMessage = new ToolStripLabel(text, null, false);
toolStripErrorMessage.ForeColor = Color.Red;
toolStripErrorMessage.Click += toolStripErrorMessage_clicked;
toolStripErrorMessage.IsLink = true;
toolStripErrorMessage.ActiveLinkColor = Color.Red;
toolStripErrorMessage.LinkBehavior = LinkBehavior.AlwaysUnderline;
toolStripErrorMessage.LinkColor = Color.Red;
toolStripErrorMessage.VisitedLinkColor = Color.Red;
toolStripErrorMessageItem = toolStripErrorMessage as ToolStripItem;
app.StatusBarAddItem(toolStripErrorMessageItem);
timeOutErrorMessage(toolStripErrorMessageItem, displayTime);
}
}
示例12: PositionChangeCommand
public PositionChangeCommand(WorldEditor app, IObjectPosition posObj, Vector3 oldPosition, Vector3 newPosition)
{
this.posObj = posObj;
this.oldPosition = oldPosition;
this.newPosition = newPosition;
this.app = app;
}
示例13: AutoSplatTerrainDisplay
public AutoSplatTerrainDisplay(WorldTerrain parent, WorldEditor worldEditor, XmlReader r)
{
this.parent = parent;
this.app = worldEditor;
FromXml(r);
}
示例14: AddMarkerCommand
// SubMeshCollection subMeshes;
public AddMarkerCommand(WorldEditor worldEditor, IWorldContainer parentObject, String objectName, string meshNameIn)
{
this.app = worldEditor;
this.parent = parentObject;
this.name = objectName;
this.meshName = meshNameIn;
placing = true;
}
示例15: RoadObject
public RoadObject(XmlReader r, IWorldContainer parentContainer, WorldEditor worldEditor)
{
parent = parentContainer;
app = worldEditor;
children = new List<IWorldObject>();
FromXml(r);
}