public void InitWithAttr(MapAttr attr) { m_data.Hp = attr.GetInt("hp"); m_data.Name = attr.GetStr("name"); }