Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Little Tweaks for Unity :) #14

Open
karstenwinter opened this issue Jun 8, 2019 · 0 comments
Open

Little Tweaks for Unity :) #14

karstenwinter opened this issue Jun 8, 2019 · 0 comments

Comments

@karstenwinter
Copy link

Since scripting is always a nice thing in Videogaming, I chose your library for my Unity Project AsciiQuest (WIP).

The only thing needed to make the Unity version I have happy is to reimplement Enumerable Zip and Tuple Create
(or change public static bool EqualImpl(object x, object y) {...} to not use tuples) as well as making InitializeFiles protected virtual to override it (assembly loading is not the way to go using unity).

// requires protected virtual IEnumerable<TextReader> GetInitializeFiles() in Interpreter.cs
class Interpreter2 : Interpreter
{
	public Interpreter2 () : base (null, null)
	{
	}

	protected override IEnumerable<TextReader> GetInitializeFiles ()
	{
		yield break;
	}
}

Interesting that #7 also mentions Scheme for Unity :D

Thanks a lot for this nice interpreter :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant