OrganismClassAttribute Class |
Use this attribute to identify the name of the class in your assembly that derives from either Plant or Animal, and that contains the code required for your creature to operate. This is required for each organism assembly and a load time error will be thrown if you try to introduce an assembly without one.
Namespace: Terrarium.Sdk.Classes.Creature.Attributes
The OrganismClassAttribute type exposes the following members.
Name | Description | |
---|---|---|
![]() | OrganismClassAttribute | Creates a new attribute that can be used to mark the creature class within an assembly. Only one class per assembly may be marked, and only one instance of this attribute per assembly may exist. The class will have to pass other forms of verification as well and the load may still fail. |
Name | Description | |
---|---|---|
![]() | Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) |
![]() | GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) |
![]() | Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | ClassName |
Provides read-only access to the name of the class that
represents the creature class within the assembly.
|
![]() | TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |