Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
vector.hpp File Reference

The file handling vector logic. More...

#include <cstdint>
#include <type_traits>
#include <plugins/luaheaders.h>

Go to the source code of this file.

Classes

class  Vec< T >
 Vector 3 (x, y, z) with variable type. More...
 

Typedefs

typedef Vec< floatVecf
 Vector 3 Float.
 
typedef Vec< std::int32_tVeci32
 Vector 3 Int.
 

Functions

static void loadVectorLua (lua_State *state, const char *namespaceName)
 Loads Vector to lua state.
 

Detailed Description

The file handling vector logic.

Author
Lygaen
Version
0.1
Date
2023-12-30

Typedef Documentation

◆ Vecf

Vector 3 Float.

All coordinates are represented as floats.

◆ Veci32

Vector 3 Int.

All coordinates are represented as a 32-byte integer.

Function Documentation

◆ loadVectorLua()

static void loadVectorLua ( lua_State * state,
const char * namespaceName )
static

Loads Vector to lua state.

Parameters
statelua state
namespaceNamebase namespace name
Todo
add operators