feat: 게임 스테이지 클리어 관련 베이스 코드 작성

This commit is contained in:
aube.lee
2025-02-13 11:25:18 +09:00
parent cc68940d01
commit 636160f492
5 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TON
{
[System.Serializable]
public class StageClearData
{
// 스테이지 클리어 데이터의 고유 id
public string id;
// 클리어한 캐릭터 아이디
public string characterId;
// 클리어한 스테이지 아이디
public string stageId;
// 클리어에 소요된 시간
public int clearTime;
// 클리어 시간에 따른 별점
public int starRating;
// 클리어한 날짜와 시간 정보
public string dateTime;
public StageClearData(string characterId, string stageId, int clearTime, int starRating)
{
id = $"SC{DateTime.UtcNow:yyyyMMddHHmmss}-{characterId}-{stageId}";
this.characterId = characterId;
this.stageId = stageId;
this.clearTime = clearTime;
this.starRating = starRating;
dateTime = DateTime.UtcNow.ToString();
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5104aacb801da7541b35699566b60c27
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: