You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
|
|
public enum TypeSide { Partner, Enemy } |
|
public enum TypeRadar { Near, Far, First, Last } |
|
public enum TypeCounter { Red = 0, Green, Blue } |
|
public enum TypeJob { None, Fighter, Knight, Wizard, Archer } |
|
public enum TypeStatus { HP, MP, Penetrate, ATK, DEF, CRI, HIT, FLEE, ATKDelay, ATKSPD, MoveSPD, RecoverySPD, RecoveryMAG, Damage } |
|
public enum TypeSkillForm { None, Recovery, Buff, DeBuff, Sync, Plate, Projectile } |
|
public enum TypeCost { HP, MP } |
|
public enum TypeApplyTarget { All, Me, Partner, Enemy } |
|
public enum TypeApplySelect { None, Near, Far, Random } |
|
public enum TypeApplyFormula { ADD, MAG } |
|
|
|
public static class Common |
|
{ |
|
public static class EnumUtil<T> |
|
{ |
|
public static T Parse(string s) |
|
{ |
|
return (T)System.Enum.Parse(typeof(T), s); |
|
} |
|
} |
|
/// <summary> |
|
/// 소수값 이 배율인지 확인합니다. |
|
/// 1 보다 작은값 이라면 소수(배율) |
|
/// 1 보다 큰값 이라면 정수 |
|
/// </summary> |
|
/// <param name="value">true 소수</param> |
|
/// <returns></returns> |
|
public static bool FloteTypeCheck(float value) |
|
{ |
|
return value != (int)value ? true : false; |
|
//return Mathf.Abs(value) < 1 ? true : false; |
|
} |
|
}
|
|
|