Mini Galaxy Gen
Added flags to game manager and player settings to check tutorial status Created alternate galaxy generation process for tutorial
This commit is contained in:
parent
7cfc5cd04f
commit
b1bd89a687
224 changed files with 423 additions and 208 deletions
|
|
@ -1,53 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Ink.Runtime
|
||||
{
|
||||
public class ListDefinitionsOrigin
|
||||
{
|
||||
public List<Runtime.ListDefinition> lists {
|
||||
get {
|
||||
var listOfLists = new List<Runtime.ListDefinition> ();
|
||||
foreach (var namedList in _lists) {
|
||||
listOfLists.Add (namedList.Value);
|
||||
}
|
||||
return listOfLists;
|
||||
}
|
||||
}
|
||||
|
||||
public ListDefinitionsOrigin (List<Runtime.ListDefinition> lists)
|
||||
{
|
||||
_lists = new Dictionary<string, ListDefinition> ();
|
||||
_allUnambiguousListValueCache = new Dictionary<string, ListValue>();
|
||||
|
||||
foreach (var list in lists) {
|
||||
_lists [list.name] = list;
|
||||
|
||||
foreach(var itemWithValue in list.items) {
|
||||
var item = itemWithValue.Key;
|
||||
var val = itemWithValue.Value;
|
||||
var listValue = new ListValue(item, val);
|
||||
|
||||
// May be ambiguous, but compiler should've caught that,
|
||||
// so we may be doing some replacement here, but that's okay.
|
||||
_allUnambiguousListValueCache[item.itemName] = listValue;
|
||||
_allUnambiguousListValueCache[item.fullName] = listValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool TryListGetDefinition (string name, out ListDefinition def)
|
||||
{
|
||||
return _lists.TryGetValue (name, out def);
|
||||
}
|
||||
|
||||
public ListValue FindSingleItemListWithName (string name)
|
||||
{
|
||||
ListValue val = null;
|
||||
_allUnambiguousListValueCache.TryGetValue(name, out val);
|
||||
return val;
|
||||
}
|
||||
|
||||
Dictionary<string, Runtime.ListDefinition> _lists;
|
||||
Dictionary<string, ListValue> _allUnambiguousListValueCache;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue