當前位置: 首頁>>代碼示例>>C#>>正文


C# WorldEditor.WorldEditor類代碼示例

本文整理匯總了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;
 }
開發者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


注:本文中的Multiverse.Tools.WorldEditor.WorldEditor類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。