Ejemplo n.º 1
0
 protected virtual void OnTransAssetTo(GamePlayer source_player, ASSET_MAJOR_TYPE mj_type, ASSET_SUB_TYPE sub_type, uint asset_cnt)
 {
 }
Ejemplo n.º 2
0
 protected override void OnInitEffect(params object[] objs)
 {
     assetMjType  = (ASSET_MAJOR_TYPE)Enum.Parse(typeof(ASSET_MAJOR_TYPE), objs[0].ToString());
     assetSubType = (ASSET_SUB_TYPE)Enum.Parse(typeof(ASSET_SUB_TYPE), objs[0].ToString());
 }
Ejemplo n.º 3
0
 // ---------------------------------------------------------
 public void TransAssetTo(GamePlayer source_player, ASSET_MAJOR_TYPE mj_type, ASSET_SUB_TYPE sub_type, uint asset_cnt)
 {
     // !!! 暂未实现
     OnTransAssetTo(source_player, mj_type, sub_type, asset_cnt);
 }
Ejemplo n.º 4
0
 protected virtual void OnGainAsset(ASSET_MAJOR_TYPE mj_type, ASSET_SUB_TYPE sub_type, int asset_cnt)
 {
 }
Ejemplo n.º 5
0
 // ---------------------------------------------------------
 public void GainAsset(ASSET_MAJOR_TYPE mj_type, ASSET_SUB_TYPE sub_type, int asset_cnt)
 {
     // !!! 暂未实现
     OnGainAsset(mj_type, sub_type, asset_cnt);
 }
Ejemplo n.º 6
0
 public Asset(ASSET_MAJOR_TYPE major_type, ASSET_SUB_TYPE sub_type, int count)
 {
     majorType = major_type;
     subType   = sub_type;
     cnt       = count;
 }
Ejemplo n.º 7
0
 // ---------------------------------------------------------
 // 资源数量
 public uint GetAssetCnt(ASSET_MAJOR_TYPE mj_type, ASSET_SUB_TYPE sub_type)
 {
     return(0);
 }