public ShipTypeInfo(KCB.api_start2.ApiData.ApiMstStype stype) { ShipTypeName = stype.api_name; ShipRepairTimeParam = stype.api_scnt; ShipTypeID = stype.api_id; Debug.WriteLine(string.Format("SType ID:{0} Name:{1} Repair:{2}", ShipTypeID, ShipTypeName, ShipRepairTimeParam)); }
public ShipTypeLVItem(KCB.api_start2.ApiData.ApiMstStype json) { InitializeSubItem(); UpdateSTypeInfo(json); }
public void UpdateSTypeInfo(KCB.api_start2.ApiData.ApiMstStype json) { SubItems[(int)ItemOrder.Id] = new LVIntSubItem(this, json.api_id); SubItems[(int)ItemOrder.KCnt] = new LVIntSubItem(this, json.api_kcnt); SubItems[(int)ItemOrder.SCnt] = new LVIntSubItem(this, json.api_scnt); SubItems[(int)ItemOrder.SortNo] = new LVIntSubItem(this, json.api_sortno); SubItems[(int)ItemOrder.Name] = new LVStringSubItem(this, json.api_name); SubItems[(int)ItemOrder.Type1] = new LVIntSubItem(this, json.api_equip_type.Type1); SubItems[(int)ItemOrder.Type2] = new LVIntSubItem(this, json.api_equip_type.Type2); SubItems[(int)ItemOrder.Type3] = new LVIntSubItem(this, json.api_equip_type.Type3); SubItems[(int)ItemOrder.Type4] = new LVIntSubItem(this, json.api_equip_type.Type4); SubItems[(int)ItemOrder.Type5] = new LVIntSubItem(this, json.api_equip_type.Type5); SubItems[(int)ItemOrder.Type6] = new LVIntSubItem(this, json.api_equip_type.Type6); SubItems[(int)ItemOrder.Type7] = new LVIntSubItem(this, json.api_equip_type.Type7); SubItems[(int)ItemOrder.Type8] = new LVIntSubItem(this, json.api_equip_type.Type8); SubItems[(int)ItemOrder.Type9] = new LVIntSubItem(this, json.api_equip_type.Type9); SubItems[(int)ItemOrder.Type10] = new LVIntSubItem(this, json.api_equip_type.Type10); SubItems[(int)ItemOrder.Type11] = new LVIntSubItem(this, json.api_equip_type.Type11); SubItems[(int)ItemOrder.Type12] = new LVIntSubItem(this, json.api_equip_type.Type12); SubItems[(int)ItemOrder.Type13] = new LVIntSubItem(this, json.api_equip_type.Type13); SubItems[(int)ItemOrder.Type14] = new LVIntSubItem(this, json.api_equip_type.Type14); SubItems[(int)ItemOrder.Type15] = new LVIntSubItem(this, json.api_equip_type.Type15); SubItems[(int)ItemOrder.Type16] = new LVIntSubItem(this, json.api_equip_type.Type16); SubItems[(int)ItemOrder.Type17] = new LVIntSubItem(this, json.api_equip_type.Type17); SubItems[(int)ItemOrder.Type18] = new LVIntSubItem(this, json.api_equip_type.Type18); SubItems[(int)ItemOrder.Type19] = new LVIntSubItem(this, json.api_equip_type.Type19); SubItems[(int)ItemOrder.Type20] = new LVIntSubItem(this, json.api_equip_type.Type20); SubItems[(int)ItemOrder.Type21] = new LVIntSubItem(this, json.api_equip_type.Type21); SubItems[(int)ItemOrder.Type22] = new LVIntSubItem(this, json.api_equip_type.Type22); SubItems[(int)ItemOrder.Type23] = new LVIntSubItem(this, json.api_equip_type.Type23); SubItems[(int)ItemOrder.Type24] = new LVIntSubItem(this, json.api_equip_type.Type24); SubItems[(int)ItemOrder.Type25] = new LVIntSubItem(this, json.api_equip_type.Type25); SubItems[(int)ItemOrder.Type26] = new LVIntSubItem(this, json.api_equip_type.Type26); SubItems[(int)ItemOrder.Type27] = new LVIntSubItem(this, json.api_equip_type.Type27); SubItems[(int)ItemOrder.Type28] = new LVIntSubItem(this, json.api_equip_type.Type28); SubItems[(int)ItemOrder.Type29] = new LVIntSubItem(this, json.api_equip_type.Type29); SubItems[(int)ItemOrder.Type30] = new LVIntSubItem(this, json.api_equip_type.Type30); SubItems[(int)ItemOrder.Type31] = new LVIntSubItem(this, json.api_equip_type.Type31); SubItems[(int)ItemOrder.Type32] = new LVIntSubItem(this, json.api_equip_type.Type32); SubItems[(int)ItemOrder.Type33] = new LVIntSubItem(this, json.api_equip_type.Type33); SubItems[(int)ItemOrder.Type34] = new LVIntSubItem(this, json.api_equip_type.Type34); SubItems[(int)ItemOrder.Type35] = new LVIntSubItem(this, json.api_equip_type.Type35); SubItems[(int)ItemOrder.Type36] = new LVIntSubItem(this, json.api_equip_type.Type36); SubItems[(int)ItemOrder.Type37] = new LVIntSubItem(this, json.api_equip_type.Type37); SubItems[(int)ItemOrder.Type38] = new LVIntSubItem(this, json.api_equip_type.Type38); SubItems[(int)ItemOrder.Type39] = new LVIntSubItem(this, json.api_equip_type.Type39); SubItems[(int)ItemOrder.Type40] = new LVIntSubItem(this, json.api_equip_type.Type40); SubItems[(int)ItemOrder.Type41] = new LVIntSubItem(this, json.api_equip_type.Type41); SubItems[(int)ItemOrder.Type42] = new LVIntSubItem(this, json.api_equip_type.Type42); SubItems[(int)ItemOrder.Type43] = new LVIntSubItem(this, json.api_equip_type.Type43); SubItems[(int)ItemOrder.Type44] = new LVIntSubItem(this, json.api_equip_type.Type44); SubItems[(int)ItemOrder.Type45] = new LVIntSubItem(this, json.api_equip_type.Type45); SubItems[(int)ItemOrder.Type46] = new LVIntSubItem(this, json.api_equip_type.Type46); SubItems[(int)ItemOrder.Type47] = new LVIntSubItem(this, json.api_equip_type.Type47); SubItems[(int)ItemOrder.Type48] = new LVIntSubItem(this, json.api_equip_type.Type48); SubItems[(int)ItemOrder.Type49] = new LVIntSubItem(this, json.api_equip_type.Type49); SubItems[(int)ItemOrder.Type50] = new LVIntSubItem(this, json.api_equip_type.Type50); SubItems[(int)ItemOrder.Type51] = new LVIntSubItem(this, json.api_equip_type.Type51); SubItems[(int)ItemOrder.Type52] = new LVIntSubItem(this, json.api_equip_type.Type52); SubItems[(int)ItemOrder.Type53] = new LVIntSubItem(this, json.api_equip_type.Type53); SubItems[(int)ItemOrder.Type54] = new LVIntSubItem(this, json.api_equip_type.Type54); SubItems[(int)ItemOrder.Type55] = new LVIntSubItem(this, json.api_equip_type.Type55); SubItems[(int)ItemOrder.Type56] = new LVIntSubItem(this, json.api_equip_type.Type56); SubItems[(int)ItemOrder.Type57] = new LVIntSubItem(this, json.api_equip_type.Type57); SubItems[(int)ItemOrder.Type58] = new LVIntSubItem(this, json.api_equip_type.Type58); SubItems[(int)ItemOrder.Type59] = new LVIntSubItem(this, json.api_equip_type.Type59); SubItems[(int)ItemOrder.Type60] = new LVIntSubItem(this, json.api_equip_type.Type60); SubItems[(int)ItemOrder.Type61] = new LVIntSubItem(this, json.api_equip_type.Type61); SubItems[(int)ItemOrder.Type62] = new LVIntSubItem(this, json.api_equip_type.Type62); SubItems[(int)ItemOrder.Type63] = new LVIntSubItem(this, json.api_equip_type.Type63); SubItems[(int)ItemOrder.Type64] = new LVIntSubItem(this, json.api_equip_type.Type64); SubItems[(int)ItemOrder.Type65] = new LVIntSubItem(this, json.api_equip_type.Type65); SubItems[(int)ItemOrder.Type66] = new LVIntSubItem(this, json.api_equip_type.Type66); SubItems[(int)ItemOrder.Type67] = new LVIntSubItem(this, json.api_equip_type.Type67); SubItems[(int)ItemOrder.Type68] = new LVIntSubItem(this, json.api_equip_type.Type68); SubItems[(int)ItemOrder.Type69] = new LVIntSubItem(this, json.api_equip_type.Type69); SubItems[(int)ItemOrder.Type70] = new LVIntSubItem(this, json.api_equip_type.Type70); SubItems[(int)ItemOrder.Type71] = new LVIntSubItem(this, json.api_equip_type.Type71); SubItems[(int)ItemOrder.Type72] = new LVIntSubItem(this, json.api_equip_type.Type72); SubItems[(int)ItemOrder.Type73] = new LVIntSubItem(this, json.api_equip_type.Type73); SubItems[(int)ItemOrder.Type74] = new LVIntSubItem(this, json.api_equip_type.Type74); SubItems[(int)ItemOrder.Type75] = new LVIntSubItem(this, json.api_equip_type.Type75); SubItems[(int)ItemOrder.Type76] = new LVIntSubItem(this, json.api_equip_type.Type76); SubItems[(int)ItemOrder.Type77] = new LVIntSubItem(this, json.api_equip_type.Type77); SubItems[(int)ItemOrder.Type78] = new LVIntSubItem(this, json.api_equip_type.Type78); SubItems[(int)ItemOrder.Type79] = new LVIntSubItem(this, json.api_equip_type.Type79); SubItems[(int)ItemOrder.Type80] = new LVIntSubItem(this, json.api_equip_type.Type80); SubItems[(int)ItemOrder.Type81] = new LVIntSubItem(this, json.api_equip_type.Type81); SubItems[(int)ItemOrder.Type82] = new LVIntSubItem(this, json.api_equip_type.Type82); SubItems[(int)ItemOrder.Type83] = new LVIntSubItem(this, json.api_equip_type.Type83); SubItems[(int)ItemOrder.Type84] = new LVIntSubItem(this, json.api_equip_type.Type84); SubItems[(int)ItemOrder.Type85] = new LVIntSubItem(this, json.api_equip_type.Type85); SubItems[(int)ItemOrder.Type86] = new LVIntSubItem(this, json.api_equip_type.Type86); SubItems[(int)ItemOrder.Type87] = new LVIntSubItem(this, json.api_equip_type.Type87); SubItems[(int)ItemOrder.Type88] = new LVIntSubItem(this, json.api_equip_type.Type88); SubItems[(int)ItemOrder.Type89] = new LVIntSubItem(this, json.api_equip_type.Type89); SubItems[(int)ItemOrder.Type90] = new LVIntSubItem(this, json.api_equip_type.Type90); SubItems[(int)ItemOrder.Type91] = new LVIntSubItem(this, json.api_equip_type.Type91); SubItems[(int)ItemOrder.Type92] = new LVIntSubItem(this, json.api_equip_type.Type92); SubItems[(int)ItemOrder.Type93] = new LVIntSubItem(this, json.api_equip_type.Type93); SubItems[(int)ItemOrder.Type94] = new LVIntSubItem(this, json.api_equip_type.Type94); }