protected object ParseBlockRebornMonsters(string line, int iLine) { // 1,56001,48,10,0,149.224,278.336,0,0,0,0,0,1,M025,LV1 ¶À´³Û£ 56001,0,0,0,0,0,0,0,0,0, // [0:ID],[1:MobID],[?2:PatrolID],[3:Unknown1],[4:Unknown2],[5:X],[6:Y],... var columns = line.Split(','); if (columns.Length < 7) { return(null); } var entry = new SceneFileMobSpawnEntry { ID = int.Parse(columns[0]), MobID = int.Parse(columns[1]), PatrolID = int.Parse(columns[2]), X = float.Parse(columns[5], DefaultFloatFormat), Y = float.Parse(columns[6], DefaultFloatFormat) }; MobSpawns.Add(entry); return(entry); }
protected object ParseBlockRebornMonsters(string line, int iLine) { // 1,56001,48,10,0,149.224,278.336,0,0,0,0,0,1,M025,LV1 ¶À´³Û£ 56001,0,0,0,0,0,0,0,0,0, // [0:ID],[1:MobID],[?2:PatrolID],[3:Unknown1],[4:Unknown2],[5:X],[6:Y],... var columns = line.Split(','); if (columns.Length < 7) { return null; } var entry = new SceneFileMobSpawnEntry { ID = int.Parse(columns[0]), MobID = int.Parse(columns[1]), PatrolID = int.Parse(columns[2]), X = float.Parse(columns[5], DefaultFloatFormat), Y = float.Parse(columns[6], DefaultFloatFormat) }; MobSpawns.Add(entry); return entry; }