55 lines
No EOL
1.5 KiB
C#
55 lines
No EOL
1.5 KiB
C#
using System;
|
|
|
|
namespace ShiroginSDK.Runtime.Modules.Events
|
|
{
|
|
public static partial class ShiroginEvents
|
|
{
|
|
public static class Progression
|
|
{
|
|
[Serializable]
|
|
public class LevelStartedEvent
|
|
{
|
|
public int LevelIndex;
|
|
public string LevelName;
|
|
|
|
public LevelStartedEvent(int index, string name)
|
|
{
|
|
LevelIndex = index;
|
|
LevelName = name;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class LevelCompletedEvent
|
|
{
|
|
public int LevelIndex;
|
|
public bool Success;
|
|
public float Duration;
|
|
|
|
public LevelCompletedEvent(int index, bool success, float duration)
|
|
{
|
|
LevelIndex = index;
|
|
Success = success;
|
|
Duration = duration;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class LevelAnalyticsEvent
|
|
{
|
|
public int LevelIndex;
|
|
public string LevelName;
|
|
public bool Success;
|
|
public float Duration;
|
|
|
|
public LevelAnalyticsEvent(int index, string name, bool success, float duration)
|
|
{
|
|
LevelIndex = index;
|
|
LevelName = name;
|
|
Success = success;
|
|
Duration = duration;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |