Ejemplo n.º 1
0
        public ItemObject CreateItem(int prototypeId)
        {
            int instanceId = 0;

            if (!IsCreationItem(prototypeId))
            {
                instanceId = mIdGenerator.Fetch();
            }
            else
            {
                instanceId = prototypeId;
            }

            ItemObject item = ItemObject.Create(prototypeId, instanceId);

            Add(item);

            return(item);
        }