Beispiel #1
0
 public ChatWnd(CCBGameData gameData, CCBStoreManager storeData)
 {
     m_gameData           = gameData;
     m_storeData          = storeData;
     m_charactersReceived = new CCBCharacterList();
     m_errorList          = new List <string>();
     m_exit                    = false;
     m_connected               = false;
     m_wasConnected            = false;
     m_showConnectedCallback   = new DShowOnConnected(ShowOnConnected);
     m_fileReceivedCB          = new CCBFileReceived.DFileRecivedPrompt(PromptForFileReceived);
     m_showUserConnectCallback = new DShowUserConnect(ShowUserConnect);
     m_showMessageCallback     = new DShowMessage(ShowMessage);
     m_showLastErrorCallback   = new DShowLastError(ShowLastError);
     m_addFileLinkCallback     = new DAddFileLink(AddFileLinkCallback);
     m_addObjectLinkCallback   = new DAddObjectLink(AddObjectLinkCallback);
     m_p2p = new CCBP2PNetworker();
     m_p2p.AddListener(this);
     m_p2p.OnFileTransferDoneCallback = new DOnFileTransferDone(OnFileTransferDone);
     InitializeComponent();
     SetHostNameTo(tbUserId);
     CeebeetleWindowInit();
     InitChatWindow();
     Validate();
     EnableUI(false);
 }
Beispiel #2
0
 public CCBGame(string name)
 {
     m_name                 = name;
     m_characters           = new CCBCharacterList();
     m_groupItems           = new CCBBag(m_kGroupItemLabel);
     m_groupBags            = new CCBBags();
     m_propertyTemplateList = new CharacterPropertyTemplateList();
 }
Beispiel #3
0
 public CCBGame(string name, CCBGameTemplate templateFrom)
 {
     m_name                 = name;
     m_characters           = new CCBCharacterList();
     m_groupItems           = new CCBBag(m_kGroupItemLabel);
     m_groupBags            = new CCBBags();
     m_propertyTemplateList = new CharacterPropertyTemplateList();
     foreach (CCBCharacterPropertyTemplate templateProperty in templateFrom.PropertyTemplateList)
     {
         m_propertyTemplateList.Add(new CCBCharacterPropertyTemplate(templateProperty));
     }
     foreach (CCBBag bag in templateFrom.Bags)
     {
         m_groupBags.Add(new CCBBag(bag));
     }
 }