GameData.cs 2.17 KB
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

[Serializable]
public class havingitem {

    public int id = 0;
    public int num = 0;
}

[Serializable]
public class havingitem_array
{
    public havingitem[] items_in_array;
}


[Serializable]
public class havingcard
{

    public int id = 0;
    public int love = 0;
}



[Serializable]
public class GameData
{
    //이렇게 번호로 두면.. DataController_test에서 if BGMSound = 0 : 0번 배경음악 틀어라! 이케할수있지
    public int BGMSound = 0;

    //메인 캐릭터, 유닛캐릭터
    public int MainCharacter = 0; //클래스로 만들어야함. 옷, 호감도, 등등..
    public int[] UnitCharacters = new int[5] { 0, 1, 2, 3, 4 };

    //갖고있는 아이템. 리스트는 바로 json 저장이 안되어서, 싸고있는 클래스 필요! 없음 어헝헝... 일단 냅둠..
    public havingitem_array Item_wrapobject = new havingitem_array();
    public List<havingitem> Item_list = new List<havingitem>();


    //갖고있는 카드 넘버
    public List<havingcard> HavingCard = new List<havingcard>();


    //개인정보
    public char[] Username = new char[8] {' ',' ',' ',' ',' ',' ',' ',' '};
    public int[] Birthday = new int[4] { 0, 0, 0, 0 };
    public char[] Catchphrase = new char[16] { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' };

    //결제한 유료재화, 유료재화, 무료재화, 
    public int Diamond = 0;
    public int FreeDiamond = 0; //무료재화 먼저 써야함! 
    public int Gold = 0;

    //경험치
    public int Exp = 0;
    public int LV = 0;

    //프로듀스 하기위한 포인트
    public int AP = 0; // Ability point, 프로듀스 진행하기 위한 포인트 -> 1. 게임이 꺼져도 몇분에 하나씩 차야함! 2. lv 높아질때마다 더해지고, 총량도 늘어야함.

    //이벤트 포인트
    public int Event_Ap = 0; //Event point, 이벤트때마다 생기는것! 특정 프로듀스 진행시 모을수있고, 특정곡마다 씀!
    public int Event_Score = 0;
    public int Event_Ranking = 0;

    //곡마다도 스코어, 랭킹등 있어야하는데.



}