mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:29:50 +00:00
Use std::function instead of inhereting from CNetFileReceiveTask
The user doesn't have to fiddle with `std::shared_ptr`. And two (more unrelated) things: use `std::unordered_map`, use a `std::find_if` in the callback. Comments By: @vladislavbelov, @Stan Differential Revision: https://code.wildfiregames.com/D5239 This was SVN commit r28048.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2022 Wildfire Games.
|
||||
/* Copyright (C) 2024 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -60,8 +60,6 @@ class CNetClient : public CFsm
|
||||
{
|
||||
NONCOPYABLE(CNetClient);
|
||||
|
||||
friend class CNetFileReceiveTask_ClientRejoin;
|
||||
|
||||
public:
|
||||
/**
|
||||
* Construct a client associated with the given game object.
|
||||
|
||||
Reference in New Issue
Block a user