public void Clone(IWorldContainer copyParent) { TerrainDecal clone = new TerrainDecal(app, copyParent, name, position, size, imageName, priority); clone.Rotation = rotation; copyParent.Add(clone); }
public PointCollection(IWorldContainer parent, WorldEditor worldEditor, bool noIntersect, bool displayMarkers, string markerMeshName, string markerMaterialName, MPPointType type, XmlReader r) : this(parent, worldEditor, noIntersect, displayMarkers, markerMeshName, markerMaterialName, type) { // // don't do the intersection test when adding points from xml // this.noIntersect = false; while (r.Read()) { // look for the start of an element if (r.NodeType == XmlNodeType.Whitespace) { continue; } if (r.NodeType == XmlNodeType.EndElement) { break; } if (r.NodeType == XmlNodeType.Element) { if (String.Equals(r.Name, "Point")) { Vector3 ptLoc = XmlHelperClass.ParseVectorAttributes(r); int pointNum; AddPoint(ptLoc, out pointNum); } } } this.noIntersect = noIntersect; }
public GlobalAmbientLight(IWorldContainer parentContainer,WorldEditor worldEditor, SceneManager sceneManager, ColorEx lightColor) { this.parent = parentContainer; this.app = worldEditor; this.scene = sceneManager; this.color = lightColor; }
public void Clone(IWorldContainer copyParent) { SpawnGen clone = new SpawnGen(app, copyParent, respawnTime, numSpawn, templateName, spawnRadius); clone.NameValue = new NameValueObject(this.NameValue); copyParent.Add(clone); }
public Skybox(IWorldContainer parentContainer, WorldEditor worldEditor, XmlReader r) { this.parent = parentContainer; this.app = worldEditor; FromXml(r); }
public GlobalAmbientLight(IWorldContainer parentContainer, WorldEditor worldEditor) { this.app = worldEditor; this.parent = parentContainer; this.scene = app.Scene; this.color = app.Config.DefaultAmbientLightColor; }
public GlobalAmbientLight(IWorldContainer parentContainer, WorldEditor worldEditor, SceneManager sceneManager, ColorEx lightColor) { this.parent = parentContainer; this.app = worldEditor; this.scene = sceneManager; this.color = lightColor; }
public AddObjectCommand(WorldEditor worldEditor, IWorldContainer parentObject, string objectName, string meshName, bool randomRotation, bool randomScale, float minScale, float maxScale, Vector3 position) { this.app = worldEditor; this.parent = parentObject; this.name = objectName; this.meshName = meshName; this.location = position; 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 = false; }
public GlobalDirectionalLight(IWorldContainer parent, WorldEditor worldEditor, XmlReader r) { this.app = worldEditor; this.parent = parent; this.scene = app.Scene; fromXml(r); }
public PointLight(WorldEditor worldEditor, IWorldContainer parent, SceneManager scene, XmlReader r) { this.app = worldEditor; this.parent = parent; this.scene = scene; fromXML(r); }
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; }
public Sound(XmlReader r, IWorldContainer parent, WorldEditor worldEditor) { this.parent = parent; this.app = worldEditor; FromXml(r); }
public void Clone(IWorldContainer copyParent) { ParticleEffect clone = new ParticleEffect(copyParent as IWorldObject, app, particleEffectName, particleScale, velocityScale, attachmentPointName, orientation); copyParent.Add(clone); }
public GlobalAmbientLight(IWorldContainer parentContainer, WorldEditor worldEditor, SceneManager sceneManager, XmlReader r) { this.app = worldEditor; this.parent = parentContainer; this.scene = sceneManager; fromXml(r); }
public GlobalDirectionalLight(WorldEditor worldEditor, IWorldContainer parent, Vector3 lightDir, ColorEx diff, ColorEx spec) { this.app = worldEditor; this.parent = parent; this.lightDirection = lightDir; this.diffuse = diff; this.specular = spec; }
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); }
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); }
public RoadObject(XmlReader r, IWorldContainer parentContainer, WorldEditor worldEditor) { parent = parentContainer; app = worldEditor; children = new List <IWorldObject>(); FromXml(r); }
public InsertPointsCommand(WorldEditor worldEditor, IWorldContainer parent, Vector3 newPoint, int index) { this.app = worldEditor; this.parent = (PointCollection) parent; this.newPoint = newPoint; this.index = index; this.placing = true; }
public void Clone(IWorldContainer copyParent) { PlantType clone = new PlantType(app, copyParent as Grass, instances, name, imageName, scaleWidthLow, scaleWidthHi, scaleHeightLow, ScaleHeightHi, color, colorMultLow, colorMultHi, windMagnitude); copyParent.Add(clone); }
public InsertPointsCommandFactory(WorldEditor worldEditor, IWorldContainer parentObject, int index) { this.app = worldEditor; this.parent = (PointCollection) parentObject; this.index = index; // placing = true; }
public AddInteriorPathCommand(WorldEditor worldEditor, IWorldContainer parentObject) { this.app = worldEditor; this.parent = parentObject; this.meshName = app.Config.RegionPointMeshName; placing = true; }
// 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; }
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); }
public InsertPointsCommand(WorldEditor worldEditor, IWorldContainer parent, Vector3 newPoint, int index) { this.app = worldEditor; this.parent = (PointCollection)parent; this.newPoint = newPoint; this.index = index; this.placing = true; }
public RoadObject(XmlReader r, IWorldContainer parentContainer, WorldEditor worldEditor) { parent = parentContainer; app = worldEditor; children = new List<IWorldObject>(); FromXml(r); }
public WorldObjectCollection(String collectionName, IWorldContainer parentContainer, WorldEditor worldEditor) { name = collectionName; parent = parentContainer; objectList = new List <IWorldObject>(); app = worldEditor; loaded = true; }
public WorldObjectCollection(String collectionName, IWorldContainer parentContainer, WorldEditor worldEditor) { name = collectionName; parent = parentContainer; objectList = new List<IWorldObject>(); app = worldEditor; loaded = true; }
public void Clone(IWorldContainer copyParent) { DirectionalLight clone = new DirectionalLight(app, copyParent as Boundary, lightDirection, diffuse, specular); clone.Azimuth = azimuth; clone.Zenith = zenith; copyParent.Add(clone); }
public GlobalFog(IWorldContainer parentContainer, WorldEditor worldEditor) { this.parent = parentContainer; this.app = worldEditor; this.scene = app.Scene; this.color = app.Config.FogColorDefault; this.far = app.Config.FogFarDefault; this.near = app.Config.FogNearDefault; }
public InsertPointsCommandFactory(WorldEditor worldEditor, IWorldContainer parentObject, int index) { this.app = worldEditor; this.parent = (PointCollection)parentObject; this.index = index; // placing = true; }
public SpawnGen(WorldEditor appin, IWorldContainer parentin, int respawnTimein, uint numberOfSpawnsin, string templateNamein) { this.app = appin; this.parent = parentin; this.respawnTime = respawnTimein; this.numSpawn = numberOfSpawnsin; this.templateName = templateNamein; this.nameValuePairs = new NameValueObject(); }
public SaveModelInteriorPathsCommand(WorldEditor worldEditor, IWorldContainer parentObject, string meshName) { this.app = worldEditor; this.parent = parentObject; this.meshName = meshName; this.saveDialog.DefaultExt = "modelpaths"; this.saveDialog.Filter = "Model Interior Path Files (*.modelpaths)|*.modelpaths"; this.saveDialog.Title = "Save Model Interior Paths"; }
public AddTerrainDecalCommand(WorldEditor worldEditor, IWorldContainer parent, string name, string filename, Vector2 size, int pri) { this.app = worldEditor; this.name = name; this.filename = filename; this.size = new Vector2(size.x, size.y); this.priority = pri; this.placing = true; this.parent = parent; }
public GlobalDirectionalLight(IWorldContainer parent, WorldEditor worldEditor) { this.app = worldEditor; this.parent = parent; this.diffuse = app.Config.DefaultBoundaryDirectionalLightDiffuse; this.specular = app.Config.DefaultBoundaryDirectionalLightSpecular; this.azimuth = app.Config.DefaultDirectionalLightAzimuth; this.zenith = app.Config.DefaultDirectionalLightZenith; this.SetDirection(this.azimuth, this.zenith); }
public AddRoadCommand(WorldEditor worldEditor, IWorldContainer parentObject, String roadName, int halfWidth) { this.app = worldEditor; this.parent = parentObject; this.name = roadName; this.meshName = app.Config.RoadPointMeshName; this.halfWidth = halfWidth; placing = true; }
public void Clone(IWorldContainer copyParent) { Grass clone = new Grass(copyParent as Boundary, app, name); foreach (IWorldObject child in plantList) { child.Clone(clone); } copyParent.Add(clone); }
public void Clone(IWorldContainer copyParent) { Sound clone = new Sound(filename, copyParent, app); clone.Gain = gain; clone.MaxAttenuationDistance = maxAttenuationDistance; clone.MinAttenuationDistance = minAttenuationDistance; clone.Loop = loop; copyParent.Add(clone); }
public AddDirectionalLightCommand(WorldEditor worldEditor, IWorldContainer parentObject, String objectName, string meshName, ColorEx specular, ColorEx diffuse) { this.app = worldEditor; this.parent = (Boundary) parentObject; this.name = objectName; this.meshName = meshName; this.specular = specular; this.diffuse = diffuse; this.scene = app.Scene; }
public void Clone(IWorldContainer copyParent) { PointCollection clone = new PointCollection(parent, app, noIntersect, false, markerMeshName, markerMaterialName, type); foreach (IWorldObject child in Children) { child.Clone(clone); } copyParent.Add(clone); }
public AddRegionCommand(WorldEditor worldEditor, IWorldContainer parentObject, String regionName, int priority) { this.app = worldEditor; this.parent = parentObject; this.name = regionName; this.meshName = app.Config.RegionPointMeshName; this.priority = priority; placing = true; }
public PointLight(WorldEditor worldEditor, IWorldContainer parent, SceneManager scene, string name, ColorEx specular, ColorEx diffuse, Vector3 position) { this.app = worldEditor; this.parent = parent; this.scene = scene; this.name = name; this.position = position; this.specular = specular; this.diffuse = diffuse; this.terrainOffset = app.Config.DefaultPointLightHeight; }
public TerrainDecal(WorldEditor worldEditor, IWorldContainer parent, string name, Vector2 position, Vector2 size, string image, int priority) { this.app = worldEditor; this.name = name; this.parent = parent; this.position = position; this.size = size; this.imageName = image; this.rotation = 0f; this.priority = priority; }
public AddPointLightCommand(WorldEditor worldEditor, IWorldContainer parentObject, String objectName, string meshName, ColorEx specular, ColorEx diffuse) { this.app = worldEditor; this.parent = parentObject; this.name = objectName; this.meshName = meshName; this.specular = specular; this.diffuse = diffuse; this.scene = app.Scene; placing = true; }
public WorldObjectCollection(XmlReader r, String collectionName, String collectionFilename, IWorldContainer parentContainer, WorldEditor worldEditor, string path, bool load) { name = collectionName; filename = collectionFilename; parent = parentContainer; objectList = new List<IWorldObject>(); app = worldEditor; this.path = path; if (load) { FromXml(r, false); Loaded = true; } }
public RoadObject(String objectName, IWorldContainer parentContainer, WorldEditor worldEditor, int halfWidth) { name = objectName; parent = parentContainer; app = worldEditor; children = new List<IWorldObject>(); this.HalfWidth = halfWidth; this.nameValuePairs = new NameValueObject(); points = new PointCollection(this, app, false, true, app.Config.RoadPointMeshName, app.Config.RoadPointMaterial, MPPointType.Road); Add(points); points.PointsChanged += new PointsChangedEventHandler(PointsChangedHandler); }
public Ocean(IWorldContainer parentContainer, WorldEditor worldEditor) { this.parent = parentContainer; this.app = worldEditor; // set up default parameters this.displayOcean = app.Config.DefaultDisplayOcean; this.seaLevel = app.Config.DefaultSeaLevel; this.waveHeight = app.Config.DefaultWaveHeight; this.deepColor = app.Config.DefaultOceanDeepColor; this.shallowColor = app.Config.DefaultOceanShallowColor; this.bumpScale = app.Config.DefaultOceanBumpScale; this.textureScaleX = app.Config.DefaultOceanTextureScaleX; this.textureScaleZ = app.Config.DefaultOceanTextureScaleZ; this.bumpSpeedX = app.Config.DefaultOceanBumpSpeedX; this.bumpSpeedZ = app.Config.DefaultOceanBumpSpeedZ; this.useParams = app.Config.DefaultOceanUseParams; }
public Sound(string filenamein, IWorldContainer parent, WorldEditor app) { this.filename = filenamein; this.parent = parent; this.app = app; this.loop = app.Config.DefaultSoundLooping; this.gain = app.Config.DefaultSoundGain; if (parent is Boundary) { this.type = SoundType.Ambient; } else { this.type = SoundType.Positional; minAttenuationDistance = app.Config.DefaultSoundMinAttenuationDistance; maxAttenuationDistance = app.Config.DefaultSoundMaxAttenuationDistance; } }
public DeleteInteriorPathCommandFactory(WorldEditor worldEditor, IWorldContainer parentObject, InteriorPath path) { app = worldEditor; parent = parentObject; this.path = path; }