Sinespace Client 2025.3.19431
Client-side scripting for Sinespace
SineSpace.Scripting.Player.SGroup Class Reference
Inheritance diagram for SineSpace.Scripting.Player.SGroup:
ScriptClass

Public Member Functions

override void Initialise (SScript runtime, object wrapper)
 
bool IsMemberOf (int groupID)
 Whether is a member of this group.
 
SGroupInfo GetGroupInfo (int groupID)
 Get the group info by groupID.
 
void JoinGroup (int groupID, bool force=false)
 Join the group.
 
void LeaveGroup (int groupID, bool force=false)
 Leave the group.
 
- Public Member Functions inherited from ScriptClass
void ReportError (string error, bool fatal, UnityEngine.Object target=null)
 
void Initialise (SScript runtime, object wrapper)
 

Properties

SGroupInfo[] Membership [get]
 Return an array of members from the group.
 
- Properties inherited from ScriptClass
virtual bool Alive [get]
 
DynValue CachedData [get, set]
 

Additional Inherited Members

- Protected Member Functions inherited from ScriptClass
void Initialise (SScript runtime)
 

Member Function Documentation

◆ GetGroupInfo()

SGroupInfo SineSpace.Scripting.Player.SGroup.GetGroupInfo ( int groupID)

Get the group info by groupID.

local group=Space.Groups
function Get()
Space.Log(group.GetGroupInfo(675).Name)
end <br>
SGroupInfo GetGroupInfo(int groupID)
Get the group info by groupID.
Definition SGroup.cs:49
Parameters
groupIDThe ID of the group
Returns

◆ Initialise()

override void SineSpace.Scripting.Player.SGroup.Initialise ( SScript runtime,
object wrapper )

◆ IsMemberOf()

bool SineSpace.Scripting.Player.SGroup.IsMemberOf ( int groupID)

Whether is a member of this group.

local group=Space.Groups
function Get()
Space.Log(group.IsMemberOf(675))
end <br>
bool IsMemberOf(int groupID)
Whether is a member of this group.
Definition SGroup.cs:31
Parameters
groupIDThe ID of the group
Returns

◆ JoinGroup()

void SineSpace.Scripting.Player.SGroup.JoinGroup ( int groupID,
bool force = false )

Join the group.

local group=Space.Groups
function Get()
group.JoinGroup(675)
end <br>
void JoinGroup(int groupID, bool force=false)
Join the group.
Definition SGroup.cs:88
Parameters
groupIDThe ID of the group
forceWhether force the group or not

◆ LeaveGroup()

void SineSpace.Scripting.Player.SGroup.LeaveGroup ( int groupID,
bool force = false )

Leave the group.

local group=Space.Groups
function Get()
group.LeaveGroup(675)
end <br>
void LeaveGroup(int groupID, bool force=false)
Leave the group.
Definition SGroup.cs:195
Parameters
groupIDThe ID of the group
forceWhether force the group or not

Property Documentation

◆ Membership

SGroupInfo [] SineSpace.Scripting.Player.SGroup.Membership
get

Return an array of members from the group.

local group=Space.Groups
local members=group.Membership
function Get()
for i=1, #members do
Space.Log(members[i].Name)
end
end <br>