god that ige melts my brain
This commit is contained in:
parent
9096c423ce
commit
f42fcfc5f6
|
@ -1,26 +1,26 @@
|
||||||
// import 'dart:convert';
|
import 'dart:convert';
|
||||||
// import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
// import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
|
|
||||||
// import 'tetrio_multiplayer_replay.dart';
|
import 'tetrio_multiplayer_replay.dart';
|
||||||
|
|
||||||
// // That thing allows me to test my new staff i'm trying to implement
|
// That thing allows me to test my new staff i'm trying to implement
|
||||||
// void main() async {
|
void main() async {
|
||||||
// // List<Tetromino> queue = List.from(tetrominoes);
|
// List<Tetromino> queue = List.from(tetrominoes);
|
||||||
// // TetrioRNG rng = TetrioRNG(0);
|
// TetrioRNG rng = TetrioRNG(0);
|
||||||
// // queue = rng.shuffleList(queue);
|
// queue = rng.shuffleList(queue);
|
||||||
// // print(queue);
|
// print(queue);
|
||||||
// // queue = List.from(tetrominoes);
|
// queue = List.from(tetrominoes);
|
||||||
// // queue = rng.shuffleList(queue);
|
// queue = rng.shuffleList(queue);
|
||||||
// // print(queue);
|
// print(queue);
|
||||||
|
|
||||||
// //var downloadPath = await getDownloadsDirectory();
|
//var downloadPath = await getDownloadsDirectory();
|
||||||
// var replayJson = jsonDecode(File("/home/dan63047/Документы/replays/6550eecf2ffc5604e6224fc5.ttrm").readAsStringSync());
|
var replayJson = jsonDecode(File("/home/dan63047/Документы/replays/6550eecf2ffc5604e6224fc5.ttrm").readAsStringSync());
|
||||||
// ReplayData replay = ReplayData.fromJson(replayJson);
|
ReplayData replay = ReplayData.fromJson(replayJson);
|
||||||
// //List<List<Tetromino>> board = [for (var i = 0 ; i < 40; i++) [for (var i = 0 ; i < 10; i++) Tetromino.empty]];
|
//List<List<Tetromino>> board = [for (var i = 0 ; i < 40; i++) [for (var i = 0 ; i < 10; i++) Tetromino.empty]];
|
||||||
// List<Event> events = readEventList(replay.rawJson);
|
List<Event> events = readEventList(replay.rawJson);
|
||||||
// events.retainWhere((element) => element.type == EventType.ige);
|
//events.retainWhere((element) => element.runtimeType == EventIGE && (element as EventIGE).data.data['type'] == "interaction_confirm");
|
||||||
// print((events[1] as EventIGE).data.data);
|
print(events);
|
||||||
// exit(0);
|
exit(0);
|
||||||
// }
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue