SPublicRegion
| خاصية | ID | The Region ID of this region |
| خاصية | OwnerID | The ID of the owner of this region |
| خاصية | Name | The Name of this region |
| خاصية | MapPath | – |
| خاصية | PreviewPath | – |
| خاصية | RankingScore | The Ranking Score of the region. |
| خاصية | MaxAvatars | The max number of avatars this region can hold. |
| خاصية | FileSize | The current MBs the region is using. |
| خاصية | Memory | – |
| خاصية | Landmarks | An array of Landmarks in the region. |
| خاصية | Regions | Returns an array of SSubRegion in the region. |
| خاصية | Description | Returns the description of the region. |
| خاصية | Access | The access type of the region (such as "Public" or "Approved only") |
الخصائص
IDللقراءة فقط
The Region ID of this region
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionID = r.ID
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
OwnerIDللقراءة فقط
The ID of the owner of this region
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionOwnerID = r.OwnerID
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
Nameللقراءة فقط
The Name of this region
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionName = r.Name
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
MapPathللقراءة فقط
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionMapPath = r.MapPath
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
PreviewPathللقراءة فقط
مثال
--Make's a UIText show the Preview Path of the user's first available region
textObject = Space.Host.GetReference("TheTextReference")
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionPreviewPath = r.PreviewPath
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
RankingScoreللقراءة فقط
The Ranking Score of the region.
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionRankingScore = r.RankingScore
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
MaxAvatarsللقراءة فقط
The max number of avatars this region can hold.
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionMaxAvatars = r.MaxAvatars
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
FileSizeللقراءة فقط
The current MBs the region is using.
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionFileSize = r.FileSize
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
Memoryللقراءة فقط
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionMemory = r.Memory
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
Landmarksللقراءة فقط
An array of Landmarks in the region.
مثال
``` function GetUserRegionsComplete(SUserRegions) local r = SUserRegions.AvailableRegions[1] regionLandmarks = r.Landmarks end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete) ```
Regionsللقراءة فقط
Returns an array of SSubRegion in the region.
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionSubRegions = r.Regions
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
Descriptionللقراءة فقط
Returns the description of the region.
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionDescription = r.Description
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)
Accessللقراءة فقط
The access type of the region (such as "Public" or "Approved only")
1= Disabled, 2= FreeForall, 3= FriendsOnly, 4= ApprovedOnly, 5= GroupsOnly
مثال
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionAccessType = r.Access
end
Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)



