C# Class Rocket.Unturned.Items.UnturnedItems

ファイルを表示 Open project: RocketMod/Rocket.Unturned

Public Methods

Method Description
AssembleItem ( ushort itemId, byte clipsize, Attachment sight, Attachment tactical, Attachment grip, Attachment barrel, Attachment magazine, EFiremode firemode = EFiremode.SAFETY, byte amount = 1, byte durability = 100 ) : System.Item
AssembleItem ( ushort itemId, byte amount = 1, byte durability = 100, byte metadata = null ) : System.Item
GetItemAssetById ( ushort id ) : ItemAsset
GetItemAssetByName ( string name ) : ItemAsset

Method Details

AssembleItem() public static method

public static AssembleItem ( ushort itemId, byte clipsize, Attachment sight, Attachment tactical, Attachment grip, Attachment barrel, Attachment magazine, EFiremode firemode = EFiremode.SAFETY, byte amount = 1, byte durability = 100 ) : System.Item
itemId ushort
clipsize byte
sight Attachment
tactical Attachment
grip Attachment
barrel Attachment
magazine Attachment
firemode EFiremode
amount byte
durability byte
return System.Item

AssembleItem() public static method

public static AssembleItem ( ushort itemId, byte amount = 1, byte durability = 100, byte metadata = null ) : System.Item
itemId ushort
amount byte
durability byte
metadata byte
return System.Item

GetItemAssetById() public static method

public static GetItemAssetById ( ushort id ) : ItemAsset
id ushort
return ItemAsset

GetItemAssetByName() public static method

public static GetItemAssetByName ( string name ) : ItemAsset
name string
return ItemAsset