content
stringlengths
5
1.05M
NPC.Class = "npc_fastzombie" NPC.Name = translate.Get("npc_class_banshee") NPC.Description = translate.Get("npc_description_banshee") NPC.Icon = "VGUI/zombies/info_banshee" NPC.IsEngineNPC = true NPC.Flag = FL_SPAWN_BANSHEE_ALLOWED NPC.Cost = GetConVar("zm_cost_banshee"):GetInt() NPC.PopCost = GetConVar("zm_popcost_ban...
-- Decompiled using luadec 2.2 rev: for Lua 5.2 from https://github.com/viruscamp/luadec -- Command line: A:\Steam\twd-definitive\scripteditor-10-31-20\definitive_lighting_improvements\WDC_pc_WalkingDead201_data\NextTimeOn_temp.lua -- params : ... -- function num : 0 , upvalues : _ENV local kScript = "NextTimeOn" lo...
-- Objects local LGUI = Instance.new("ScreenGui") local Background = Instance.new("Frame") local Ver = Instance.new("TextLabel") local GRAB = Instance.new("TextButton") local styleLine = Instance.new("Frame") local GAXE = Instance.new("TextButton") local styleLine_2 = Instance.new("Frame") local Title = Instance.new("...
function Rowtransfer(use_cuda) local model = nn.Sequential() model:add(nn.SplitTable(1, 3)) -- #H list of (batch_size, W, 512) return model end --(batch_size, H, W, 512) function Coltransfer(use_cuda) local model = nn.Sequential() model:add(nn.SplitTable(2, 3)) -- #W list of (batch_size, W, 512) ...
--- Helper class for ScreenCover -- @classmod ScreenCoverBuilder local ScreenCoverBuilder = {} ScreenCoverBuilder.__index = ScreenCoverBuilder ScreenCoverBuilder.ClassName = "ScreenCoverBuilder" function ScreenCoverBuilder.new(Template) local self = setmetatable({}, ScreenCoverBuilder) self.Template = Template or...
--工具包引入 require "kit/lv_kit" -- 变量定义 local s_width, s_height = System.screenSize() local blockData, tableView local loading = LoadingIndicator() loading.size(200, 200) loading.alignCenter() loading.show() tableView = RefreshTableView { Section = { SectionCount = 1, -- section数量 RowCount = function...
-- Copyright (C) 2018 Jérôme Leclercq -- This file is part of the "Not a Bot" application -- For conditions of distribution and use, see copyright notice in LICENSE local bot = Bot local client = Client local discordia = Discordia local enums = discordia.enums discordia.extensions() -- load all helpful extensions Mo...
AddCSLuaFile( ) DEFINE_BASECLASS("base_aperture_ent") local WireAddon = WireAddon or WIRE_CLIENT_INSTALLED ENT.PrintName = "Пневмотическая вентиляция" ENT.IsAperture = true ENT.IsConnectable = true local SUCK_RADIUS = 150 if WireAddon then ENT.WireDebugName = ENT.PrintName end function ENT:SetupDataTables()...
object_tangible_item_rare_loot_chest_2 = object_tangible_item_shared_rare_loot_chest_2:new { objectMenuComponent = "Rarelootcrate2MenuComponent", } ObjectTemplates:addTemplate(object_tangible_item_rare_loot_chest_2, "object/tangible/item/rare_loot_chest_2.iff")
package("mma") set_homepage("https://github.com/jdumas/mma") set_description("A self-contained C++ implementation of MMA and GCMMA.") set_license("MIT") add_urls("https://github.com/jdumas/mma.git") add_versions("2018.08.01", "aa51333f942220ac98e5957accb1b7e60590ec6f") if is_plat("windows") t...
-- things to NOT do -- -- dont assign newindex to userdata --gameserver.onpacket = 'lol' -- -- use . not : for calling go userdata --gameserver:ANYTHING() -- item handling stuff? loot = require('loot') items = require('items') coll = require('collision') collide = coll.collide -- load our only map.. map = require('m...
local test = require 'test' local mach = require 'mach' describe('test', function() it('should call the provided function', function() local f = mach.mock_function() f:should_be_called_with(3):when(function() test(f) end) end) end)
-- antspawn.lua - Antenna spawner -- This file is under copyright, and is bound to the agreement stated in the EULA. -- Any 3rd party content has been used as either public domain or with permission. -- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved. function ARCPhone.SpawnAntennas() local s...
#!/usr/bin/env lua local function with_command(command, fn) io.stderr:write("> ", command, "\n") local handle, err = io.popen(command) if not handle then io.stderr:write(err) os.exit(1) end local result = fn(handle) handle:close() return result end local build = os.getenv("GITHUB_RUN_NUMBER") ...
local lir = require('lir') local actions = require('lir.actions') return function() local ctx = lir.get_context() actions.cd() vim.fn['deol#cd'](ctx.dir) end
local parse_http_req_headers = require "kong.plugins.zipkin.parse_http_req_headers" local to_hex = require "resty.string".to_hex local fmt = string.format local function to_hex_first_3(arr) return { arr[1] and to_hex(arr[1]) or nil, arr[2] and to_hex(arr[2]) or nil, arr[3] and to_hex(arr[3])...
----------------------------------------------------------- -- PROJECT: MTA:TD - Test and Debug Framework -- -- LICENSE: See LICENSE in top level directory -- PURPOSE: The backend interface (communicates with the backend) ------------------------------------------------------------ MTATD.Backend = MTATD.Class() ------...
function Initialize() Max = SELF:GetNumberOption('Max') Trigger = SELF:GetNumberOption('Trigger', Max) Speed = SELF:GetNumberOption('Speed', 1) end function Update() local Input = SELF:GetNumberOption('Input') if Input < Max then return Input elseif Input < Trigger then return Max e...
-- local function data(file, tag, names, stripFunc, postFunc) local parser = require "otherData.featParser" local names = { "Trickster", "Bag of Tricks", "Stacked Deck", "Flourish", "Encore Performance", "Sleight" } local m = string.match local function strip(parser, str) -- local firstFeat = parser.names[1] ...
--[[ TQAE - Tiny QuickApp emulator for the Fibaro Home Center 3 Copyright (c) 2021 Jan Gabrielsson Email: jan@gabrielsson.com MIT License Synchronous timers and IO support - simulates asynchronous calls with short repeated IO timeouts --]] local EM,FB=... local LOG,Devices,debugFlags = EM.LOG,EM.Devices,EM.debugFlag...
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras ...
return {'jabot','jabotjes','jabroer','jabbeke','jaber','jabbar','jabotje','jabots','jabroers','jabers'}
--[[ Copyright (C) 2019 Blue Mountains GmbH This program is free software: you can redistribute it and/or modify it under the terms of the Onset Open Source License as published by Blue Mountains GmbH. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied w...
return { id = "epiccowboy", name = "Epic Flaming Cowboy Hat of Great Justice", description = "Feed the flames of justice!", type = "hat", rarity = 5, hidden = false, }
package("curl") set_homepage("https://curl.se/") set_description("A command line tool and library for transferring data with URLs") add_urls("http://117.143.63.254:9012/www/rt-smart/packages/curl-$(version).tar.gz") add_versions("7.70.0", "ca2feeb8ef13368ce5d5e5849a5fd5e2dd4755fecf7d8f0cc94000a4206fb...
core:module("CoreMenuData") Hooks:Register("CoreMenuData.LoadData") function Data:_load_data(root, menu_id) -- Find the child menu with id = menu_id local menu for _,c in ipairs(root) do if c._meta == "menu" and c.id and c.id == menu_id then menu = c break end end -- Call a hook here to ...
-- This script template has each of the script entry point functions. -- They are described in detail in VR-Forces Configuration Guide. -- Some basic VRF Utilities defined in a common module. require "vrfutil" -- Global Variables. Global variables get saved when a scenario gets checkpointed. -- They get re-initialize...
-- downloaded from https://gist.github.com/tarleb/afee1b1d97e52aca888f410e77b3624a local List = require 'pandoc.List' local utils = require 'pandoc.utils' local stringify = utils.stringify function highlighter(given_name_pattern, family_name_pattern) local highlight_author = function (author) local given = auth...
-- Config (Server) RegisterServerEvent('cnr:police_stations_req') --- LoadPoliceStations() -- Sends list of valid police stations to player (if given) or all players -- @param client The client to send it to. Defaults to all clients if nil local function LoadPoliceStations(client) -- SQL: Return list of all statio...
local require = require local assert = assert local ipairs = ipairs local tostring = tostring local coroutine = coroutine local s_format = string.format local t_concat = table.concat local t_insert = table.insert local n_log = ngx.log local n_err = ngx.ERR local n_debug = ngx.DEBUG local quote_sql_str = ngx.quote_sq...
local action = require("game.battle.action.action") local M = setmetatable({}, {__index = action}) M.super = action M.__index = M function M.new() local o = setmetatable(action.new(), M) o.type = actiondef.die o.duration = 2 o.weight = 10 return o end function M:enter() print(self.agent.id ...
local ten1s = tonumber( "1111111111", 2 ) return function ( cu1, cu2 ) return 0x10000 + ( ((cu1 & ten1s) << 10) | (cu2 & ten1s) ) end
Point = Object:new{x, y} function Point:copy() return self:new{x = self.x, y = self.y} end function Point:X(x) if x then self.x = x else return self.x end end function Point:Y(y) if y then self.y = y else return self.y end end
-- an example of a minimal scene -- load resources including a two frame animation used as a button -- copyright 2016 Samuel Baird MIT Licence local class = require('core.class') local app_node = require('lt.app_node') local tween = require('lt.tween') return class.derive(app_node, function (title_scene) function ...
object_tangible_quest_naboo_theed_stash_peddler_goods = object_tangible_quest_shared_naboo_theed_stash_peddler_goods:new { } ObjectTemplates:addTemplate(object_tangible_quest_naboo_theed_stash_peddler_goods, "object/tangible/quest/naboo_theed_stash_peddler_goods.iff")
#!/usr/bin/lua msg = function() local message = os.getenv('PT_message'); return message end print(msg())
local cache = require('cmp.utils.cache') local misc = require('cmp.utils.misc') local buffer = require('cmp.utils.buffer') local api = require('cmp.utils.api') ---@class cmp.WindowStyle ---@field public relative string ---@field public row number ---@field public col number ---@field public width number ---@field publ...
setTags = function(jid, tags) -- store the tags list in job hash redis.call('hset', 'bee:h:jobs:' .. jid, 'tags', cjson.encode(tags)) -- add this job to tag sets for i, tag in ipairs(tags) do redis.call('sadd', 'bee:s:tags:' .. tag, jid) end end
function onEvent(name, value1, value2) removeLuaSprite(value1); end
-- -- half of screen -- hs.hotkey.bind({'alt', 'cmd'}, 'left', function() hs.window.focusedWindow():moveToUnit({0, 0, 0.5, 1}) end) -- hs.hotkey.bind({'alt', 'cmd'}, 'right', function() hs.window.focusedWindow():moveToUnit({0.5, 0, 0.5, 1}) end) -- hs.hotkey.bind({'alt', 'cmd'}, 'up', function() hs.window.focusedWindow...
local skynet = require "skynet" local harbor = require "skynet.harbor" require "skynet.manager" -- import skynet.monitor local function monitor_master() harbor.linkmaster() print("master is down") skynet.exit() end skynet.start(function() print("Log server start") skynet.monitor "simplemonitor" local log = skyn...
--[[ Variables ]] local vehiclesCoords = {} --[[ Events ]] RegisterNetEvent("caue-phone:vehicleCoords") AddEventHandler("caue-phone:vehicleCoords", function(identifier, coords) local src = source vehiclesCoords[identifier] = coords end) --[[ RPCs ]] RPC.register("caue-phone:getVehicles",...
vim.g.cpp_function_highlight = 1 vim.g.cpp_member_highlight = 1 vim.g.cpp_simple_highlight = 1
local mod = mod_loader.mods[modApi.currentMod] local path = mod.resourcePath local modUtils = require(path .."scripts/modApiExt/modApiExt") local selected = require(path .."scripts/libs/selected") local getQueued = require(path .."scripts/libs/getQueued") local trait = require(path .."scripts/libs/trait") local tips =...
--[[ Incorrect login workflow when the mailbox is not provided. ]] -- User's mailbox number input. mailbox = storage("get_digits", "digits") return { -- Ask for the mailbox again. { action = "get_digits", min_digits = profile.mailbox_min_digits, max_digits = profile.mailbox_max_digits, audio_fil...
local tinsert = table.insert local tsort = table.sort local gsub = string.gsub local match = string.match local M = {} function M.sort_pairs(t, f) local a = {} for n in pairs(t) do tinsert(a, n) end tsort(a, f) local i = 0 return function () i = i + 1 if a[i] == nil th...
local ffi = require("ffi") local setmetatable = setmetatable local error = error local type = type local print = print local setmetatable = setmetatable local rawget = rawget local memory = memory local TArrayMT = {} function TArrayMT.__index(self, idx) if type(idx) == "number" then if idx < self.Count and idx >= ...
-- Copyright 2021 SmartThings -- -- 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 agreed to in ...
--[[ --------------------------------------------------- LUXART VEHICLE CONTROL (FOR FIVEM) --------------------------------------------------- Last revision: MAY 01 2017 (VERS. 1.01) Coded by Lt.Caine --------------------------------------------------- NOTES LVC will automatically apply to all emergency vehicles (veh...
require("tests/testsuite") local document = Cmd.ImportODTFile("testdocs/testdoc.odt") local expected = [[ %% This document automatically generated by WordGrinder 0.8. \documentclass{article} \usepackage{xunicode, setspace, xltxtra} \sloppy \onehalfspacing \begin{document} \title{testdoc.odt} \author{(no author)} \mak...
local fio = require('fio') local socket = require('socket') local t = require('luatest') local g = t.group() local helpers = require('test.helper') local server local tmpdir g.before_all = function() tmpdir = fio.tempdir() server = helpers.Server:new({ alias = 'server', workdir = tmpdir, ...
dofile_once("[POLYTOOLS_PATH]disco_util/disco_util.lua") local polytools = dofile_once("[POLYTOOLS_PATH]polytools.lua") local self = Entity.Current() polytools.load(self, self.var_str.polydata)
local Dictionary = script.Parent local Llama = Dictionary.Parent local t = require(Llama.t) local validate = t.tuple(t.table, t.callback) local function map(dictionary, mapper) assert(validate(dictionary, mapper)) local new = {} for key, value in pairs(dictionary) do local newValue, newKey = mapp...
local current_folder = ... and (...):match '(.-%.?)[^%.]+$' or '' local Layout = require(current_folder .. ".Layout") local Rectangle = require(current_folder .. ".Rectangle") local imgui = require(current_folder .. ".imgui") local os = require(current_folder .. ".os") local Scrollpane = {} local scrollbar_margin = 7...
#!/usr/bin/env lua local dkjson = require "dkjson" local function load_keymap(target, target_map, macos) _G.MACOS = macos package.loaded["core.keymap"] = nil local keymap = require "core.keymap" if target then keymap.map = {} require(target) end target_map = target_map or {} -- keymap.reverse_...
-- ======================================================================== -- $File: jcslove_debug.lua $ -- $Date: 2016-09-10 15:30:42 $ -- $Revision: 1.3.0 $ -- $Creator: Jen-Chieh Shen $ -- $Notice: See LICENSE.txt for modification and distribution information $ -- Copyright (c) 2016 by Shen, Jen-C...
local gl = require('galaxyline') local gls = gl.section local diagnostic = require('galaxyline.provider_diagnostic') gl.short_line_list = { 'LuaTree', 'vista', 'dbui', 'startify', 'term', 'nerdtree', 'fugitive', 'fugitiveblame', 'plug' } -- VistaPlugin = extension.vista_nearest lo...
-- -- Created by IntelliJ IDEA. -- User: wei -- Date: 2017/11/26 -- Time: 15:34 -- To change this template use File | Settings | File Templates. -- a = {} --a.bb = function(ppp) -- print(ppp) --end function a.bb() print(ppp) end for key,value in pairs(a) do print(key) print(value) end
function Client_PresentConfigureUI(rootParent) if Mod.Settings.NumberOfHills == nil then initial0 = 2; else initial0 = Mod.Settings.NumberOfHills end if Mod.Settings.SizeOfHills == nil then initial1 = 10; else initial1 = Mod.Settings.SizeOfHills end local vert = UI.CreateVerticalLayoutGroup(rootParent); ...
-- Item data (c) Grinding Gear Games return { ["NORMAL"] = { "Cast Word of Blades on Hit", "Cast Word of Flames on Hit", "Attack with Word of Force on Hit", "Cast Word of Frost on Kill", "Attack with Word of Fury on Hit", "Cast Word of Inferno on Kill", "Attack with Word of Ire when Hit", "...
object_tangible_component_weapon_new_weapon_enhancement_ranged_slot_one_s14 = object_tangible_component_weapon_new_weapon_shared_enhancement_ranged_slot_one_s14:new { } ObjectTemplates:addTemplate(object_tangible_component_weapon_new_weapon_enhancement_ranged_slot_one_s14, "object/tangible/component/weapon/new_weapon...
------------------------- -- Sassilization SMG -- Spacetech ------------------------- if(SERVER) then AddCSLuaFile("shared.lua") SWEP.Weight = 5 SWEP.AutoSwitchTo = true SWEP.AutoSwitchFrom = true else SWEP.PrintName = "Sass SMG" SWEP.Slot = 0 SWEP.SlotPos = 4 SWEP.DrawAmmo = false S...
push([[ ----------------------------------------------------------- --- /server/mysql_class.lua --- --- Part of openFrame project --- --- Written by Orange --- --- Lately edited in revision number 13 by Orange --- --- Li...
local c = require "levent.http.c" local levent = require "levent.levent" local httpUtil = require "levent.http.util" local socketUtil = require "levent.socket_util" local responseWriter = require "levent.http.response_writer" local requestReader = require "levent.http.request_reader" lo...
local payload = 97 if settings.startup["bigger-cargo"].value then payload = 197 end data:extend( { -- entity { type = "logistic-robot", name = "logistic-robot-nuclear", icon = "__KingsNuclearBots__/graphics/icons/logistic-robot-nuclear.png", icon_size = 32, fla...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by z15085. --- DateTime: 2019/9/5 20:16 --- local config = require "conf_constant" local mysqlUtil = require "mysql_factory" --接受前端数据的对象 local args = nil --获取前端的请求方式,并获取传递的参数 local request_method = ngx.var.request_method --判断是 get 请求,还是 post 请求,并分别...
-- This file is subject to copyright - contact swampservers@gmail.com for more information. function PPM_SetPonyCfg(ent, cfg) ent.ponydata = cfg -- invalidate caches ent.ponymaterials = nil end function PPM_UpdateLocalPonyCfg(k, v) local ent = LocalPlayer() ent.ponydata[k] = v ent.ponymaterial...
local Player = FindMetaTable("Player") function Player:UseItem(Item) local ItemTable = ItemTable(Item) if ItemTable and ItemTable.Use and self:HasItem(Item) then ItemTable:Use(self, ItemTable) return true end return false end concommand.Add("UD_UseItem", function(ply, command, args) ply:UseItem(tostring(args[...
workspace "MiniEngine" architecture "x86_64" startproject "Editor" configurations { "Debug", "Release", "Production" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" group "Dependencies" include "../Engine/External/GLFW" include "../Engine/External/Glad" ...
return {'barentszzee','bargoens','bar','bara','barak','barakkenkamp','barbaar','barbaars','barbaarsheid','barbarij','barbarisme','barbecue','barbecues','barbecuesaus','barbecueen','barbediende','barbeel','barbeheerder','barbershop','barbertje','barbiepop','barbier','barbieren','barbiersvak','barbierswinkel','barbiersza...
require "fmt" loadmod "link" room { nam = 'main'; decor = [[{$link|http://instead.syscall.ru}^^ {$link|http://syscall.ru}]]; }
--[[ ==================== Overview ==================== Long Term Timer Manager is a library for setting timers that last longer than a single play session. They can be used for things like crops, that take hours to grow, or bonuses that show up once per day, or similar! Timers are created and managed using functio...
local LuaCall = require 'Common/LuaCall' local M = {} local CSM = {} local RegUI = require('UI/Reg/RegUI') function CreateSuccess(name) local ui = RegUI.UI[name] if ui == nil then print('No RegUI : '.. name) return nil, nil, nil, nil, nil end -- local init = LuaCall.RegisterVoid(ui.Init, ui); -- local onC...
object_intangible_pet_gcw_atst_familiar_pcd = object_intangible_pet_shared_gcw_atst_familiar_pcd:new { } ObjectTemplates:addTemplate(object_intangible_pet_gcw_atst_familiar_pcd, "object/intangible/pet/gcw_atst_familiar_pcd.iff")
object_tangible_veteran_reward_duel_recording_terminal = object_tangible_veteran_reward_shared_duel_recording_terminal:new { } ObjectTemplates:addTemplate(object_tangible_veteran_reward_duel_recording_terminal, "object/tangible/veteran_reward/duel_recording_terminal.iff")
local function hsvToRgb(h, s, v) local r, g, b local i = math.floor(h * 6); local f = h * 6 - i; local p = v * (1 - s); local q = v * (1 - f * s); local t = v * (1 - (1 - f) * s); i = i % 6 if i == 0 then r, g, b = v, t, p elseif i == 1 then r, g, b = q, v, p elseif i == 2 then r, g, b = p, v, t ...
require "util" pprint = require "pl.pretty" debug = false function strip(str) return string.format( "%s", str:match( "^%s*(.-)%s*$" ) ) end function replace_char(pos, str, r) return ("%s%s%s"):format(str:sub(1,pos-1), r, str:sub(pos+1)) end function splitLineToGroupArray(line) local retVal = {} local i = 1...
--[[ General Lua Libraries for Lua 5.1, 5.2 & 5.3 Copyright (C) 2002-2018 stdlib authors ]] --[[-- Additions to the core io module. The module table returned by `std.io` also contains all of the entries from the core `io` module table. An hygienic way to import this module, then, is simply to override core `io...
-- require'code_runner'.setup({}) -- vim.api.nvim_set_keymap('n', '<leader>r', ':RunCode<CR>', { noremap = true, silent = false }) print('hello')
local hl7=Class { } hl7.__name='HL7 Message Object' hl7._type='HL7' function hl7:__init(hl7String) self._originalData=hl7String and hl7String or DEFAULT_HL7_MESSAGE self._fieldSeparator =self._originalData:sub(4,4) self._componentSeparator =self._originalData:sub(5,5) self._repetitionSeparator...
--- lifelines.lua © Dirk Laurie 2017 MIT License like that of Lua 5.3 -- LifeLines functions on GEDCOM objects. -- See 'gedcom.lua' for the documentation of GEDCOM objects. This module -- extends functionality by adding methods to the GEDCOM table and -- defining EVENT, BIRT, CHR, DEAT, BURI, MARR method tabl...
local srep = string.rep -- all of these functions return their result and a boolean -- to notify the caller if the string was even changed -- pad the left side lpad = function (s, l, c) local res = srep(c or ' ', l - #s) .. s return res, res ~= s end -- pad the right side rpad = function (s, l, c) loca...
----------------------------------- -- Area: Windurst Woods -- NPC: Wani Casdohry ----------------------------------- require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) local TwinstoneBonding = player:getQuestStatus(WINDU...
local luaunit = require("luaunit") require("switch_manual_enum_invalid") TestSwitchManualEnumInvalid = {} function TestSwitchManualEnumInvalid:test_switch_manual_enum_invalid() local r = SwitchManualEnumInvalid:from_file("src/enum_negative.bin") luaunit.assertEquals(#r.opcodes, 2) luaunit.assertNil(r.op...
local request = require("http.request") local mt = {__call = function(_, room, user, token) if not room then return nil, 'No room given' end if not user then return nil, 'No user given' end if not token then return nil, 'No token given' end local room_id = room.id local user_id = user[1].id local ur...
-- Dependencies local Assets = require("engine.Assets") local State = require("engine.State") local Table = require("engine.Table") local ActionBar = require("game.editor.layers.ActionBar") local Layer = require("game.editor.layers.Layer") local ToolBar = require("game.editor.layers.ToolBar") local Edi...
local game = require 'game' local Block = {} Block.__index = Block function Block.new(node, collider, ice) local block = {} setmetatable(block, Block) block.bb = collider:addRectangle(node.x, node.y, node.width, node.height) block.bb.node = block block.node = node collider:setPassive(block.bb) block.isSo...
AIGroup = { defendPressureThreshold = 0.75, OnSaveAI = function(self, save) save.deathContext = self.deathContext end, OnLoadAI = function(self, saved) self.deathContext = saved.deathContext end, }
-------------------------------------------------------------------------- -- Crytek Source File. -- Copyright (C), Crytek Studios, 2001-2005. -------------------------------------------------------------------------- -- $Id$ -- $DateTime$ -- Description: FlowGraph node which executes a script command -- -----------...
local poop_interval = 600 local poop_to_fertalize = 3 local function player_is_connected(player) -- -- Check if player is connected -- for _, connected in ipairs(minetest.get_connected_players()) do if player:get_player_name() == connected:get_player_name() then return true end end return fa...
oevitt_piboi = Creature:new { objectName = "", customName = "O'Evitt Piboi (en escapee)", socialGroup = "warren_imperial_worker", faction = "", level = 12, chanceHit = 0.29, damageMin = 130, damageMax = 140, baseXp = 430, baseHAM = 1200, baseHAMmax = 1400, armor = 0, resists = {0,0,0,0,0,0,0,0,-1}, meatTy...
Elona.Equipment = { ArmorClass = { Light = "(軽装備)", Medium = "(中装備)", Heavy = "(重装備)", }, YouChangeYourEquipment = "装備を変更した。", Layer = { Window = { Title = "装備品", }, Topic = { CategoryName = "部位/装備品名称", Weight = "重さ",...
modifier_boss_charger_pillar_debuff = class(ModifierBaseClass) function modifier_boss_charger_pillar_debuff:OnCreated(keys) if not IsServer() then return end local ability = self:GetAbility() end function modifier_boss_charger_pillar_debuff:DeclareFunctions() return { MODIFIER_PROPERTY_PHYSICAL_ARMOR...
local Action = require(script.Parent.Parent.Action) return Action("SetTabList", function(tabList, initIndex, isDeveloperView) return { tabList = tabList, initIndex = initIndex, isDeveloperView = isDeveloperView, } end)
--// Package Metadata return { Name = "System.UI"; Version = 1.0; Description = [[ Responsible for UI functionality. ]]; Author = "Sceleratis"; Package = script.Parent; Dependencies = { "System.Core", "System.Utilities", "System.Libraries" }; Settings = { ["UI_ModuleGroup"] = { DefaultValue = "Defa...
local str = require 'lulz.str' local fn = require 'lulz.functional' local list = require 'lulz.collections.list' local TestCase = require 'lulz.testcase' local TestStrJoin = TestCase:inherit 'Str Join' function TestStrJoin:test_empty_separator_join() self:assert_equal(str.join('', {'a', 'b', 'c'}), 'abc') end fu...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BseGhostMoveStop_pb', package.seeall) local BSEGHOSTMOVESTOP = protobuf.Descriptor(); local BSEGHOSTMOVESTOP_SESSIONID_FIELD = protobuf.FieldDescriptor(); local BSEGHOSTMOVESTOP_PASSFRAMES_FIELD = protobuf.FieldDescriptor(); local ...
-------------------------------------------------------------------------------- -- 0330-tpretty.lua: tests for pretty-printer -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) -------------------------------------------------------------------------...
require('externals.luaSimpleTest.sources.luaSimpleTest') require('01_GettingStarted.factorial') require('03_Expressions.bool') require('03_Expressions.solve_polynomial') require('04_Statements.maze') require('05_Functions.concat') require('05_Functions.return') local test = Test:new() local block1 = test:blockNew(...
local loadstring = loadstring --Dx Functions local dxDrawImage = dxDrawImageExt local dxGetPixelsSize = dxGetPixelsSize local dxGetPixelColor = dxGetPixelColor local dxSetRenderTarget = dxSetRenderTarget local dxGetTextWidth = dxGetTextWidth -- local triggerEvent = triggerEvent local createElement = createElement local...