//------------------------------------------------------------------------- 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)); } }
//------------------------------------------------------------------------- void _regBtFactory(BtFactory bt_factory) { mMapBtFactory[bt_factory.getName()] = bt_factory; }