content
stringlengths
5
1.05M
--! subpump --@ commons control firstrun periodic --@ threedofpump depthcontrol DepthControl = Periodic.new(UpdateRate, Depth_Control) SelectAltitudeImpl(ThreeDoFPump) SelectPitchImpl(ThreeDoFPump) SelectRollImpl(ThreeDoFPump) function Update(I) -- luacheck: ignore 131 C = Commons.new(I) FirstRun(I) if not C...
MenuUIManager = MenuUIManager or BeardLib:ManagerClass("MenuUI") function MenuUIManager:init() self._menus = {} -- Deprecated, try not to use. BeardLib.managers.menu_ui = self end function MenuUIManager:AddMenu(menu) table.insert(self._menus, menu) end function MenuUIManager:RemoveMenu(menu) tab...
add_requires("sol2 >=3.2.3", "fmt >=8.1.1", "lyra >=1.6") add_rules("mode.debug", "mode.release") set_languages("c++20") target("lua-config-formatter") set_kind("binary") add_files("src/*.cpp") add_headerfiles("src/*.h") add_packages("sol2", "fmt", "lyra")
GameInfo = { ["Name"] = "Chess", ["Version"] = "0.0.1", } function Main() print("Chess. Yeah. You lose your a failure. ") end Main()
--[[ Cops and Robbers: Ammunation & Weapon Scripts Created by RhapidFyre These files contain all the features to purchasing and obtaining weapons from stores. Eventually the `cnr_pickups` resource will be merged in here Contributors: - Created 01/01/2020 --]] resource_manifest_version '05cfa83c-a1...
--Check whether you enable/disable dgs update system.. --If you don't trust dgs.. Please Disable It In "config.txt" local check = fileExists("update.cfg") and fileOpen("update.cfg") or fileCreate("update.cfg") local version = tonumber(fileRead(check,fileGetSize(check))) or 0 fileClose(check) setElementData(resourceRoo...
return {'vee','veearts','veeartsenijkunde','veeartsenijkundig','veeartsenijkundige','veeartsenijschool','veeauto','veebedrijf','veebeslag','veebezetting','veeboer','veeboot','veedief','veediefstal','veedrijver','veefokker','veefokkerij','veeg','veegactie','veegmachine','veegmes','veegploeg','veegsel','veegster','veegva...
local waves = { [1] = {{name = "small-biter", amount = 10}}, [2] = {{name = "small-biter", amount = 20}}, [3] = {{name = "small-biter", amount = 40}}, [4] = {{name = "small-biter", amount = 80}, {name = "small-spitter", amount = 10}}, [5] = {{name = "small-biter", amount = 80}, {name = "small-spitter", amount = 20...
local Widget = require "widgets/widget" local VisibleDebuffSlot = require "widgets/visibledebuffslot" local SLOTDIST = 60 local VisibleDebuffContainer = Class( Widget, function(self, owner) Widget._ctor(self, "Visibledebuffcontainer") self.owner = owner self.buffslots = {} self:SetHAnchor(1) self:SetVAn...
local PLUGIN = PLUGIN; Clockwork.kernel:IncludePrefixed("cl_hooks.lua"); Clockwork.kernel:IncludePrefixed("cl_plugin.lua"); Clockwork.kernel:IncludePrefixed("sv_plugin.lua"); Clockwork.kernel:IncludeDirectory("blueprints/", true); for k, v in pairs(file.Find(Clockwork.kernel:GetSchemaFolder().."/plugins/craftingmenu...
local handle = io.popen("git rev-parse --is-inside-work-tree") local isGit = handle:read("*a") print(isGit)
-- test_spec.lua local xml_text = [[ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pdf2xml SYSTEM "pdf2xml.dtd"> <pdf2xml producer="poppler" version="0.73.0"> <page number="1" position="absolute" top="0" left="0" height="1262" width="892"> <fontspec id="0" size="12" family="YIUXTL+LMRoman10" color="#000000"/> <tex...
local listeners = {} local INPUT = require 'Core.Modules.interface-input' local LIST = require 'Core.Modules.interface-list' local INFO = require 'Data.info' listeners.but_add = function(target) BLOCKS.group.isVisible = false NEW_BLOCK = require 'Interfaces.new-block' NEW_BLOCK.create() end lis...
swirl_prong_pack_leader = Creature:new { objectName = "@mob/creature_names:swirl_prong_pack_leader", socialGroup = "prong", faction = "", level = 32, chanceHit = 0.4, damageMin = 305, damageMax = 320, baseXp = 3188, baseHAM = 8600, baseHAMmax = 10500, armor = 1, resists = {135,15,15,15,-1,-1,-1,15,-1}, mea...
--[[ MIT License Copyright (c) 2021 Michael Wiesendanger 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 use, copy, mod...
package.path = package.path .. ";../?.lua;?.lua;lib/?.lua" local Component = require( "lib.component" ) local Button = Component:extend{ className = "Button", width = 64, height = 48, xfloat = 2, yfloat = 2 } function Button:create ( ID, x, y, width, height ) local newOne = self:new() newOne.ID = ID or newOne...
--[[ author:{JanRoid} time:2019-5-6 Description: 提示弹框 ]] local ViewBase = cc.load("mvc").ViewBase; local NoticePop = class("NoticePop",ViewBase) function NoticePop.getInstance( ) if not NoticePop.s_instance then NoticePop.s_instance = NoticePop.new() end return NoticePop.s_instance...
local isRequestAnim = false local requestedemote = '' -- Some of the work here was done by Super.Cool.Ninja / rubbertoe98 -- https://forum.fivem.net/t/release-nanimstarget/876709 ----------------------------------------------------------------------------------------------------- -- Commands / Events ----------------...
local day_name_to_number = { Sunday = 1, Monday = 2, Tuesday = 3, Wednesday = 4, Thursday = 5, Friday = 6, Saturday = 7 } local function matching_days(config) local meetup_day = day_name_to_number[config.day] local days = {} for day = 1, math.huge do local date = os.date('*t', os.time({ ...
function main() print("hello world") end main()
database = { levels = { [248972157] = "level.lua" }, entities = { [591432690] = "player.lua", -- ENTITY_PLAYER [315271780] = "ground.lua", -- ENTITY_GROUND [1675181212] = "groundRough.lua", -- ENTITY_GROUND_ROUGH [592045845] = "portal.lua", -- ENTITY_PORTAL, [297964...
padez = {"months", "months"} months = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
-- Copyright (c) Jérémie N'gadi -- -- All rights reserved. -- -- Even if 'All rights reserved' is very clear : -- -- You shall not use any piece of this software in a commercial product / service -- You shall not resell this software -- You shall not provide any facility to install this particular software in a c...
package.path = "src/?.lua;" .. package.path require("busted.runner")() require("assertions.appender_assertions") local SelectAppender = require("exasolvs.queryrenderer.SelectAppender") local function assert_yields(expected, original_query) assert.append_yields(SelectAppender, expected, original_query) end local f...
module("logger", package.seeall) require 'lib.date' function to_s(level, ...) local args = {...} -- first argument is format string. local str = args[1] table.remove(args, 1) -- replace %s to string variable for k, v in pairs(args) do local to_str = v if type(v) == "table" then to_str = table...
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/SpaceMode/TurboAttackLocation.lua#2 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- * *...
local MaximumNumberOfBags = 6; local MAJOR, MINOR = "WowApi-1.0", 1 local WowApiHelper, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not WowApiHelper then return end WowApiHelper.Const = { ["CostType"] = { Mana = 0, SoulShards = 7 } } --[[ Count in the bag the numer of availabled item...
AddCSLuaFile() local function null() end properties.Add("photon_siren", { MenuLabel = "Siren Model", Order = 2, MenuIcon = "photon/ui/menu-siren.png", Filter = function(self, ent, ply) if not IsValid(ent) then return false end if not ent:IsVehicle() then ...
-- Copyright 2006-2020 Mitchell mitchell.att.foicica.com. See License.txt. -- OCaml LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, S = lpeg.P, lpeg.S local lex = lexer.new('caml') -- Whitespace. lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.spac...
-- Display bag filter icon hooksecurefunc("ContainerFrame_OnShow", function (self) local id = self:GetID() self.FilterIcon:Hide() if (id > 0 and not IsInventoryItemProfessionBag("player", ContainerIDToInventoryID(id))) then for i = LE_BAG_FILTER_FLAG_EQUIPMENT, NUM_LE_BAG_FILTER_FLAGS do ...
---获取设备的详情 --- Created by lgy. --- DateTime: 2017/9/6 下午9:16 --- --./wrk -t2 -c2 -d1s --script='./ujing/get_devices.lua' http://it-wx-test.zhinengxiyifang.cn/api/Stores/593fb353eef9d1e463000002/devices?filter=%7B%22where%22:%7B%22isRemoved%22:false%7D,%22include%22:%7B%22deviceType%22:%22deviceWashModels%22%7D%7D --....
-- Credit: LaughingLeader function getSkillEntryName(skill) local skillId = string.gsub(skill, "_%-?%d+$", "") return skillId end local function hasScoundrelSkills(character) local result = 0 for k, skillId in pairs(OdinScoundrelOverhaul.ScoundrelSkills) do if IsSkillActive(character, skillId) ...
local Kache = require(script.Parent.prep) return function() describe("Basic functionality", function() it("should store data", function() local instance = Kache.new() instance:Set("key", "value") expect(instance:Get("key")).to.equal("value") end) it("sh...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseBattleInit_pb', package.seeall) local BSEBATTLEINIT = protobuf.Descriptor(); local BSEBATTLEINIT_ROOMID_FIELD = protobuf.FieldDescriptor(); local BSEBATTLEINIT_CAMPCOUNT_FIELD = protobuf.FieldDescriptor(); local BSEBATTLEINIT_BA...
local carray = require 'carray' --local ffi = require 'ffi' dd = carray.double(5) dd[2] = 4 dd[5] = 342 for i = 1, 5 do print(dd[i]) end carray.cast() --cdata = ffi.cast('double*', dd:pointer()) --print(cdata[1]) --[[ local torch = require'torch' local tmp = torch.FloatTensor(5):zero() local tt = carray.float(...
-- Module Declaration -- local mod, CL = BigWigs:NewBoss("Glazer", 1493, 1469) if not mod then return end mod:RegisterEnableMob(95887) mod.engageId = 1817 -------------------------------------------------------------------------------- -- Locals -- local nextFocusing = 0 --------------------------------------------...
#!/usr/bin/lua5.2 local hpdf = require "hpdf" local alldata = { fr = require("data-fr"), en = require("data-en") } local titles = { fr = { experience = "Experience", projects = "Projets personnel", knowledge = "Savoir faire", scholar = "Education", contests = "Concours", languages = "Langues", hobbies =...
---@meta resty_limit_count={} function resty_limit_count.uncommit(self, key) end function resty_limit_count.incoming(self, key, commit) end resty_limit_count._VERSION="0.06" function resty_limit_count.new(dict_name, limit, window) end return resty_limit_count
--[[ 战场策略 ]] local THIS_MODULE = ... local BattleStrategy = class("BattleStrategy", require("app.main.modules.ui.FrameBase"), require("app.main.modules.uiwidget.UIWidgetFocusable")) --[[ 构造函数 config params 额外参数 name 名称 csb csb文件 widgets 组件表 bindings 绑定表 ]] function BattleStrategy:ctor(config) sel...
--[[ Hero Selection ]] require('components/heroselection/cmpickorder') require('components/heroselection/rankedpickorder') require('components/heroselection/ardm') require('components/heroselection/heroselection') require('components/heroselection/herocosmetics')
LevelModule = LevelModule or BeardLib:ModuleClass("level", ItemModuleBase) LevelModule.levels_folder = "levels/mods/" function LevelModule:init(...) self.clean_table = table.add(clone(self.clean_table), { {param = "preplanning", action = function(tbl) table.remove_condition(tbl, function(v) ...
local solution = {} -- Walk from start point (x,y coordinates) -- steps with len into direcection deg relativ to x-axis function solution.walk( start, steps ) local now = start for _,step in ipairs(steps) do rad = math.rad(step.deg) now.x = now.x + step.len * math.cos(rad) now.y = now.y...
return PlaceObj("ModDef", { "dependencies", { PlaceObj("ModDependency", { "id", "ChoGGi_Library", "title", "ChoGGi's Library", "version_major", 10, "version_minor", 5, }), }, "title", "Services Show Comfort Boost", "id", "ChoGGi_ServicesShowComfortBoost", "pops_any_uuid", "80fc30b4-6e46-4fff-af2a-7...
---@module GuiMole ---@copyright Lilith Games, Avatar Team ---@author Yen Yuan local GuiMole, this = ModuleUtil.New("GuiMole", ClientBase) ---初始化函数 function GuiMole:Init() print("[GuiMole] Init()") this:DataInit() this:NodeDef() this:EventBind() end ---节点定义 function GuiMole:NodeDef() --[[this.payR...
--{{---| Tray |------------------------------------------------------------------------------------------------------------- systray = wibox.widget.systray() layouts = { awful.layout.suit.fair, -- 1 awful.layout.suit.tile, -- 2 awful.layout.suit.floating, ...
--[[-- success, -- boolean indicating success or failure errmsg, -- error message in case of failure errcode = -- error code in case of failure (TODO: not implemented yet) auth.op...
--- LibChangelog -- Provides an way to create a simple ingame frame to show a changelog local _, Data = ... local L = Data.L local MAJOR, MINOR = "LibChangelog-KkthnxUI", 0 local LibChangelog = LibStub:NewLibrary(MAJOR, MINOR) if not LibChangelog then return end -- Lua APIs local pcall, error, type, pairs = p...
require("prototypes.final-fixed-science-pack-subgroup") require("prototypes.final-fixed-technogies") require("prototypes.final-fixed-military") require("prototypes.final-fixed-electronics-subgroup") require("prototypes.final-fixed-subgroup") require("prototypes.final-fixed-assembler") require("prototypes.armor") if no...
--[[ module:AdvancedMediaPlayer author:DylanYang time:2021-02-07 17:01:44 ]] local _M = Class("AdvancedMediaPlayer") local public = _M.public function public:PlayVlc(fileName) end function public:PlayMp4(fileName) end return _M
local Object = require('core/object') local Stage = require('core/stage') local Throne = {} Object:instantiate(Throne, Stage) function Throne:new(game) self.game = game self.scream = love.audio.newSource("assets/audio/scenes/throne/scream.mp3", "static") self.scream:setVolume(0.1) self.lightning = {} ...
local access = require "kong.plugins.ldap-auth.access" local BasePlugin = require "kong.plugins.base_plugin" local LdapAuthHandler = BasePlugin:extend() function LdapAuthHandler:new() LdapAuthHandler.super.new(self, "ldap-auth") end function LdapAuthHandler:access(conf) LdapAuthHandler.super.access(self) acces...
local vm = require 'vm.vm' local guide = require 'parser.guide' local files = require 'files' local function checkPath(source, info) if source.type == 'goto' then return true end local src = info.source local mode = guide.getPath(source, src) if not mode then return true end ...
local Snowflake = require('../Snowflake') local Reaction = require('../Reaction') local insert = table.insert local format, char = string.format, string.char local wrap, yield = coroutine.wrap, coroutine.yield local Message, property, method = class('Message', Snowflake) Message.__description = "Represents a ...
local GAMESTATES = {} insertTable(GAMESTATES) local levels = {} local maxLevels = 0 function GAMESTATES.initialize() SPLASH = require("states/splash") TITLE = require("states/title") GAME_INTRO = require("states/gameIntro") GAMESTATES.levelLoad() OPTIONS = require("states/options") ABOUT = require("states/abo...
--[[ Copyright (c) 2009 Edvin "Lego3" Linge 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 use, copy, modify, merge, publish, distr...
-- written by groverbuger for g3d -- january 2021 -- MIT license --[[ __ __ /'__`\ /\ \ __ /\_\L\ \ \_\ \ /'_ `\/_/_\_<_ /'_` \ /\ \L\ \/\ \L\ \/\ \L\ \ \ \____ \ \____/\ \___,_\ \/___L\ \/___/ \/__,_ / /\____/ \_/__/ --]] -- add th...
-- import local SignalModule = require 'candy.signal' local GlobalManagerModule = require 'candy.GlobalManager' local GlobalManager = GlobalManagerModule.GlobalManager ---@class ThemeMgr : GlobalManager local ThemeMgr = CLASS: ThemeMgr ( GlobalManager ) --- -- Constructor. function ThemeMgr:__init() as...
local util = game.tactics.util local LUNGE_ACCEL = 500 local LUNGE_DUR = 0.2 local CHASE_ACCEL = 300 local LUNGE_RANGE = 200 local LUNGE_ADJUST = 5 return function(params) local agility = params.agility or 1 local endurance = 1 / ((agility + 2) / 3) local lungeAccel = LUNGE_ACCEL * ((agility + LUNGE_ADJ...
--[[ Licensed under GNU General Public License v2 * (c) 2019, Alphonse Mariyagnanaseelan Class representing a binary tree. --]] local table = table local tostring = tostring local bintree = { } bintree.__index = bintree -- Create tree from table function bintree.treeify(node, parent) ...
function love.conf(t) t.title = "Not Pacman" t.identity = "not_pacman" t.author = "Maurice" t.console = false t.screen.vsync = true t.screen.fsaa = 16 t.screen.width = 640 t.screen.height = 500 end
-- Player Animations -- Create module's return table Animation = {} -- Load jambo's animations local animations = require("scripts.jambo_animations") -- Idle is default animation local defaultAnimation = animations.idle_animation function Animation.new() -- Constructor local self = {} -- Private va...
local function head(tbl) return tbl[1] end local function tail(tbl) return {table.unpack(tbl, 2)} end local function fold(fn, tbl, val) for _, v in pairs(tbl) do val = fn(val, v) end return val end local function reduce(fn, tbl) return fold(fn, tail(tbl), head(tbl)) end local function minimum(a, b) ...
local load_time_start = os.clock() local function add_stair(name, data) data.groups.stone = nil stairs.register_stair_and_slab("morecobblenodes_"..name, "morecobblenodes:"..name, data.groups, data.tiles, data.description.." stair", data.description.." slab", data.sounds ) end local moss_foun...
solution("UnityMake") configurations{ "Debug", "Release", "Master" } location("../Solution/") platforms { "x64" } characterset ("MBCS") filter { "platforms:x64" } architecture "x64" filter { "system:windows" } defines { "PLATFORM_PC" } flags { "ExtraWarnings", "FatalWarnings" } ...
local pickers = require'telescope._extensions.langtools.action_picker' local custom_actions = require'telescope._extensions.langtools.custom_actions' local dotnet_options = { { action = 'dotnet clean', text = 'Clean' }, { action = 'dotnet build', text = 'Build' }, { action = 'dotnet pub...
-- Copyright (C) 2018 The Dota IMBA Development Team -- -- 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 ...
object_building_heroic_bespin_tower_g = object_building_heroic_shared_bespin_tower_g:new { } ObjectTemplates:addTemplate(object_building_heroic_bespin_tower_g, "object/building/heroic/bespin_tower_g.iff")
---@meta ---@class ffi.namespace*: table ---@class ffi.cdecl*: string ---@class ffi.ctype*: userdata local ctype ---@class ffi.cdata*: userdata ---@alias ffi.ct* ffi.cdecl*|ffi.ctype*|ffi.cdata* ---@class ffi.cb*: userdata local cb ---@class ffi.VLA*: userdata ---@class ffi.VLS*: userdata ---@version JIT ...
local assert = require("luassert") local say = require("say") local M = {} local asserts = {} asserts.__index = asserts function asserts.create(name) local assert_fn = { name = name, positive = ("assertion.%s.positive"):format(name), negative = ("assertion.%s.negative"):format(name), } return setme...
object_tangible_component_base_weapon_core_base = object_tangible_component_base_shared_weapon_core_base:new { } ObjectTemplates:addTemplate(object_tangible_component_base_weapon_core_base, "object/tangible/component/base/weapon_core_base.iff")
resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5' -- Head over to https://docs.fivem.net/game-references/data-files/ for the data files files { 'peds.meta', } data_file 'PED_METADATA_FILE' 'peds.meta'
return {'digitaltoad/vim-pug', opt = true, ft = { 'pug' }, config = function () require('log').info('Plugin loaded', 'pug-syntax') end, }
local skynet = require "skynet" local function timeout(t) print(t) end local function wakeup(co) for i=1,5 do skynet.sleep(50) skynet.wakeup(co) end end skynet.start(function() skynet.fork(wakeup, coroutine.running()) skynet.timeout(300, function() timeout "Hello World" end) for i = 1, 10 do print(i, sky...
#! /usr/bin/env luajit require 'ext' local _ENV = _ENV or getfenv() require 'symmath'.setup{env=_ENV, MathJax={env=_ENV, title='infinite wire', usePartialLHSForDerivative=true, pathToTryToFindMathJax='..'}} local t,r,phi,z = vars('t', 'r', '\\phi', 'z') local pi = var'\\pi' --[[ local epsilon_0 = var'\\epsilon_0' loc...
return { "min", "max", "sum", }
local _, ns = ... local cfg = CreateFrame('Frame') -- Media ------------------------------------------------------------------------------------------ -- Texture cfg.texture = 'Interface\\AddOns\\KBJcombatHUD\\Media\\texture' cfg.symbol = 'Interface\\AddOns\\KBJcombatHUD\\Media\\symbol.ttf' cfg.glow = 'Interface\\AddO...
local Command = VH_CommandLib.Command:new("Armor", VH_CommandLib.UserTypes.Admin, "Sets the player(s) armor to specified amount or 100.", "") Command:addArg(VH_CommandLib.ArgTypes.Plrs, {required = true}) Command:addArg(VH_CommandLib.ArgTypes.Number, {required = false}) Command:addAlias({Prefix = "!", Alias = "armor"})...
--- List local constructs and access their ID. -- -- Element class: -- <ul> -- <li>RadarPvPAtmosphericSmallGroup</li> -- <li>RadarPVPSpaceSmallGroup</li> -- <li>RadarPvPAtmospheric: Medium and Large</li> -- <li>RadarPVPSpaceMediumGroup</li> -- <li>RadarPVPSpaceLargeGroup</li> -- </ul> -- -- Displayed widget f...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
require 'middleclass' context('instanceOf', function() context('nils, integers, strings, tables, and functions', function() local o = Object:new() local primitives = {nil, 1, 'hello', {}, function() end} for _,primitive in pairs(primitives) do local theType = type(primitive) context('A ...
-- Validation script for Bootloader when both SPI Flash Storage and SPI Flash Storage SFDP are selected local spiflash = slc.is_selected("bootloader_spiflash_storage") local spiflash_sfdp = slc.is_selected("bootloader_spiflash_storage_sfdp") if spiflash and spiflash_sfdp then validation.error('Cannot install SPI Fl...
--搜图 local key = XmlApi.Get("settings","saucenao"):split("|") local keyIndex = 0 local searchFlag = {} local function getUrls(urls) local ret = "" for i = 1, #urls do ret = ret..urls[i].."\r\n" end return ret end local function getImageInfo(pic) if keyIndex >= #key then keyIndex = 1 ...
if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end SWEP.BulletLength = 5.56 SWEP.CaseLength = 45 SWEP.MuzVel = 616.796 SWEP.Attachments = { [1] = {"kobra", "riflereflex", "aimpoint", "acog"}, [2] = {"vertgrip", "bipod"}, [3] = {"laser"}} SWEP.InternalParts = { [1] = {{key = "hbar"}, {key = "lbar"}}, [2] = {...
-- draws texture independed of cockpit lighting system -- no default texture defineProperty("image") defineProperty("brt2") defineProperty("x") defineProperty("y") local clr = get(brt2) function draw(self) sasl.gl.drawTexture(get(image), 0, 0, get(x), get(y), {clr ,clr ,clr}) end
SIGHUP = 1; SIGINT = 2; SIGQUIT = 3; SIGILL = 4; SIGTRAP = 5; SIGABRT = 6; SIGIOT = 6; SIGBUS = 7; SIGFPE = 8; SIGKILL = 9; SIGUSR1 = 10; SIGSEGV = 11; SIGUSR2 = 12; SIGPIPE = 13; SIGALRM = 14; SIGTERM = 15; SIGSTKFLT = 16; SIGCHLD = 17; SIGCONT = 18; SIGSTOP = 19; SIGTSTP = 20; SIGTTIN = 21; SIGT...
thisResource = getThisResource() thisDynamicRoot = getResourceDynamicElementRoot(thisResource) -- DEBUG ONLY! Set to true for extended saving and loading times (medium sized maps) DEBUG_LOADSAVE = false
-- Copyright 2020 The FedLearner Authors. All Rights Reserved. -- -- 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 requi...
-- Globals variables GAME_WIDTH = 800 GAME_HEIGHT = 600 -- Input table KEY_TABLE = {} -- Fonts FONT_SMALL = love.graphics.newFont('assets/fonts/Roboto-Regular.ttf', 16) FONT_MEDIUM = love.graphics.newFont('assets/fonts/Roboto-Regular.ttf', 32) FONT_BIG = love.graphics.newFont('assets/fonts/Roboto-Regular.ttf', 64)
PEER_ID = "96A679" --include <evaluation_multi_esp32_element_size>
local fs = require("installer/utils/fs") local M = {} --- @alias category_modules tbl<string,boolean> --- Get all installed modules table --- Warn: This function access fs synchronously --- @return tbl<string, category_modules> M.get_modules = function() local res = {} local dirs = fs.read_dir(fs.base_path) i...
----------------------------------- -- Area: Ordelle's Caves -- NPC: ??? (qm2) -- Involved in Quest: A Squire's Test II -- !pos -94 1 273 193 ------------------------------------- local ID = require("scripts/zones/Ordelles_Caves/IDs") require("scripts/globals/keyitems") require("scripts/globals/quests") --------------...
--ELF·回归根源 function c1191004.initial_effect(c) -- local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,1191004+EFFECT_COUNT_CODE_OATH) e1:SetCost(c1191004.cost1) e1:SetCondition(c1191004.con1) e1:SetTarget(c1191004.tg1) ...
require 'Vector2' require 'PlayerController' Player = Object:extend() Input = { left = {'a', 'left'}, right = {'d', 'right'}, --up = {'w', 'up'}, down = {'s', 'down'}, jump = {'c', 'space', 'up', 'w'} } function Input.isDown(button) assert(Input[button], "There is no Input button called " .. button) for _, ke...
local bomb_dmg_enable = ui.add_check_box("Enable", "bomb_dmg_enable", false) local screen = engine.get_screen_size() local bomb_indicator_color = ui.add_color_edit("Line color", "bomb_indicator_color", true, color_t.new(0, 255, 255, 255)) local bomb_indicator_pos_x = ui.add_slider_int("Indicator Pos X", "bomb_indica...
local oldBuildTechData = BuildTechData function BuildTechData() local techData = oldBuildTechData() table.insert(techData, { [kTechDataId] = kTechId.ShieldGenerator, [kTechDataHint] = "Shield Generator hint", [kTechDataDisplayName] = "Shield Generator", [kTechDataMaxExtents] = Vector(Player.kXZExtent...
local ConsoleApplication = require("ConsoleApplication") local StaticLibrary = require("StaticLibrary") local SharedLibrary = require("SharedLibrary") local function generateTargetByType(targetName, targetType) local t = targetType:lower() if t == "console application" then return ConsoleApplication:new(targe...
local torch = require 'torch' local class = require 'class' local state = class('KuhnState') local CHECKFOLD = 1 local BETCALL = 2 local REW_SCALE = 0.33 local function sampleCard(deadCards) local card = 0 repeat card = math.random(3) until deadCards[card]==0 deadCards[card] = 1 return card end functi...
return { name = 'LineJoin', description = 'Line join style.', constants = { { name = 'miter', description = 'The ends of the line segments beveled in an angle so that they join seamlessly.', }, { name = 'none', description = 'No cap app...
function PrintTable(t, indent, done) PrintTableCall(t, print, indent, done) end function PrintTableCall(t, printFunc, indent, done) --printFunc ( string.format ('PrintTable type %s', type(keys)) ) if type(t) ~= "table" then printFunc("PrintTable called on not table value") printFunc(tostring(t)) return end ...
local utils = require "typesystem_utils" -- Get the handle of a type expected to have no arguments function selectNoArgumentType( node, seekctx, typeName, tagmask, resolveContextType, reductions, items) if not resolveContextType or type(resolveContextType) == "table" then io.stderr:write( "TRACE ty...