Class EntityPrefabInfo
Represents an Entity prefab / type.
Inheritance
EntityPrefabInfo
Assembly: Assembly-CSharp.dll
Syntax
public class EntityPrefabInfo
Properties
AvailableTriggers
Identifiers for the triggers available on this entity type.
Declaration
public ReadOnlyCollection<string> AvailableTriggers { get; }
Property Value
CanDoDamage
Whether this entity type can do damage to player machines.
Declaration
public bool CanDoDamage { get; }
Property Value
CanPick
Whether this entity type can picked for logic events.
Declaration
public bool CanPick { get; }
Property Value
CanScale
Whether this entity type can scale be scaled.
Declaration
public bool CanScale { get; }
Property Value
Category
Level Editor category of this entity type.
Declaration
public StatMaster.Category Category { get; }
Property Value
Type |
Description |
StatMaster.Category |
|
Destructable
Whether this entity type can be destroyed.
Declaration
public bool Destructable { get; }
Property Value
GameObject
The Prefab / Template game object for this entity type.
Declaration
public GameObject GameObject { get; }
Property Value
Type |
Description |
UnityEngine.GameObject |
|
Icon
GUI Icon of this entity type.
Declaration
public Texture2D Icon { get; }
Property Value
Type |
Description |
UnityEngine.Texture2D |
|
Id
Unique ID of this entity type.
Declaration
Property Value
Inflammable
Whether this entity type can burn.
Declaration
public bool Inflammable { get; }
Property Value
InternalObject
The internal representation of this object.
WARNING: This is not part of the stable API and subject to change!
Declaration
public LevelPrefab InternalObject { get; }
Property Value
Type |
Description |
LevelPrefab |
|
Keywords
Search keywords of this entity type.
Declaration
public ReadOnlyCollection<string> Keywords { get; }
Property Value
Name
Name of this entity type.
Declaration
public string Name { get; }
Property Value
Whether this entity type always has to be uniformly scaled.
Declaration
public bool UniformScale { get; }
Property Value
Methods
Equals(EntityPrefabInfo)
Declaration
protected bool Equals(EntityPrefabInfo other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
From(LevelPrefab)
Create an EntityPrefab from its internal representation.
Declaration
public static EntityPrefabInfo From(LevelPrefab levelPrefab)
Parameters
Type |
Name |
Description |
LevelPrefab |
levelPrefab |
|
Returns
FromId(Int32)
Get the EntityPrefab with the specified id.
Null if it could not be found.
Declaration
public static EntityPrefabInfo FromId(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
FromIdModded(Guid, Int32)
Get the modded EntityPrefab with the specified mod and local ids.
Null if it cannot be found.
Declaration
public static EntityPrefabInfo FromIdModded(Guid modId, int localId)
Parameters
Type |
Name |
Description |
Guid |
modId |
|
Int32 |
localId |
|
Returns
GetAll()
Returns all currently loaded entity types.
Declaration
public static EntityPrefabInfo[] GetAll()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Equality(EntityPrefabInfo, EntityPrefabInfo)
Declaration
public static bool operator ==(EntityPrefabInfo left, EntityPrefabInfo right)
Parameters
Returns
Inequality(EntityPrefabInfo, EntityPrefabInfo)
Declaration
public static bool operator !=(EntityPrefabInfo left, EntityPrefabInfo right)
Parameters
Returns