This commit is contained in:
commit
47711d616e
2644 changed files with 479454 additions and 0 deletions
199
Scripts/Engines/Factions/Collections/CandidateCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/CandidateCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.Candidate.
|
||||
/// </summary>
|
||||
public class CandidateCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public CandidateCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.Candidate at a specific position in the CandidateCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.Candidate this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.Candidate)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.Candidate entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Candidate instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.Candidate value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.Candidate instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Candidate instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.Candidate instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.Candidate value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.Candidate instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Candidate instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.Candidate instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.Candidate value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.Candidate instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.Candidate instance to remove.</param>
|
||||
public void Remove(Server.Factions.Candidate value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.Candidate instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.Candidate's enumerator.</returns>
|
||||
public new CandidateCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new CandidateCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.Candidate instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.Candidate instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.Candidate value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.Candidate.
|
||||
/// </summary>
|
||||
public class CandidateCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.Candidate _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private CandidateCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal CandidateCollectionEnumerator(CandidateCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.Candidate object in the enumerated CandidateCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.Candidate Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/FactionCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/FactionCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.Faction.
|
||||
/// </summary>
|
||||
public class FactionCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public FactionCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.Faction at a specific position in the FactionCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.Faction this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.Faction)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.Faction entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Faction instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.Faction value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.Faction instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Faction instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.Faction instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.Faction value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.Faction instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Faction instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.Faction instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.Faction value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.Faction instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.Faction instance to remove.</param>
|
||||
public void Remove(Server.Factions.Faction value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.Faction instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.Faction's enumerator.</returns>
|
||||
public new FactionCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new FactionCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.Faction instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.Faction instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.Faction value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.Faction.
|
||||
/// </summary>
|
||||
public class FactionCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.Faction _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private FactionCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal FactionCollectionEnumerator(FactionCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.Faction object in the enumerated FactionCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.Faction Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/FactionGuardCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/FactionGuardCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.BaseFactionGuard.
|
||||
/// </summary>
|
||||
public class FactionGuardCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public FactionGuardCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.BaseFactionGuard at a specific position in the FactionGuardCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.BaseFactionGuard this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.BaseFactionGuard)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.BaseFactionGuard entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseFactionGuard instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.BaseFactionGuard value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.BaseFactionGuard instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseFactionGuard instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.BaseFactionGuard instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.BaseFactionGuard value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.BaseFactionGuard instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseFactionGuard instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.BaseFactionGuard instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.BaseFactionGuard value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.BaseFactionGuard instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.BaseFactionGuard instance to remove.</param>
|
||||
public void Remove(Server.Factions.BaseFactionGuard value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.BaseFactionGuard instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.BaseFactionGuard's enumerator.</returns>
|
||||
public new FactionGuardCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new FactionGuardCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.BaseFactionGuard instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.BaseFactionGuard instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.BaseFactionGuard value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.BaseFactionGuard.
|
||||
/// </summary>
|
||||
public class FactionGuardCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.BaseFactionGuard _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private FactionGuardCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal FactionGuardCollectionEnumerator(FactionGuardCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.BaseFactionGuard object in the enumerated FactionGuardCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.BaseFactionGuard Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/FactionItemCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/FactionItemCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.FactionItem.
|
||||
/// </summary>
|
||||
public class FactionItemCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public FactionItemCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.FactionItem at a specific position in the FactionItemCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.FactionItem this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.FactionItem)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.FactionItem entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.FactionItem instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.FactionItem value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.FactionItem instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.FactionItem instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.FactionItem instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.FactionItem value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.FactionItem instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.FactionItem instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.FactionItem instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.FactionItem value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.FactionItem instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.FactionItem instance to remove.</param>
|
||||
public void Remove(Server.Factions.FactionItem value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.FactionItem instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.FactionItem's enumerator.</returns>
|
||||
public new FactionItemCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new FactionItemCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.FactionItem instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.FactionItem instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.FactionItem value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.FactionItem.
|
||||
/// </summary>
|
||||
public class FactionItemCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.FactionItem _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private FactionItemCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal FactionItemCollectionEnumerator(FactionItemCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.FactionItem object in the enumerated FactionItemCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.FactionItem Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/FactionTrapCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/FactionTrapCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.BaseFactionTrap.
|
||||
/// </summary>
|
||||
public class FactionTrapCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public FactionTrapCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.BaseFactionTrap at a specific position in the FactionTrapCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.BaseFactionTrap this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.BaseFactionTrap)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.BaseFactionTrap entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseFactionTrap instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.BaseFactionTrap value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.BaseFactionTrap instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseFactionTrap instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.BaseFactionTrap instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.BaseFactionTrap value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.BaseFactionTrap instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseFactionTrap instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.BaseFactionTrap instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.BaseFactionTrap value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.BaseFactionTrap instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.BaseFactionTrap instance to remove.</param>
|
||||
public void Remove(Server.Factions.BaseFactionTrap value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.BaseFactionTrap instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.BaseFactionTrap's enumerator.</returns>
|
||||
public new FactionTrapCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new FactionTrapCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.BaseFactionTrap instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.BaseFactionTrap instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.BaseFactionTrap value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.BaseFactionTrap.
|
||||
/// </summary>
|
||||
public class FactionTrapCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.BaseFactionTrap _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private FactionTrapCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal FactionTrapCollectionEnumerator(FactionTrapCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.BaseFactionTrap object in the enumerated FactionTrapCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.BaseFactionTrap Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/FactionVendorCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/FactionVendorCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.BaseFactionVendor.
|
||||
/// </summary>
|
||||
public class FactionVendorCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public FactionVendorCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.BaseFactionVendor at a specific position in the FactionVendorCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.BaseFactionVendor this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.BaseFactionVendor)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.BaseFactionVendor entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseFactionVendor instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.BaseFactionVendor value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.BaseFactionVendor instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseFactionVendor instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.BaseFactionVendor instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.BaseFactionVendor value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.BaseFactionVendor instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseFactionVendor instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.BaseFactionVendor instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.BaseFactionVendor value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.BaseFactionVendor instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.BaseFactionVendor instance to remove.</param>
|
||||
public void Remove(Server.Factions.BaseFactionVendor value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.BaseFactionVendor instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.BaseFactionVendor's enumerator.</returns>
|
||||
public new FactionVendorCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new FactionVendorCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.BaseFactionVendor instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.BaseFactionVendor instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.BaseFactionVendor value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.BaseFactionVendor.
|
||||
/// </summary>
|
||||
public class FactionVendorCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.BaseFactionVendor _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private FactionVendorCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal FactionVendorCollectionEnumerator(FactionVendorCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.BaseFactionVendor object in the enumerated FactionVendorCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.BaseFactionVendor Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/GuardListCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/GuardListCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.GuardList.
|
||||
/// </summary>
|
||||
public class GuardListCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public GuardListCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.GuardList at a specific position in the GuardListCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.GuardList this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.GuardList)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.GuardList entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.GuardList instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.GuardList value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.GuardList instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.GuardList instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.GuardList instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.GuardList value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.GuardList instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.GuardList instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.GuardList instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.GuardList value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.GuardList instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.GuardList instance to remove.</param>
|
||||
public void Remove(Server.Factions.GuardList value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.GuardList instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.GuardList's enumerator.</returns>
|
||||
public new GuardListCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new GuardListCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.GuardList instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.GuardList instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.GuardList value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.GuardList.
|
||||
/// </summary>
|
||||
public class GuardListCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.GuardList _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private GuardListCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal GuardListCollectionEnumerator(GuardListCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.GuardList object in the enumerated GuardListCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.GuardList Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/MonolithCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/MonolithCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.BaseMonolith.
|
||||
/// </summary>
|
||||
public class MonolithCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public MonolithCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.BaseMonolith at a specific position in the MonolithCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.BaseMonolith this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.BaseMonolith)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.BaseMonolith entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseMonolith instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.BaseMonolith value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.BaseMonolith instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseMonolith instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.BaseMonolith instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.BaseMonolith value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.BaseMonolith instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.BaseMonolith instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.BaseMonolith instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.BaseMonolith value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.BaseMonolith instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.BaseMonolith instance to remove.</param>
|
||||
public void Remove(Server.Factions.BaseMonolith value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.BaseMonolith instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.BaseMonolith's enumerator.</returns>
|
||||
public new MonolithCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new MonolithCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.BaseMonolith instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.BaseMonolith instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.BaseMonolith value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.BaseMonolith.
|
||||
/// </summary>
|
||||
public class MonolithCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.BaseMonolith _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private MonolithCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal MonolithCollectionEnumerator(MonolithCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.BaseMonolith object in the enumerated MonolithCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.BaseMonolith Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/PlayerStateCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/PlayerStateCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.PlayerState.
|
||||
/// </summary>
|
||||
public class PlayerStateCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public PlayerStateCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.PlayerState at a specific position in the PlayerStateCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.PlayerState this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.PlayerState)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.PlayerState entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.PlayerState instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.PlayerState value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.PlayerState instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.PlayerState instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.PlayerState instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.PlayerState value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.PlayerState instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.PlayerState instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.PlayerState instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.PlayerState value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.PlayerState instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.PlayerState instance to remove.</param>
|
||||
public void Remove(Server.Factions.PlayerState value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.PlayerState instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.PlayerState's enumerator.</returns>
|
||||
public new PlayerStateCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new PlayerStateCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.PlayerState instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.PlayerState instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.PlayerState value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.PlayerState.
|
||||
/// </summary>
|
||||
public class PlayerStateCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.PlayerState _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private PlayerStateCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal PlayerStateCollectionEnumerator(PlayerStateCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.PlayerState object in the enumerated PlayerStateCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.PlayerState Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/SigilCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/SigilCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.Sigil.
|
||||
/// </summary>
|
||||
public class SigilCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public SigilCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.Sigil at a specific position in the SigilCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.Sigil this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.Sigil)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.Sigil entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Sigil instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.Sigil value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.Sigil instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Sigil instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.Sigil instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.Sigil value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.Sigil instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Sigil instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.Sigil instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.Sigil value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.Sigil instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.Sigil instance to remove.</param>
|
||||
public void Remove(Server.Factions.Sigil value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.Sigil instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.Sigil's enumerator.</returns>
|
||||
public new SigilCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new SigilCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.Sigil instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.Sigil instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.Sigil value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.Sigil.
|
||||
/// </summary>
|
||||
public class SigilCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.Sigil _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private SigilCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal SigilCollectionEnumerator(SigilCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.Sigil object in the enumerated SigilCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.Sigil Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/SilverGivenCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/SilverGivenCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.SilverGivenEntry.
|
||||
/// </summary>
|
||||
public class SilverGivenCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public SilverGivenCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.SilverGivenEntry at a specific position in the SilverGivenCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.SilverGivenEntry this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.SilverGivenEntry)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.SilverGivenEntry entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.SilverGivenEntry instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.SilverGivenEntry value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.SilverGivenEntry instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.SilverGivenEntry instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.SilverGivenEntry instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.SilverGivenEntry value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.SilverGivenEntry instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.SilverGivenEntry instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.SilverGivenEntry instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.SilverGivenEntry value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.SilverGivenEntry instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.SilverGivenEntry instance to remove.</param>
|
||||
public void Remove(Server.Factions.SilverGivenEntry value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.SilverGivenEntry instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.SilverGivenEntry's enumerator.</returns>
|
||||
public new SilverGivenCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new SilverGivenCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.SilverGivenEntry instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.SilverGivenEntry instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.SilverGivenEntry value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.SilverGivenEntry.
|
||||
/// </summary>
|
||||
public class SilverGivenCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.SilverGivenEntry _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private SilverGivenCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal SilverGivenCollectionEnumerator(SilverGivenCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.SilverGivenEntry object in the enumerated SilverGivenCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.SilverGivenEntry Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
199
Scripts/Engines/Factions/Collections/TownCollection.cs
Normal file
199
Scripts/Engines/Factions/Collections/TownCollection.cs
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.Town.
|
||||
/// </summary>
|
||||
public class TownCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public TownCollection()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.Town at a specific position in the TownCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.Town this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.Town)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.Town entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Town instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.Town value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.Town instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Town instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.Town instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.Town value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.Town instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.Town instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.Town instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.Town value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.Town instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.Town instance to remove.</param>
|
||||
public void Remove(Server.Factions.Town value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.Town instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.Town's enumerator.</returns>
|
||||
public new TownCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new TownCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.Town instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.Town instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.Town value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.Town.
|
||||
/// </summary>
|
||||
public class TownCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.Town _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private TownCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal TownCollectionEnumerator(TownCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.Town object in the enumerated TownCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.Town Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
200
Scripts/Engines/Factions/Collections/VendorListCollection.cs
Normal file
200
Scripts/Engines/Factions/Collections/VendorListCollection.cs
Normal file
|
|
@ -0,0 +1,200 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version: 1.1.4322.573
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Server.Factions
|
||||
{
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed collection of Server.Factions.VendorList.
|
||||
/// </summary>
|
||||
public class VendorListCollection : System.Collections.CollectionBase
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public VendorListCollection() :
|
||||
base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the Server.Factions.VendorList at a specific position in the VendorListCollection.
|
||||
/// </summary>
|
||||
public Server.Factions.VendorList this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ((Server.Factions.VendorList)(this.List[index]));
|
||||
}
|
||||
set
|
||||
{
|
||||
this.List[index] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Append a Server.Factions.VendorList entry to this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.VendorList instance.</param>
|
||||
/// <returns>The position into which the new element was inserted.</returns>
|
||||
public int Add(Server.Factions.VendorList value)
|
||||
{
|
||||
return this.List.Add(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether a specified Server.Factions.VendorList instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.VendorList instance to search for.</param>
|
||||
/// <returns>True if the Server.Factions.VendorList instance is in the collection; otherwise false.</returns>
|
||||
public bool Contains(Server.Factions.VendorList value)
|
||||
{
|
||||
return this.List.Contains(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve the index a specified Server.Factions.VendorList instance is in this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">Server.Factions.VendorList instance to find.</param>
|
||||
/// <returns>The zero-based index of the specified Server.Factions.VendorList instance. If the object is not found, the return value is -1.</returns>
|
||||
public int IndexOf(Server.Factions.VendorList value)
|
||||
{
|
||||
return this.List.IndexOf(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a specified Server.Factions.VendorList instance from this collection.
|
||||
/// </summary>
|
||||
/// <param name="value">The Server.Factions.VendorList instance to remove.</param>
|
||||
public void Remove(Server.Factions.VendorList value)
|
||||
{
|
||||
this.List.Remove(value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that can iterate through the Server.Factions.VendorList instance.
|
||||
/// </summary>
|
||||
/// <returns>An Server.Factions.VendorList's enumerator.</returns>
|
||||
public new VendorListCollectionEnumerator GetEnumerator()
|
||||
{
|
||||
return new VendorListCollectionEnumerator(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Insert a Server.Factions.VendorList instance into this collection at a specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">Zero-based index.</param>
|
||||
/// <param name="value">The Server.Factions.VendorList instance to insert.</param>
|
||||
public void Insert(int index, Server.Factions.VendorList value)
|
||||
{
|
||||
this.List.Insert(index, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Strongly typed enumerator of Server.Factions.VendorList.
|
||||
/// </summary>
|
||||
public class VendorListCollectionEnumerator : System.Collections.IEnumerator
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Current index
|
||||
/// </summary>
|
||||
private int _index;
|
||||
|
||||
/// <summary>
|
||||
/// Current element pointed to.
|
||||
/// </summary>
|
||||
private Server.Factions.VendorList _currentElement;
|
||||
|
||||
/// <summary>
|
||||
/// Collection to enumerate.
|
||||
/// </summary>
|
||||
private VendorListCollection _collection;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor for enumerator.
|
||||
/// </summary>
|
||||
/// <param name="collection">Instance of the collection to enumerate.</param>
|
||||
internal VendorListCollectionEnumerator(VendorListCollection collection)
|
||||
{
|
||||
_index = -1;
|
||||
_collection = collection;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Server.Factions.VendorList object in the enumerated VendorListCollection currently indexed by this instance.
|
||||
/// </summary>
|
||||
public Server.Factions.VendorList Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current element in the collection.
|
||||
/// </summary>
|
||||
object IEnumerator.Current
|
||||
{
|
||||
get
|
||||
{
|
||||
if (((_index == -1)
|
||||
|| (_index >= _collection.Count)))
|
||||
{
|
||||
throw new System.IndexOutOfRangeException("Enumerator not started.");
|
||||
}
|
||||
else
|
||||
{
|
||||
return _currentElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reset the cursor, so it points to the beginning of the enumerator.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_index = -1;
|
||||
_currentElement = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Advances the enumerator to the next queue of the enumeration, if one is currently available.
|
||||
/// </summary>
|
||||
/// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
|
||||
public bool MoveNext()
|
||||
{
|
||||
if ((_index
|
||||
< (_collection.Count - 1)))
|
||||
{
|
||||
_index = (_index + 1);
|
||||
_currentElement = this._collection[_index];
|
||||
return true;
|
||||
}
|
||||
_index = _collection.Count;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue