Ink Integration
Initial integration of Ink scripting - simply runs the first story it finds.
This commit is contained in:
parent
9779afb1bb
commit
82c8041765
215 changed files with 23662 additions and 17 deletions
18
Assets/Ink/compiler/InkStringConversionExtensions.cs
Normal file
18
Assets/Ink/compiler/InkStringConversionExtensions.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Ink
|
||||
{
|
||||
public static class InkStringConversionExtensions
|
||||
{
|
||||
public static string[] ToStringsArray<T>(this List<T> list) {
|
||||
int count = list.Count;
|
||||
var strings = new string[count];
|
||||
|
||||
for(int i = 0; i < count; i++) {
|
||||
strings[i] = list[i].ToString();
|
||||
}
|
||||
|
||||
return strings;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue