예제 #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;
 }