Esempio n. 1
0
        public bool Init(Vector3 position, Vector3 rotation)
        {
            m_vPosition = position;
            m_vRotation = rotation;

            for (int i = 0; i < 4; i++)
            {
                ItemSlot itemSlot = new ItemSlot();
                itemSlot.bEmpty = false;
                itemSlot.fTakenTime = 0.0f;
                itemSlot.vPosition = new Vector3(0.0f + i * 1000.0f, 0.0f, 0.0f);

                itemSlot.item = new Item();

                itemSlot.item.Init(m_vPosition + itemSlot.vPosition, Vector3.Zero);

                m_ItemAreaList.Add(itemSlot);
            }
            /*
            ItemSlot itemSlot = new ItemSlot();
            itemSlot.bEmpty = false;
            itemSlot.fTakenTime = 0.0f;
            itemSlot.vPosition = Vector3.Zero;

            itemSlot.item = new Item();

            itemSlot.item.Init(m_vPosition + itemSlot.vPosition, Vector3.Zero);

            m_ItemAreaList.Add(itemSlot);

            ItemSlot itemSlot2 = new ItemSlot();
            itemSlot2.bEmpty = false;
            itemSlot2.fTakenTime = 0.0f;
            itemSlot2.vPosition = new Vector3(1000.0f, 0.0f, 1000.0f);

            itemSlot2.item = new Item();

            itemSlot2.item.Init(m_vPosition + itemSlot2.vPosition, Vector3.Zero);

            m_ItemAreaList.Add(itemSlot2);
             * */

            return true;
        }
Esempio n. 2
0
 public bool CompareType(ItemSlot i)
 {
     return i.item.GetItemType() == eType;
 }