Class History
Class representing the full history of a playthrough.
Inheritance
System.Object
History
Implements
System.Collections.Generic.IList<LevelRecord>
System.Collections.Generic.ICollection<LevelRecord>
System.Collections.Generic.IEnumerable<LevelRecord>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GDA
Assembly: Assembly-CSharp.dll
Syntax
[Serializable]
public class History : IList<LevelRecord>, ICollection<LevelRecord>, IEnumerable<LevelRecord>, IEnumerable
Fields
startingGameState
Serializable form of a GameState, recording the starting state of the game.
Declaration
[JsonProperty]
public StringFloatDictionary startingGameState
Field Value
Type | Description |
---|---|
StringFloatDictionary |
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Declaration
public LevelRecord this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
LevelRecord |
ProposalCount
Total number of proposals processed in the History
Declaration
public int ProposalCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Add(LevelRecord)
Declaration
public void Add(LevelRecord item)
Parameters
Type | Name | Description |
---|---|---|
LevelRecord | item |
AddRecord(DecisionRecord, Int32)
Appends a DecisionRecord to the LevelRecord indicated.
Declaration
public void AddRecord(DecisionRecord record, int level)
Parameters
Type | Name | Description |
---|---|---|
DecisionRecord | record | |
System.Int32 | level |
Clear()
Declaration
public void Clear()
Contains(LevelRecord)
Declaration
public bool Contains(LevelRecord item)
Parameters
Type | Name | Description |
---|---|---|
LevelRecord | item |
Returns
Type | Description |
---|---|
System.Boolean |
CopyTo(LevelRecord[], Int32)
Declaration
public void CopyTo(LevelRecord[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
LevelRecord[] | array | |
System.Int32 | arrayIndex |
GetEnumerator()
Declaration
public IEnumerator<LevelRecord> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<LevelRecord> |
IndexOf(LevelRecord)
Declaration
public int IndexOf(LevelRecord item)
Parameters
Type | Name | Description |
---|---|---|
LevelRecord | item |
Returns
Type | Description |
---|---|
System.Int32 |
Insert(Int32, LevelRecord)
Declaration
public void Insert(int index, LevelRecord item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
LevelRecord | item |
Remove(LevelRecord)
Declaration
public bool Remove(LevelRecord item)
Parameters
Type | Name | Description |
---|---|---|
LevelRecord | item |
Returns
Type | Description |
---|---|
System.Boolean |
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable