44 lines
1020 B
C#
44 lines
1020 B
C#
public static class GameConstants
|
|
{
|
|
public static class PlayerPrefsKeys
|
|
{
|
|
#region PlayerPrefs Keys
|
|
|
|
public static string CharacterDataKey = "characterData";
|
|
public static string PlayerCoinKey = "playerCoin";
|
|
|
|
public static string GetCharacterDataKey(string characterName)
|
|
{
|
|
return CharacterDataKey + "-" + characterName;
|
|
}
|
|
public static string GetPlayerCoinKey(string playerName)
|
|
{
|
|
return PlayerCoinKey + "-" + playerName;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
|
|
|
|
public static class ObjectSources
|
|
{
|
|
#region Object Sources (example stat increase source)
|
|
|
|
public static object AllocatedSource = "Allocated";
|
|
public static object LevelSource = "Level";
|
|
|
|
#endregion
|
|
}
|
|
|
|
|
|
public static class NetworkEventCodes
|
|
{
|
|
#region Network Event Codes
|
|
|
|
public static byte ChangeLevelVoted = 112;
|
|
public static byte LoadLevelStarting = 113;
|
|
|
|
#endregion
|
|
}
|
|
|
|
} |