42 lines
1.8 KiB
C#
42 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
namespace ServerCore
|
|
{
|
|
public static class ConstValue
|
|
{
|
|
// 비율
|
|
public static readonly float default_ratio_f = 0.0001f;
|
|
public static readonly Int64 default_ratio = 10000;
|
|
public static readonly Int32 default_100_ratio = 100;
|
|
public static readonly float default_100_ratio_f = 0.01f;
|
|
|
|
|
|
// 시간 단위 (시간단위 기준)
|
|
public static readonly Int32 default_1_day_to_hour = 24;
|
|
|
|
|
|
// 시간 단위 (초단위 기준)
|
|
public static readonly Int32 default_1_sec = 1;
|
|
public static readonly Int32 default_1_min_to_sec = default_1_sec * 60;
|
|
public static readonly Int32 default_1_hour_to_sec = 60 * default_1_min_to_sec;
|
|
public static readonly Int32 default_1_day_to_sec = 24 * default_1_hour_to_sec;
|
|
public static readonly Int32 default_1000_millisec = 1000;
|
|
public static readonly Int32 default_1_sec_to_milisec = default_1_sec * default_1000_millisec;
|
|
public static readonly float default_1000_of_sec = 0.001f; // 1000분의 1초
|
|
public static readonly Int32 default_1000000_microsec = 1000000;
|
|
public static readonly float default_1000000_of_sec = 0.000001f; // 1백만분의 1초
|
|
public static readonly Int64 default_1000000000_nanosec = 1000000000;
|
|
public static readonly double default_1000000000_of_sec = 0.000000001f; // 10억분의 1초
|
|
|
|
// 거리 단위
|
|
public static readonly float default_1000_of_meter = 0.001f; // 1000분의 1미터
|
|
|
|
|
|
}//ConstValues
|
|
}
|