public override bool Equals(object obj) { PickupParameters other = obj as PickupParameters; bool bEquals = description.Equals(other.Description) && value == other.Value; return(bEquals && ((additionalParameters != null && additionalParameters.Length != 0) ? additionalParameters.Equals(other.additionalParameters) : true)); }
//used to draw collidable primitives that a value associated with them e.g. health public CollidablePickupObject(string id, ActorType actorType, StatusType statusType, Transform3D transform, EffectParameters effectParameters, IVertexData vertexData, ICollisionPrimitive collisionPrimitive, ObjectManager objectManager, PickupParameters pickupParameters) : base(id, actorType, statusType, transform, effectParameters, vertexData, collisionPrimitive, objectManager) { this.pickupParameters = pickupParameters; }