Sinespace Client
2023.2.17543
Client-side scripting for Sinespace
|
Public Member Functions | |
override void | Initialise (SScript runtime, object wrapper) |
void | StartActivity (int activityID) |
Start an activity with its id. More... | |
void | RequestLeaderboard (int activityID, Closure results) |
Get the leader board of an activity. More... | |
void | RequestLeaderboard (int activityID, Action< SScore[]> results) |
void | FinishActivity (int activityId, float score, int xp=0, Closure results=null) |
Start an activity with its id. More... | |
Public Member Functions inherited from ScriptClass< T > | |
void | ReportError (string error, bool fatal, UnityEngine.Object target=null) |
Public Member Functions inherited from ScriptClassWrapper< T > | |
override void | Initialise (SScript runtime, object wrapper) |
Additional Inherited Members | |
Protected Member Functions inherited from ScriptClass< T > | |
void | Initialise (SScript runtime) |
Properties inherited from ScriptClass< T > | |
override bool | Alive [get] |
Return if the component is alive. More... | |
virtual bool | Alive [get] |
DynValue | CachedData [get, set] |
Properties inherited from ScriptClassWrapper< T > | |
T | _wrap [get] |
void SineSpace.Scripting.Scene.SActivity.FinishActivity | ( | int | activityId, |
float | score, | ||
int | xp = 0 , |
||
Closure | results = null |
||
) |
Start an activity with its id.
activityId | The id of the activity. |
score | The score of current activity. |
xp | xp. |
results | The closure you want to call after complete this function. Will /// returns a SScoreRank value. |
|
virtual |
Implements ScriptClass< T >.
void SineSpace.Scripting.Scene.SActivity.RequestLeaderboard | ( | int | activityID, |
Action< SScore[]> | results | ||
) |
void SineSpace.Scripting.Scene.SActivity.RequestLeaderboard | ( | int | activityID, |
Closure | results | ||
) |
Get the leader board of an activity.
activityID | The id of the activity. |
results | The closure you want to call after complete this function. Will /// returns an array of SScore. |
void SineSpace.Scripting.Scene.SActivity.StartActivity | ( | int | activityID | ) |
Start an activity with its id.
activityID | The id of the activity. |