Files
opensim/OpenSim/Region/OptionalModules/Scripting/Minimodule/IObjectAccessor.cs
Adam Frisby 5cd70a8c0e * MRM Adjustments
* Changes World.Objects from Array IObject[] to IObjectAccessor.
* Syntactically identical in most behaviour, however the indexer is now ranges not from 0..Count, but any valid internal LocalID. Additional indexers have been added for UUID.
* Example: for(int i=0;i<World.Objects.Count;i++) will not work any more, however foreach(World.Objects) will remain functional.
* This prevents us needing to create a list for each access to World.Objects which should [in theory] present a dramatic speed improvement to MRM scripts frequently accessing World.Objects.
2009-04-01 09:31:40 +00:00

12 lines
329 B
C#

using System.Collections.Generic;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
public interface IObjectAccessor : ICollection<IObject>
{
IObject this[int index] { get; }
IObject this[uint index] { get; }
IObject this[UUID index] { get; }
}
}