Click or drag to resize
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.

Inheritance Hierarchy
SystemObject
  SystemAttribute
    Terrarium.Sdk.Classes.Creature.AttributesOrganismClassAttribute

Namespace: Terrarium.Sdk.Classes.Creature.Attributes
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public sealed class OrganismClassAttribute : Attribute

The OrganismClassAttribute type exposes the following members.

Constructors
  NameDescription
Public methodOrganismClassAttribute

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.

Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyClassName
Provides read-only access to the name of the class that represents the creature class within the assembly.
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Top
See Also