content stringlengths 5 1.05M |
|---|
require "base"
local func_next_CButton_test_scene = nil;
local func_back_CButton_test_scene = nil;
local func_ref_CButton_test_scene = nil;
-- createCButtonBasicTest
-- =====================================================
-- =====================================================
-- ===================================... |
function layout_default(player, direction, drill_type, belt_type, pole_type, resource_type, area)
game.print (drill_type .. " default")
local right = 3
local top = 1
local bottom = 5
local left = 7
local metaRep = player.force.recipes["mp-meta"]
local pole_spacing = 1
local belt_dir="... |
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
configs.haxe_language_server = {
default_config = {
cmd = {"haxe-language-server"};
filetypes = {"haxe"};
root_dir = util.root_pattern("*.hxml");
settings = {
haxe = {
executable = "haxe";
};
};
... |
--- === Spotify ===
---
--- Extra Spotify-related functions not in hs.spotify
local module = {
name = "Spotify",
version = "0.1.0",
author = "Alex Ashley",
license = "MIT - https://opensource.org/licenses/MIT",
homepage = "https://github.com/alexashley/spoons"
}
--- Spotify.init()
--- Function
--- ... |
local module = {}
module.ext = "csv"
local function ParseCSVLine (line,sep)
local res = {}
local pos = 1
sep = sep or ';'
while true do
local c = string.sub(line,pos,pos)
if (c == "") then break end
if (c == '"') then
-- quoted value (ignore separator within)
local txt = ""
repeat... |
local i18n = require("core.i18n")
i18n.add_data_text(
"core.skill",
{
stat_life = {
name = "Life",
},
stat_mana = {
name = "Mana",
},
stat_strength = {
name = "Strength",
},
stat_constitution = {
name = "Constitution",
},
s... |
local protocol = require'vim.lsp.protocol'
-- Generic on_attach callback
local on_attach = function(client, bufnr)
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
-- Commands
vim.cmd("command! LspDeclaration lua vim.lsp.buf.de... |
local mod = get_mod("DeamonTide Scoreboard")
-- Global imports
local pl = require'pl.import_into'()
local tablex = require'pl.tablex'
-- UI Strings
mod:hook("Localize", function (func, id, ...)
-- If from this mod, use this mod's localisations file
if string.find(id, "deamontide_") then
return mod:localize(id)
e... |
--------------------------------
-- @module EaseQuadraticActionOut
-- @extend ActionEase
-- @parent_module cc
--------------------------------
-- @function [parent=#EaseQuadraticActionOut] create
-- @param self
-- @param #cc.ActionInterval actioninterval
-- @return EaseQuadraticActionOut#EaseQuadraticActionOut ret (... |
--
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local ffi ... |
-- Copyright 2016 Google Inc, NYU.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agree... |
-- Natural Selection 2 'Classic Entities Mod'
-- Adds some additional entities inspired by Half-Life 1 and the Extra Entities Mod by JimWest - https://github.com/JimWest/ExtraEntitesMod
-- Designed to work with maps developed for Extra Entities Mod.
-- Source located at - https://github.com/xToken/ClassicEnts
-- lua\... |
--[[
EPGP Lootmaster module - UI Stuff
]]--
local mod = EPGP:NewModule("lootmaster_ui")
local lootmaster = EPGP:GetModule("lootmaster")
local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local GS = LibStub("LibGuildStorage-1.0")
local gptooltip = EPGP:GetModule("gptooltip")
local lootmaster = EPGP:GetModule("lootm... |
--[[
Based on a plugin by topkecleon. Licensed under GNU AGPLv3
https://github.com/topkecleon/otouto/blob/master/LICENSE.
Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com>
This code is licensed under the MIT. See LICENSE for details.
]]
local reddit = {}
local mattata = require('mattata')
loc... |
------------------------------------------- Define legend object
local legend={}
function legend.new(self)
local obj=gfx.newObject(self)
obj.className='legend';
obj.draw=legend.draw;
obj.redraw=legend.redraw;
obj:setg('position',2); -- default position 'top-left'
return obj;
end
function legend.draw(self)
l... |
function Oldman_onJoin(mob, player)
local info = player:getNickname()..GetS(8025);
ClientCurGame:sendChat(info, 1);
end |
local mod = RegisterMod("DottinDips", 1)
local game = Game()
local DipVariant = {
DOT = Isaac.GetEntityVariantByName("Dot")
}
local DOT_CHANCE = 25
local Dots = {}
function hsb2rgb(hue, saturation, brightness, alpha)
while hue > 1 do
hue = hue -1
end
if (saturation <= 0) then
return Color(brightness, brightn... |
local Anticipate = {}
Anticipate.new = function(duration, tension)
return setmetatable(
{
duration = duration or 30,
tension = tension or 2
},
{
__index = function(self, frame)
if frame > self.duration then
return 1
end
... |
local v = vim.v
local fn = vim.fn
local goerr = {}
function _G.GoErrFoldTxt(bufnr)
local lines = fn.getbufline(bufnr, v.foldstart, v.foldend-1)
if string.find(lines[1], "^%s*if err != nil {") == nil then
return vim.api.nvim_eval('foldtext()')
end
local result = ""
for i, l in ipairs(line... |
-- Forecast: The weather effect that will be applied at the end of a turn, which causes fires to spread.
-- DO NOT MODIFY THIS FILE
-- Never try to directly create an instance of this class, or modify its member variables.
-- Instead, you should only be reading its variables and calling its functions.
local class = r... |
Commands["gitpull"] = {
["DISCORD_IDS"] = { "228659194771800065" },
["FUNCTION"] = function(params, author)
io.popen("start GITPULL.bat")
sendToDiscord("GIT", "Server data updated", 12018150)
end,
}
Commands["restart"] = {
["DISCORD_IDS"] = { "228659194771800065" },
["FUNCTION"] = f... |
local config = {}
function config.init()
require('nvim-autopairs').setup {fast_wrap = {}}
-- If you want insert `(` after select function or method item
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local cmp = require('cmp')
cmp.event:on('confirm_done',
cmp_autop... |
--
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 05.02.2015
-- Time: 13:38
-- To change this template use File | Settings | File Templates.
--
cLobbybrowserGUI = {};
--[[
]]
-- ///////////////////////////////
-- ///// New //////
-- ///// Returns: Object //////
-- ///////////////////////////////
funct... |
local Prop = {}
Prop.Name = "Tow Impound"
Prop.Cat = "Warehouse"
Prop.Price = 800
Prop.Doors = {
Vector( 7508.5, 12830, 136 ),
Vector( 7387, 13138, 126.25 ),
Vector( 7123, 13100, 126.25 ),
Vector( 7022.5, 13140, 150 ),
}
GM.Property:Register( Prop ) |
local function getRegisteredNode(registry_name)
return minetest.registered_nodes[registry_name]
end
local BaseBlock = createClass("BaseBlock")
FactoryRebornCore.Core.World.Block.BaseBlock = BaseBlock
---Create a new block class
---@param registry_name string (modname as prefix will generated automaticaly! That's ... |
--[[
This file is part of Decursive.
Decursive (v 2.7.5.7) add-on for World of Warcraft UI
Copyright (C) 2006-2014 John Wellesz (archarodim AT teaser.fr) ( http://www.2072productions.com/to/decursive.php )
Starting from 2009-10-31 and until said otherwise by its author, Decursive
is no ... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
CVX_LIMITED_BLOCKS = true
CVX_DISABLE_LINE = true
DUMMYLOCALLIGHT = {
color = Vector(0, 0, 0),
pos = Vector(0, 0, 0),
quadraticFalloff = 1,
linearFalloff = 0,
constantFalloff = 0,
}
func... |
local serialize = require "serialize"
local gui = require "gui"
local game = {}
function game.new(address)
local host = require("enet").host_create()
local server = host:connect(address)
return setmetatable({
font = require("font").new("assets/font.png", 80, 45),
host = host,
server = server,
factory = requ... |
--[[
CREATOR: estlogic
VERSION: 1.0
Voxel Mk1 SUV Pack
HOW TO USE:
Controls:
W - Move Forward
A - Turn Left (when moving forward/backward)
S - Move Backward
D - Turn Right (when moving forward/backward)
F - Enter/Exit
Q - Left Turn Signal (turn left or press again to turn off)
E - Right ... |
local CorePackages = game:GetService("CorePackages")
local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies)
local Roact = InGameMenuDependencies.Roact
local KeyboardControls = require(script.Parent.KeyboardControls)
local function TouchControls(props)
return Roact.createElement(KeyboardControls... |
function onGameLoad(gameId)
loadTerrain(gameId);
loadSkyBox("Examples/MorningSkyBox");
setBlastImpactTextureId(4);
end
function onGameUnload(gameId)
unloadSkyBox("Examples/MorningSkyBox");
unloadTerrain();
end
|
local key = ModPath .. ' ' .. RequiredScript
if _G[key] then return else _G[key] = true end
local fs_original_crimespreemanager_onmissionstarted = CrimeSpreeManager.on_mission_started
function CrimeSpreeManager:on_mission_started(...)
fs_original_crimespreemanager_onmissionstarted(self, ...)
if Network:is_server() ... |
---
-- @module ThrowingAttack
--
-- ------------------------------------------------
-- Required Modules
-- ------------------------------------------------
local Action = require( 'src.characters.actions.Action' )
local ThrownProjectileQueue = require( 'src.items.weapons.ThrownProjectileQueue' )
-- ----------------... |
dofile(factory.modpath.."/util/craftingutil.lua")
dofile(factory.modpath.."/util/gui.lua")
dofile(factory.modpath.."/util/nodes.lua")
dofile(factory.modpath.."/util/gen.lua") |
return {
[1] = {id=1, pai = {cardId = 1, num = 8,}, },
[2] = {id=2, pai = {cardId = 2, num = 9,}, },
[3] = {id=3, pai = {cardId = 3, num = 10,}, },
[4] = {id=4, pai = {cardId = 4, num = 11,}, },
}
|
m = Map("pppoe-server", translate("PPPoE Server"))
m.description = translate(
"The PPPoE server is a broadband access authentication server that prevents ARP spoofing.")
s = m:section(TypedSection, "user", translate("Users Manager"))
s.addremove = true
s.anonymous = true
s.template = "cbi/tblsection... |
--[[
Swaggy Jenkins
Jenkins API clients generated from Swagger / Open API specification
The version of the OpenAPI document: 1.1.2-pre.0
Contact: blah@cliffano.com
Generated by: https://openapi-generator.tech
]]
--[[
Unit tests for openapiclient.api.blue_ocean_api
Automatically generated by openapi-generat... |
class "BasicFile"
function BasicFile:__getvar(name)
if name == "file" then
local retVal = Polycode.BasicFile_get_file(self.__ptr)
if retVal == nil then return nil end
local __c = _G["FILE"]("__skip_ptr__")
__c.__ptr = retVal
return __c
end
end
function BasicFile:__setvar(name,value)
if name == "file" th... |
addEvent("AURsmiler.request", true)
addEventHandler("AURsmiler.request", root,
function()
if (getPedOccupiedVehicle(localPlayer)) then
local veh = getPedOccupiedVehicle(localPlayer)
for k in pairs(getVehicleComponents(veh)) do
if (k == "bump_front_dummy") or (k == "wheel_front") then
local x, y, z = ... |
-- this provides various lua-based utility and state related to key binding
INPUTBINDING = {
-- these values are indexed at 0, not 1
maxColumn = 4, -- the 5th column
maxPlayer = 1, -- the right player/controller
defaultColumn = 2, -- the column which is usually the default internally (in key config thi... |
-- Copyright (C) by Jianhao Dai (Toruneko)
local http = require "resty.http"
local setmetatable = setmetatable
local _M = { _VERSION = '0.0.1' }
local mt = { __index = _M }
function _M.new(url, username, password, db)
return setmetatable({
url = url,
username = username,
password = passwo... |
-- Global variables
Styles = {
joinQuit = {'#00BB00', '#EEEEEE'},
help = {'#FF6464', '#EEEEEE'},
pm = '#FF6060',
red = {'#FF0000', '#EEEEEE'},
green = {'#00FF00', '#EEEEEE'},
yellow = {'#FFFF00', '#EEEEEE'},
}
-- Custom events
addEvent('main.onAccountChange', true)
-- Functions
local function onAc... |
-----------------------------------
-- Area: Port Jeuno
-- NPC: Tsolag
-- Type: NPC
-- !pos -13 8 53 246
-----------------------------------
require("scripts/globals/settings")
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
end
function onEventUpdate(pla... |
local ok, alpha = pcall(require, "alpha")
if ok then
local dashboard = require "alpha.themes.dashboard"
local function button(sc, txt, keybind, keybind_opts)
local b = dashboard.button(sc, txt, keybind, keybind_opts)
b.opts.hl = "DashboardShortCut"
b.opts.hl_shortcut = "DashboardHeader... |
local Application = dofile(_G.spoonPath.."/application.lua")
local actions = {
newWindow = Application.createMenuItemEvent("New Window", { focusAfter = true }),
newTab = Application.createMenuItemEvent("New Tab", { focusAfter = true }),
search = Application.createMenuItemEvent("Search For a New Word...", { ... |
local filters = require "util.filters";
local st = require "util.stanza";
module:depends("csi");
local function presence_filter(stanza, session)
if getmetatable(stanza) ~= st.stanza_mt then
return stanza; -- Things we don't want to touch
end
if stanza._flush then
stanza._flush = nil;
return stanza;
end
loc... |
--[[By: @V3N0M_Z]]
local inheritance = require(script.Parent.Node)
local node = {}
node.__index = node
setmetatable(node, inheritance)
function node.new(plugin, pluginDisplay, id)
local self = setmetatable(inheritance.new("ChoiceNode", plugin, pluginDisplay, id), node)
self._settings = {
title = function(txt) se... |
local fSleepTime = THEME:GetMetric( Var "LoadingScreen","ScreenOutDelay");
return Def.ActorFrame {
Def.Quad {
InitCommand=cmd(Center;zoomto,SCREEN_WIDTH+1,SCREEN_HEIGHT);
OnCommand=cmd(diffuse,color("0,0,0,0");sleep,fSleepTime;linear,0.01;diffusealpha,1);
};
}; |
object_mobile_dressed_trader_thug_male_twk_02 = object_mobile_shared_dressed_trader_thug_male_twk_02:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_trader_thug_male_twk_02, "object/mobile/dressed_trader_thug_male_twk_02.iff")
|
local color = require("Color")
local filesystem = require("Filesystem")
--------------------------------------------------------------------------------
local image = {}
local OCIFSignature = "OCIF"
local encodingMethodsLoad = {}
local encodingMethodsSave = {}
------------------------------------------------------... |
local screenX, screenY = guiGetScreenSize()
local wndWidth, wndHeight = 340, 365
local wndX, wndY = screenX - (wndWidth + 10), screenY / 2 - wndHeight / 2
local ui = {windows = {}, buttons = {}, labels = {}, editboxes = {}, scrollbars = {}}
local preview = {
state = false,
object = nil
}
-- Local fu... |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("ActionBar")
local AB = _ActionBar
local hider = CreateFrame("Frame", "RayUIActionBarHider", R.UIParent, "SecureHandlerStateTemplate")
hider:SetFrameStrata("LO... |
if not modules then modules = { } end modules ['x-ldx'] = {
version = 1.001,
comment = "companion to x-ldx.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- --[[ldx--
-- <topic>Introd... |
local M = {}
M.config = function()
-- Disable virtual text
lvim.lsp.diagnostics.virtual_text = false
-- Disable automatic installation of server
lvim.lsp.automatic_servers_installation = false
end
return M
|
-- Created by cpdef/juli
-- Part of rc_enhanced
-- Mod: rc copier
local OK_MSG = "OK"
local NO_SPACE_MSG = "NOSPACE"
local NO_PAPER_MSG = "NOPAPER"
local BUSY_MSG = "BUSY"
local PRINT_DELAY = 3
local SPLIT_CHAR = ";"
local DEFAULT_SIGNUM = "THE COPIER"
local RC_RADIUS = 3
-- taken from pipeworks mo... |
--
-- Created by David Lannan
-- User: grover
-- Date: 24/03/13
-- Time: 7:36 PM
-- Copyright 2013 Developed for use with the byt3d engine.
--
------------------------------------------------------------------------------------------------------------
local ffi = require("ffi")
require("framework/byt3dNode")
requir... |
NewBreedTweaks = NewBreedTweaks or {} --table.clone(BreedTweaks)
NewBreedTweaks.bloodlust_health = {
beastmen_horde = 1.5,
chaos_roamer = 3,
skaven_special = 8,
chaos_warrior = 20,
skaven_elite = 8,
beastmen_roamer = 3,
chaos_elite = 10,
beastmen_elite = 15,
skaven_horde = 1,
chaos_... |
local b = require("buftabline.buffers")
local t = require("buftabline.tabpages")
local o = require("buftabline.options")
local h = require("buftabline.highlights")
local M = {}
local bufcmd = function(cmd, n)
vim.cmd(string.format("%s %d", cmd, n))
end
M.bufcmd = bufcmd
local buftarget = function(n, cmd)
if ... |
------------------------------
-- Sample Library : Second
------------------------------
-- This is a local function we'll export
local function baz ()
return 'baz'
end
-- Returns the baz function
return baz |
local utils = {}
function utils.say_it()
print("Yopta!")
end
return utils
|
-- This comment will be a block without a name and a warning will be thrown.
local varName = true
/* This comment will not be considered a block. */
local varName = true
-- This comment will not be considered a block. @ignore
-- The ignore tag can go anywhere in the text. Even in the middle.
local varName = true
--... |
local gouv = {x=112.00,y=-749.50,z=45.75}
local coord1 = {x=136.169,y=-761.737,z=45.400}
local coord2 = {x=136.169,y=-761.737,z=241.800}
local accountMoney = {x=148.21,y=-763.302,z=242.150}
local playerJob = ""
local playerGrade = ""
RegisterNetEvent('esx:playerLoaded')
AddEventHandler('esx:playerLoaded', ... |
readInt()
readString()
readString()
readInt()
readInt()
readByte()
readByte()
readByte() |
local version_code = "1.0.0"
LoginScriptReloadList={
--{tbl=nil, tblName="test_pb_module"},
}
io.write("start to reload, version: " ..version_code .. "\n");
local old_version_code = script_module:get_version_code()
if (old_version_code == "") then
script_module:set_version_code(version_code);
else
if (old_version_... |
print("Thank you")
|
-- TODO: write stone file checker |
local EVENTS = require 'Core.Simulation.events'
local M = {}
M.remove = function()
M.group:removeSelf() M.group = nil
display.setDefault('background', 0.15, 0.15, 0.17)
for i = M.children, display.getCurrentStage().numChildren do
pcall(function()
display.getCurrentStage()[i]:r... |
local ffi = require("ffi")
local xml2 = ffi.load("xml2")
local xmlsec = require('saml.service_provider.xmlsec')
ngx.req.read_body()
local res_xml = ngx.req.get_body_data()
local doc = xml2.xmlParseDoc(res_xml);
local ok = xmlsec.validateXMLWithSchemaDoc(doc)
if not ok then
return ngx.exit(ngx.HTTP_BAD_REQUEST)
end... |
--
-- Author: Your Name
-- Date: 2015-10-26 17:19:11
--
local XWWidgetBase = class("XWWidgetBase", function ()
return cc.Node:create()
end)
XWWidgetBase.Functions = require("utils.Functions")
function XWWidgetBase:ctor(parentNode,callBack)
self:setAnchorPoint(cc.p(0.5,0.5))
--self:setNodeEventEnabled(true)
s... |
-- This resource is part of the default Cfx.re asset pack (cfx-server-data)
-- Altering or recreating for local use only is strongly discouraged.
version '1.0.0'
author 'Cfx.re <root@cfx.re>'
description 'Builds resources with yarn. To learn more: https://classic.yarnpkg.com'
repository 'https://github.com/citizenfx/c... |
-- class
CommandLine = {}
-- private variables
local COMMAND = "/perhour"
-- public functions
function CommandLine:Init()
-- SLASH_PerHour1 = COMMAND
-- SlashCmdList["PerHour"] = function(text)
-- -- Honor:Toggle()
-- end
end
CommandLine:Init() |
local Katarina = objManager.player;
local q = {
sSpell = Katarina:spellSlot(0),
range = 600,
}
q.isready = function()
return q.sSpell.state == 0;
end
q.iscooldown = function()
return q.sSpell.cooldown;
end
q.Redution = function(target)
local magicResist = (target.spellBlock * Kat... |
--[[
Define parallel ClassNLLCriterion.
--]]
local ParallelClassNLLCriterion, parent = torch.class('onmt.ParallelClassNLLCriterion', 'nn.ParallelCriterion')
function ParallelClassNLLCriterion:__init(outputSizes)
parent.__init(self, false)
for i = 1, #outputSizes do
local nll = self:_addCriterion(outputSizes... |
AddCSLuaFile( )
if ( SERVER ) then
SWEP.Weight = 4
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
end
if ( CLIENT ) then
SWEP.PrintName = "Bounds Tool"
SWEP.Author = "Wildfire Servers"
SWEP.Purpose = "Left click to create a bou... |
local function generate()
return coroutine.create(function()
local i = 2
while true do
coroutine.yield(i)
i = i + 1
end
end)
end
local function filter(co, prime)
return coroutine.create(function()
while true do
local ok, i = coroutine.re... |
--====================================================================--
-- dmc_corona/dmc_gesture/gesture_manager.lua
--
-- Documentation: http://docs.davidmccuskey.com/dmc-gestures
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
... |
-----------------------------------
-- Area: Lower Jeuno
-- NPC: Zalsuhm
-- Standard Info NPC
-----------------------------------
local ID = require("scripts/zones/Lower_Jeuno/IDs")
require("scripts/globals/equipment")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("scripts/globals/statu... |
return {
-- metal name
["IRON"] = "铁",
["NICKEL"] = "镍",
["TIN"] = "锡",
["BISMUTH"] = "铋",
["ZINC"] = "锌",
["GOLD"] = "金",
["PLATINUM"] = "铂",
["ALUMINUM"] = "铝",
["SILVER"] = "银",
["LEAD"] = "铅",
-- vein name
["CLUSTER"] = "大簇",
["CLUSTER_SMALL"] = "小簇",
["CL... |
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: addonRevisions.lua
-- brief:
-- author: jK
--
-- Copyright (C) 2007-2013.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
---... |
AddCSLuaFile()
ENT.Type = "anim"
ENT.PrintName = "Bomb"
function ENT:SetupDataTables()
self:NetworkVar("String", 0, "Particle")
end
function ENT:Initialize()
if SERVER then
if self.sphere then
self:PhysicsInitSphere(self.sphere)
else
self:PhysicsInit(SOLID_VPHYSICS)
... |
workspace "Server"
architecture "x86_64"
startproject "server"
configurations
{
"Debug",
"Release",
"Dist"
}
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
include "vendor/glfw"
include "vendor/glad"
include "vendor/imgui"
include "vendor/enet"
pr... |
-------------------------------------------------------------------------------
-- This is the analog of the 'main' function when invoking qless directly, as
-- apposed to for use within another library
-------------------------------------------------------------------------------
local QlessAPI = {}
-- Return json f... |
--[[
Entity Class
--------------
Basic parent class for every Entity character/entity in the game
--]]
Entity = class('entity')
-- TODO add background
function Entity:initialize(x, y, quad, foreground)
self.x = x
self.y = y
self.quad = quad
self.foreground = foreground or DEFAULT_FOREGROU... |
object_draft_schematic_furniture_furniture_light_gem_green = object_draft_schematic_furniture_shared_furniture_light_gem_green:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_light_gem_green, "object/draft_schematic/furniture/furniture_light_gem_green.iff")
|
local floatingsButtons = require "floating_buttons"
local config = {}
config.isAutoWalkEnabled = false
config.isAutoSprintEnabled = false
config.isHighJumpEnabled = false
config.isImmortalityEnabled = false
config.isInstakillEnabled = false
config.isTapTeleportEnabled = false
config.isFFEnabled = false
config.isKillaur... |
local FTM = require "luaFTM.FTM"
local RV = require "luaFTM.rowView"
local Sorted = {
new = function (self)
local t = {_sort = {}, _back = {}, __index = self}
setmetatable(t, self)
return t
end,
__metatable = "Sorted Table",
__len = function (t) return #t._sort end,
__newindex = functi... |
--[[
socket连接后,开启心跳
心跳正常,记录日志
心跳超时,重连socket
登陆成功并且svr上报成功后才会启动心跳,当网络断开时需要停止心跳。
游戏切换到后台时停止心跳,回到游戏界面时,根据网络状态来决定是否需要重新启用心跳
@module SocketHeart
@author FuYao
Date 2018-8-23
Last Modified time 2018-8-23 11:21
]]
---对外导出接口
local exportInterface = {
"onReceiveHeartMsg", -- 收到心跳包
"stopHeartTimeOu... |
module 'mock'
local insert = table.insert
CLASS: PathGraphNavMesh2D ( PathGraph )
:MODEL{}
function PathGraphNavMesh2D:buildFromPolyPaths( polyPaths )
local navmesh = MOCKNavMesh.new()
if polyPaths then
navmesh:buildFromPolyPaths( polyPaths )
end
self.pathGraph = navmesh
self._dirty = false
end
function Pat... |
local stateco = require "coutil.coroutine"
local system = require "coutil.system"
-- body of a state coroutine that executes function 'os.execute' each time
-- it is resumed.
local os_execute = [[
local coroutine = require "coroutine"
local os = require "os"
local command = ...
while true do
os.execute(command)... |
local mta_getResourceInfo = getResourceInfo
function getResourcesSearch ( partialName, state )
local allResources = getResources()
local listChunk = {}
local stateChunk = {}
for k,v in ipairs(allResources) do
local resourceName = getResourceName(v)
local resourceState = getResourceState(v)
if ( (part... |
-- Plugin configuration: nvim-compe
-- ============================================================================
local cmp = require'cmp'
local lspkind = require'lspkind'
cmp.setup({
completion = {
autocomplete = false,
},
formatting = {
format = lspkind.cmp_format({
with_text = false,
m... |
local ffi = require ("ffi");
require ("WinBase")
ffi.cdef[[
typedef struct _SID_IDENTIFIER_AUTHORITY {
BYTE Value[6];
} SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY;
]]
ffi.cdef[[
BOOL AllocateAndInitializeSid(
PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,
BYTE nSubAuthorityCount,
DWORD ... |
local args = readStdin()
print( encodeJSON( Trays.exportSupports( args ) ) )
|
mcg_dyemixer = {}
mcg_dyemixer.mixes = {}
function mcg_dyemixer.register_mix(input_a, input_b, result)
local mix_id = string.gsub(input_a, ":", "-")..string.gsub(input_b, ":", "-")
mcg_dyemixer.mixes[mix_id] = {name = result.name, count = result.count}
end
dofile(minetest.get_modpath("mcg_dyemixer") .."/crafts.lua"... |
Dorothy()
local Dummy,DummyNoDefault = unpack(require("Lib.Game.Dummy"))
local Trigger = require("Lib.Game.Trigger")
local Game = require("Lib.Game.Game")
local type = type
local select = select
local ctype = tolua.type
local inf = math.huge
local ninf = -inf
--[[
#define MT_DEL 1
#define MT_CALL 2
#define MT_SUPER 3... |
do
LuxiniaParam.addTriggerDescription ("b",
[[This parameter must be followed by a string that defines code to launch the debugger]])
local arg = LuxiniaParam.getArg("b")
if arg then
local fn,err = loadstring(arg[1])
if (err) then
print("dbg string error:",err)
else
fn()
end
end
end
do
LuxiniaPar... |
--- Add another layer of effects over any other camera by allowing an "impulse"
-- to be applied. Good for shockwaves, camera shake, and recoil
-- @classmod ImpulseCamera
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CameraState = require("CameraState")
local Spring = r... |
local Root = script.Parent.Parent
local PurchaseError = require(Root.Enums.PurchaseError)
local KeyMappings = {}
local PURCHASE_FAILED_KEY = "CoreScripts.PurchasePrompt.PurchaseFailed.%s"
local ASSET_TYPE_KEY = "Common.AssetTypes.Label.%s"
KeyMappings.AssetTypeById = {
--[[
This key is a special case; developer ... |
--- @module core.ResourceManager
---
-- As the resource manager also loads lua scripts, this file may have no dependencies.
local ResourceManager = {
loaders = {},
resources = {},
loadingAllowed = false
}
--- Registers a resource loader.
--
-- Resource loaders are functions or other callables.
-- @{core... |
--必须在这个位置定义PROJECT和VERSION变量
--PROJECT:ascii string类型,可以随便定义,只要不使用,就行
--VERSION:ascii string类型,如果使用Luat物联云平台固件升级的功能,必须按照"X.X.X"定义,X表示1位数字;否则可随便定义
PROJECT = "iRTU"
VERSION = "1.8.11"
PRODUCT_KEY = "DPVrZXiffhEUBeHOUwOKTlESam3aXvnR"
--加载日志功能模块,并且设置日志输出等级
--如果关闭调用log模块接口输出的日志,等级设置为log.LOG_SILENT即可
require "log"
-- LOG_LE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.