-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
422 additions
and
632 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 +1,3 @@ | ||
[workspace] | ||
members = ["discord","hertz","material","image-edit","binding"] | ||
members = ["discord","material","image-edit","binding"] | ||
resolver = "2" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
use serde::{Serialize, Deserialize}; | ||
use crate::bitwise::ItemCode; | ||
|
||
use super::{Category,BBQ}; | ||
|
||
|
||
|
||
#[derive(Serialize,Deserialize,Clone)] | ||
#[serde(rename_all="snake_case")] | ||
pub enum Trigger{ | ||
BountyStage {category:Category,bbq:BBQ}, | ||
BountyCoin {coin:i32}, | ||
Manual | ||
} | ||
|
||
#[derive(Serialize,Deserialize,Clone)] | ||
#[serde(rename_all="snake_case")] | ||
pub enum Progresion { | ||
GoldBounty, | ||
SilverBounty, | ||
BronzeBounty, | ||
GoldTrading, | ||
SilverTrading, | ||
BronzeTrading, | ||
} | ||
|
||
#[derive(Serialize,Deserialize,Clone)] | ||
pub struct TitleImage{ | ||
pub url:String, | ||
pub diameter:u32, | ||
pub x_start:u32, | ||
pub y_start:u32, | ||
} | ||
|
||
|
||
#[derive(Serialize,Deserialize,Clone)] | ||
#[serde(rename_all="snake_case")] | ||
pub enum TitleType{ | ||
Progresion {name:Progresion}, | ||
Free {name:String}, | ||
Reward {name:String , reward:Vec<ItemCode>} | ||
} | ||
|
||
#[derive(Serialize,Deserialize,Clone)] | ||
pub struct Title { | ||
#[serde(rename="type")] | ||
title_type:TitleType, | ||
image:TitleImage, | ||
trigger:Trigger, | ||
} |
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,11 @@ | ||
use std::time::SystemTime; | ||
|
||
pub struct MyTime; | ||
impl MyTime { | ||
pub fn now()-> i64{ | ||
i64::try_from(SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs()).unwrap() | ||
} | ||
pub fn elapsed(el:i64)-> i64{ | ||
MyTime::now() + el | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.