C# Class xc.GoodsLuaEx

Inheritance: xc.GoodsItem
Show file Open project: wuhuolong/MaxBooks Class Usage Examples

Public Properties

Property Type Description
ExData string>.Dictionary

Public Methods

Method Description
Copy ( GoodsLuaEx cp ) : Goods
GetLuaValue ( string key ) : object
GoodsLuaEx ( ) : UnityEngine
GoodsLuaEx ( uint typeid, string lua_script ) : UnityEngine
IsBetterThanBody ( ) : bool
RefreshMatch ( Goods matchGoods, GameObject itemSlot ) : void
SetItemSlot ( GameObject itemSlot ) : void
SetLuaValue ( string key, object value ) : object
SetValue ( string name, string value ) : void

lua下调用

UpdateByPkgGoodsInfo ( LuaTable goodsInfo ) : void

Protected Methods

Method Description
CallLuaFunc ( string func_name ) : bool

Private Methods

Method Description
CallLuaFunc ( string func_name, param ) : bool

Method Details

CallLuaFunc() protected method

protected CallLuaFunc ( string func_name ) : bool
func_name string
return bool

Copy() public method

public Copy ( GoodsLuaEx cp ) : Goods
cp GoodsLuaEx
return Goods

GetLuaValue() public method

public GetLuaValue ( string key ) : object
key string
return object

GoodsLuaEx() public method

public GoodsLuaEx ( ) : UnityEngine
return UnityEngine

GoodsLuaEx() public method

public GoodsLuaEx ( uint typeid, string lua_script ) : UnityEngine
typeid uint
lua_script string
return UnityEngine

IsBetterThanBody() public method

public IsBetterThanBody ( ) : bool
return bool

RefreshMatch() public method

public RefreshMatch ( Goods matchGoods, GameObject itemSlot ) : void
matchGoods Goods
itemSlot GameObject
return void

SetItemSlot() public method

public SetItemSlot ( GameObject itemSlot ) : void
itemSlot GameObject
return void

SetLuaValue() public method

public SetLuaValue ( string key, object value ) : object
key string
value object
return object

SetValue() public method

lua下调用
public SetValue ( string name, string value ) : void
name string
value string
return void

UpdateByPkgGoodsInfo() public method

public UpdateByPkgGoodsInfo ( LuaTable goodsInfo ) : void
goodsInfo LuaTable
return void

Property Details

ExData public property

public Dictionary ExData
return string>.Dictionary