Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amydevs/ygopro_core_rs
https://github.com/amydevs/ygopro_core_rs
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/amydevs/ygopro_core_rs
- Owner: amydevs
- License: other
- Created: 2023-05-30T13:59:41.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-11T22:47:45.000Z (12 months ago)
- Last Synced: 2024-01-13T00:31:52.779Z (12 months ago)
- Language: Rust
- Size: 111 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# ygopro_core_rs
This crate provides safe Rust bindings to [EDOPro's ygopro-core fork](https://github.com/edo9300/ygopro-core).
# Usage
This crate is not yet published, so please specify it as a git repository in `cargo.toml`.
```toml
[dependencies]
ygopro_core_rs = { git = "https://github.com/amydevs/ygopro_core_rs.git" }
```# License
This crate, and the underlying EDOPro ygopro-core fork are both licensed under AGPL-3. The Lua library that this library uses is licensed under MIT.
# Examples
```rust
use ygopro_core_rs::DuelBuilder;fn main() {
let duel_builder = DuelBuilder::default();
let duel = duel_builder.build();
duel.start();
duel.process();
println!("{:?}", duel.get_message());
}
```See [EDOPro](https://github.com/ProjectIgnis/EDOPro) itself for more of an idea on how the library is used.
Or the tests found in [`./src/duel.rs`](./src/duel.rs).
# What About the Query/Message Buffers?
The de/serialization of those buffers are outside of the scope of default features of this crate. This is to be done at a later date, either as an optional feature or a separate create, depending on how suitable the data structures are for the Bevy Rust EDOPro client I'll eventually make. For now, common message constants can be found under `ygopro_core_rs::common`.