core: "optimizations"
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local BlockManager = {}
|
||||
|
||||
BlockManager.BlockIdMappings = {} :: {BasePart}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local Chunk = {}
|
||||
Chunk.__index = Chunk
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local ChunkBuilder = {}
|
||||
|
||||
local Chunk = require("./Chunk")
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local ChunkManager = {}
|
||||
|
||||
local RunService = game:GetService("RunService")
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local Globals = {}
|
||||
|
||||
Globals.RenderDistance = 6
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local ML = {}
|
||||
|
||||
type modContext = {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local PlacementManager = {}
|
||||
|
||||
local ChunkManager = require("./ChunkManager")
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
local module = {}
|
||||
|
||||
function module.isNaN(n: number): boolean
|
||||
-- NaN is never equal to itself
|
||||
return n ~= n
|
||||
end
|
||||
|
||||
function module.isInf(n: number): boolean
|
||||
-- Number could be -inf or +inf
|
||||
return math.abs(n) == math.huge
|
||||
end
|
||||
|
||||
function module.BlockPosStringToCoords(s: string): Vector3
|
||||
-- a,b,c
|
||||
local split = string.split(s,",")
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local TerrainGen = {}
|
||||
|
||||
local deflate = require("./TerrainGen/Deflate")
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
print("Hello world!")
|
||||
|
||||
task.synchronize()
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
if not game:IsLoaded() then
|
||||
game.Loaded:Wait()
|
||||
end
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
if not game:IsLoaded() then
|
||||
game.Loaded:Wait()
|
||||
end
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
if not game:IsLoaded() then
|
||||
game.Loaded:Wait()
|
||||
end
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
--!native
|
||||
--!optimize 2
|
||||
|
||||
local mod = {
|
||||
name = "Blockscraft",
|
||||
description = "Base Blockscraft blocks",
|
||||
|
||||
Reference in New Issue
Block a user