예제 #1
0
 public TitleInfo(int id)
 {
     titleData          = new TitleServerData();
     titleData.id       = id;
     titleData.isOwn    = false;
     titleData.isPut    = false;
     titleData.isForeve = true;
 }
예제 #2
0
 public TitleInfo(st.net.NetBase.title_base_info_list info)
 {
     titleData          = new TitleServerData();
     titleData.id       = (int)info.title_id;
     titleData.isForeve = (int)info.own_state == 1;
     titleData.isOwn    = true;
     titleData.isPut    = (int)info.put_state == 1;
     if (info.time <= 0)
     {
         titleData.isForeve = true;
     }
     else
     {
         titleData.remainTime.Clear();
         titleData.remainTime.Add((int)Time.time);
         titleData.remainTime.Add((int)info.time);
     }
 }