-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deployed 00f3b63 to latest with MkDocs 1.6.1 and mike 2.1.3
- Loading branch information
1 parent
416b356
commit b09f0b7
Showing
34 changed files
with
10,099 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1b1b6060c0f0d98b99770e1fb12c4661e83f65a9 | ||
043f75b99a75015193323d9be1ff4af2ced40dd4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
latest/assets/.doxy/reference/cpp/reference/cpp/ban__list_8h.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
|
||
|
||
# File ban\_list.h | ||
|
||
|
||
|
||
[**FileList**](files.md) **>** [**ban**](dir_f1b1f2e9abb31749ef58cd98f22bcd78.md) **>** [**ban\_list.h**](ban__list_8h.md) | ||
|
||
[Go to the source code of this file](ban__list_8h_source.md) | ||
|
||
|
||
|
||
* `#include <vector>` | ||
* `#include <string>` | ||
* `#include <optional>` | ||
* `#include <chrono>` | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
## Namespaces | ||
|
||
| Type | Name | | ||
| ---: | :--- | | ||
| namespace | [**endstone**](namespaceendstone.md) <br> | | ||
|
||
|
||
## Classes | ||
|
||
| Type | Name | | ||
| ---: | :--- | | ||
| class | [**BanList**](classendstone_1_1BanList.md) <typename T><br>_A class that represents a ban list, containing bans of some target type._ | | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
------------------------------ | ||
The documentation for this class was generated from the following file `include/endstone/ban/ban_list.h` | ||
|
62 changes: 62 additions & 0 deletions
62
latest/assets/.doxy/reference/cpp/reference/cpp/ban__list_8h_source.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
|
||
# File ban\_list.h | ||
|
||
[**File List**](files.md) **>** [**ban**](dir_f1b1f2e9abb31749ef58cd98f22bcd78.md) **>** [**ban\_list.h**](ban__list_8h.md) | ||
|
||
[Go to the documentation of this file](ban__list_8h.md) | ||
|
||
|
||
```C++ | ||
// Copyright (c) 2024, The Endstone Project. (https://endstone.dev) All Rights Reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#pragma once | ||
|
||
#include <vector> | ||
#include <string> | ||
#include <optional> | ||
#include <chrono> | ||
|
||
namespace endstone { | ||
|
||
template <typename T> | ||
class BanList { | ||
public: | ||
virtual ~BanList() = default; | ||
|
||
virtual BanEntry<T>* getBanEntry(T target) const = 0; | ||
|
||
virtual BanEntry<T>& addBan(T target, | ||
std::optional<std::string> reason, | ||
std::optional<std::chrono::system_clock::time_point> expires, | ||
std::optional<std::string> source) = 0; | ||
|
||
virtual BanEntry<T>& addBan(T target, | ||
std::optional<std::string> reason, | ||
std::optional<std::chrono::seconds> duration, | ||
std::optional<std::string> source) = 0; | ||
|
||
virtual std::vector<BanEntry<T>*> getEntries() const = 0; | ||
|
||
virtual bool isBanned(T target) const = 0; | ||
|
||
virtual void removeBan(T target) = 0; | ||
}; | ||
|
||
} // namespace endstone | ||
|
||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.