mirror of
https://github.com/Phantop/LADXHD.git
synced 2024-11-01 04:14:22 +00:00
24 lines
765 B
C#
24 lines
765 B
C#
|
using ProjectZ.InGame.GameObjects.Base;
|
|||
|
|
|||
|
namespace ProjectZ.InGame.GameObjects.Things
|
|||
|
{
|
|||
|
internal class ObjItemTester : GameObject
|
|||
|
{
|
|||
|
public ObjItemTester() : base("item") { }
|
|||
|
|
|||
|
public ObjItemTester(Map.Map map, int posX, int posY, int width) : base(map)
|
|||
|
{
|
|||
|
IsDead = true;
|
|||
|
|
|||
|
var index = 0;
|
|||
|
foreach (var items in Game1.GameManager.ItemManager.Items)
|
|||
|
{
|
|||
|
var objPosX = posX + (index % width) * 32;
|
|||
|
var objPosY = posY + (index / width) * 32;
|
|||
|
var objItem = new ObjItem(map, objPosX, objPosY, "", "", items.Key, "");
|
|||
|
Map.Objects.SpawnObject(objItem);
|
|||
|
index++;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|