Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.electrotank.toolsuite.editor.world.entity
- {
- import com.electrotank.toolsuite.editor.entity.EntityInstance;
- import com.electrotank.toolsuite.editor.entity.form.DetailsWrapper;
- import com.electrotank.toolsuite.editor.utils.RpcUtil;
- import com.electrotank.utils.LogUtil;
- import mx.logging.ILogger;
- import mx.logging.Log;
- /**
- * @author Miranda Steed
- */
- public class QuantityOfItemDefinition extends AbstractEditorEntity
- {
- /**
- * @private
- * mx logger
- */
- private static const log:ILogger = Log.getLogger(LogUtil.categoryFor(prototype));
- /**
- * @private
- * qoi details wrapper
- */
- private var _qoiDetails:DetailsWrapper;
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
- /**
- * <code>QuantityOfItemDefinition</code> Constructor.
- */
- public function QuantityOfItemDefinition(entity:EntityInstance)
- {
- super(entity);
- _qoiDetails = new DetailsWrapper(entity);
- }
- public function set quantity(val:int):void
- {
- super.entity.quantity = val;
- }
- public function set destroyItemUponUse(val:Boolean):void
- {
- super.entity.destroyItemUponUse = val;
- }
- public function set item(val:ItemDefinition):void
- {
- super.entity.item = val.entity;
- }
- public function get quantity():int
- {
- return super.entity.quantity;
- }
- public function get destroyItemUponUse():Boolean
- {
- return super.entity.destroyItemUponUse;
- }
- public function get item():ItemDefinition
- {
- return (new ItemDefinition(new EntityInstance(super.entity.item)));
- }
- public function get qoiDetails():DetailsWrapper
- {
- return _qoiDetails;
- }
- }
- }
Add Comment
Please, Sign In to add comment