Show / Hide Table of Contents

Class EntityPrefabInfo

Represents an Entity prefab / type.

Inheritance
Object
EntityPrefabInfo
Namespace: Modding.Levels
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
Type Description
ReadOnlyCollection<String>

CanDoDamage

Whether this entity type can do damage to player machines.

Declaration
public bool CanDoDamage { get; }
Property Value
Type Description
Boolean

CanPick

Whether this entity type can picked for logic events.

Declaration
public bool CanPick { get; }
Property Value
Type Description
Boolean

CanScale

Whether this entity type can scale be scaled.

Declaration
public bool CanScale { get; }
Property Value
Type Description
Boolean

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
Type Description
Boolean

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
public int Id { get; }
Property Value
Type Description
Int32

Inflammable

Whether this entity type can burn.

Declaration
public bool Inflammable { get; }
Property Value
Type Description
Boolean

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
Type Description
ReadOnlyCollection<String>

Name

Name of this entity type.

Declaration
public string Name { get; }
Property Value
Type Description
String

UniformScale

Whether this entity type always has to be uniformly scaled.

Declaration
public bool UniformScale { get; }
Property Value
Type Description
Boolean

Methods

Equals(EntityPrefabInfo)

Declaration
protected bool Equals(EntityPrefabInfo other)
Parameters
Type Name Description
EntityPrefabInfo other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)

From(LevelPrefab)

Create an EntityPrefab from its internal representation.

Declaration
public static EntityPrefabInfo From(LevelPrefab levelPrefab)
Parameters
Type Name Description
LevelPrefab levelPrefab
Returns
Type Description
EntityPrefabInfo

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
Type Description
EntityPrefabInfo

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
Type Description
EntityPrefabInfo

GetAll()

Returns all currently loaded entity types.

Declaration
public static EntityPrefabInfo[] GetAll()
Returns
Type Description
EntityPrefabInfo[]

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Operators

Equality(EntityPrefabInfo, EntityPrefabInfo)

Declaration
public static bool operator ==(EntityPrefabInfo left, EntityPrefabInfo right)
Parameters
Type Name Description
EntityPrefabInfo left
EntityPrefabInfo right
Returns
Type Description
Boolean

Inequality(EntityPrefabInfo, EntityPrefabInfo)

Declaration
public static bool operator !=(EntityPrefabInfo left, EntityPrefabInfo right)
Parameters
Type Name Description
EntityPrefabInfo left
EntityPrefabInfo right
Returns
Type Description
Boolean
Back to top Generated by DocFX