Class StrangeBlueprintMonitor
Tracks protected items to make sure too many are not spawned in world.
Inheritance
System.Object
StrangeBlueprintMonitor
Assembly: Eco.Gameplay.dll
Syntax
[ChatCommandHandler]
public class StrangeBlueprintMonitor : Singleton<StrangeBlueprintMonitor>
Constructors
StrangeBlueprintMonitor()
Declaration
public StrangeBlueprintMonitor()
Methods
CanPlace(User, String, Int32)
Declaration
public bool CanPlace(User user, string name, int amount = 1)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| System.String |
name |
|
| System.Int32 |
amount |
|
Returns
| Type |
Description |
| System.Boolean |
|
CanPlaceBlock(User, Type, Int32)
Declaration
public bool CanPlaceBlock(User user, Type type, int amount = 1)
Parameters
| Type |
Name |
Description |
| User |
user |
|
| System.Type |
type |
|
| System.Int32 |
amount |
|
Returns
| Type |
Description |
| System.Boolean |
|
TryPlaceBlock(Type)
Place it, if there's not too many compared to the number of owned blueprints, and update counts.
Declaration
public bool TryPlaceBlock(Type type)
Parameters
| Type |
Name |
Description |
| System.Type |
type |
|
Returns
| Type |
Description |
| System.Boolean |
|
Extension Methods