Class ObjectType<TEntry, TObject>
Represents objects that consists of entries that represent a certain Object type.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.MapGraph
Syntax
[Serializable]
public abstract class ObjectType<TEntry, TObject> : DataSetItem, IObjectType<TEntry, TObject>, IDataSetItem where TEntry : IObjectTypeEntry<TObject> where TObject : Object
Type Parameters
Name | Description |
---|---|
TEntry | The entry type. |
TObject | The object type. |
Constructors
ObjectType(string)
Declaration
protected ObjectType(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Properties
Entries
Declaration
public ReadOnlyCollection<TEntry> Entries { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<T><TEntry> |
IsWeightEnabled
Declaration
public bool IsWeightEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
OpenEntries
A less restricted collection of the entries for protected use.
Declaration
protected abstract List<TEntry> OpenEntries { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><TEntry> |
TotalWeight
Declaration
public float TotalWeight { get; }
Property Value
Type | Description |
---|---|
float |
Methods
AddNewEntry()
Declaration
public void AddNewEntry()
CalculateTotalWeight()
Declaration
public void CalculateTotalWeight()
Clean()
Declaration
public void Clean()
MoveEntry(int, int)
Declaration
public void MoveEntry(int oldIndex, int newIndex)
Parameters
Type | Name | Description |
---|---|---|
int | oldIndex | |
int | newIndex |
NewEntry()
Creates and returns an entry for this object type.
Declaration
protected abstract TEntry NewEntry()
Returns
Type | Description |
---|---|
TEntry | The new entry. |
RemoveEntry(int)
Declaration
public void RemoveEntry(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |