C# 클래스 HighScoreHelper, airconsole-unity-plugin

상속: MonoBehaviour
파일 보기 프로젝트 열기: AirConsole/airconsole-unity-plugin 1 사용 예제들

공개 메소드들

메소드 설명
ConvertHighScoresToTables ( JToken highscores ) : JToken

Converts a list of high scores into rank tables

SelectBestGhosts ( JToken highscores, int count, float minScoreFactor = 0.75f, float maxScoreFactor = 1.5f ) : JToken

Given a list of high scores, returns the best high scores for ghost mode. Preference in order:

- First, Ghosts with similar scores

- Then, sort by connected players, friends, city, region, country, world

If multiple Ghosts have the same preference score, random ones are chosen

비공개 메소드들

메소드 설명
SortScore ( JToken highscore, Newtonsoft.Json.Linq.JObject preference, float myScore, float minScoreFactor, float maxScoreFactor, int randomUID, int randomUIDChar ) : float

메소드 상세

ConvertHighScoresToTables() 공개 정적인 메소드

Converts a list of high scores into rank tables
public static ConvertHighScoresToTables ( JToken highscores ) : JToken
highscores JToken Highscores.
리턴 JToken

SelectBestGhosts() 공개 정적인 메소드

Given a list of high scores, returns the best high scores for ghost mode. Preference in order:

- First, Ghosts with similar scores

- Then, sort by connected players, friends, city, region, country, world

If multiple Ghosts have the same preference score, random ones are chosen

public static SelectBestGhosts ( JToken highscores, int count, float minScoreFactor = 0.75f, float maxScoreFactor = 1.5f ) : JToken
highscores JToken Highscores.
count int How many ghosts you would like to get.
minScoreFactor float
maxScoreFactor float
리턴 JToken