C# Class Server.MirObjects.NPCScript

ファイルを表示 Open project: zhzhwcn/mir2 Class Usage Examples

Public Properties

Property Type Description
CraftGoods List
Goods List
LoadedObjectID uint
NPCPages List
NPCSections List
ScriptID int
Type NPCScriptType
Types List
UsedTypes List

Protected Properties

Property Type Description
FileName string

Public Methods

Method Description
Buy ( Server.MirObjects.PlayerObject player, ulong index, ushort count ) : void
Call ( Server.MirObjects.MonsterObject monster, string key ) : void
Call ( Server.MirObjects.PlayerObject player, uint objectID, string key ) : void
Call ( string key ) : void
ClearInfo ( ) : void
Craft ( Server.MirObjects.PlayerObject player, ulong index, ushort count, Array slots ) : void
Get ( int index ) : NPCScript
GetOrAdd ( uint loadedObjectID, string fileName, NPCScriptType type ) : NPCScript
Load ( ) : void
LoadGoods ( ) : void
LoadInfo ( ) : void
PriceRate ( PlayerObject player, bool baseRate = false ) : float
Sell ( PlayerObject player, UserItem item ) : void

Private Methods

Method Description
NPCScript ( uint loadedObjectID, string fileName, NPCScriptType type ) : Server.MirDatabase
ParseCrafting ( IList lines ) : void
ParseDefault ( List lines ) : void
ParseGoods ( IList lines ) : void
ParseInclude ( List lines ) : List
ParseInsert ( List lines ) : List
ParsePage ( IList scriptLines, string sectionName ) : Server.MirObjects.NPCPage
ParsePages ( IList lines, string key = MainKey ) : List
ParseQuests ( IList lines ) : void
ParseScript ( IList lines ) : void
ParseSegment ( Server.MirObjects.NPCPage page, IEnumerable scriptLines ) : NPCSegment
ParseSpeech ( IList lines ) : void
ParseTypes ( IList lines ) : void
ProcessSegment ( MonsterObject monster, NPCPage page, NPCSegment segment ) : void
ProcessSegment ( NPCPage page, NPCSegment segment ) : void
ProcessSegment ( PlayerObject player, NPCPage page, NPCSegment segment, uint objectID ) : void
ProcessSpecial ( PlayerObject player, NPCPage page ) : void
Response ( PlayerObject player, NPCPage page ) : void

Method Details

Buy() public method

public Buy ( Server.MirObjects.PlayerObject player, ulong index, ushort count ) : void
player Server.MirObjects.PlayerObject
index ulong
count ushort
return void

Call() public method

public Call ( Server.MirObjects.MonsterObject monster, string key ) : void
monster Server.MirObjects.MonsterObject
key string
return void

Call() public method

public Call ( Server.MirObjects.PlayerObject player, uint objectID, string key ) : void
player Server.MirObjects.PlayerObject
objectID uint
key string
return void

Call() public method

public Call ( string key ) : void
key string
return void

ClearInfo() public method

public ClearInfo ( ) : void
return void

Craft() public method

public Craft ( Server.MirObjects.PlayerObject player, ulong index, ushort count, Array slots ) : void
player Server.MirObjects.PlayerObject
index ulong
count ushort
slots Array
return void

Get() public static method

public static Get ( int index ) : NPCScript
index int
return NPCScript

GetOrAdd() public static method

public static GetOrAdd ( uint loadedObjectID, string fileName, NPCScriptType type ) : NPCScript
loadedObjectID uint
fileName string
type NPCScriptType
return NPCScript

Load() public method

public Load ( ) : void
return void

LoadGoods() public method

public LoadGoods ( ) : void
return void

LoadInfo() public method

public LoadInfo ( ) : void
return void

PriceRate() public method

public PriceRate ( PlayerObject player, bool baseRate = false ) : float
player PlayerObject
baseRate bool
return float

Sell() public method

public Sell ( PlayerObject player, UserItem item ) : void
player PlayerObject
item UserItem
return void

Property Details

CraftGoods public_oe property

public List CraftGoods
return List

FileName protected_oe property

protected string FileName
return string

Goods public_oe property

public List Goods
return List

LoadedObjectID public_oe property

public uint LoadedObjectID
return uint

NPCPages public_oe property

public List NPCPages
return List

NPCSections public_oe property

public List NPCSections
return List

ScriptID public_oe property

public int ScriptID
return int

Type public_oe property

public NPCScriptType Type
return NPCScriptType

Types public_oe property

public List Types
return List

UsedTypes public_oe property

public List UsedTypes
return List