Esempio n. 1
0
 private void SQLChange(DatabaseItem a_item, eDbAction a_action)
 {
     if (null != this.m_sql && 0 < this.m_cid)
     {
         a_item.flag = a_action;
         this.m_sql.SaveItem(a_item);
     }
 }
 public DatabaseBuilding(int a_type, float a_x = 0f, float a_y = 0f, float a_rot = 0f, int a_pid = 0, int a_health = 100)
 {
     type   = a_type;
     x      = a_x;
     y      = a_y;
     rot    = a_rot;
     pid    = a_pid;
     health = a_health;
     flag   = eDbAction.none;
 }
Esempio n. 3
0
 public DatabaseItem(int a_type, float a_x = 0f, float a_y = 0f, int a_amount = 1, bool a_hidden = false, int a_cid = 0, int a_iid = 0)
 {
     type         = a_type;
     amount       = a_amount;
     hidden       = a_hidden;
     iid          = a_iid;
     x            = a_x;
     y            = a_y;
     cid          = a_cid;
     dropTime     = Time.time;
     dropPlayerId = 0;
     flag         = eDbAction.none;
 }