mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-09 07:18:34 -04:00
Webclient: Start using placeholder text for mobile on-screen keyboard in a few places
Also bump copyright to 2021
This commit is contained in:
parent
3ff7bfe609
commit
a485f4c6af
@ -1,7 +1,7 @@
|
|||||||
#ifndef CC_ANIMATIONS_H
|
#ifndef CC_ANIMATIONS_H
|
||||||
#define CC_ANIMATIONS_H
|
#define CC_ANIMATIONS_H
|
||||||
/* Contains everything relating to texture animations (including default water/lava ones)
|
/* Contains everything relating to texture animations (including default water/lava ones)
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_AUDIO_H
|
#define CC_AUDIO_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Manages playing sound and music.
|
/* Manages playing sound and music.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
extern struct IGameComponent Audio_Component;
|
extern struct IGameComponent Audio_Component;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_AXISLINESRENDERER_H
|
#define CC_AXISLINESRENDERER_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Renders 3 lines showing direction of each axis.
|
/* Renders 3 lines showing direction of each axis.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_BITMAP_H
|
#define CC_BITMAP_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Represents a 2D array of pixels.
|
/* Represents a 2D array of pixels.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct Stream;
|
struct Stream;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "BlockID.h"
|
#include "BlockID.h"
|
||||||
/* Stores properties and data for blocks.
|
/* Stores properties and data for blocks.
|
||||||
Also performs automatic rotation of directional blocks.
|
Also performs automatic rotation of directional blocks.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
extern struct IGameComponent Blocks_Component;
|
extern struct IGameComponent Blocks_Component;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_BLOCKID_H
|
#define CC_BLOCKID_H
|
||||||
#include "Core.h" /* TODO: Remove this include when we move to external defines */
|
#include "Core.h" /* TODO: Remove this include when we move to external defines */
|
||||||
/* List of all core/standard block IDs
|
/* List of all core/standard block IDs
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum BLOCKID {
|
enum BLOCKID {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_BLOCKPHYSICS_H
|
#define CC_BLOCKPHYSICS_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Implements simple block physics.
|
/* Implements simple block physics.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
typedef void (*PhysicsHandler)(int index, BlockID block);
|
typedef void (*PhysicsHandler)(int index, BlockID block);
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ NormalMeshBuilder:
|
|||||||
Implements a simple chunk mesh builder, where each block face is a single colour.
|
Implements a simple chunk mesh builder, where each block face is a single colour.
|
||||||
(whatever lighting engine returns as light colour for given block face at given coordinates)
|
(whatever lighting engine returns as light colour for given block face at given coordinates)
|
||||||
|
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct ChunkInfo;
|
struct ChunkInfo;
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "Vectors.h"
|
#include "Vectors.h"
|
||||||
|
|
||||||
/* Represents a camera, may be first or third person.
|
/* Represents a camera, may be first or third person.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct RayTracer;
|
struct RayTracer;
|
||||||
struct Camera;
|
struct Camera;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_CHAT_H
|
#define CC_CHAT_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Manages sending, adding, logging and handling chat.
|
/* Manages sending, adding, logging and handling chat.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
struct StringsBuffer;
|
struct StringsBuffer;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef CC_CONSTANTS_H
|
#ifndef CC_CONSTANTS_H
|
||||||
#define CC_CONSTANTS_H
|
#define CC_CONSTANTS_H
|
||||||
/* Defines useful constants.
|
/* Defines useful constants.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define GAME_MAX_CMDARGS 5
|
#define GAME_MAX_CMDARGS 5
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef CC_CORE_H
|
#ifndef CC_CORE_H
|
||||||
#define CC_CORE_H
|
#define CC_CORE_H
|
||||||
/* Core fixed-size integer types, automatic platform detection, and common small structs.
|
/* Core fixed-size integer types, automatic platform detection, and common small structs.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if _MSC_VER
|
#if _MSC_VER
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
https://www.ietf.org/rfc/rfc1951.txt
|
https://www.ietf.org/rfc/rfc1951.txt
|
||||||
https://github.com/nothings/stb/blob/master/stb_image.h
|
https://github.com/nothings/stb/blob/master/stb_image.h
|
||||||
https://www.hanshq.net/zip.html
|
https://www.hanshq.net/zip.html
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct Stream;
|
struct Stream;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "PackedCol.h"
|
#include "PackedCol.h"
|
||||||
#include "Vectors.h"
|
#include "Vectors.h"
|
||||||
/* Draws the vertices for a cuboid region.
|
/* Draws the vertices for a cuboid region.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct VertexTextured;
|
struct VertexTextured;
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "Constants.h"
|
#include "Constants.h"
|
||||||
#include "Bitmap.h"
|
#include "Bitmap.h"
|
||||||
/* Performs a variety of drawing operations on bitmaps, and converts bitmaps into textures.
|
/* Performs a variety of drawing operations on bitmaps, and converts bitmaps into textures.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum FONT_FLAGS { FONT_FLAGS_NONE = 0x00, FONT_FLAGS_BOLD = 0x01, FONT_FLAGS_UNDERLINE = 0x02, FONT_FLAGS_PADDING = 0x04 };
|
enum FONT_FLAGS { FONT_FLAGS_NONE = 0x00, FONT_FLAGS_BOLD = 0x01, FONT_FLAGS_UNDERLINE = 0x02, FONT_FLAGS_PADDING = 0x04 };
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "PackedCol.h"
|
#include "PackedCol.h"
|
||||||
#include "String.h"
|
#include "String.h"
|
||||||
/* Represents an in-game entity.
|
/* Represents an in-game entity.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct Model;
|
struct Model;
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "Vectors.h"
|
#include "Vectors.h"
|
||||||
#include "Constants.h"
|
#include "Constants.h"
|
||||||
/* Various components for entities.
|
/* Various components for entities.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct Entity;
|
struct Entity;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_ENVRENDERER_H
|
#define CC_ENVRENDERER_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Renders environment of the map. (clouds, sky, fog, map sides/edges, skybox, rain/snow)
|
/* Renders environment of the map. (clouds, sky, fog, map sides/edges, skybox, rain/snow)
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
extern struct IGameComponent EnvRenderer_Component;
|
extern struct IGameComponent EnvRenderer_Component;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef CC_ERRORS_H
|
#ifndef CC_ERRORS_H
|
||||||
#define CC_ERRORS_H
|
#define CC_ERRORS_H
|
||||||
/* Represents list of internal errors.
|
/* Represents list of internal errors.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* NOTE: When changing these, remember to keep Logger.c up to date! */
|
/* NOTE: When changing these, remember to keep Logger.c up to date! */
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_EVENT_H
|
#define CC_EVENT_H
|
||||||
#include "Vectors.h"
|
#include "Vectors.h"
|
||||||
/* Helper methods for using events, and contains all events.
|
/* Helper methods for using events, and contains all events.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Max callbacks that can be registered for an event. */
|
/* Max callbacks that can be registered for an event. */
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Simple math functions and constants. Also implements a RNG algorithm, based on
|
/* Simple math functions and constants. Also implements a RNG algorithm, based on
|
||||||
Java's implementation from https://docs.oracle.com/javase/7/docs/api/java/util/Random.html
|
Java's implementation from https://docs.oracle.com/javase/7/docs/api/java/util/Random.html
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define MATH_PI 3.1415926535897931f
|
#define MATH_PI 3.1415926535897931f
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_MAPFORMATS_H
|
#define CC_MAPFORMATS_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Imports/exports a world and associated metadata from/to a particular map file format.
|
/* Imports/exports a world and associated metadata from/to a particular map file format.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct Stream;
|
struct Stream;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Simple function implementations
|
/* Simple function implementations
|
||||||
NOTE: doing min(x++, y) etc will increment x twice!
|
NOTE: doing min(x++, y) etc will increment x twice!
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_GAME_H
|
#define CC_GAME_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Represents the game and related structures.
|
/* Represents the game and related structures.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct Bitmap;
|
struct Bitmap;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
/* Implements flatgrass map generator, and original classic vanilla map generation (with perlin noise)
|
/* Implements flatgrass map generator, and original classic vanilla map generation (with perlin noise)
|
||||||
Based on: https://github.com/UnknownShadow200/ClassiCube/wiki/Minecraft-Classic-map-generation-algorithm
|
Based on: https://github.com/UnknownShadow200/ClassiCube/wiki/Minecraft-Classic-map-generation-algorithm
|
||||||
Thanks to Jerralish for originally reverse engineering classic's algorithm, then preparing a high level overview of the algorithm.
|
Thanks to Jerralish for originally reverse engineering classic's algorithm, then preparing a high level overview of the algorithm.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern volatile float Gen_CurrentProgress;
|
extern volatile float Gen_CurrentProgress;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "PackedCol.h"
|
#include "PackedCol.h"
|
||||||
|
|
||||||
/* Abstracts a 3D graphics rendering API.
|
/* Abstracts a 3D graphics rendering API.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct Bitmap;
|
struct Bitmap;
|
||||||
struct Stream;
|
struct Stream;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_GUI_H
|
#define CC_GUI_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Describes and manages 2D GUI elements on screen.
|
/* Describes and manages 2D GUI elements on screen.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
enum GuiAnchor {
|
enum GuiAnchor {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_HELDBLOCKRENDERER_H
|
#define CC_HELDBLOCKRENDERER_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Implements rendering of held block/arm at bottom right of game.
|
/* Implements rendering of held block/arm at bottom right of game.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
extern struct IGameComponent HeldBlockRenderer_Component;
|
extern struct IGameComponent HeldBlockRenderer_Component;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Aysnchronously performs http GET, HEAD, and POST requests.
|
/* Aysnchronously performs http GET, HEAD, and POST requests.
|
||||||
Typically this is used to download skins, texture packs, etc.
|
Typically this is used to download skins, texture packs, etc.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
struct ScheduledTask;
|
struct ScheduledTask;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Manages keyboard, mouse, and touch state.
|
/* Manages keyboard, mouse, and touch state.
|
||||||
Raises events when keys are pressed etc, and implements base handlers for them.
|
Raises events when keys are pressed etc, and implements base handlers for them.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
struct StringsBuffer;
|
struct StringsBuffer;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "BlockID.h"
|
#include "BlockID.h"
|
||||||
|
|
||||||
/* Manages inventory hotbar, and ordering of blocks in the inventory menu.
|
/* Manages inventory hotbar, and ordering of blocks in the inventory menu.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
extern struct IGameComponent Inventory_Component;
|
extern struct IGameComponent Inventory_Component;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_ISOMETRICDRAWER_H
|
#define CC_ISOMETRICDRAWER_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Draws 2D isometric blocks for the hotbar and inventory UIs.
|
/* Draws 2D isometric blocks for the hotbar and inventory UIs.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct VertexTextured;
|
struct VertexTextured;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_LSCREENS_H
|
#define CC_LSCREENS_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Implements screens/menus for the launcher.
|
/* Implements screens/menus for the launcher.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct LWidget;
|
struct LWidget;
|
||||||
struct LScreen;
|
struct LScreen;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_LWEB_H
|
#define CC_LWEB_H
|
||||||
#include "Http.h"
|
#include "Http.h"
|
||||||
/* Implements asynchronous web tasks for the launcher.
|
/* Implements asynchronous web tasks for the launcher.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct JsonContext;
|
struct JsonContext;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "Bitmap.h"
|
#include "Bitmap.h"
|
||||||
#include "Constants.h"
|
#include "Constants.h"
|
||||||
/* Describes and manages individual 2D GUI elements in the launcher.
|
/* Describes and manages individual 2D GUI elements in the launcher.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct LScreen;
|
struct LScreen;
|
||||||
struct FontDesc;
|
struct FontDesc;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_LAUNCHER_H
|
#define CC_LAUNCHER_H
|
||||||
#include "Bitmap.h"
|
#include "Bitmap.h"
|
||||||
/* Implements the launcher part of the game.
|
/* Implements the launcher part of the game.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct LScreen;
|
struct LScreen;
|
||||||
struct FontDesc;
|
struct FontDesc;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "PackedCol.h"
|
#include "PackedCol.h"
|
||||||
/* Manages lighting of blocks in the world.
|
/* Manages lighting of blocks in the world.
|
||||||
BasicLighting: Uses a simple heightmap, where each block is either in sun or shadow.
|
BasicLighting: Uses a simple heightmap, where each block is either in sun or shadow.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
extern struct IGameComponent Lighting_Component;
|
extern struct IGameComponent Lighting_Component;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_LOGGER_H
|
#define CC_LOGGER_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Support methods for logging errors.
|
/* Support methods for logging errors.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef cc_bool (*Logger_DescribeError)(cc_result res, cc_string* dst);
|
typedef cc_bool (*Logger_DescribeError)(cc_result res, cc_string* dst);
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
/* Renders the blocks of the world by subdividing it into chunks.
|
/* Renders the blocks of the world by subdividing it into chunks.
|
||||||
Also manages the process of building/deleting chunk meshes.
|
Also manages the process of building/deleting chunk meshes.
|
||||||
Also sorts chunks so nearest chunks are rendered first, and calculates chunk visibility.
|
Also sorts chunks so nearest chunks are rendered first, and calculates chunk visibility.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
extern struct IGameComponent MapRenderer_Component;
|
extern struct IGameComponent MapRenderer_Component;
|
||||||
|
@ -972,7 +972,9 @@ static void EditHotkeyScreen_Init(void* screen) {
|
|||||||
|
|
||||||
TextInputWidget_Create(&s->input, 500, &text, &desc);
|
TextInputWidget_Create(&s->input, 500, &text, &desc);
|
||||||
Menu_InitBack(&s->cancel, Menu_SwitchHotkeys);
|
Menu_InitBack(&s->cancel, Menu_SwitchHotkeys);
|
||||||
|
|
||||||
OpenKeyboardArgs_Init(&args, &text, KEYBOARD_TYPE_TEXT);
|
OpenKeyboardArgs_Init(&args, &text, KEYBOARD_TYPE_TEXT);
|
||||||
|
args.placeholder = "Hotkey text";
|
||||||
Window_OpenKeyboard(&args);
|
Window_OpenKeyboard(&args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1535,7 +1537,9 @@ static void SaveLevelScreen_Init(void* screen) {
|
|||||||
Menu_InitBack(&s->cancel, Menu_SwitchPause);
|
Menu_InitBack(&s->cancel, Menu_SwitchPause);
|
||||||
TextInputWidget_Create(&s->input, 500, &String_Empty, &desc);
|
TextInputWidget_Create(&s->input, 500, &String_Empty, &desc);
|
||||||
TextWidget_Init(&s->desc);
|
TextWidget_Init(&s->desc);
|
||||||
|
|
||||||
OpenKeyboardArgs_Init(&args, &String_Empty, KEYBOARD_TYPE_TEXT);
|
OpenKeyboardArgs_Init(&args, &String_Empty, KEYBOARD_TYPE_TEXT);
|
||||||
|
args.placeholder = "Map name";
|
||||||
Window_OpenKeyboard(&args);
|
Window_OpenKeyboard(&args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
|
|
||||||
/* Contains all 2D menu screen implementations.
|
/* Contains all 2D menu screen implementations.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct Screen;
|
struct Screen;
|
||||||
int Menu_PointerDown(void* screen, int id, int x, int y);
|
int Menu_PointerDown(void* screen, int id, int x, int y);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "Physics.h"
|
#include "Physics.h"
|
||||||
/* Contains various structs and methods for an entity model.
|
/* Contains various structs and methods for an entity model.
|
||||||
Also contains a list of models and default textures for those models.
|
Also contains a list of models and default textures for those models.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct Entity;
|
struct Entity;
|
||||||
struct AABB;
|
struct AABB;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_OPTIONS_H
|
#define CC_OPTIONS_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Manages loading and saving options.
|
/* Manages loading and saving options.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define OPT_USE_MUSIC "usemusic"
|
#define OPT_USE_MUSIC "usemusic"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_PACKEDCOL_H
|
#define CC_PACKEDCOL_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Manipulates a packed 32 bit RGBA colour, in a format suitable for the native 3D graphics API.
|
/* Manipulates a packed 32 bit RGBA colour, in a format suitable for the native 3D graphics API.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef cc_uint32 PackedCol;
|
typedef cc_uint32 PackedCol;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "Vectors.h"
|
#include "Vectors.h"
|
||||||
#include "PackedCol.h"
|
#include "PackedCol.h"
|
||||||
/* Represents particle effects, and manages rendering and spawning particles.
|
/* Represents particle effects, and manages rendering and spawning particles.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- An axis aligned bounding box, and various methods related to them.
|
- An axis aligned bounding box, and various methods related to them.
|
||||||
- Various methods for intersecting geometry.
|
- Various methods for intersecting geometry.
|
||||||
- Calculates all possible blocks that a moving entity can intersect with.
|
- Calculates all possible blocks that a moving entity can intersect with.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct Entity;
|
struct Entity;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_PICKEDPOSRENDERER_H
|
#define CC_PICKEDPOSRENDERER_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Renders an outline around the block the player is looking at.
|
/* Renders an outline around the block the player is looking at.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct RayTracer;
|
struct RayTracer;
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_PICKING_H
|
#define CC_PICKING_H
|
||||||
#include "Vectors.h"
|
#include "Vectors.h"
|
||||||
/* Data for picking/selecting block by the user, and clipping the camera.
|
/* Data for picking/selecting block by the user, and clipping the camera.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Implements a voxel ray tracer
|
/* Implements a voxel ray tracer
|
||||||
|
@ -918,8 +918,6 @@ cc_result Socket_Connect(cc_socket s, const cc_string* ip, int port) {
|
|||||||
Stream_SetU16_BE( (cc_uint8*)&addr.sa_data[0], port);
|
Stream_SetU16_BE( (cc_uint8*)&addr.sa_data[0], port);
|
||||||
Utils_ParseIP(ip, (cc_uint8*)&addr.sa_data[2]);
|
Utils_ParseIP(ip, (cc_uint8*)&addr.sa_data[2]);
|
||||||
|
|
||||||
WSAStringToAddress()
|
|
||||||
|
|
||||||
res = connect(s, &addr, sizeof(addr));
|
res = connect(s, &addr, sizeof(addr));
|
||||||
return res == -1 ? Socket__Error() : 0;
|
return res == -1 ? Socket__Error() : 0;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_PLATFORM_H
|
#define CC_PLATFORM_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Abstracts platform specific memory management, I/O, etc.
|
/* Abstracts platform specific memory management, I/O, etc.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct DateTime;
|
struct DateTime;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_PROTOCOL_H
|
#define CC_PROTOCOL_H
|
||||||
#include "Vectors.h"
|
#include "Vectors.h"
|
||||||
/* Implements network protocols for original classic, CPE, and WoM textures.
|
/* Implements network protocols for original classic, CPE, and WoM textures.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct RayTracer;
|
struct RayTracer;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_RESOURCES_H
|
#define CC_RESOURCES_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Implements checking, fetching, and patching the default game assets.
|
/* Implements checking, fetching, and patching the default game assets.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Number of resources that need to be downloaded. */
|
/* Number of resources that need to be downloaded. */
|
||||||
|
@ -1313,6 +1313,7 @@ void ChatScreen_OpenInput(const cc_string* text) {
|
|||||||
|
|
||||||
Gui_UpdateInputGrab();
|
Gui_UpdateInputGrab();
|
||||||
OpenKeyboardArgs_Init(&args, text, KEYBOARD_TYPE_TEXT);
|
OpenKeyboardArgs_Init(&args, text, KEYBOARD_TYPE_TEXT);
|
||||||
|
args.placeholder = "Enter chat";
|
||||||
Window_OpenKeyboard(&args);
|
Window_OpenKeyboard(&args);
|
||||||
|
|
||||||
String_Copy(&s->input.base.text, text);
|
String_Copy(&s->input.base.text, text);
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_SCREENS_H
|
#define CC_SCREENS_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Contains all 2D non-menu screen implementations.
|
/* Contains all 2D non-menu screen implementations.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct Screen;
|
struct Screen;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include "Vectors.h"
|
#include "Vectors.h"
|
||||||
#include "PackedCol.h"
|
#include "PackedCol.h"
|
||||||
/* Describes a selection box, and contains methods related to the selection box.
|
/* Describes a selection box, and contains methods related to the selection box.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
extern struct IGameComponent Selections_Component;
|
extern struct IGameComponent Selections_Component;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_SERVERCONNECTION_H
|
#define CC_SERVERCONNECTION_H
|
||||||
#include "Vectors.h"
|
#include "Vectors.h"
|
||||||
/* Represents a connection to either a multiplayer or an internal singleplayer server.
|
/* Represents a connection to either a multiplayer or an internal singleplayer server.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct IGameComponent;
|
struct IGameComponent;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
/* Defines an abstract way of reading and writing data in a streaming manner.
|
/* Defines an abstract way of reading and writing data in a streaming manner.
|
||||||
Also provides common helper methods for reading/writing data to/from streams.
|
Also provides common helper methods for reading/writing data to/from streams.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct Stream;
|
struct Stream;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
Also implements conversions betweens strings and numbers.
|
Also implements conversions betweens strings and numbers.
|
||||||
Also implements converting code page 437 indices to/from unicode.
|
Also implements converting code page 437 indices to/from unicode.
|
||||||
Also implements wrapping a single line of text into multiple lines.
|
Also implements wrapping a single line of text into multiple lines.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define STRING_INT_CHARS 24
|
#define STRING_INT_CHARS 24
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
- Extracting the textures from a .zip archive
|
- Extracting the textures from a .zip archive
|
||||||
- Caching terrain atlases and texture packs to avoid redundant downloads
|
- Caching terrain atlases and texture packs to avoid redundant downloads
|
||||||
- Terrain atlas (including breaking it down into multiple 1D atlases)
|
- Terrain atlas (including breaking it down into multiple 1D atlases)
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct Stream;
|
struct Stream;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_UTILS_H
|
#define CC_UTILS_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Implements various utility functions.
|
/* Implements various utility functions.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct Bitmap;
|
struct Bitmap;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "Constants.h"
|
#include "Constants.h"
|
||||||
/* Represents 2 and 3 component vectors, and 4 x 4 matrix.
|
/* Represents 2 and 3 component vectors, and 4 x 4 matrix.
|
||||||
Frustum culling sourced from http://www.crownandcutlass.com/features/technicaldetails/frustum.html
|
Frustum culling sourced from http://www.crownandcutlass.com/features/technicaldetails/frustum.html
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 2 component vector (2D vector) */
|
/* 2 component vector (2D vector) */
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_VORBIS_H
|
#define CC_VORBIS_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Decodes ogg vorbis audio
|
/* Decodes ogg vorbis audio
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct Stream;
|
struct Stream;
|
||||||
#define VORBIS_MAX_CHANS 8
|
#define VORBIS_MAX_CHANS 8
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "Constants.h"
|
#include "Constants.h"
|
||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
/* Contains all 2D widget implementations.
|
/* Contains all 2D widget implementations.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct FontDesc;
|
struct FontDesc;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#define CC_WINDOW_H
|
#define CC_WINDOW_H
|
||||||
#include "Core.h"
|
#include "Core.h"
|
||||||
/* Abstracts creating and managing the native window.
|
/* Abstracts creating and managing the native window.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3 | Based on OpenTK code
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3 | Based on OpenTK code
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#include "PackedCol.h"
|
#include "PackedCol.h"
|
||||||
/* Represents a fixed size 3D array of blocks.
|
/* Represents a fixed size 3D array of blocks.
|
||||||
Also contains associated environment metadata.
|
Also contains associated environment metadata.
|
||||||
Copyright 2014-2020 ClassiCube | Licensed under BSD-3
|
Copyright 2014-2021 ClassiCube | Licensed under BSD-3
|
||||||
*/
|
*/
|
||||||
struct AABB;
|
struct AABB;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user