示例#1
0
        //-------------------------------------------------------------------------
        public Bt createBt(string bt_name, Entity self)
        {
            BtFactory bt_factory = null;

            mMapBtFactory.TryGetValue(bt_name, out bt_factory);

            if (bt_factory == null)
            {
                return(null);
            }
            else
            {
                return(bt_factory.createBt(self));
            }
        }
示例#2
0
 //-------------------------------------------------------------------------
 void _regBtFactory(BtFactory bt_factory)
 {
     mMapBtFactory[bt_factory.getName()] = bt_factory;
 }
示例#3
0
文件: CellApp.cs 项目: yinlei/Fishing
 //-------------------------------------------------------------------------
 void _regBtFactory(BtFactory bt_factory)
 {
     mMapBtFactory[bt_factory.getName()] = bt_factory;
 }