content
stringlengths
5
1.05M
local cJson = require "cjson" local NginxShared = ngx.shared local type = type local _M = {} -- 设置Nginx缓存(超时时间秒) function _M:set(dict, key, value, expTime) expTime = expTime or 0 local nginxSharedDict = NginxShared[dict] if not nginxSharedDict then return false end if type(value) == 'table...
require("prototypes.entities") require("prototypes.entities-interfaces") require("prototypes.equipment") require("prototypes.items") require("prototypes.recipes") require("prototypes.technologies")
#!/usr/bin/env texlua dofile("init_test_db.lua") local documents = require "documents" lu = require('luaunit') test_documents = {} function test_documents.test_version() theDoc="adv_fsp" lu.assertEquals(documents.getDocumentVersion(theDoc), "1.0-SNAPSHOT") end function test_documents.test_date() theDoc="...
return { ['application/vnd.3gpp.mid-call+xml'] = { source = 'iana'; compressible = true; }; ['application/vnd.3gpp.ngap'] = { source = 'iana'; }; ['application/vnd.3gpp.pfcp'] = { source = 'iana'; }; ['application/vnd.3gpp.pic-bw-large'] = { source = 'iana'; extensions = {'plb'}; }; ['application/...
local QBCore = exports['qb-core']:GetCoreObject() local zones = {} QBCore.Commands.Add("setzone", "Set Report Zone (Admin Only)", {}, false, function(source) local src = source local Player = QBCore.Functions.GetPlayer(src) local license = Player.PlayerData.license local zone = false fo...
sprite = "collectibles_172_sacrificialdagger.png" daggers = {} angle = 0 radius = 1.5 angularSpeed = 80 boxCollider = {isTrigger = true, center = {x = 0.01466, y = 0.01759207}, size = {x = 0.36885, y = 0.8966106}} --API METHODS function OnEquipped() for i = 1, 3 do daggers[i] = AddChild() SetComponent(dagger...
--[[ Copyright (C) 2018 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
local wk = require("which-key") wk.register({ -- File commands f = { name = "file", f = { "<cmd>Neoformat<cr>", "Format file" }, n = { "<cmd>new", "New File" }, o = { require'telescope-config'.project_files, "Find File" }, h = { require'telescope-config'.home_files, "F...
getglobal game getfield -1 Players getfield -1 LocalPlayer getfield -1 leaderstats getfield -1 CurrentVehicle getfield -1 Value getfield -1 Handling getfield -1 FrontWheelDrive getfield -1 Force pushnumber 7000 setfield -2 Value
-------------------------------------------------------------------------------- -- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" -----------------------------------------------------------------...
--Deep_Storage_Unit appmod.blacklist['deep-storage-unit-fluid'] = true appmod.blacklist['deep-storage-unit-item-big'] = true appmod.blacklist['deep-storage-unit-fluid-big'] = true appmod.blacklist['deep-storage-unit-fluid-mk2'] = true appmod.blacklist['deep-storage-unit-fluid-mk3'] = true
--Hex Maniac by LavenderTheGreat, feel free to remove this for compression purposes. local func = {} -- Function: split -- Usage: Gets two characters from the string and returns the base 10 version -- Parameters: -- [1] (string) str: String to split -- [2] (number) start: Where in the ...
EditCtrl = relative_import('edit_utils').create_edit_class(nil, 'editor/edit/uieditor_edit_check') -- override function EditCtrl:on_init_ui() self.check.OnChecked = function(bCheck) if self:UpdateData(bCheck) then self._editCallback(self._data) end end self.name:SetString(self...
local env=env local db=env.getdb() local findobj,cache_obj,loaded={},{} local json = require("json") local sys_schemas="('information_schema','sys','mysql','performance_schema','metrics_schema','sys','ndbinfo')" local default_args={target='v1',object_owner="#VARCHAR",object_type="#VARCHAR",object_name="#VARCHAR",object...
local vimrc_group = vim.api.nvim_create_augroup("vimrc", { clear = true }) vim.api.nvim_create_autocmd("InsertEnter", { desc = "Hide cursorline in insert mode", pattern = "*", command = "set nocul", group = vimrc_group, }) vim.api.nvim_create_autocmd("InsertLeave", { desc = "Show cursorline when leaving insert mo...
-- Copyright 2015 by Malte Skambath -- -- This file may be distributed and/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- Imports local declare = require("pgf.gd.interface.InterfaceToAlgo...
local Stats = {} Stats.__index = Stats function Stats:add(val) table.insert(self.vals, val) end function Stats:clear() self.vals = {} self.valn = nil end function Stats:stats() local vals = self.vals if #vals == self.valn and self.cache ~= nil then return self.cache end table.sort(vals) local n = #vals ...
return {'ghz'}
-- Global Options vim.o.number = true vim.o.smarttab = true vim.o.cindent = true vim.o.tabstop = 2 vim.o.shiftwidth = 2 vim.o.expandtab = true vim.o.hidden = true vim.o.termguicolors = true vim.o.cmdheight = 1 vim.o.updatetime = 300 vim.o.guifont = 'JetBrains Mono:h10' vim.o.backup = false vim.o.writebackup = false vi...
local _M = {} local preload = require "package".preload local enabled = true local function erase(name) if enabled and preload[name] then preload[name] = nil return true end return false end local function disable() enabled = false end local function exists(name) return not not preload[name] end local functi...
function authenticationPrompt() ngx.header.www_authenticate = 'Basic realm="Restricted by OpenResty"' ngx.exit(401) end function hasAccessByIp() local ip = ngx.var.remote_addr local domain = ngx.var.host local port = ngx.var.server_port local res, err = httpc:request_uri(os.getenv("AUTH_API_UR...
vim.api.nvim_exec([[ augroup FormatAutogroup autocmd! autocmd BufWritePost *.js,*.rs,*.lua FormatWrite augroup END ]], true) vim.cmd("let g:clang_format#auto_format=1") vim.cmd("let g:semshi#error_sign=v:false")
MapChunk = class('MapChunk') binser.registerClass(MapChunk) function MapChunk:initialize(x,y,tilemap,blockmap,actorlist) self._atlasX = x self._atlasY = y self._tilemap = tilemap self._blockmap = blockmap or {} self._actorlist = actorlist or {} self._utileguide = {} end function MapChunk:getAtlasCoords()...
require 'tables' require 'strings' require 'logger' config = require 'config' _addon = _addon or {} _addon.name = 'Linker' _addon.author = 'Arcon' _addon.version = '1.0.0.0' _addon.command = 'linker' _addon.short_command = 'web' _addon.language = 'English' defaults = {} defaults.raw = {} -- FFXI info sites defaults....
--------------------------------------------- -- Unblest Jambiya -- Family: Qutrub -- Description: Steals HP from targets in an area of effect. -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: AoE 15' -- Notes: Used only by certain NM's when their primary sword isn't broken. -------------------...
-- [[treesitter config]] -----------------------[[ -- setup -- -----------------------]] require'nvim-treesitter.configs'.setup { ensure_installed = "maintained", highlight = { enable = true, custom_captures = { }, additional_vim_regex_highlighting = false, }, } vim.wo.fol...
local statusline = require('statusline') statusline.tabline = false statusline.lsp_diagnostics = true
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local lclient = require 'lclient' local fs = require 'bee.filesystem' local util = require 'utility' local furi = require 'file-uri' local ws = require 'workspace' local files = require 'files' local scope = require 'workspace.scope' local rootPath = LOGPATH .. '/multi-workspace' local rootUri = f...
local ffi = require 'ffi' local gl = require 'gl' local glu = require 'ffi.glu' -- glSceneIntersect local readBufferPtr = ffi.new('GLint[1]') local depthValuePtr = ffi.new('GLfloat[1]') local modelC = ffi.new('GLdouble[16]') local projC = ffi.new('GLdouble[16]') local viewC = ffi.new('GLint[4]') local objX = ffi.new(...
--chemical-processing --air-compressor if data.raw["technology"]["air-compressor-1"] then data.raw["technology"]["air-compressor-1"].icon = "__morebobs_shiny__/graphics/technologies/air-compressor.png" data.raw["technology"]["air-compressor-1"].icon_size = 128 end if data.raw["technology"]["air-compressor-2"] ...
--[[------------------------------------------------------ zmq --- ZeroMQ (0MQ) networking library bindings. --]]------------------------------------------------------ zmq = Autoload('zmq') require 'zmq.core'
local buildName = require 'core.hover.name' local buildArg = require 'core.hover.arg' local buildReturn = require 'core.hover.return' local buildTable = require 'core.hover.table' local vm = require 'vm' local util = require 'utility' local function asFunction(source, oop) local name = buildN...
-- Global to all starfalls local checkluatype = SF.CheckLuaType local dgetmeta = debug.getmetatable --- Vector type -- @name Vector -- @class type -- @libtbl vec_methods -- @libtbl vec_meta SF.RegisterType("Vector", nil, nil, debug.getregistry().Vector, nil, function(checktype, vec_meta) return function(vec) retur...
-- add projects add_subdirs("console", "core")
local player = ... local pn = ToEnumShortString(player) local ar = GetScreenAspectRatio() local IsUltraWide = (GetScreenAspectRatio() > 21/9) local NoteFieldIsCentered = (GetNotefieldX(player) == _screen.cx) -- ----------------------------------------------------------------------- -- if the conditions aren't right, d...
local composer = require( "composer" ) local scene = composer.newScene() local _groot local _view local _list function scene:create( event ) _groot = GRoot.create(self) UIPackage.addPackage('UI/LoopList') composer.addCloseButton() _view = UIPackage.createObject("LoopList", "Main") _view:makeF...
-- Returns true if the subsystem is 'block' -- and the devtype is 'disk' -- This will catch all the RAM disks, loops, and others -- local function isBlockDevice(dev) if dev.IsInitialized and dev:getProperty("subsystem") == "block" then return true; end return false; end return isBlockDevice
--This was programmed by vissequ#1301 (Discord). You may use this any way you wish, but please do not remove this credit. --This uses UserInputService as opposed to ContextActionService. Future goal to change. local seat = script:WaitForChild("Seat").Value local helicopter = seat.Parent.Parent.Parent.Parent local cam...
function gzip_file(infile_fn, outfile_fn) local infile, err = io.open(infile_fn); if not infile then print_err("Can't open input file for reading: "..tostring(err)); return; end local outfile, err = io.open(outfile_fn..".gzipped", "w+"); if not outfile then print_err("Can't open output file for writing: "....
-- -- Some default values that get automatically replaced by our script -- pre-processor in the Leverage library. This allows us maintain control over -- the output using JavaScript, which is __a w e s o m e__. -- local namespace = '{leverage::namespace}' local backlog = {leverage::backlog} local expire = {leverage::e...
local skynet = require "skynet" local db = {} local command = {} function command.GET(key) return db[key] end function command.SET(key, value) local last = db[key] db[key] = value return last end skynet.start(function() skynet.dispatch("lua", function(session, address, cmd, ...) local f = command[string.uppe...
xmldoctable2 = { [".__type"] = "document", [1] = { [".__name"] = "root", [".__type"] = "element", [".__local_name"] = "root", [".__namespace"] = "nsfoo", [".__line"] = 1,[".__col"] = 30, [".__ns"] = { ["foo"] = "nsfoo", }, [1] = "\n ", [2] = { [".__name"] = "...
local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false local talk_state = 0 local gstat = 0 -- Guild status local grank = '' -- Guild rank local gname = '' -- Guild name local cname = '' -- Name of player who talks to us local pname = '' -- Name of some other player local...
--[[---------------------------------------------------------------------------- Application Name: MedianFilterFlows ...
local PluginRoot = script.Parent.Parent.Parent local Roact: Roact = require(PluginRoot.Packages.Roact) local Studio: Studio = settings().Studio local ThemeProvider = Roact.Component:extend("ThemeProvider") function ThemeProvider:init() self:setState({ theme = Studio.Theme, isDark = Studio.Theme.Na...
-- Provides: -- evil::playerctl -- artist (string) -- song (string) -- status (string) [playing | paused | stopped] local awful = require("awful") local function emit_info(playerctl_output) local artist = playerctl_output:match('artist_start(.*)title_start') local title = playerctl_output:match(...
_NPC = { ["brunhilda"] = { ["preview"] = PATH_SPRITES .. "spider_prew.png", ["animation"] = _ANIMATION_AMAZON, ["quests"] = nil, ["dialogs"] = nil, ["on_complete_quest"] = function (quest) end } }
--[===[DOC = Command line debugger The 'debugger_stdinout' module provide a full command line debugger for lua. It is based on 'stepdebug' module of Luasnip. It install a step-debug handler that read from the standard input and passes the line to 'stepdebug', so you can refer to <<stepdebug>> documentation for a list...
package.cpath = "bin/?.dll" local iup = require "iuplua" local bgfx = require "bgfx" local util = require "util" local math3d = require "math3d" local ctx = { canvas = iup.canvas {}, } local dlg = iup.dialog { ctx.canvas, title = "05-instancing", size = "HALFxHALF", } local time = 0 local function mainloop() m...
local ffi = require "ffi" ffi.cdef [[ int RAND_bytes(unsigned char *buf, int num); ]]
require("lsp").setup "erlang"
----------------------------------- -- Area: Port Bastok -- NPC: Blabbivix -- Standard merchant, though he acts like a guild merchant -- !pos -110.209 4.898 22.957 236 ----------------------------------- require("scripts/globals/settings") require("scripts/globals/shop") local ID = require("scripts/zones/Port_Bastok/I...
-- init.lua AddCSLuaFile( "shared.lua" ) AddCSLuaFile( "cl_init.lua" ) include('shared.lua') DEFINE_BASECLASS("acf_explosive") function ENT:GetReloadTime(nextMsl) local reloadMul = (self.ReloadMultiplier or 1) local reloadBonus = (self.ReloadMultiplierBonus or 0) local mag = (self.MagSize or 1) ...
if nil ~= require then require "fritomod/Lists"; require "fritomod/Strings"; end; local Suite=IntegrationTest("fritomod.Iteration"); function Suite:TestContainsString() local buttons={"LeftButton", "RightButton"}; for i=1, #buttons do assert(Lists.Contains(buttons, buttons[i], Strings.StartsWith), buttons[i]); ...
object_building_kashyyyk_thm_kash_zonegate_fence_elaborate = object_building_kashyyyk_shared_thm_kash_zonegate_fence_elaborate:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_thm_kash_zonegate_fence_elaborate, "object/building/kashyyyk/thm_kash_zonegate_fence_elaborate.iff")
local local0 = 0.5 local local1 = 0.4 - local0 local local2 = 6.2 - local0 local local3 = 4.4 - local0 local local4 = 12.9 - local0 local local5 = 0.4 - local0 local local6 = 4.7 - local0 local local7 = 0.4 - local0 local local8 = 9.8 - local0 local local9 = 0.4 - local0 local local10 = 9 - local0 local local11 = 0.4 -...
------------------------------------------------------------------------------- -- Mob Framework Mod by Sapier -- -- You may copy, use, modify or do nearly anything except removing this -- copyright notice. -- And of course you are NOT allow to pretend you have written it. -- --! @file main_probab.lua --! @brief compon...
local TestSocialScene = class("TestSocialScene",function() return cc.Scene:create() end) function TestSocialScene.create() local scene = TestSocialScene.new() scene:addChild(scene:createLayerMenu()) return scene end function TestSocialScene:createLayerMenu() local back = cc.MenuItemFont:create("ba...
-- Mapping helper local mapper = function(mode, key, result) vim.api.nvim_set_keymap(mode, key, result, { noremap = true, silent = true, expr = false }) end -- Expressive Mapping helper local expressive_mapper = function(mode, key, result) vim.api.nvim_set_keymap(mode, key, result, { silent = true, expr = true }) ...
---------------------------------------------------------------------------------------------------- -- Event to create the RaceManager, as well as misc stuff like global functions. ---------------------------------------------------------------------------------------------------- Events:Subscribe( "ModuleLoad" , f...
Paddle = Class{} function Paddle:init(x,y,width,height) self.x = x self.y = y self.width = width self.height = height self.dy = 0 end function Paddle:update(dt) if self.dy < 0 then self.y = math.max(0,self.y + self.dy * dt) else self.y = math.min(VIRTUAL_HEIGHT - self.height,self.y + self.dy * dt) end end...
--- --- See LICENSE file in top directory for copyright information require "lunit" require "test-object" require "test-array" require "test-sql" require "test-sqlite3" require "test-base" require "test-associations" lunit.run()
-- This file is required for installing FOS local fstab = {} fstab["fos.lua"] = {} fstab["fos.lua"]["isDirectory"] = false fstab["init.lua"] = {} fstab["init.lua"]["isDirectory"] = false fstab["lib"] = {} fstab["lib"]["isDirectory"] = true fstab["lib"]["content"] = {} fstab["lib"]["content"]["io.lua"] = {} fstab["...
-- Brush Test.lua function main () local w = mappy.getValue(mappy.MAPWIDTH) if (w == 0) then mappy.msgBox ("Brush Test", "You need to load or create a map first", mappy.MMB_OK, mappy.MMB_ICONINFO) else bnum = mappy.getValue (mappy.NUMBRUSHES) mappy.msgBox ("Brush Test", "This will create a new br...
local args = ... local player = args.player local pn = ToEnumShortString(player) local tns_string = "TapNoteScore" .. (SL.Global.GameMode=="ITG" and "" or SL.Global.GameMode) -- iterating through the TapNoteScore enum directly isn't helpful because the -- sequencing is strange, so make our own data structures for thi...
local LoadContent = { loadFunc = nil, onLoad = nil, contentName = "" } function LoadContent.new(func, onLoad, contentName) local obj = setmetatable({}, LoadContent) obj.loadFunc = func obj.onLoad = onLoad or nil obj.contentName = contentName or "" return obj end local _coroutine = nil...
local workspace = require 'workspace' local nonil = require 'without-check-nil' local client = require 'client' local json = require 'json' local function allWords() local str = [[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:('"[,#*@| ]] local list = {} for c in str:gmatch '.' do...
local GravityAttractor = Object:extend() function GravityAttractor:new(parent, opts) local opts = opts or {} if opts then for k, v in pairs(opts) do self[k] = v end end self.parent = parent self.x, self.y = parent.x, parent.y self.mass = opts.mass or 1000 self.radius = opts.radius or 100 print(self.rad...
ClassTrainerPlusWarlockSpellIds = { -- Affliction 172,702,1454,980,5782,1120,1108,6222,704,689,1455,1014,6205,699,6223,5138,8288,1714,1456,6217,7658,709,7646,1490,6213,7648,6226,11687,11711,7651,8289,18879,5484,7659,11707,6789,11671,11703,11721,11699,11688,11712,18880,11719,18937,17925,11708,11675,11672,11700,11704...
-- February2013 -- Copyright © 2013 John Watson <john@watson-net.com> -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights to -- us...
--------------------- -- Bitfinex API. -- @module Bitfinex local log = require 'log' local websocket = require 'websocket' local http_client = require('http.client').new() local url = require 'net.url' local json = require 'json' local crypto = require 'crypto' local fiber = require 'fiber' local clock = require 'clock...
-- Copyright (C) Yichun Zhang. All rights reserved. local base = require "resty.core.base" base.allows_subsystem('http') local core_response = require "resty.core.response" local set_resp_header = core_response.set_resp_header local _M = { version = base.version } function _M.add_header(key, value) set_resp_h...
buffer = Procedural.TextureBuffer(128) Procedural.Image(buffer):setFile("red_brick.jpg"):process() Procedural.Sharpen(buffer):setType(Procedural.Sharpen_SHARP_BASIC):process() tests:addTextureBuffer(buffer) dotfile = tests:getDotFile("texture_27a", "Sharpen_basic_Demo") dotfile:set("Image", "texture_image", "Sharpen", ...
object_mobile_smuggler_fence_kaden = object_mobile_shared_smuggler_fence_kaden:new { } ObjectTemplates:addTemplate(object_mobile_smuggler_fence_kaden, "object/mobile/smuggler_fence_kaden.iff")
-- -- c_bloom.lua -- local orderPriority = "-1.0" -- The lower this number, the later the effect is applied Settings = {} Settings.var = {} ---------------------------------------------------------------- -- enableBloom ---------------------------------------------------------------- function enableBloom() if bEffe...
local CORONA = coronabaselib ~= nil local function coronalib(n) if CORONA then return require(n) else return require('test.stubs.' .. n) end end return coronalib
function gadget:GetInfo() return { name = "LuaUI Reload", desc = "Implements /luarules reloadluaui (because luaui cannot reload itself)", author = "Bluestone", date = "Feb 2015", license = "Round Objects", layer = 0, enabled = true -- loaded by default? ...
-- Premake Cookbook - http://industriousone.com/topic/oscopydir function os.copydir(src_dir, dst_dir, filter, single_dst_dir) if not os.isdir(src_dir) then error(src_dir .. " is not an existing directory!") end filter = filter or "**" src_dir = src_dir .. "/" print('copy "' .. src_dir .. filter .. '" to "' .. dst_d...
--------------------------------------------------------------------------------------------------- -- User story: TO ADD !!! -- Use case: TO ADD !!! -- Item: Use Case 1: TO ADD!!! -- -- Requirement summary: -- [OnVehicleData] As a mobile app is subscribed for VI parameter -- and received notification about this parame...
data:extend({ { type = "custom-input", name = "cen-recall-last-item", key_sequence = "SHIFT + Q", order = "a", }, { type = "custom-input", name = "cen-scroll-next", key_sequence = "SHIFT + mouse-wheel-up", order = "b", }, { type = "custom-input", name = "cen-scroll-prev...
--[[ return Def.ActorFrame{ LoadFont("Common normal")..{ Text="BPM"; InitCommand=function(self) self:shadowlength(1):y(-16):zoom(0.5):strokecolor(color("#00000000")) end; }; Def.SongBPMDisplay { File=THEME:GetPathF("Common", "normal"); Name="BPMDisplay"; SetCommand=function(self) self:SetFromGameState...
function EFFECT:Init(data) local ply = data:GetEntity() local ent if IsValid(ply) and ply:IsPlayer() then ent = ply:GetActiveWeapon() end local sfac = (IsValid(ent) and ent.Primary and ent.Primary.Damage) and math.sqrt(ent.Primary.Damage / 30) or 1 local sfac_sqrt = math.sqrt(sfac) local posoffset = data:Get...
require("string") local user_config = require("Shadertoys/~user_config") local fuses = require("Shadertoys/fuses") local ui = require("Shadertoys/ui") local selectFusesDialog = require("Shadertoys/selectFusesDialog") -- print("sep '"..util.path_separator.."'") -- print("path '".. user_config.pathToRepo...
local key_map = vim.api.nvim_set_keymap -- @TODOUA: use 0.7's *vim.keymap.set()* API for inline funcs as appropriate -- ** Key Mappings *** -- *Telescope-related maps at telescope/mappings (for now) -- *Quickly surround Words* -- filetype specific quick surrounds in ftps -- vS to surround selection with argument -- c...
--祝福の教会-リチューアル・チャーチ --Ritual Sanctuary --Script by dest function c900206016.initial_effect(c) --activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --search local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(900206016...
-- This is the primary barebones gamemode script and should be used to assist in initializing your game mode -- Set this to true if you want to see a complete debug output of all events/processes done by barebones -- You can also change the cvar 'barebones_spew' at any time to 1 or 0 for output/no output BAREBONES_DE...
--Auto create by [ViewBinderEditor], not modify it ---@class ViewBinder.PanelGameStart ---@field ButtonStart UnityEngine.UI.Button ---@field Text UnityEngine.UI.Text ---@field ButtonStartText TMPro.TextMeshProUGUI ---@field ButtonStartTransform UnityEngine.Transform ---@return ViewBinder.PanelGameStart function ViewBi...
local args_util = require("args_util") local Path = require("path") ---@class Args ---@field source_path Path ---@field cache_dir_path Path|nil ---@field target_dir_path Path ---@field debug_runtime_api_json_crc number|nil ---@field disable_specific_diagnostics string[] ---@field factorio_version string @ format: `ma...
require "resty.nettle.types.chacha" local lib = require "resty.nettle.library" local ffi = require "ffi" local ffi_new = ffi.new local ffi_typeof = ffi.typeof local ffi_cdef = ffi.cdef local ffi_copy = ffi.copy local ffi_str = ffi.string local setmetatable = setmetatable ffi_cdef...
---@class CS.FairyEditor.AniData.FrameSprite ---@field public texture CS.FairyGUI.NTexture ---@field public frameIndex number ---@field public raw Byte[] ---@type CS.FairyEditor.AniData.FrameSprite CS.FairyEditor.AniData.FrameSprite = { } ---@return CS.FairyEditor.AniData.FrameSprite function CS.FairyEditor.AniData.Fr...
-- Natural Selection 2 Competitive Mod -- Source located at - https://github.com/xToken/CompMod -- lua\CompMod\Classes\Marine\Exosuit\shared.lua -- - Dragon function Exosuit:GetCanBeWeldedOverride() return false, false end
polearm_staff_wood = { minimumLevel = 0, maximumLevel = -1, customObjectName = "", directObjectTemplate = "object/weapon/melee/polearm/lance_staff_wood_s1.iff", craftingValues = { {"mindamage",25,46,0}, {"maxdamage",56,104,0}, {"attackspeed",5.8,4,1}, {"woundchance",3,7,0}, {"hitpoints",750,1500,0}, {...
-- TITLE: ICC Diplomatic Escort -- REQ: ICC controlled planet, ICC jumpgate enableAlerts( 1 ) if isServer() then -- find jumpgate for this to all start local gate = getFriendlyJumpgate( 2 ); assert( gate ~= nil, "gate not found!" ); -- find a planet for the basis of this mission local planet = getFriendlyPlanet...
local Impl = {} Impl.chara_drop = require_relative("impl/chara_drop.lua") Impl.shop_inventory = require_relative("impl/shop_inventory.lua") Impl.show_dialog = require_relative("impl/show_dialog.lua") return Impl
paradeSlot("kpr_Drone",{ 1031, -150, 1150, },{ 0, 0, 1, },{ 1, 0, 0, },0) paradeSlot("kpr_scout",{ -2610, -100, 2405, },{ 0, 0, 1, },{ -1, 0, 0, },0) paradeSlot("kpr_bomber",{ -2535, -50, 2050, },{ 0, 0, 1, },{ -1, 0, 0, },0) p...
function ChainOfShadows_OnEnterCombat(Unit,Event) Unit:RegisterEvent("ChainOfShadows_Spell", 5500, 0) end function ChainOfShadows_Spell(Unit,Event) Unit:FullCastSPellOnTarget(37784,Unit:GetClosestPlayer()) end function ChainOfShadows_OnLeaveCombat(Unit,Event) Unit:RemoveEvents() end function ChainOfShadows_OnDied...
-- ANIMATION -- declarations local Figure = script.Parent local Torso = Figure:WaitForChild("Torso") local RightShoulder = Torso:WaitForChild("Right Shoulder") local LeftShoulder = Torso:WaitForChild("Left Shoulder") local RightHip = Torso:WaitForChild("Right Hip") local LeftHip = Torso:WaitForChild("Left Hip") local H...
--[[ Copyright (C) 2019 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope th...
local ffi = require 'ffi' local cmem = require 'libcmem' local cutils = require 'libcutils' local qc = require 'Q/UTILS/lua/qcore' local stringify = require 'Q/UTILS/lua/stringify' local add_trailing_slash = require 'Q/UTILS/lua/add_trailing_slash' qc.q_cdef("UTILS/inc/qmem_struct.h") qc.q_cdef("UTILS/inc...