Skip to content

Library Boilderplate #193

Description

@Yazwh0

The library boilerplate should help with this, so the user doesn't have to add this boilerplate:

import BM="BM.bmasm";
import Init="Initialisation.bmasm";

public static void Setup()
{
}

private static Action? Proc = null;

public static ZsmPlayer Create()
{
    return new ZsmPlayer();
}

public class ZsmPlayer
{
    public void Build()
    {
        Proc = () =>
        {

        };
    }
}

public override void Initialise()
{
    Setup();
}

public void Generate()
{
    if (Proc == null)
    {
        var fastDos = new FastDos();
        fastDos.Build();
    }

    Proc();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions