Add MIT license notice at the top of source files.

This commit is contained in:
KikooDX 2021-01-29 12:32:38 +01:00
parent bd5943afe8
commit 6cd12f6333
6 changed files with 27 additions and 2 deletions

View File

@ -23,7 +23,7 @@ $ zig build run
Press escape to close the program.
# License
Copyright (C) 2021 KikooDX
Copyright (c) 2021 KikooDX
This project is under the MIT license.
See LICENSE for more details.

View File

@ -1,3 +1,8 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 KikooDX
// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is
// MIT licensed. The MIT license requires this copyright notice to be
// included in all copies and substantial portions of the software.
//! Level structure, grid containing tile data.
const ray = @cImport({
@cInclude("raylib.h");

View File

@ -1,3 +1,8 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 KikooDX
// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is
// MIT licensed. The MIT license requires this copyright notice to be
// included in all copies and substantial portions of the software.
const ray = @cImport({
@cInclude("raylib.h");
});
@ -74,7 +79,7 @@ pub fn main() !void {
var selection_update: movement.SelectionUpdate = undefined;
// Zoom. TODO: move to functions.
// TODO: move to functions.
switch (action) {
// Movement.
'h' => selection_update = movement.move_left(&cursor, 1, true),

View File

@ -1,3 +1,8 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 KikooDX
// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is
// MIT licensed. The MIT license requires this copyright notice to be
// included in all copies and substantial portions of the software.
//! Movement functions.
const std = @import("std");
const expect = std.testing.expect;

View File

@ -1,3 +1,8 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 KikooDX
// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is
// MIT licensed. The MIT license requires this copyright notice to be
// included in all copies and substantial portions of the software.
const std = @import("std");
const expect = std.testing.expect;

View File

@ -1,3 +1,8 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 KikooDX
// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is
// MIT licensed. The MIT license requires this copyright notice to be
// included in all copies and substantial portions of the software.
//! This module provides functions for creating and manipulating 2D
//! vectors with integer precision.
const expect = @import("std").testing.expect;