C# Класс DivineRightGame.ItemFactory.ItemFactory

This class is used to create items from a string.
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateItem ( Archetype archetype, string tag, int &itemID ) : MapItem

Creates an item from an Archetype and a tag. The item to be created is random, as long as it shares the correct tag.

CreateItem ( string category, List parameters ) : MapItem
CreateItem ( string category, int itemID ) : MapItem

Creates an item from its category and its internal name

CreateItem ( string category, string tag, int &itemID ) : MapItem

Creates an item from a category and a tag The item to be created is random, as long as it shares the correct tag

Описание методов

CreateItem() публичный Метод

Creates an item from an Archetype and a tag. The item to be created is random, as long as it shares the correct tag.
public CreateItem ( Archetype archetype, string tag, int &itemID ) : MapItem
archetype Archetype
tag string
itemID int The id of the chosen item
Результат DRObjects.MapItem

CreateItem() публичный Метод

public CreateItem ( string category, List parameters ) : MapItem
category string
parameters List
Результат DRObjects.MapItem

CreateItem() публичный Метод

Creates an item from its category and its internal name
public CreateItem ( string category, int itemID ) : MapItem
category string
itemID int
Результат DRObjects.MapItem

CreateItem() публичный Метод

Creates an item from a category and a tag The item to be created is random, as long as it shares the correct tag
public CreateItem ( string category, string tag, int &itemID ) : MapItem
category string
tag string
itemID int The id of the chosen item, in case multiples need to be produced
Результат DRObjects.MapItem