Breakroom is now Sinewave Campus. Book a meeting

SPublicRegion

العميلالأنواع
في هذا الصنفID
  1. الخصائص
  2. ID
  3. OwnerID
  4. Name
  5. MapPath
  6. PreviewPath
  7. RankingScore
  8. MaxAvatars
  9. FileSize
  10. Memory
  11. Landmarks
  12. Regions
  13. Description
  14. Access
الأعضاء 13
خاصيةIDThe Region ID of this region
خاصيةOwnerIDThe ID of the owner of this region
خاصيةNameThe Name of this region
خاصيةMapPath–
خاصيةPreviewPath–
خاصيةRankingScoreThe Ranking Score of the region.
خاصيةMaxAvatarsThe max number of avatars this region can hold.
خاصيةFileSizeThe current MBs the region is using.
خاصيةMemory–
خاصيةLandmarksAn array of Landmarks in the region.
خاصيةRegionsReturns an array of SSubRegion in the region.
خاصيةDescriptionReturns the description of the region.
خاصيةAccessThe access type of the region (such as "Public" or "Approved only")

الخصائص​

IDللقراءة فقط​

int ID {get; }

The Region ID of this region

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionID = r.ID
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

OwnerIDللقراءة فقط​

int OwnerID {get; }

The ID of the owner of this region

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionOwnerID = r.OwnerID
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

Nameللقراءة فقط​

string Name {get; }

The Name of this region

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionName = r.Name
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

MapPathللقراءة فقط​

string MapPath {get; }

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionMapPath = r.MapPath
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

PreviewPathللقراءة فقط​

string PreviewPath {get; }

مثال

Lua
--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للقراءة فقط​

int RankingScore {get; }

The Ranking Score of the region.

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionRankingScore = r.RankingScore
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

MaxAvatarsللقراءة فقط​

int MaxAvatars {get; }

The max number of avatars this region can hold.

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionMaxAvatars = r.MaxAvatars
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

FileSizeللقراءة فقط​

int FileSize {get; }

The current MBs the region is using.

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionFileSize = r.FileSize
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

Memoryللقراءة فقط​

int Memory {get; }

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionMemory = r.Memory
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

Landmarksللقراءة فقط​

SLandmark[] Landmarks {get; }

An array of Landmarks in the region.

مثال

``` function GetUserRegionsComplete(SUserRegions) local r = SUserRegions.AvailableRegions[1] regionLandmarks = r.Landmarks end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete) ```

Regionsللقراءة فقط​

SSubRegion[] Regions {get; }

Returns an array of SSubRegion in the region.

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionSubRegions = r.Regions
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

Descriptionللقراءة فقط​

string Description {get; }

Returns the description of the region.

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionDescription = r.Description
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)

Accessللقراءة فقط​

int Access {get; }

The access type of the region (such as "Public" or "Approved only")
1= Disabled, 2= FreeForall, 3= FriendsOnly, 4= ApprovedOnly, 5= GroupsOnly

مثال

Lua
function GetUserRegionsComplete(SUserRegions)
local r = SUserRegions.AvailableRegions[1]
regionAccessType = r.Access
end

Space.Grid.GetEnabledUserRegions(GetUserRegionsComplete)