37 lines
984 B
C#
37 lines
984 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using static XPlugin.Data.JsonLiteDB.JsonLiteDB;
|
|
|
|
public class DifficultyInfo
|
|
{
|
|
public int Id;
|
|
|
|
public string Difficulty;
|
|
|
|
public float enemyHpCoefficient;
|
|
|
|
public float speedCoefficient;
|
|
|
|
public float rateCoefficient;
|
|
|
|
public float damageCoefficient;
|
|
|
|
public float weaponCoefficient;
|
|
|
|
public float playerHpCoefficient;
|
|
|
|
|
|
public DifficultyInfo(TableReader table)
|
|
{
|
|
Id = table["Id"].OptInt();
|
|
Difficulty = table["Difficulty"].OptString();
|
|
enemyHpCoefficient = table["enemyHpCoefficient"].OptFloat();
|
|
speedCoefficient = table["speedCoefficient"].OptFloat();
|
|
rateCoefficient = table["rateCoefficient"].OptFloat();
|
|
damageCoefficient = table["damageCoefficient"].OptFloat();
|
|
weaponCoefficient = table["weaponCoefficient"].OptFloat();
|
|
playerHpCoefficient = table["playerHpCoefficient"].OptFloat();
|
|
}
|
|
}
|