aboutsummaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-23 17:37:47 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-23 19:33:55 +0200
commitb972ea72c09a81187ad2e4f55711da6f8e9fdaff (patch)
treeb1a3e9694c5bb71006ec62446454432df14ede94 /server/src
parent0e1c2a98f419026f4895051051023411091be051 (diff)
downloadhurrycurry-b972ea72c09a81187ad2e4f55711da6f8e9fdaff.tar
hurrycurry-b972ea72c09a81187ad2e4f55711da6f8e9fdaff.tar.bz2
hurrycurry-b972ea72c09a81187ad2e4f55711da6f8e9fdaff.tar.zst
[skip-notice] Insert license notice EVERYWHERE!!
Diffstat (limited to 'server/src')
-rw-r--r--server/src/bin/graph.rs17
-rw-r--r--server/src/customer/mod.rs17
-rw-r--r--server/src/customer/movement.rs17
-rw-r--r--server/src/customer/pathfinding.rs17
-rw-r--r--server/src/data.rs17
-rw-r--r--server/src/game.rs17
-rw-r--r--server/src/interaction.rs17
-rw-r--r--server/src/lib.rs17
-rw-r--r--server/src/main.rs17
-rw-r--r--server/src/protocol.rs17
10 files changed, 170 insertions, 0 deletions
diff --git a/server/src/bin/graph.rs b/server/src/bin/graph.rs
index c52b1400..aa65e91a 100644
--- a/server/src/bin/graph.rs
+++ b/server/src/bin/graph.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
use undercooked::{
interaction::Recipe,
load_gamedata,
diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs
index fd7dcc5c..16275227 100644
--- a/server/src/customer/mod.rs
+++ b/server/src/customer/mod.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
pub mod movement;
mod pathfinding;
diff --git a/server/src/customer/movement.rs b/server/src/customer/movement.rs
index c637a17f..b62149c9 100644
--- a/server/src/customer/movement.rs
+++ b/server/src/customer/movement.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
use crate::protocol::PacketS;
use glam::{IVec2, Vec2};
use std::collections::HashSet;
diff --git a/server/src/customer/pathfinding.rs b/server/src/customer/pathfinding.rs
index 26de9c51..5354407f 100644
--- a/server/src/customer/pathfinding.rs
+++ b/server/src/customer/pathfinding.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
use super::movement::MovementBase;
use crate::protocol::PacketS;
use glam::{IVec2, Vec2};
diff --git a/server/src/data.rs b/server/src/data.rs
index 5fa1a009..2d942de4 100644
--- a/server/src/data.rs
+++ b/server/src/data.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
use crate::{
interaction::Recipe,
protocol::{DemandIndex, ItemIndex, RecipeIndex, TileIndex},
diff --git a/server/src/game.rs b/server/src/game.rs
index c240ea13..d5ef1765 100644
--- a/server/src/game.rs
+++ b/server/src/game.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
use crate::{
customer::movement::PLAYER_SPEED_LIMIT,
data::Gamedata,
diff --git a/server/src/interaction.rs b/server/src/interaction.rs
index ef6d5bf7..126026d6 100644
--- a/server/src/interaction.rs
+++ b/server/src/interaction.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
use crate::{
data::Gamedata,
game::{Involvement, Item, Player, Tile},
diff --git a/server/src/lib.rs b/server/src/lib.rs
index 2f677d7c..ac0fbfa4 100644
--- a/server/src/lib.rs
+++ b/server/src/lib.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
use data::{build_gamedata, Gamedata};
use std::fs::File;
diff --git a/server/src/main.rs b/server/src/main.rs
index 5c718fb0..aeda9c2f 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
use anyhow::Result;
use futures_util::{SinkExt, StreamExt};
use log::{debug, info, warn};
diff --git a/server/src/protocol.rs b/server/src/protocol.rs
index fb24f7cf..8690febf 100644
--- a/server/src/protocol.rs
+++ b/server/src/protocol.rs
@@ -1,3 +1,20 @@
+/*
+ Undercooked - a game about cooking
+ Copyright 2024 metamuffin
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
use crate::data::Gamedata;
use glam::{IVec2, Vec2};
use serde::{Deserialize, Serialize};