content
stringlengths
5
1.05M
return {'mdf'}
object_draft_schematic_furniture_furniture_love_seat_rustic = object_draft_schematic_furniture_shared_furniture_love_seat_rustic:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_love_seat_rustic, "object/draft_schematic/furniture/furniture_love_seat_rustic.iff")
function onCreate() -- background shit makeLuaSprite('sky', 'LordX/sky', -1900, -1006); setScrollFactor('sky', 1, 1); scaleObject('sky', 0.9, 0.9); makeLuaSprite('hills', 'LordX/hills1', -1440, -806 + 200); setScrollFactor('hills', 1.1, 1); scaleObject('hills', 0.5, 0.5); scaleObject('hills', 0.6, 0.6...
script.Name = "SPLEEEEEEEEENNNNNNYYYYYYY <3" local Me = game.Players.LocalPlayer local char = Me.Character local Torso = char.Torso local Rarm = char["Right Arm"] local Larm = char["Left Arm"] local Lleg = char["Left Leg"] local Rleg = char["Right Leg"] local mini = true local ather = false pcall(function() char["...
-- resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' ui_page 'html/ui.html' files { 'html/ui.html', 'html/style.css', 'html/script.js', 'html/ci_h.png', 'html/ci_f.png', 'html/cursor.png' } client_script { "client.lua" } server_script "server.lua"
--- A common module for other components to piggyback off of. -- @module[kind=gemlibrary] common local common = {} --- Internal function for setting colors. -- @tparam number fg The foreground (text) color -- @tparam number bg The background color. function common.setColors(fg, bg) term.setBackgroundColor(bg) ter...
require(script.Parent) export type ReplicationInterfaceType = { Replication: ReplicationContainerType, Path: ReplicationPath, } local ReplicationInterface = {} ReplicationInterface.__index = ReplicationInterface function ReplicationInterface.new(Replication: ReplicationContainerType, Path: ReplicationPath?) ...
local target = playerConfig:get_data().TargetGoal GAMESTATE:GetPlayerState():SetTargetGoal(target / 100) local targetTrackerMode = playerConfig:get_data().TargetTrackerMode -- describes the difference between 480p and current resolution (theme elements are resized based on theme height) -- for the purpose of scaling s...
local iresty_test = require "resty.iresty_test" local tb = iresty_test.new({unit_name="myauth.url-tools-test"}) local cjson = require "cjson" local url_tools = require "myauth.url-tools" function tb:init( ) end function tb:test_should_detect_exact_url() if not url_tools.check_url("/some/url/", "/some/url/")...
-- Set Text Strings -- See the main docs for information on text strings -- String 0 is not shown in the map (blank) function main() if mappy.msgBox("Set Text Strings", "Load text strings into a FMP map. Select a text file, each line will be a string.\n\nContinue?", mappy.MMB_OKCANCEL, mappy.MMB_ICONQUESTI...
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
function PS_ShowHelp(toplayer, toptag) local helptype1, helpindex1, helptype2, helpindex2, helptype3, helpindex3 = game.GetMissionHelpData(); if helptype1 > 0 then local enabled = game.GetHelpAccessInfo(helptype1, helpindex1); if not enabled then game.SetHelpIndex(helptype1, helpindex1); gam...
function TestFunc() print(1) print("1 + 1 = 2") end TestFunc()
vim.g.indent_blankline_char = '│' vim.g.indent_blankline_filetype_exclude = {'help', 'startify', 'git', 'markdown'}
util.AddNetworkString('slib_sv_bigdata_processing') util.AddNetworkString('slib_cl_bigdata_processing') util.AddNetworkString('slib_sv_bigdata_receive') util.AddNetworkString('slib_sv_bigdata_receive_ok') util.AddNetworkString('slib_sv_bigdata_receive_error') util.AddNetworkString('slib_cl_bigdata_receive') util.Add...
--[[ file:bullTable.lua desc:扑克桌子 auth:Carol Luo ]] local ipairs = ipairs local table = require("extend_table") local class = require("class") local bullEnum = require("bullEnum") local pokerCompetition = require("poker.competition") ---@class bullTable:pokerCompetition local competition = class(pokerComp...
-- expected globals are frame,manager (wxauimanager),Config (from config.lua) local ID_FullScreen = NewID() local ID_CreatePerspective=NewID() local ID_DeletePerspective=NewID() local ID_FirstPerspective = NewID() for i=1,9 do NewID() end local ID_ZOOMIN = NewID() local ID_ZOOMOUT = NewID() local ID_ZOOMNORMAL = NewID(...
while not _G.STORAGE_KEYS do Task.Wait() end function OnPlayerJoined(player) local data = Storage.GetPlayerData(player) warn(tostring(Storage.SizeOfData(data))) end Game.playerJoinedEvent:Connect(OnPlayerJoined)
local lsp_installer = require("nvim-lsp-installer") -- https://github.com/williamboman/nvim-lsp-installer#available-lsps local servers = { sumneko_lua = require("lsp.config.lua"), -- lua/lsp/config/lua.lua bashls = require("lsp.config.bash"), html = require("lsp.config.html"), cssls = require("lsp.config.css"),...
local L = Grid2Options.L Grid2Options:RegisterIndicatorOptions("background", false, function(self, indicator) local statuses, options = {}, {} self:MakeIndicatorBackgroundOptions(indicator, options) self:MakeIndicatorStatusOptions(indicator, statuses) self:AddIndicatorOptions(indicator, statuses, options) e...
local subprocess = require "process" local config = require "core.config" local M = {} function M.resolve_font(spec) local scan_rate = 1 / config.fps local proc = subprocess.start({ "fc-match", "-s", "-f", "%{file}\n", spec }, { stdin = subprocess.REDIRECT_DISCARD, stdout = subprocess.REDIRECT_PIPE, ...
#!/usr/bin/lua5.2 -- CivetWeb command line completion for bash --[[ INSTALLING: To use auto-completion for bash, you need to define a command for the bash built-in [*complete*](https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html). Create a file called "civetweb" in the completio...
-- -- xcode_common.lua -- Functions to generate the different sections of an Xcode project. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- local xcode = premake.extensions.xcode local tree = premake.tree local solution = premake.solution local project = premake.project local config = p...
local IAspect = require("api.IAspect") local IItemAmmo = class.interface("IItemAmmo", { dice_x = "number", dice_y = "number", skill = "string", }, { IAspect }) ...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT.Initialize(self) self:SetModel("models/props_interiors/corkboardverticle01.mdl") self:SetUseType(SIMPLE_USE) self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) end function E...
require "Object" class(NSIndexPath, Object); function NSIndexPath:create(row, section) return self:get(runtime::invokeClassMethod("NSIndexPath", "indexPathForRow:inSection:", row, section)); end function NSIndexPath:section() return tonumber(runtime::invokeMethod(self:id(), "section")); end function NSIndex...
workspace "PBRLoader" architecture "x64" startproject "PBRLoader" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" include "Dependencies/GLFW" include "Dependencies/GLAD" include "Dependencies/ImGui" IncludeDirs = {} IncludeDirs["GLFW"] = "Dependencies/G...
local init = os.clock() minetest.log("action", "["..minetest.get_current_modname().."] loading...") local modpath = minetest.get_modpath("building_sign") building_sign = { S = modutil.require("translations","venus")(), DEFAULT_NODE = {name="air"}, registered_schematics = {"[custom house]"}, modpath = modpath }...
--[[ This file specifies a number of helper functions used throughout this project. Written by: Andrew Eric Zane License: MIT license, see LICENSE file in this repo. --]] local funcs = {} funcs.number_string = function (number, base, w) --source: http://lua-users.org/lists/lua-l/2002-10/msg00245.html --updated w...
print("****************************lua调用C# 委托事件相关知识点**************************") local obj = CS.Lesson7() --委托是用来装函数的 --使用C#中的委托 就是用来装LUA函数的 local fun = function() print("Lua函数FUN") end local funcustom = function() print("custom函数调用") end --Lua中没有复合运算符 不能+= --如果第一次往委托中加函数 因为是nil 不能直接+ --所以第一次 要先等= obj.unityAction...
project "Engine" -- location "." kind "StaticLib" -- or "SharedLib" language "C++" cdialect "C11" cppdialect "C++17" characterset ("ASCII") -- Default, Unicode, MBCS, ASCII Engine_to_root = path.getrelative(os.getcwd(), root_directory) Engine_target_location = (Engine_to_root .. "/" .. target_location) Engine...
-- Spell Steal Lua created by Elfansoer: https://github.com/Elfansoer/dota-2-lua-abilities/tree/master/scripts/vscripts/lua_abilities/rubick_spell_steal_lua ------------------------------------------- -- TRANSPOSITION ------------------------------------------- LinkLuaModifier("modifier_imba_telekinesis", "component...
--Serves only to load the combined LibCoeus shared library local Coeus = ... local ffi = require("ffi") local LibCoeus = ffi.load("LibCoeus") return LibCoeus
-- Created by IntelliJ IDEA. -- User: ouyangjun -- Date: 2019/2/19 -- Time: 17:28 -- To change this template use File | Settings | File Templates. local ffi = require("ffi") local json = require("json") local socket = require("socket") --syslog function ffi.cdef[[ void openlog(const char *ident, int opt...
do local function main(x) local b = x.a return b.a + b.b + x.c end (nil)(main) end
-- Automation 4 test file -- Create a Macro feature, that displays some text script_name = "Automation 4 test 4" script_description = "Test progress reporting" script_author = "Niels Martin Hansen" script_version = "1" function wait() local s = "" for i = 0, 500 do s = s .. i end return s end function progre...
----------------------------------- -- Area: Riverne - Site A01 -- Mob: Ouryu ----------------------------------- require("scripts/globals/titles") ----------------------------------- function onMobDeath(mob, player, isKiller) player:addTitle(tpz.title.OURYU_OVERWHELMER) end
--[[ local scores = {} -- red - tonic -- green - dominant -- blue - subdominant -- purple - supertonic table.insert(scores, { bases = fugue.tonicbases, score = 0, concept = "red" } ) table.insert(scores, { bases = fugue.dominantbases, score = 0, concept = "green" } ) table.insert(scores,...
--This was programmed by vissequ#1301 (Discord). You may use this any way you wish, but please do not remove this credit. local seats = {} local prim = script.Parent.PrimaryPart --local tc_GUI = script.Radio local tc_GUI2 = script.HelicopterControl local Players = game:GetService("Players") for i,v in pairs(script...
-- Copyright (c) 2017-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 = require ...
local NXFS = require "nixio.fs" local SYS = require "luci.sys" local HTTP = require "luci.http" local DISP = require "luci.dispatcher" local UTIL = require "luci.util" local uci = luci.model.uci.cursor() local fs = require "luci.clash" local http = luci.http local clash = "clash" kr = Map(clash) s = kr:section(Ty...
--[[ LICENSE HEADER The MIT License (MIT) Copyright © 2017-2021 Jordan Irwin (AntumDeluge) See: LICENSE.txt --]] antum.overrides = {} antum.overrides.modname = core.get_current_modname() antum.overrides.modpath = core.get_modpath(antum.overrides.modname) --local scripts = { antum.loadScripts({ "items", "mi...
-- Default values local DEFAULT_FRAME_COUNT = 10 local DEFAULT_BACKGROUND = { r = 255, g = 255, b = 128 } local DEFAULT_FOREGROUND = { r = 0, g = 0, b = 0 } local DEFAULT_BORDER = { r = 0, g = 0, b = 0 } local FONT_SCALE = 1 local FONT_NAME = "arial" -- Internal vars local isEven...
local ChatConstants = { Tables = { { Name = "ChatChannelRuleset", Type = "Enumeration", NumValues = 3, MinValue = 0, MaxValue = 2, Fields = { { Name = "None", Type = "ChatChannelRuleset", EnumValue = 0 }, { Name = "Mentor", Type = "ChatChannelRuleset", EnumValue = 1 }, { Name = "Dis...
-- game specific server code local _entity_name='ServerService' local _=BaseEntity.new(_entity_name, true) _.is_service=true local _server=Pow.server local _event=Pow.net.event local _serverUpdate=_server.update local _serverLateUpdate=_server.lateUpdate local _updated_entities={} local send_upda...
local everestMusicLayer = {} everestMusicLayer.name = "everest/musicLayerTrigger" everestMusicLayer.placements = { name = "music_layer", data = { layers = "", enable = false } } return everestMusicLayer
Script.ReloadScript( "Scripts/Entities/Boids/Birds.lua" ); Eagle = { Properties = { Boid = { nCount = 1, object_Model = "objects/characters/animals/birds/bald_eagle/bald_eagle.cdf", }, Flocking = { bEnableFlocking = 0, -- No flocking, Eagle is loner }, Movement = { FactorOrigin = 0.01,...
----------------------------------------- -- ID: 18551 -- Item: Twilight Scythe -- Additional Effect: DEATH -- TODO: Enchantment: Non-elemental ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------- ...
--- -- Persona Lua auth backend using ngx location capture -- using redis storing sessions -- -- Copyright Tor Hveem <thveem> 2013 -- -- Nginx conf example: -- location /persona/ { -- internal; -- proxy_set_header Content-type 'application/json'; -- proxy_pass 'https://verifier.login.persona.org:443/veri...
local d = require("defines") -- Getters local function get_orig_name(eq) return eq.prototype.take_result.place_as_equipment_result.name end local function get_orig_range(eq) return eq.prototype.take_result.place_as_equipment_result.logistic_parameters.construction_radius end local function get_curr_range(eq) ...
local Class = require("lbase/class") --- @module Log local Log = {} --- --- Log message separater. local LOG_SEPARATER = "\n" Log.LOG_SEPARATER = LOG_SEPARATER --- Log level. local LOG_LEVEL = { OFF = 1, DEBUG = 2, INFO = 3, WARN = 4, ERROR = 5, } Log.LOG_LEVEL = LOG_LEVEL local LOG_LEVLE_2_STR = { [LOG_LEV...
-- Module envel provides access to native bindings provided by envel return { signal = require("envel.signal"), timer = require("envel.timer"), reader = require("envel.reader"), spawn = require("envel.spawn"), utils = require("envel.utils"), device = require("envel.device"), rules = require(...
TD_ERR_OK = 0 TD_ERR_TYPE_NOT_MATCH = 1 TD_ERR_NUMBER_RANGE_OVERFLOW = 2 TD_ERR_JSON_FMT_ERROR = 3 TD_ERR_STRUCT_NO_EXIST = 4 TD_ERR_REQUIRE_FIELD_LOST = 5 TD_ERR_UNDEFINE_FIELD = 6 local errors_map = { [TD_ERR_OK] = "TD_ERR_OK", [TD_ERR_TYPE_NOT_MATCH] = "TD_ERR_TYPE_NOT_MATCH", [TD_ERR_NUMBER_RANGE_OVERF...
--[[ 获得队伍的角色(实体和战场) ]] local b3 = require("app.main.modules.behavior3.b3") local Action = require("app.main.modules.behavior3.core.Action") local TeamRoles = class("TeamRoles", Action) --[[ Creates an instance of TeamRoles. properties label 标签 team 实体或者战场队伍 alive 只筛选存活的 ]] function TeamRoles:ctor(config)...
--New object_tangible_door_shared_echo_base_door_hangar = SharedTangibleObjectTemplate:new { clientTemplateFileName = "object/tangible/door/shared_echo_base_door_hangar.iff" } ObjectTemplates:addClientTemplate(object_tangible_door_shared_echo_base_door_hangar, "object/tangible/door/shared_echo_base_door_hangar.iff") -...
slot0 = class("PileGameConst") slot0.INDEX_WIDTH = 150 slot0.SAFE_INDEX_WIDTH = 40 slot0.DEATH_INDEX_WIDTH = 86 slot0.ITEM_PIVOT = Vector2(0.5, 0) slot0.GROUND_SIZE = Vector2(1300, 20) slot0.GROUND_PIVOT = Vector2(0.5, 1) slot0.RATIO = 2 slot0.START_Y = 150 slot0.MAX_SLIDE_DISTANCE = slot0.INDEX_WIDTH * slot0.RATIO slo...
local NadminButton = {} function NadminButton:Init() self.text = "Button" self:SetFont("nadmin_derma") self.color = {} self.color.normal = nadmin.colors.gui.blue self.color.hovered = nadmin:BrightenColor(self.color.normal, 25) self.color.down = nadmin:BrightenColor(self.color.normal...
--[[ ldecNumberPerf.lua * Lua wrapper for decNumber -- performance testing * created September 7, 2006 by e * * Copyright (c) 2006 Doug Currie, Londonderry, NH * All rights reserved. * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...
--- GENERATED CODE - DO NOT MODIFY -- Amazon Macie (macie-2017-12-19) local M = {} M.metadata = { api_version = "2017-12-19", json_version = "1.1", protocol = "json", checksum_format = "", endpoint_prefix = "macie", service_abbreviation = "", service_full_name = "Amazon Macie", signature_version = "v4", targ...
return {'iep','iepen','iepenboom','iepenbos','iepenhout','iepenlaan','iepenloof','iepenspintkever','iepziekte','ieper','ieperaar','ieperling','iepers','iepenbossen','iepenlanen','ieperse'}
-- Auto commands use sparingly, having auto commands that trigger often may -- slow down nvim local augroup = vim.api.nvim_create_augroup local autocmd = vim.api.nvim_create_autocmd -- Highlight current line on active window only local active_line_highligh = augroup('HighlightActiveLine', { clear = true }) autocmd('W...
OSI = { LAYER=3, TITLE="dependent_module_2" VERSION=1.0 AUTHOR="Chad Dunn" DEPENDENCIES="dependent_module" } function func() a = independent_module.func() b = dependent_module.func() --do something return result end
local path = minetest.get_modpath("mff_pclasses") dofile(path .. "/warrior.lua") dofile(path .. "/hunter.lua") dofile(path .. "/admin.lua") dofile(path .. "/wizard.lua")
AddCSLuaFile("shared.lua") local matWireFrame = Material( "models/wireframe" ) EFFECT.Time = 0.2 EFFECT.LifeTime = CurTime() EFFECT.percent = 0 EFFECT.highPer = 0 EFFECT.height = 0 EFFECT.mins = 0 EFFECT.maxs = 0 EFFECT.AddDist = 0.1 EFFECT.Skin1 = 1 EFFECT.Skin2 = 1 EFFECT.Col = Color(0,0,0,0) function EFFECT:Ini...
local json = require("json") _DeathStar = {} local _mtDeathStar = {__index = _DeathStar} function NewDeathStar(buildingCore) local DeathStar = setmetatable({}, _mtDeathStar) DeathStar.BuildingCore = buildingCore DeathStar.BuildingCore.BuildingType = "DeathStar" DeathStar.ClientTerminal = nil retu...
include "Dependencies.lua" workspace "KrakoaEngine" architecture "x86_64" startproject "Keditor" configurations { "Debug", "Test", "Profile", "Release" } flags { "MultiProcessorCompile" } OutputDir = "%{cfg.buildcfg}_%{cfg.system}_%{cfg.arc...
--[[ * * * * correlateProc.lua * * * * correlation processes implementation. Correlation was sufficient for these processes due to symmetric kernels. Authors: Logan Lembke and Benjamin Garcia Class: CSC442/542 Digital Image Processing Date: Spring 2017 --]] require "ip" require "util" local il = require "il" loca...
fx_version 'adamant' games { 'rdr3', 'gta5' } rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.' description 'ESX Inventory HUD' version 'Not A Clue ;)' ui_page 'html/ui.html' client_scripts { "@es_extended/locale.lua", "...
local u = require("custom.utils") local a = vim.api local v = vim local suffixes = {'x','s','d','c','a','i', '<esc>', ''} local M = {} local function present_keymaps() local keymaps = {} for _, map in pairs(a.nvim_get_keymap('n')) do keymaps[u.from_keycode(map.lhs)] = true end return keymaps end local fu...
if SubtitlesCommand then SubtitlesCommand:CreateSdTextRelationalTable { { eventName = "DD_vox_ene", param1 = "ene_a", param2 = "damage_l", msgID = "pwvo2000_101010", }, { eventName = "DD_vox_ene", param1 = "ene_a", param2 = "damage_m", msgID = "pwvo2000_111010", }, { eventName = "D...
function onCreate() makeLuaSprite('freddy2', 'freddy2', -300, -300); setLuaSpriteScrollFactor('freddy2', 1, 1); scaleObject('freddy2', 1.7, 1.7); makeAnimatedLuaSprite('freddy2anims', 'freddy2anims', -100, -300); setLuaSpriteScrollFactor('freddy2anims', 1.1, 1.1); scaleObject('freddy2anims', 1.7, 1.7);...
return { __location = game:GetService("ReplicatedStorage"), __tags = {"ServerIgnore"}, "Client.Controllers.LocalGameSetupController", -- Responsible for initial setup of the game on the client. This is the first thing that should be called. "Client.Controllers.PlayerController", -- Controller that manages localside...
links { "ws2_32" }
local resty_url = require('resty.url') local setmetatable = setmetatable local _M = { } local mt = { __index = _M } local allowed_schemes = { file = true, data = true, } function _M.new(uri) local url, err = resty_url.parse(uri) if not url then return nil, err end if not allowed_schemes[url....
--[[ A helper function to define a Rodux action creator with an associated name. Normally when creating a Rodux action, you can just create a function: return function(value) return { type = "MyAction", value = value, } end And then when you check for it in your reducer, you either u...
local Events = require "scripts/ToolKit/events" local Utilities = require "scripts/ToolKit/utilities" local UIHeartManagerComponent = { Properties = { Debug = true, HealthPerContainer = 100.0, TreasurePerContainer = 100.0 }, Events = { [Events.OnSetNumHeartContainers] = {global=true}, [Events.OnSetHealthA...
--[[ # Copyright 2001-2014 Cisco Systems, Inc. and/or its affiliates. All rights # reserved. # # This file contains proprietary Detector Content created by Cisco Systems, # Inc. or its affiliates ("Cisco") and is distributed under the GNU General # Public License, v2 (the "GPL"). This file may also include Detector Co...
return { { effect_list = { { type = "BattleBuffFixVelocity", trigger = { "onAttach", "onRemove" }, arg_list = { add = 0, mul = -500 } } } }, { effect_list = { { type = "BattleBuffFixVelocity", trigger = { "onAttach", "onRemove" }, arg_l...
local thismod = minetest.get_current_modname() local wac = _G[thismod] wac.find_nodes = function(pos, min, max, ...) min = { x = pos.x - (min.x or min[1] or 0), y = pos.y - (min.y or min[2] or 0), z = pos.z - (min.z or min[3] or 0) } max = { x = pos.x + (max.x or max[1] or 0), y = pos.y + (max.y or max[2]...
ITEM.name = "Notepad" ITEM.model = "models/props_lab/clipboard.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.description = "notepadDesc" ITEM.price = 10 -- On player uneqipped the item, Removes a weapon from the player and keep the ammo in the item. ITEM.functions.use = { -- sorry, for name order. name = "Use", tip = "us...
function love.conf(t) t.window.width = 1024 t.window.height = 768 end
-- Please ask me if you want to use parts of this code! -- Add Network util.AddNetworkString("SprintSpeedset") util.AddNetworkString("SprintGetConVars") -- Set ConVars local Multiplier = CreateConVar("ttt_sprint_bonus_rel", "0.5", FCVAR_SERVER_CAN_EXECUTE, "The relative speed bonus given while sprinting. (0.1-2) Def: 0...
local table_pool = require 'table_pool'.raw local table_stack = require 'table_stack' local Scene = {} Scene.__index = Scene function Scene.new() return setmetatable({ update = table_stack.new(), draw = table_stack.new(), dirty = true, }, Scene) end function Scene:add(obj) self[#s...
require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/quests") require("scripts/globals/status") require("scripts/globals/zone") ----------------------------------------------- -- battlefields by zone -- captured from client 2017-10-02 ---------------------------------------...
--- --- See LICENSE file in top directory for copyright information local Base = require "ActiveLua.Base" require "lunit" lunit.setprivfenv() lunit.import "assertions" lunit.import "checks" local base = lunit.TestCase("Base Class Methods") function base:setup() self.Organization = Base:extend("Organizat...
local CameraController = { Properties = { cameraSpeed = { default = 15, description = "How fast the camera moves across the screen based off mouse position", suffix = "m/s" }, scrollSpeed = { default = 25, description = "How fast camera zooms in and out based off scroll mouse input", suffix = "m/s" }, edgeWid...
local Table = require("__stdlib__/stdlib/utils/table") local M = {} --[[ uncategorized prototypes, according to https://wiki.factorio.com/Prototype_definitions "player", "unit-spawner", "fish", "land-mine", "market", "player-port", "simple-entity", "simple-entity-with-owner", ...
local Coeus = (...) local ShaderData = Coeus.Graphics.ShaderData return ShaderData:New(ShaderData.ShaderType.VertexFragment, { VertexCode = [[ #version 330 layout(location=0) in vec3 position; layout(location=1) in vec2 texcoord_; out vec2 texcoord; void main() { gl_Position = vec4(position, 1.0); texcoord = tex...
local vim = vim local api = vim.api local match = require 'completion.matching' local opt = require 'completion.option' local M = {} M.getUltisnipItems = function(prefix) if vim.fn.exists '*UltiSnips#SnippetsInCurrentScope' == 0 then return {} end local snippetsList = vim.call 'UltiSnips#SnippetsInCurrentSco...
local ROOT = {} local Reactor = {} Reactor.__index = Reactor function Reactor.new(fabric) return setmetatable({ fabric = fabric; _componentStack = {}; _effectStack = {}; }, Reactor) end function Reactor:push(component, effectKey) table.insert(self._componentStack, component) table.insert(self._effectStack,...
-------------------------------------------------------------------------------- --! @file compiler-prims.lua --! @brief Language primitives for Firth language. --! @author btoskin - <brigham@ionoclast.com> --! @copyright © 2015 Brigham Toskin --! --! <p>This file is part of the Firth language reference implementation...
-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- Utility Functions For Development -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- define helper functions local to this file first -- global utility functions (below) will depend on these -- - - - - - - - - - - - - - - - - - - - - - - -...
-- -- Please see the license.html file included with this distribution for -- attribution and copyright information. -- local bUpdatingName = false; local aEventParameters; function onInit() conditionname.onSelect = onConditionNameSelected; DB.addHandler(getDatabaseNode().getPath("conditionname"), "onUpdate", onCon...
Added another line to meat.lua
-- ===== ===== ===== ===== ===== -- Copyright (c) 2017 Lukas Grünwald -- License MIT License -- ===== ===== ===== ===== ===== local StaticStateDefinitions = { ["STATE_INTACT"] = { NumericID = 1, UniqueKey = "STATE_INTACT", StateIndicator = false, Evacu...
--- Math actions perform different operations on FSM variables -- @submodule Actions local const = require("adam.const") local ActionInstance = require("adam.system.action_instance") local M = {} local function math_operation(source, value, is_every_frame, is_every_second, action_name, operator) local action = Act...
-- "I hereby put all Lua/LuaJIT tests and benchmarks that I wrote under the public domain." Mike Pall -- https://github.com/LuaJIT/LuaJIT-test-cleanup local sub = string.sub iubc = setmetatable({ A="T", C="G", B="V", D="H", K="M", R="Y", a="T", c="G", b="V", d="H", k="M", r="Y", T="A", G="C", V="B", H="D", M="K",...
local ADDON, MinArch = ... MinArch.DigsiteLocales.itIT = { ["Ironband's Excavation Site"] = "Scavi di Ferrocollo", ["Ironbeard's Tomb"] = "Sepolcro di Barbaferrea", ["Whelgar's Excavation Site"] = "Scavi di Whelgar", ["Greenwarden's Fossil Bank"] = "Banco Fossile di Guardiaverde", ["Thoradin's Wall...
-- credit to atom0s for help with decompiling -- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec return { Const = {}, DailyTask = { true, true, true, true, true, true }, ETaskCfg = { { Desc = "喂猫彩蛋", EType = 1, Event ...
-- put this file somewhere in your nvim config, like: ~/.config/nvim/lua/types.lua -- DONT require this file anywhere. It's simply there for the lsp server. -- this code seems weird, but it hints the lsp server to merge the required packages in the vim global variable vim = require("vim.shared") vim = require("vim.uri...