Exemplo n.º 1
0
 public void GetRecieverItems(String mappingItemsFileName, ref List<IReciever> Recievers)
 {
     int number=int.Parse( loadMappingItemsFromIni(mappingItemsFileName, "items","number"));
     for(int i=0;i<number;i++)
     {
         string name= loadMappingItemsFromIni(mappingItemsFileName, "item"+(i+1).ToString(),"name");
         string script= loadMappingItemsFromIni(mappingItemsFileName, "item"+(i+1).ToString(),"script");
         IReciever reciever=new Reciever();
         reciever.Name=name;
         reciever.Script=script;
         Recievers.Add(reciever);
     }
 }
Exemplo n.º 2
0
        public void GetRecieverItems(String mappingItemsFileName, ref List <IReciever> Recievers)
        {
            int number = int.Parse(loadMappingItemsFromIni(mappingItemsFileName, "items", "number"));

            for (int i = 0; i < number; i++)
            {
                string    name     = loadMappingItemsFromIni(mappingItemsFileName, "item" + (i + 1).ToString(), "name");
                string    script   = loadMappingItemsFromIni(mappingItemsFileName, "item" + (i + 1).ToString(), "script");
                IReciever reciever = new Reciever();
                reciever.Name   = name;
                reciever.Script = script;
                Recievers.Add(reciever);
            }
        }
Exemplo n.º 3
0
 public ConcreateCommand(Action aAction, Message aMesage)
 {
     iRecoever = new Reciever();
     iAction   = aAction;
     iMessage  = aMesage;
 }