C# 클래스 DivineRightGame.ItemFactory.ItemFactory

This class is used to create items from a string.
파일 보기 프로젝트 열기: Haedrian/Divine-Right

공개 메소드들

메소드 설명
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