Class Deployer
Abstract IDeployer which creates an object and places it at the specified coordinates. Inheritors must specify how the object is instantiated; the base class handles positioning and activation.
Inheritance
System.Object
Deployer
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ItemChanger
Assembly: ItemChanger.dll
Syntax
public abstract class Deployer : IDeployer, IEquatable<Deployer>
Properties
| Improve this Doc View SourceSceneName
Declaration
public string SceneName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Test
Optional property. If non-null and evaluates false, the GameObject is not deployed.
Declaration
public IBool Test { get; set; }
Property Value
| Type | Description |
|---|---|
| IBool |
X
Declaration
public float X { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Y
Declaration
public float Y { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
| Improve this Doc View SourceDeploy()
Method which calls Instantiate, and then appropriately places the new object. Returns the object to allow further action by overriders.
The base implementation sets position, gives the object a safe position-based name, and updates any PersistentBoolItem, PersistentIntItem, or GeoRock components with the new name.
Declaration
public virtual GameObject Deploy()
Returns
| Type | Description |
|---|---|
| GameObject |
Instantiate()
Declaration
public abstract GameObject Instantiate()
Returns
| Type | Description |
|---|---|
| GameObject |
OnSceneChange(Scene)
Declaration
public virtual void OnSceneChange(Scene to)
Parameters
| Type | Name | Description |
|---|---|---|
| Scene | to |
Implements
System.IEquatable<T>