Empeld
Empeld plugin documentation.
essentials.Prefabs.PrefabInstanceExtensions Class Reference

Static Public Member Functions

static PrefabInstance CreateInstance (this IReadonlyPrefab prefab, Vector3i pos)
 Create an in-world instance object of this prefab More...
 
static PrefabWriterInstance CreateWriterInstance (this IPrefab prefab, Vector3i pos)
 Create an in-world writeable instance of this prefab More...
 

Member Function Documentation

◆ CreateInstance()

static PrefabInstance essentials.Prefabs.PrefabInstanceExtensions.CreateInstance ( this IReadonlyPrefab  prefab,
Vector3i  pos 
)
static

Create an in-world instance object of this prefab

Returns
The instance.
Parameters
prefabThe prefab
posPosition.
15  {
16  return new PrefabInstance(prefab, pos);
17  }

◆ CreateWriterInstance()

static PrefabWriterInstance essentials.Prefabs.PrefabInstanceExtensions.CreateWriterInstance ( this IPrefab  prefab,
Vector3i  pos 
)
static

Create an in-world writeable instance of this prefab

Returns
The writer instance.
Parameters
prefabThe prefab
posPosition.
26  {
27  return new PrefabWriterInstance(prefab, pos);
28  }

The documentation for this class was generated from the following file: