Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
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

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  }
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: