aboutsummaryrefslogtreecommitdiff
path: root/light-client/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-15 17:49:36 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-15 17:49:36 +0200
commita72a6d78a5b2d05fdf970477b83f737867b96806 (patch)
tree20279544cb05fa32a6221b1eda16f7853750cadf /light-client/src
parentb12bb151d39fab96624e96570af44985725e3bd2 (diff)
downloadhurrycurry-a72a6d78a5b2d05fdf970477b83f737867b96806.tar
hurrycurry-a72a6d78a5b2d05fdf970477b83f737867b96806.tar.bz2
hurrycurry-a72a6d78a5b2d05fdf970477b83f737867b96806.tar.zst
add notice to light-client
Diffstat (limited to 'light-client/src')
-rw-r--r--light-client/src/atlas.rs17
-rw-r--r--light-client/src/game.rs17
-rw-r--r--light-client/src/main.rs6
-rw-r--r--light-client/src/network.rs17
4 files changed, 54 insertions, 3 deletions
diff --git a/light-client/src/atlas.rs b/light-client/src/atlas.rs
index 94114176..b1d2c5e0 100644
--- a/light-client/src/atlas.rs
+++ b/light-client/src/atlas.rs
@@ -1,3 +1,20 @@
+/*
+ Hurry Curry! - 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 hurrycurry_protocol::{
glam::{IVec2, Vec2},
ClientGamedata, ItemIndex, TileIndex,
diff --git a/light-client/src/game.rs b/light-client/src/game.rs
index e432c517..c9b20e56 100644
--- a/light-client/src/game.rs
+++ b/light-client/src/game.rs
@@ -1,3 +1,20 @@
+/*
+ Hurry Curry! - 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::atlas::SpriteRenderer;
use hurrycurry_protocol::{glam::IVec2, PacketC, TileIndex};
use std::collections::HashMap;
diff --git a/light-client/src/main.rs b/light-client/src/main.rs
index 2145e9b6..fa1a38ba 100644
--- a/light-client/src/main.rs
+++ b/light-client/src/main.rs
@@ -1,6 +1,3 @@
-use atlas::SpriteRenderer;
-use game::Game;
-use hurrycurry_protocol::PacketC;
/*
Hurry Curry! - a game about cooking
Copyright 2024 metamuffin
@@ -18,6 +15,9 @@ use hurrycurry_protocol::PacketC;
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+use atlas::SpriteRenderer;
+use game::Game;
+use hurrycurry_protocol::PacketC;
use network::Network;
use sdl2::{event::Event, keyboard::Keycode, pixels::Color};
diff --git a/light-client/src/network.rs b/light-client/src/network.rs
index e3cd1eb5..f2c42518 100644
--- a/light-client/src/network.rs
+++ b/light-client/src/network.rs
@@ -1,3 +1,20 @@
+/*
+ Hurry Curry! - 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 hurrycurry_protocol::{PacketC, PacketS, BINCODE_CONFIG};
use log::warn;