content
stringlengths
5
1.05M
addEvent ("onClientPlayerKillMessage",true) function onClientPlayerKillMessage ( killer,weapon,wr,wg,wb,kr,kg,kb,width,resource ) if wasEventCancelled() then return end outputKillMessage ( source, wr,wg,wb,killer,kr,kg,kb,weapon,width,resource ) end addEventHandler ("onClientPlayerKillMessage",getRootElement(),o...
if nil ~= require then require "fritomod/Assert"; require "fritomod/Tests"; require "fritomod/Operator"; end; Mixins=Mixins or {}; function Mixins.ArrayTests(Suite, library) local lib=library; assert(not rawget(Suite, "Table"), "ArrayTests is not compatible with TableTests"); function Suite:ArrayCreator(...) ...
local file = io.open("input.txt", "rb") local content = file:read "*a" file:close() local sum = 0 local max = content:len() for i = 1, max do local current = tonumber(content:sub(i, i)) if i == max then if current == tonumber(content:sub(1, 1)) then sum = sum + current end else if current == t...
--[[ CHANGELIST: 09.01.2015 - Standized variables ]] --[[ Author: kritth Date: 09.01.2015 Find closest hero fire projectile at it ]] function concussive_shot_seek_target( keys ) -- Variables local caster = keys.caster local ability = keys.ability local particle_name = "particles/units/heroes/hero_skywrath_mag...
function (self, unitId, unitFrame, envTable, modTable) local largeSpells, mediumSpells = modTable.largeSpellsTable, modTable.mediumSpellsTable local resize = modTable.resize local auraContainers = {unitFrame.BuffFrame.PlaterBuffList} if (Plater.db.profile.buffs_on_aura2) then auraContainers [...
local timesEnded = 0 function onCreate() if isStoryMode then setProperty('inCutscene',true) setProperty('pico.y',-5000) end end function onStartCountdown() timesEnded = timesEnded + 1 if timesEnded == 1 and isStoryMode then triggerEvent('movaDaTom','1000','200') runTimer('startdathing',2) end if timesEnded == ...
require "lib"; ---------------------------------------------------------------- -- self-initializing 2-level nested array -- testing inc2 function _inc2() local function worker () local b={} local max=256 math.randomseed(1) for i=1,10000 do inc2(b,math.random(max),math.random(max)) end ...
return {'klucht','kluchten','kluchtig','kluchtigheid','kluchtspel','kluft','kluften','kluif','kluiffok','kluifhout','kluis','kluisbeheerder','kluisdeur','kluisgat','kluisruimte','kluister','kluisteren','kluistering','kluit','kluitenbreker','kluiterig','kluitkalk','kluiven','kluiver','kluiverboom','kluizen','kluizenaar'...
local Hash = require 'Hash' local test = require 'simple_test' test('is_hash', function(a) a.ok(Hash.is_hash({ a = 1, b = 2, c = 3 })) a.not_ok(Hash.is_hash('lua')) a.ok(Hash.is_hash({})) end) test('is_empty', function(a) a.ok(Hash.is_empty({})) a.not_ok(Hash.is_empty({ a = 1 })) a.not_ok(Hash.is_empty({ ...
local function _calcStrPosByType(osx, x, width, bChangePercent) -- print('_calcStrPosByType', osx, x, width) local sx --从位置反推到position_str if tonumber(osx) then sx = math.round_number(x) else local percent = string.match(osx, '([0-9.-]*)%%') if percent then if bC...
assert(0, "0"); assert(1 == 1, "1 == 1"); assert(1 < 2, "1 < 2"); assert(2 > 1, "2 > 1"); assert(1 <= 2, "1 <= 2"); assert(2 <= 2, "2 <= 2");
local utils = require("kong.plugins.oidc.utils") local lu = require("luaunit") -- opts_fixture, ngx are global to prevent mutation in consecutive tests local opts_fixture = nil local ngx = nil TestUtils = require("test.unit.base_case"):extend() function TestUtils:setUp() -- reset opts_fixture opts_fixture = { ...
local M = {} M.theme = "everforest-NvChad" -- if theme given, load given theme if given, otherwise nvchad_theme M.init = function(theme) if not theme then theme = M.theme end -- set the global theme, used at various places like theme switcher, highlights vim.g.theme = theme local present, base16 = pca...
--- GENERATED CODE - DO NOT MODIFY -- AWSServerlessApplicationRepository (serverlessrepo-2017-09-08) local M = {} M.metadata = { api_version = "2017-09-08", json_version = "1.1", protocol = "rest-json", checksum_format = "", endpoint_prefix = "serverlessrepo", service_abbreviation = "", service_full_name = "AW...
---@class ConfigWrapper @Wrapper for accessing the terminal.nvim configuration local M = {} ---@alias LogLevel "'fatal'" | "'error'" | "'warn'" | "'info'" | "'debug'" ---@class UserConfig @Terminal.nvim configuration ---@field public startinsert boolean @Enter terminal-mode when entering terminal window ---@field pub...
#!/usr/bin/env lua5.3 package.path = "../?.lua;" .. package.path require "luarocks.loader" --pcall(require, "luacov") --measure code coverage -- -- Need to create some assertations missing from busted that -- were present in lunatest -- luaassert = require "luassert" say = require "say" local function gte( state...
--[[---------------------------------------------------------------------- ______ ________ / __/ /_ __/ __/ __/_ __ / /_/ / / / / /_/ /_/ / / / / __/ / /_/ / __/ __/ /_/ / ...
local cluster_thermal = assert(yatm.cluster.thermal) local table_length = assert(foundation.com.table_length) local table_merge = assert(foundation.com.table_merge) local function get_thermal_node_formspec(pos, user, assigns) local meta = minetest.get_meta(pos) local spos = pos.x .. "," .. pos.y .. "," .. pos.z ...
-- KEYS: zset@id-do set@id-redo -- ARGS: timestamp local data = redis.call('ZRANGEBYSCORE', KEYS[1], 0, ARGV[1]) if (data) then for k, v in pairs(data) do redis.call('ZREM', KEYS[1], v) redis.call('SADD', KEYS[2], v) end end return 0
ENT.Type = "anim" ENT.PrintName = "Forcefield" ENT.Spawnable = true ENT.AdminOnly = true ENT.RenderGroup = RENDERGROUP_BOTH ENT.PhysgunDisabled = true local material = Material("effects/combineshield/comshieldwall3") function ENT:Initialize() local data = {} data.start = self:GetPos() + self:GetRight()*-16 data....
-- 数据包,init中声明外部可访问的信息 local init = { scene = require(".TemplateUI"); } return init
local Ball = _G.ECS.Component({ secondary = false, initialDirection = nil, }) return Ball
-- utils for mousepicking and mesh construction of prisms -- segments=23,xrad=1,yrad=1,startang=0,endang=pi -- returns zero-based table with segments+1 entries function GenerateEllipse (segments,xrad,yrad,startang) local res = {} segments = segments or 23 startang = startang or 0 for i = 0,segments do local a...
project "Soloud" kind "StaticLib" language "C++" outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" targetdir ("../libs/" .. outputdir .. "/%{prj.name}") objdir ("../libs/bin-int/" .. outputdir .. "/%{prj.name}") files { "src/**.cpp", "src/**.h", "src/**.c", "include/**.h", "include/**.c...
-- Count the number of items in table (0 if not a table) function table.count(t) local count = 0 if (type(t) == "table") then for k, v in pairs(t) do count = count + 1 end end return count end
local mysql = exports.mrp_mysql addEvent("wearable.buyItem", true) addEventHandler("wearable.buyItem", root, function(player, modelID, price) local syntax = exports.mrp_pool:getServerSyntax(false, "w"); local boneTable, bone = findThemBonePosition(modelID); if exports.mrp_global:hasMoney(pl...
-- Don't do this: local blah, _ = SomeFunction() -- Do this: local blah = SomeFunction()
local ROOT=script.parent local started=false local w=ROOT.width local h=ROOT.height local startTime=0 ROOT.visibility=Visibility.FORCE_OFF local color=ROOT:GetColor() function Tick(deltatime) if started then ROOT.visibility=Visibility.FORCE_ON local tailleOri=Vector2.New(w,h) local timeCa...
local Event = require('event') local Point = require('point') local Proxy = require('proxy') local Util = require('util') local device = _G.device local network = _G.network local glasses = device['plethora:glasses'] or error('Overlay glasses are required') local id = tonumber(({...})[1]) or error('Synta...
local tiers = { t1 = { loader = { plates = {"iron-plate", 5}, }, beltbox = { plates = {"iron-plate", 10}, gears = {"iron-gear-wheel", 10}, }, }, t2 = { loader = { gears = {"iron-gear-wheel", 20}, }, beltbox = { plates = {"iron-plate", 20}, gears = {"iron...
AddCSLuaFile("autorun/ass.lua") AddCSLuaFile("ass_shared.lua") AddCSLuaFile("ass_client.lua") include("ass_shared.lua") include("ass_cmd.lua") include("ass_res.lua") // SERVER LOGGING STUFF function ASS_NewLogLevel( ID ) _G[ ID ] = ID end ASS_NewLogLevel("ASS_ACL_JOIN_QUIT") ASS_NewLogLevel("ASS_ACL_SPEECH") ASS...
object_tangible_loot_creature_loot_collections_fried_icecream_components_dathomir_beebleberry = object_tangible_loot_creature_loot_collections_fried_icecream_components_dathomir_shared_beebleberry:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_fried_icecream_components_dathomir_bee...
project "glfw" kind "StaticLib" language "c" includedirs {"include", "lib"} targetdir "library" files {"lib/*.c"}; defines {"_LIB"} configuration "windows" defines "WIN32" files {"lib/win32/*.c"}; includedirs {"lib/win32"} configuration "linux" defines {"_GLFW_USE_LINUX_JOYSTI...
-- angrybino -- init -- September 26, 2021 local RunService = game:GetService("RunService") if RunService:IsClient() then return require(script.Client) else return require(script.Server) end
return function(scene, dt) local map_height local tile_height for entity in pairs(scene:entities_with('map')) do map_height = entity.map.height * entity.map.tileHeight end for entity in pairs(scene:entities_with('dies_when_off_stage', 'position')) do if entity.position.y > map_height then enti...
zone = {} isPlayerInZone = false zoneconfig = { zoneBlip = 9, zoneAlpha = 100, zoneColor = 4, blip = 305, blipcolor = 4, blipalpha = 255, } RegisterNetEvent("RecieveZoneReward") RegisterNetEvent("SetZoneOwner") RegisterNetEvent("SetGameFinished") local zoneArea = nil local zoneBlip = nil local changingMap = fa...
useable = { name = "ATK Boost", description = "Raises the users ATK by 1.", price = 200, usetype = "BUFF", use = function(user) user:INCREASEATK(1) end }; texture = { x = 14, y = 10 };
Path = Path or {} function Path.ExtractFileName(path) path = path:gsub("\\", "/") local lastChar = path:sub(-1) if lastChar == "/" then path = path:sub(1, -2) end local pos local b, init, n = 1, 0, 0 repeat pos, init, n = b, init + 1, n + 1 b, init = path:find("/", i...
--- -- tile_cutter_spec.lua describe("Tile cutter", function () local TileCutter = require "tile_cutter" local mock_img = { getDimensions = function () return 10, 20 end } _G.love = { graphics = { newImage = function () return mock_img end, newQuad = function...
loadstring(game:HttpGet("https://pastebin.com/raw/0u5zXZkc", true))()
local class = require 'middleclass' local lume = require 'lume' -- 基底クラス local Entity = require 'Entity' -- エンティティマネージャ クラス local EntityManager = class('EntityManager', Entity) -- 初期化 function EntityManager:initialize() Entity.initialize(self) self.entities = {} end -- 破棄 function EntityManager:destroy() ...
--Basic operations plugin local botAPI, discord, pluginName, pluginPath, pluginDir = ... local rolesManager = require("bot.roles_manager") local commandsManager = require("bot.commands_manager") local pluginsManager = require("bot.plugins_manager") local plugin = {} --== Plugin Meta ==-- plugin.name = "Basic" --The...
Falling = { speedBuffer = {}, isFalling = false, bufferSize = 10, maxSpeed = 40.0, minSpeed = 1.0, fractureSpeed = 20.0, } --[[ Functions ]]-- function Falling:Update() local speed = GetEntitySpeed(Ped) table.insert(self.speedBuffer, speed) if #self.speedBuffer > self.bufferSize then table.remove(self.spe...
local widget = require( "widget" ) local composer = require( "composer" ) local json = require ("json") local loadsave = require( "loadsave" ) local myData = require ("mydata") local cwMapTutScene = composer.newScene() local tutPage=1 --------------------------------------------------------------------------------- --...
require "/scripts/util.lua" require "/scripts/vec2.lua" require "/scripts/versioningutils.lua" require "/scripts/staticrandom.lua" --require "/items/buildscripts/combofinishselector.lua" function build(directory, config, parameters, level, seed) local configParameter = function(keyName, defaultValue) if paramete...
local Class = require('lib/middleclass') local Tweens = Class('Tweens') local tweenFuncs = { linear = function(t) return t end, quad = function(t) if t < 0.5 then return 2*t*t else return -1 + (4-2*t) * t end end, quadOut = function(t) return -((t-1)*(t-1)) + 1 end, elast...
local args = {...} if #args == 0 then args = { "-f", "repl.sq" } end local first = args[1] if #args == 2 and first == "-e" or first == "-f" then local program, name = args[2], args[2] if first == "-f" then local f = io.open(program, "rb") if not f then io.stderr:write("error: '...
return { corgeo = { acceleration = 0, activatewhenbuilt = true, brakerate = 0, buildangle = 4096, buildcostenergy = 12280, buildcostmetal = 1405, builder = false, buildinggrounddecaldecayspeed = 30, buildinggrounddecalsizex = 6, buildinggrounddecalsizey = 6, buildinggrounddecaltype = "corgeo_aopl...
-- Event notes hooks function onEvent(name, value1) if name == 'Set Health' then value = tonumber(value1); setProperty('health', value); end end
local class = require 'middleclass' local split = class('FREEIOE_PLC_AB_PLCTAG_APS') local ELEM_SIZE = { bool = 1, uint8 = 1, int8 = 1, uint16 = 2, int16 = 2, uint32 = 4, int32 = 4, uint64 = 8, int64 = 8, float32 = 4, float64 = 8, string = 88 } function split:elem_size(prop) return ELEM_SIZE[prop.dt] en...
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetHarmRandomByWeight", targetAniEffect = "", arg_list = { weapon_id = 65811, delay = 0.2 } }, { type = "BattleSkillFire", casterAniEffect = "", target_choise = "Tar...
----------------------------------------- -- ID: 5162 -- Item: plate_of_squid_sushi_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 30 -- Dexterity 6 -- Agility 5 -- Accuracy % 16 -- Ranged ACC % 16 -- Sleep Resist 2 ----------------------------------------- require("scripts/glob...
describe( "Text translation using Babel #i18n", function() local babel --- Initialize babel and load test translations from the -- tests/translations folder. setup( function() babel = require "babel" babel.init( { locale = "fr_FR", locales_folders = { "tests/tr...
return { id = "ingotVoidmetal", name = "Voidmetal Ingot", desc = "Retains and enhances the properties of its components.", tier = 8, spriteSheet = "materials", spriteCoords = Vector2.new(9,2), recipe = { ingotGold = 15, ingotBluesteel = 15, ingotViridium = 15, ...
help([[SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. - Homepage: http://www.swig.org/]]) whatis([[Description: SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming...
local PXPayload = {} function PXPayload:new(t) t = t or {} setmetatable(t, self) self.__index = self return t end function PXPayload:handleHeader(header) if string.match(header, ":") then local version = string.sub(header, 1, 1) local cookie = string.sub(header, 3) return v...
function table.map_length(t) local c = 0 for k,v in pairs(t) do c = c+1 end return c end A = { ["b"] = {c=1, d=2}, ["e"] = {f=1, g=2}, } print(table.map_length(A)) --https://pt.stackoverflow.com/q/33301/101
require 'string' utils = require 'utils' npy4th = require 'npy4th' --------------------------------------------------------------- -- for operating strings as arrays getmetatable('').__call = string.sub --------------------------------------------------------------- if not opt then cmd = torch.CmdLine() cmd:text() ...
#!/usr/bin/env tarantool local process_timeout = require('process_timeout') local ffi = require('ffi') local tap = require('tap') local fio = require('fio') -- -- Tests to check if the tarantool binary enters -- interactive mode or not using error injections -- to change return value of isatty(stdin). -- local TARAN...
-- lovecmd.lua v0.1 -- Copyright (c) 2017 Ulysse Ramage -- 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,...
local status_ok, bufferline = pcall(require, "bufferline") if not status_ok then return end bufferline.setup { options = { numbers = "none", -- | "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, raise }): string, close_command = "Bdelete! %d", -- can be a string | function, see...
return { ["comment"]="% generated by mtxrun --script pattern --convert", ["exceptions"]={ ["n"]=0, }, ["metadata"]={ ["mnemonic"]="th", ["source"]="hyph-th", ["texcomment"]="% Thai hyphenation patterns\ %\ % Copyright 2012-2013 Theppitak Karoonboonyanan <theppitak at gmail.com>\ %\ % This work may be distri...
local ngx = require 'ngx' local typedefs = require 'kong.db.schema.typedefs' local plugin_name = ({...})[1]:match('^kong%.plugins%.([^%.]+)') local kong_constants = require "kong.constants" local re_match = ngx.re.match local AUTH_METHOD = {'client_secret_basic', 'client_secret_post', 'private_key_jwt', 'client_secre...
local g_Players = {} achievementListMix = { -- { achText, achID (unique!!!!), reward, max } { s = "CTF: Capture two flags in one map", id = 1, reward = 50 }, { s = "CTF: Capture three flags in one map", id = 12, reward = 100 }, { s = "CTF: Capture the winning flag", id = 2, reward = 25 }, {...
-- Complextras.nvim configuration vim.api.nvim_set_keymap( "i", "<C-x><C-m>", [[<c-r>=luaeval("require('complextras').complete_matching_line()")<CR>]], {noremap = true} ) vim.api.nvim_set_keymap( "i", "<C-x><C-d>", [[<c-r>=luaeval("require('complextras').complete_line_from_cwd()")<CR>]], {noremap = tru...
local http = require("resty.http") local json = require("cjson.safe") local type = type local methods = { [ngx.HTTP_GET] = "GET", [ngx.HTTP_HEAD] = "HEAD", [ngx.HTTP_PUT] = "PUT", [ngx.HTTP_POST] = "POST", [ngx.HTTP_DELETE] = "DELETE", [ngx.HTTP_OPTIONS] = "OPTIONS", [ngx.HTT...
#!/usr/bin/env lua Spore = require 'Spore' require 'Test.More' plan(29) error_like( [[Spore.new_from_string(true)]], "bad argument #1 to new_from_string %(string expected, got boolean%)" ) error_like( [[Spore.new_from_string('', '', true)]], "bad argument #3 to new_from_string %(string expe...
local log = require("apisix.core.log") local uuid = require('resty.jit-uuid') local smatch = string.match local open = io.open local prefix = ngx.config.prefix() local apisix_uid local _M = {version = 0.1} local function rtrim(str) return smatch(str, "^(.-)%s*$") end local function read_file(path) local ...
DamageArea = { type = "DamageArea", Properties = { damageRate = 5, bEnabled = 1, }, Editor={ Model="Objects/Editor/T.cgf", }, curDamageRate = 0, curDamage = 0, isEnabled = 1, hit = { dir = {x=0, y=0, z=1}, damage = 0, target = nil, shooter = nil, landed = 1, impact_force_mul_final=5, ...
------------------------------------------------- -- CPU Widget for Awesome Window Manager -- Shows the current CPU utilization -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/cpu-widget -- @author Pavel Makhov -- @copyright 2019 Pavel Makhov ---------------------...
local HttpService = game:GetService("HttpService") local Constants = require(script.Parent.Constants) local copyDeep = require(script.Parent.copyDeep) local Data = require(script.Parent.Data) local Document = require(script.Parent.Document) local Error = require(script.Parent.Error) local Promise = require(script.Pare...
local t = Def.ActorFrame{ InitCommand=cmd(y,-15); LoadActor("confirm")..{ InitCommand=cmd(x,SCREEN_CENTER_X+80;); }; LoadActor("select")..{ InitCommand=cmd(x,SCREEN_CENTER_X-80); }; }; return t;
--[[ Copyright © Lili, 2020 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
register_block_pair({ name = "Chest", id = "chests.normal", textures = { "Assets/chest_normal_front.png", "Assets/chest_normal_side.png", "Assets/chest_normal_side.png", "Assets/chest_normal_side.png", "Assets/chest_normal_top.png", "Assets/chest_normal_bottom.png" }, image = "Assets...
local lf = love.filesystem local lg = love.graphics local lm = love.math local lp = love.physics local framework = {} framework.version = "LOVE" assert(lf, "The love.filesystem module is required for this library.") assert(lg, "The love.graphics module is required for this library.") assert(lm, "The love.math module ...
local GUI = LibStub('NetEaseGUI-2.0') local L = LibStub('AceLocale-3.0'):GetLocale('NetEaseGUI-2.0') StaticPopupDialogs['NECLOUD_CONFIRM_DIALOG'] = {} StaticPopupDialogs['NETEASE_COPY_URL'] = { text = L.DialogCopyUrl, button1 = OKAY, timeout = 0, exclusive = 1, whileDead = 1, hideOnEscape = 1...
return { sharp = { 6, 7, 32 }, sharpp = { 6, 7, 38, 5 } }
local skynet = require "skynet" local snax = require "skynet.snax" local sprotoloader = require "sprotoloader" local is_windows = package.config:sub(1,1) == '\\' skynet.start(function() skynet.error("Skynet RDC Server Start") skynet.uniqueservice("protoloader") if not is_windows and not skynet.getenv "daemon" then...
function rounded_rect(x, y, w, h, r) local right = 0 local left = math.pi local bottom = math.pi * 0.5 local top = math.pi * 1.5 r = r or 15 love.graphics.rectangle("fill", x, y+r, w, h-r*2) love.graphics.rectangle("fill", x+r, y, w-r*2, r) love.graphics.rectangle("fill", x+r, y+h-r, w-r*2, r) ...
local changes = { ["blueprint"] = { ["blueprint"] = { selection_cursor_box_type = "electricity", alt_selection_cursor_box_type = "electricity" } }, ["copy-paste-tool"] = { ["cut-paste-tool"] = { selection_cursor_box_type = "not-allowed", alt_selection_cursor_box_type = "not-all...
addEvent("dpMarkers.use", false) addEventHandler("dpMarkers.use", root, function() local mapName = source:getData("RaceMarker.map") if type(mapName) ~= "string" then return end LobbyScreen.toggle(mapName) end) addEventHandler("onClientMarkerLeave", root, function (player) if player ~= loca...
-- Project: LOOP Class Library -- Title : Data Structure for Exception/Error Information -- Author : Renato Maia <maia@inf.puc-rio.br> local _G = require "_G" local tostring = _G.tostring local oo = require "loop.base" local class = oo.class local Exception = class{ "Exception" } function Exception:__concat(other)...
function logPressure() require('initBme280') initBme280() package.loaded['initBme280'] = nil initBme280 = nil pressure, temperature = bme280.baro() require('logSensor') logSensor('Pressure', pressure) package.loaded['logSensor'] = nil logSensor = nil pressure = nil end
local fs = {} fs["readable?"] = function(path) _G.assert((nil ~= path), "Missing argument path on fnl/tangerine/utils/fs.fnl:8") return (1 == vim.fn.filereadable(path)) end fs.read = function(path) _G.assert((nil ~= path), "Missing argument path on fnl/tangerine/utils/fs.fnl:12") local file = assert(io.open(pat...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- spirit_breaker_gre...
local keepScroll = false function onCreate() if getPropertyFromClass('ClientPrefs', 'middleScroll') == true then keepScroll = true; elseif getPropertyFromClass('ClientPrefs', 'middleScroll') == false then setPropertyFromClass('ClientPrefs', 'middleScroll', true); end end function onDestroy() if keepScroll == ...
--[[ file:mahjongEnum.lua desc:麻将枚举 auth:Caorl Luo ]] local class = require("class") local gameEnum = require("game.enum") ---@class mahjongEnum:gameEnum @麻将枚举 local enum = class(gameEnum) local this = enum ---构造 function enum:ctor() end ---庄家 ---@return senum function enum.zhuang() return "zhuang...
junkDealerMalikConvoTemplate = ConvoTemplate:new { initialScreen = "init", templateType = "Lua", luaClassHandler = "JunkDealerMalikConvoHandler", screens = {} } init = ConvoScreen:new { id = "init", leftDialog = "@conversation/junk_malik_vistal:s_769000a5", -- You look to be a rough sort. Perhaps you would be in...
-- Remove pumpjack from oil-processing tech local new_effects, tech = {}, _G.data.raw["technology"]["oil-processing"] for _, effect in pairs(tech.effects) do if effect.type ~= "unlock-recipe" or (effect.recipe ~= "pumpjack" and effect.recipe ~= "basic-oil-processing") then table.insert(new_effects, effect) ...
return{ --------------Swordman--------------------------------------- ["SM_ATK_01"] = "sounds/char/swordman/sm_atk_01.ogg", ["SM_ATK_02"] = "sounds/char/swordman/sm_atk_02.ogg", ["SM_ATK_03"] = "sounds/char/swordman/sm_atk_03.ogg", ["SM_DMG_01"] = "sounds/char/swordman/sm_dmg_01.ogg", ["SM_DMG_02"] = "sounds/...
local CoreGui = game:GetService("CoreGui") local RobloxGui = CoreGui:WaitForChild("RobloxGui") local GetFFlagInGameMenuOpenOnHover = require(RobloxGui.Modules.Flags.GetFFlagInGameMenuOpenOnHover) local defaultPageKey if GetFFlagInGameMenuOpenOnHover() then defaultPageKey = "InitalPage" else defaultPageKey = "MainPa...
-- -- lua-Silva : <http://fperrad.github.io/lua-Silva/> -- local modname = string.gsub(..., '%.%w+$', '') local matcher = require(modname).matcher local char = string.char local error = error local tonumber = tonumber local tostring = tostring local _ENV = nil local function convert (n) return char(tonumber(n, ...
local filename = ... local file = io.open(filename, 'r') local sum = nil local text = nil while true do local num = file:read("*n") if num then if not sum then sum = num else sum = sum + num end else local txt = file:read("*l") if txt then if not text then text = ...
local turfCoordinates = { [1] = {x = 1377.5, y = 903, z = 9, w = 120, l = 220, h = 20, spawn = {1435, 974, 10.8, 0}}, -- [2] = {x = 1577.7, y = 883, z = 9, w = 180, l = 240, h = 20, spawn = {1632, 972, 10.8, 270}}, [3] = {x = 1873, y = 939, z = 9, w = 160, l = 149, h = 10, spawn = {2022, 1008, 10.8, 270}}, ...
local umath = require("math.umath") local vec3 = {} vec3.__index = vec3 function vec3.is(obj) return getmetatable(obj) == vec3 end function vec3.new(x, y, z) return setmetatable({ x = x or 0, y = y or 0, z = z or 0 }, vec3) end function vec3.__tostring(this) return "(" .. this...
local class = require 'EasyLD.lib.middleclass' local Image = class('Image') function Image:initialize() end function Image:draw(x, y, r, sx, sy, ox, oy, kx, ky) end function Image:drawPart(mapX, mapY, x, y, w, h, id) end return Image
local TableUtils = {} local DefaultParams = RaycastParams.new() local RaycastUtils = {} function RaycastUtils.raycastParamsFrom(params) local raycastParams = RaycastParams.new() if params.IgnoreWater == nil then params.IgnoreWater = raycastParams.IgnoreWater end raycastParams.FilterDescenda...
if SERVER then include "players/components/vote.lua" include "players/components/voteskip.lua" end --[[--------------------------------------------------------- Media Player Types -----------------------------------------------------------]] MediaPlayer.Type = {} local function setBaseClass( name, tbl ) local cl...
require 'image' -- data augmentation methods local function crop(x, offsets, width, height) height = height or width return image.crop(x, offsets[1], offsets[2], offsets[1] + width, offsets[2] + height) end local function horizontal_reflection(x) return image.hflip(x) end local function zoomout(x) return ...
project "phantom" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") pchheader "phpch.h" pchsource "src/phpch.cpp" files { "src/**.h", "src/**.cp...