Class InitialSpawnManager
Class that handles giving players choices where they would like to initially spawn.
Provides two sets: procedurally generated spots, based on clusters of resources, and settlements that are accepting new
citizens.
Inheritance
System.Object
InitialSpawnManager
Assembly: Eco.Gameplay.dll
Syntax
[ChatCommandHandler]
public class InitialSpawnManager : Singleton<InitialSpawnManager>, IController, IViewController, IHasUniversalID, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions
Constructors
InitialSpawnManager()
Declaration
public InitialSpawnManager()
Fields
UpdatedInitialPoints
Invoked when the initial points are regenerated.
Declaration
public ThreadSafeAction UpdatedInitialPoints
Field Value
UpdateTimer
Declaration
public PeriodicUpdateConfig UpdateTimer
Field Value
Properties
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
DescribePoints
Describes the points available for initial spawn.
Declaration
public LocString DescribePoints { get; }
Property Value
Subscriptions
Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
SummaryPoints
Declaration
public LocString SummaryPoints { get; }
Property Value
Methods
Do(IChatClient, User)
Declaration
[ChatSubCommand]
public static void Do(IChatClient chatClient, User user = null)
Parameters
GenerateAllSpawnPoints(Boolean)
Generates spawn points. If DisplayOnlySettlements (in the configuration) is true and there are settlements this method will generate only settlements points
Declaration
public void GenerateAllSpawnPoints(bool debugPoints = false)
Parameters
Type |
Name |
Description |
System.Boolean |
debugPoints |
|
GetSpawnPoints()
Called by the client to get the updated spawn points.
Declaration
public IEnumerable<InitialSpawnPoint> GetSpawnPoints()
Returns
InitialSpawn(IChatClient)
Declaration
[ChatCommand]
public static void InitialSpawn(IChatClient chatClient)
Parameters
List(IChatClient)
Declaration
[ChatSubCommand]
public static void List(IChatClient chatClient)
Parameters
SetUpdateRequired()
Declaration
public void SetUpdateRequired()
StartHere(Player, InitialSpawnPoint)
Called by a player when they want to spawn at a given position.
Declaration
public void StartHere(Player player, InitialSpawnPoint point)
Parameters
Tick()
Declaration
Update(IChatClient)
Declaration
[ChatSubCommand]
public static void Update(IChatClient chatClient)
Parameters
UpdateDebug(IChatClient)
Declaration
[ChatSubCommand]
public static void UpdateDebug(IChatClient chatClient)
Parameters
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
Extension Methods