コード例 #1
0
ファイル: MapsData.cs プロジェクト: 372285834/GServer
 public MapsData(string _value)
 {
     string[] array = _value.Split(new char[] { StaticDataConstant.GAP_TAB });
     id             = StaticDataManager.stringToInt(array[0]);
     name           = array[1];
     nickName       = array[2];
     sizeX          = StaticDataManager.stringToUint(array[3]);
     sizeZ          = StaticDataManager.stringToUint(array[4]);
     maxPlayerCount = StaticDataManager.stringToInt(array[5]);
     mapType        = StaticDataManager.stringToInt(array[6]);
     camp           = StaticDataManager.stringToInt(array[7]);
     startX         = StaticDataManager.stringToFloat(array[8]);
     startY         = StaticDataManager.stringToFloat(array[9]);
     width          = StaticDataManager.stringToFloat(array[10]);
     height         = StaticDataManager.stringToFloat(array[11]);
     ulX            = StaticDataManager.stringToFloat(array[12]);
     ulZ            = StaticDataManager.stringToFloat(array[13]);
     rdX            = StaticDataManager.stringToFloat(array[14]);
     rdZ            = StaticDataManager.stringToFloat(array[15]);
 }