Exemplo n.º 1
0
 public void SetModule(ILogicModule m)
 {
     if (m == null)
     {
         throw new ArgumentNullException("ILogicModule");
     }
     module = (TradeAge.Server.Interface.ServerLogic.IScene)m;
     if (module == null)
     {
         throw new NullReferenceException(string.Format("{0} not TradeAge.Server.Interface.ServerLogic.IScene", m.GetType().FullName));
     }
 }
 public void SetModule(ILogicModule m)
 {
     if (m == null)
         throw new ArgumentNullException("ILogicModule");
     module = (TradeAge.Server.Interface.ServerLogic.IScene)m;
     if (module == null)
     {
         throw new NullReferenceException(string.Format("{0} not TradeAge.Server.Interface.ServerLogic.IScene", m.GetType().FullName));
     }
 }