• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# WorldEditor.WorldEditor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Multiverse.Tools.WorldEditor.WorldEditor的典型用法代码示例。如果您正苦于以下问题:C# WorldEditor类的具体用法?C# WorldEditor怎么用?C# WorldEditor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WorldEditor类属于Multiverse.Tools.WorldEditor命名空间,在下文中一共展示了WorldEditor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:GlobalAmbientLight.cs


示例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;
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:28,代码来源:AddObjectCommand.cs


示例3: Tree

        public Tree(XmlReader r, Forest parent, WorldEditor worldEditor)
        {
            this.app = worldEditor;
            this.parent = parent;

            FromXml(r);
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:tree.cs


示例4: ParticleEffect

        public ParticleEffect(XmlReader r, IWorldObject parent, WorldEditor app)
        {
            this.parent = parent;
            this.app = app;

            FromXml(r);
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:ParticleEffect.cs


示例5: Skybox

        public Skybox(IWorldContainer parentContainer, WorldEditor worldEditor, XmlReader r)
        {
            this.parent = parentContainer;
            this.app = worldEditor;

            FromXml(r);
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:Skybox.cs


示例6: RotationChangeCommand

 public RotationChangeCommand(WorldEditor app, IObjectRotation rotObj, float oldRot, float newRot)
 {
     this.rotObj = rotObj;
     this.oldRot = oldRot;
     this.newRot = newRot;
     this.app = app;
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:RotationChangeCommand.cs


示例7: SearchDialog

 public SearchDialog(WorldTreeNode node, TreeNodeCollection collection, WorldEditor worldEditor)
 {
     this.rootNode = node;
     this.rootNodeCollection = collection;
     this.app = worldEditor;
     InitializeComponent();
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:SearchDialog.cs


示例8: ScaleChangeCommand

 public ScaleChangeCommand(WorldEditor app, IObjectScale scaleObj, float oldScale, float newScale)
 {
     this.scaleObj = scaleObj;
     this.oldScale = oldScale;
     this.newScale = newScale;
     this.app = app;
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:ScaleChangeCommand.cs


示例9: Grass

 public Grass(Boundary parent, WorldEditor app, String name)
 {
     this.parent = parent;
     this.app = app;
     this.name = name;
     this.plantList = new List<IWorldObject>();
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:Grass.cs


示例10: ChangeCollectionCommandFactory

 public ChangeCollectionCommandFactory(WorldEditor worldEditor, List<IObjectChangeCollection> changeObjList,
     IObjectCollectionParent toCollection)
 {
     this.app = worldEditor;
     this.objList = changeObjList;
     this.toCollection = toCollection;
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:ChangeCollectionCommandFactory.cs


示例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);
            }
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:26,代码来源:ErrorHelper.cs


示例12: PositionChangeCommand

 public PositionChangeCommand(WorldEditor app, IObjectPosition posObj, Vector3 oldPosition, Vector3 newPosition)
 {
     this.posObj = posObj;
     this.oldPosition = oldPosition;
     this.newPosition = newPosition;
     this.app = app;
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:PositionChangeCommand.cs


示例13: AutoSplatTerrainDisplay

        public AutoSplatTerrainDisplay(WorldTerrain parent, WorldEditor worldEditor, XmlReader r)
        {
            this.parent = parent;
            this.app = worldEditor;

            FromXml(r);
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:7,代码来源:AutoSplatTerrainDisplay.cs


示例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;
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:9,代码来源:AddMarkerCommand.cs


示例15: RoadObject

        public RoadObject(XmlReader r, IWorldContainer parentContainer, WorldEditor worldEditor)
        {
            parent = parentContainer;
            app = worldEditor;
            children = new List<IWorldObject>();

            FromXml(r);
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:8,代码来源:RoadObject.cs


示例16: AddInteriorPathCommand

        public AddInteriorPathCommand(WorldEditor worldEditor, IWorldContainer parentObject)
        {
            this.app = worldEditor;
            this.parent = parentObject;
            this.meshName = app.Config.RegionPointMeshName;

            placing = true;
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:8,代码来源:AddInteriorPathCommand.cs


示例17: Forest

        public Forest(XmlReader r, Boundary parent, WorldEditor worldEditor)
        {
            this.parent = parent;
            this.app = worldEditor;
            this.treeTypes = new List<IWorldObject>();

            FromXml(r);
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:8,代码来源:Forest.cs


示例18: AddMarkerAtCameraCommand

 public AddMarkerAtCameraCommand(WorldEditor app, IWorldContainer parent, string name)
 {
     this.app = app;
     this.parent = parent;
     this.name = name;
     this.pos = app.CameraPosition;
     this.orient = new Quaternion(app.CameraOrientation.w, app.CameraOrientation.x, app.CameraOrientation.y, app.CameraOrientation.z);
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:8,代码来源:AddMarkerAtCameraCommand.cs


示例19: Fog

        public Fog(XmlReader r, Boundary parent, WorldEditor app)
        {
            this.app = app;
            this.parentNode = null;
            this.parent = parent;

            FromXml(r);
        }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:8,代码来源:Fog.cs


示例20: DragDecalCommand

 public DragDecalCommand(WorldEditor worldEditor, IWorldContainer parent, TerrainDecal tDecal)
 {
     this.app = worldEditor;
     this.parent = parent;
     this.decal = tDecal;
     this.placing = true;
     oldPosition = new Vector2(decal.Position.x,decal.Position.z);
 }
开发者ID:ufosky-server,项目名称:MultiversePlatform,代码行数:8,代码来源:DragDecalCommand.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Models.Order类代码示例发布时间:2022-05-26
下一篇:
C# Engine.MinerProcess类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap