OpenSim.Region.Framework.Scenes.Scene.GetEntities C# (CSharp) Method

GetEntities() public method

Returns a list of the entities in the scene. This is a new list so operations perform on the list itself will not affect the original list of objects in the scene.
public GetEntities ( ) : EntityBase[]
return EntityBase[]
        public EntityBase[] GetEntities()
        {
            return m_sceneGraph.GetEntities();
        }

Usage Example

Ejemplo n.º 1
0
        private static string GetObjectXml(Scene scene)
        {
            string xmlstream = "<scene>";

            List<EntityBase> EntityList = scene.GetEntities();
            List<string> EntityXml = new List<string>();

            foreach (EntityBase ent in EntityList)
            {
                if (ent is SceneObjectGroup)
                {
                    EntityXml.Add(SceneObjectSerializer.ToXml2Format((SceneObjectGroup)ent, false));
                }
            }
            EntityXml.Sort();

            foreach (string xml in EntityXml)
                xmlstream += xml;

            xmlstream += "</scene>";
            return xmlstream;
        }
All Usage Examples Of OpenSim.Region.Framework.Scenes.Scene::GetEntities
Scene