commit
c9ae9a5e4b
@ -0,0 +1,52 @@
|
|||||||
|
<CascadingValue Value="@this">
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6">
|
||||||
|
|
||||||
|
<div>Available items:</div>
|
||||||
|
<div>
|
||||||
|
<div class="css-grid">
|
||||||
|
<CascadingValue Value="@this">
|
||||||
|
@foreach (var item in Items)
|
||||||
|
{
|
||||||
|
<CraftingItem Item="item" NoDrop="true"/>
|
||||||
|
}
|
||||||
|
</CascadingValue>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-6">
|
||||||
|
<div>Recipe</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<div class="css-recipe">
|
||||||
|
<CraftingItem Index="0"/>
|
||||||
|
<CraftingItem Index="1"/>
|
||||||
|
<CraftingItem Index="2"/>
|
||||||
|
<CraftingItem Index="3"/>
|
||||||
|
<CraftingItem Index="4"/>
|
||||||
|
<CraftingItem Index="5"/>
|
||||||
|
<CraftingItem Index="6"/>
|
||||||
|
<CraftingItem Index="7"/>
|
||||||
|
<CraftingItem Index="8"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>Result</div>
|
||||||
|
<div>
|
||||||
|
<CraftingItem Item="RecipeResult"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-12">
|
||||||
|
<div>Actions</div>
|
||||||
|
<div class="actions" id="actions">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CascadingValue>
|
@ -0,0 +1,16 @@
|
|||||||
|
@using CraftSharp.Models
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="item"
|
||||||
|
ondragover="event.preventDefault();"
|
||||||
|
draggable="true"
|
||||||
|
@ondragstart="@OnDragStart"
|
||||||
|
@ondrop="@OnDrop"
|
||||||
|
@ondragenter="@OnDragEnter"
|
||||||
|
@ondragleave="@OnDragLeave">
|
||||||
|
|
||||||
|
@if (Item != null)
|
||||||
|
{
|
||||||
|
@Item.DisplayName
|
||||||
|
}
|
||||||
|
</div>
|
@ -0,0 +1,11 @@
|
|||||||
|
@typeparam TItem
|
||||||
|
|
||||||
|
<div>
|
||||||
|
@if ((Items?.Count ?? 0) != 0)
|
||||||
|
{
|
||||||
|
@foreach (var item in Items)
|
||||||
|
{
|
||||||
|
@ShowTemplate(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</div>
|
@ -0,0 +1,469 @@
|
|||||||
|
{
|
||||||
|
"blocks": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"name": "Comveyer",
|
||||||
|
"stacksize": 35,
|
||||||
|
"rarity": "rare"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"name": "Uncorp",
|
||||||
|
"stacksize": 56,
|
||||||
|
"rarity": "legendary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"name": "Oatfarm",
|
||||||
|
"stacksize": 27,
|
||||||
|
"rarity": "rare"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"name": "Isostream",
|
||||||
|
"stacksize": 21,
|
||||||
|
"rarity": "legendary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"name": "Deepends",
|
||||||
|
"stacksize": 23,
|
||||||
|
"rarity": "rare"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"name": "Flumbo",
|
||||||
|
"stacksize": 26,
|
||||||
|
"rarity": "common"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 7,
|
||||||
|
"name": "Navir",
|
||||||
|
"stacksize": 64,
|
||||||
|
"rarity": "common"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 8,
|
||||||
|
"name": "Circum",
|
||||||
|
"stacksize": 31,
|
||||||
|
"rarity": "legendary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 9,
|
||||||
|
"name": "Virva",
|
||||||
|
"stacksize": 30,
|
||||||
|
"rarity": "epic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10,
|
||||||
|
"name": "Zillanet",
|
||||||
|
"stacksize": 18,
|
||||||
|
"rarity": "common"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 11,
|
||||||
|
"name": "Ezent",
|
||||||
|
"stacksize": 49,
|
||||||
|
"rarity": "legendary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 12,
|
||||||
|
"name": "Pigzart",
|
||||||
|
"stacksize": 48,
|
||||||
|
"rarity": "common"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 13,
|
||||||
|
"name": "Mantrix",
|
||||||
|
"stacksize": 6,
|
||||||
|
"rarity": "rare"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 14,
|
||||||
|
"name": "Aquamate",
|
||||||
|
"stacksize": 9,
|
||||||
|
"rarity": "rare"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 15,
|
||||||
|
"name": "Twiist",
|
||||||
|
"stacksize": 54,
|
||||||
|
"rarity": "legendary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 16,
|
||||||
|
"name": "Mazuda",
|
||||||
|
"stacksize": 17,
|
||||||
|
"rarity": "rare"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 17,
|
||||||
|
"name": "Ecolight",
|
||||||
|
"stacksize": 50,
|
||||||
|
"rarity": "epic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 18,
|
||||||
|
"name": "Greeker",
|
||||||
|
"stacksize": 40,
|
||||||
|
"rarity": "rare"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 19,
|
||||||
|
"name": "Stelaecor",
|
||||||
|
"stacksize": 28,
|
||||||
|
"rarity": "legendary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 20,
|
||||||
|
"name": "Deviltoe",
|
||||||
|
"stacksize": 24,
|
||||||
|
"rarity": "epic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 21,
|
||||||
|
"name": "Comveyor",
|
||||||
|
"stacksize": 39,
|
||||||
|
"rarity": "legendary"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 22,
|
||||||
|
"name": "Neptide",
|
||||||
|
"stacksize": 63,
|
||||||
|
"rarity": "common"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tools": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"name": "Applideck",
|
||||||
|
"stacksize": 10,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"name": "Kenegy",
|
||||||
|
"stacksize": 7,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"damages": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"name": "Pyramis",
|
||||||
|
"stacksize": 47,
|
||||||
|
"rarity": "epic",
|
||||||
|
"damages": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"name": "Xsports",
|
||||||
|
"stacksize": 6,
|
||||||
|
"rarity": "rare",
|
||||||
|
"damages": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"name": "Extragen",
|
||||||
|
"stacksize": 11,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"name": "Recrisys",
|
||||||
|
"stacksize": 40,
|
||||||
|
"rarity": "rare",
|
||||||
|
"damages": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 7,
|
||||||
|
"name": "Martgo",
|
||||||
|
"stacksize": 39,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"damages": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 8,
|
||||||
|
"name": "Lotron",
|
||||||
|
"stacksize": 11,
|
||||||
|
"rarity": "rare",
|
||||||
|
"damages": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 9,
|
||||||
|
"name": "Flum",
|
||||||
|
"stacksize": 14,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10,
|
||||||
|
"name": "Terrago",
|
||||||
|
"stacksize": 23,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 11,
|
||||||
|
"name": "Stralum",
|
||||||
|
"stacksize": 17,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 12,
|
||||||
|
"name": "Unisure",
|
||||||
|
"stacksize": 4,
|
||||||
|
"rarity": "epic",
|
||||||
|
"damages": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 13,
|
||||||
|
"name": "Xleen",
|
||||||
|
"stacksize": 6,
|
||||||
|
"rarity": "rare",
|
||||||
|
"damages": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 14,
|
||||||
|
"name": "Knowlysis",
|
||||||
|
"stacksize": 4,
|
||||||
|
"rarity": "rare",
|
||||||
|
"damages": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 15,
|
||||||
|
"name": "Exoteric",
|
||||||
|
"stacksize": 56,
|
||||||
|
"rarity": "epic",
|
||||||
|
"damages": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 16,
|
||||||
|
"name": "Elentrix",
|
||||||
|
"stacksize": 43,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"damages": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 17,
|
||||||
|
"name": "Exostream",
|
||||||
|
"stacksize": 2,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 18,
|
||||||
|
"name": "Helixo",
|
||||||
|
"stacksize": 50,
|
||||||
|
"rarity": "epic",
|
||||||
|
"damages": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 19,
|
||||||
|
"name": "Eventage",
|
||||||
|
"stacksize": 31,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 20,
|
||||||
|
"name": "Isosphere",
|
||||||
|
"stacksize": 44,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 21,
|
||||||
|
"name": "Surelogic",
|
||||||
|
"stacksize": 18,
|
||||||
|
"rarity": "epic",
|
||||||
|
"damages": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 22,
|
||||||
|
"name": "Accufarm",
|
||||||
|
"stacksize": 36,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 23,
|
||||||
|
"name": "Recognia",
|
||||||
|
"stacksize": 13,
|
||||||
|
"rarity": "epic",
|
||||||
|
"damages": 4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 24,
|
||||||
|
"name": "Fibrodyne",
|
||||||
|
"stacksize": 20,
|
||||||
|
"rarity": "rare",
|
||||||
|
"damages": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 25,
|
||||||
|
"name": "Plasmosis",
|
||||||
|
"stacksize": 62,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 26,
|
||||||
|
"name": "Dogtown",
|
||||||
|
"stacksize": 58,
|
||||||
|
"rarity": "common",
|
||||||
|
"damages": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 27,
|
||||||
|
"name": "Edecine",
|
||||||
|
"stacksize": 56,
|
||||||
|
"rarity": "rare",
|
||||||
|
"damages": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 28,
|
||||||
|
"name": "Spacewax",
|
||||||
|
"stacksize": 51,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"damages": 8
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"armors": [
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"name": "Splinx",
|
||||||
|
"stacksize": 59,
|
||||||
|
"rarity": "common",
|
||||||
|
"toughness": 19
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"name": "Digigen",
|
||||||
|
"stacksize": 34,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"toughness": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 3,
|
||||||
|
"name": "Geoform",
|
||||||
|
"stacksize": 33,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"toughness": 13
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 4,
|
||||||
|
"name": "Ovium",
|
||||||
|
"stacksize": 21,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"toughness": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 5,
|
||||||
|
"name": "Slambda",
|
||||||
|
"stacksize": 51,
|
||||||
|
"rarity": "common",
|
||||||
|
"toughness": 8
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 6,
|
||||||
|
"name": "Opticon",
|
||||||
|
"stacksize": 34,
|
||||||
|
"rarity": "rare",
|
||||||
|
"toughness": 18
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 7,
|
||||||
|
"name": "Combogen",
|
||||||
|
"stacksize": 22,
|
||||||
|
"rarity": "rare",
|
||||||
|
"toughness": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 8,
|
||||||
|
"name": "Talae",
|
||||||
|
"stacksize": 38,
|
||||||
|
"rarity": "epic",
|
||||||
|
"toughness": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 9,
|
||||||
|
"name": "Quotezart",
|
||||||
|
"stacksize": 63,
|
||||||
|
"rarity": "common",
|
||||||
|
"toughness": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10,
|
||||||
|
"name": "Edecine",
|
||||||
|
"stacksize": 54,
|
||||||
|
"rarity": "epic",
|
||||||
|
"toughness": 9
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 11,
|
||||||
|
"name": "Geekwagon",
|
||||||
|
"stacksize": 16,
|
||||||
|
"rarity": "common",
|
||||||
|
"toughness": 17
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 12,
|
||||||
|
"name": "Buzzmaker",
|
||||||
|
"stacksize": 1,
|
||||||
|
"rarity": "epic",
|
||||||
|
"toughness": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 13,
|
||||||
|
"name": "Dreamia",
|
||||||
|
"stacksize": 11,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"toughness": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 14,
|
||||||
|
"name": "Memora",
|
||||||
|
"stacksize": 64,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"toughness": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 15,
|
||||||
|
"name": "Exerta",
|
||||||
|
"stacksize": 10,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"toughness": 13
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 16,
|
||||||
|
"name": "Talkola",
|
||||||
|
"stacksize": 12,
|
||||||
|
"rarity": "rare",
|
||||||
|
"toughness": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 17,
|
||||||
|
"name": "Zosis",
|
||||||
|
"stacksize": 12,
|
||||||
|
"rarity": "legendary",
|
||||||
|
"toughness": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 18,
|
||||||
|
"name": "Aquazure",
|
||||||
|
"stacksize": 40,
|
||||||
|
"rarity": "rare",
|
||||||
|
"toughness": 6
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 19,
|
||||||
|
"name": "Crustatia",
|
||||||
|
"stacksize": 25,
|
||||||
|
"rarity": "common",
|
||||||
|
"toughness": 16
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in new issue