示例#1
0
		void HandleMessage(SaveClientDataRequestMessage msg)
		{
			ClientSaveManager.Save(m_world, msg.ID);
		}
示例#2
0
		void HandleMessage(SaveClientDataRequestMessage msg)
		{
			string data = ClientSaveHelper.SerializeClientObjects(m_world);

			var reply = new Messages.SaveClientDataReplyMessage() { ID = msg.ID, Data = data };
			Send(reply);

			if (SaveEvent != null)
				SaveEvent();
		}