Click or drag to resize
EatCompletedEventArgs Class

Special object used to hold arguments passed to the EatCompletedEventHandler delegate. This class provides information about whether a creature's eat action was successful.

Inheritance Hierarchy

Namespace: Terrarium.Sdk.Classes.Creature.Events
Assembly: Terrarium.Sdk (in Terrarium.Sdk.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
[SerializableAttribute]
public class EatCompletedEventArgs : ActionResponseEventArgs

The EatCompletedEventArgs type exposes the following members.

Constructors
  NameDescription
Public methodEatCompletedEventArgs
Initializes a new instance of the EatCompletedEventArgs class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString

Provides a string representation of this class for debugging purposes.

(Overrides ActionResponseEventArgsToString.)
Top
Properties
  NameDescription
Public propertyAction
Retrieves the Acton that was completed.
(Inherited from ActionResponseEventArgs.)
Public propertyActionID
Retrives the ID of the action.
(Inherited from ActionResponseEventArgs.)
Public propertyEatAction

Provides information about the original EatAction and the parameters passed into the BeginEating method. This can be used to retrieve the state of the creature you tried to eat.

Public propertySuccessful

Provides information about whether or not an eat action was successful. Often times if multiple creatures are eating the state target, the target will run out of food value before all creatures get to eat. In this case the eat won't be successful and the creature won't gain any energy.

Top
See Also