1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- using System.Collections.Generic;
- using UnityEngine;
- using System;
- using Newtonsoft.Json;
- namespace DataTools
- {
- [Serializable]
- public class CustomizeData
- {
- [JsonProperty]
- [SerializeField]
- private string gender;
- [JsonProperty]
- [SerializeField]
- private string skin;
- [JsonProperty]
- [SerializeField]
- private List<CustomizeItem> items;
- [JsonProperty]
- [SerializeField]
- private List<CustomizeItemData> wearing;
- [JsonProperty]
- [SerializeField]
- private int fatness;
- [JsonIgnore]
- public string Gender
- {
- get
- {
- return gender;
- }
- set
- {
- gender = value;
- }
- }
-
- [JsonIgnore]
- public string Skin
- {
- get
- {
- return skin;
- }
- set
- {
- skin = value;
- }
- }
- [JsonIgnore]
- public List<CustomizeItem> Items
- {
- get
- {
- return items;
- }
- set
- {
- items = value;
- }
- }
- [JsonIgnore]
- public List<CustomizeItemData> Wearing
- {
- get
- {
- return wearing;
- }
- set
- {
- wearing = value;
- }
- }
- [JsonIgnore]
- public int Fatness
- {
- get
- {
- return fatness <= 5 ? fatness : 5;
- }
- set
- {
- fatness = value;
- }
- }
- }
- }
|