TASLabz / mkw-scripts

Python Scripts for use with Dolphin Emulator. Scripts cover various utilities for creating Mario Kart Wii TASes .
7 stars 6 forks source link

Replace pianoroll with `FrameSequence`, rows with `Frame` #11

Closed vabold closed 1 year ago

vabold commented 1 year ago

As a rough sketch of what our new infrastructure would look like:

class Frame:
    def __init__(self, raw: List):
        # Initialize frame information based on the CSV line

class FrameSequence:
    def __init__(self, filename: str):
        self.frames = []          # List of initialized Frame classes
        self.filename = filename  # Name of the CSV file

        self.refresh()

    def refresh(self) -> None:
        # Load the CSV and iterate self.process() over each line

    def process(self, raw_frame: List) -> None:
        # Process raw frame (list from reading a line in the CSV) and add it to the sequence
ximk commented 1 year ago

Resolved in #10.

vabold commented 1 year ago

Resolved in 2994858c3ddf5e4346b0a4b6963daaf27c069ef5.