content
stringlengths
5
1.05M
------------------------------------------------------------------------------------------------------------------- -- Setup functions for this job. Generally should not be modified. ------------------------------------------------------------------------------------------------------------------- --[[ gs c ...
local kTagAction1 = 1 local kTagAction2 = 2 local kTagSlider = 1 local s = cc.Director:getInstance():getWinSize() local scheduler = cc.Director:getInstance():getScheduler() local function createSimpleMoveBy() return cc.MoveBy:create(3, cc.p(s.width - 130, 0)) end local function createSimpleDelayTime() return...
local PANEL = {} local function outQuad( fraction, beginning, change ) return -change * fraction * (fraction - 2) + beginning end local function drawCircle( x, y, r ) local circle = {} for i = 1, 360 do radians = math.rad( i ) circle[i] = { x = x + math.cos(radians)*r, y = y + math.sin(radi...
function isPlayerInACL ( player, acl ) local account = getPlayerAccount ( player ) if ( isGuestAccount ( account ) ) then return false end return isObjectInACLGroup ( "user."..getAccountName ( account ), aclGetGroup ( acl ) ) end function isPlayerAdmin (player) return isPlayerInACL (player, "Admin") e...
--[[ Target.lua Terry@bf 2010 - 11 - 5 借用ENUF的队友目标代码,并ace化 ]] local T = LibStub("AceAddon-3.0"):GetAddon("TUnitFrame") if not T then return end local M = T:GetModule("Party",true) or T:NewModule("Party") if not M then return end local TF = M:NewModule("Target","AceEvent-3.0","AceHook-3.0") if no...
----------------------------------- -- Area: Mhaura -- NPC: Lacia -- Starts Quest: Trial Size Trial By Lightning -- The "TrialSizeLightning_date" still needs to be set at the BCNM/Mob level to reflect defeat by the Avatar ----------------------------------- require("scripts/globals/settings"); require("scripts/global...
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/GameObject/UM11_ForceAdeptFour.lua#3 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- * ** ...
require('plugins') local g = vim.g local cmd = vim.cmd local o, wo, bo = vim.o, vim.wo, vim.bo local utils = require('utils') local opt = utils.opt local autocmd = utils.autocmd local map = utils.map local buffer = {o, bo} local window = {o, wo} opt('textwidth', 120, buffer) opt('encoding', 'utf-8') opt('tabstop', 2,...
require("mod.ffhp.event.item_ex_mapping")
--- Menu bar configuration local awful = require("awful") local wibox = require("wibox") local M = {} --- useless -- local function getTaglistButtons() -- local taglist_buttons = awful.util.table.join( -- awful.button({ }, 1, function(t) t:view_only() end), -- awful.button({ modkey }, 1, function(t) -- ...
local json = require("rapidjson") local srv_conf = require("./lua/utils/conftool").load_srv_conf() -- input parameters local GET = ngx.req.get_uri_args() local lng, lat = GET.lng, GET.lat local is_poi_needed = GET.poi local maptype = GET.maptype -- parameter calibration if not maptype then maptype = "baidu" end i...
return { fields = { count = { type = "number", default = 1000 } } }
local NodeEntityState = {} NodeEntityState.__index = NodeEntityState --############################################################################# --DO NOT EDIT ABOVE --############################################################################# --###################################################################...
function UIText() local self = UIElement() self.options.template = [[ <div id="<%- id %>" class="ui-framework-parent ui-text" style="<% if (typeof css != 'undefined') { %><%- css %><% } %>"><%- content %></div> ]] return self end
SS.Part.Add("Awards", "Hover")
-- Copyright (C) 2010-2013 Ian MacLarty. See Copyright Notice in ../lt.h local sprites_mt = {__mode = "v"} ------------------------------------------------------------- function lt.SpriteSet() local sprites = {} setmetatable(sprites, sprites_mt) return sprites end local global_sprites = lt.SpriteSet() l...
local lsm = LibStub("LibSharedMedia-3.0", true) lsm:Register("font", "Augustus", "Interface\\AddOns\\SharedMedia_ClassicalFonts\\Fonts\\AUGUSTUS.TTF") lsm:Register("font", "Caesar", "Interface\\AddOns\\SharedMedia_ClassicalFonts\\Fonts\\CAESAR.TTF") lsm:Register("font", "Diogenes", "Interface\\AddOns\\SharedMedia_...
-- programme pour faire un test depuis de le webide function a2() print("\n a2.lua zf190617.1128 \n") end a2() -- Lit les capteurs de température solaire et envoie les mesures sur ThingSpeak -- zf190617.1134 -- lecture: https://thingspeak.com/channels/802784/private_show -- source: https://nodemcu.readthe...
Config = {} Config.Alerts = { carthief = { blip = { sprite = 10, -- radar_radius_outline_blip color = 28, -- Dark Taxi Yellow alpha = 250, isShortRange = 1, category = 7 -- "Other Players" category, also shows distance in legend } }, ...
require "tundra.syntax.glob" require "tundra.path" require "tundra.util" require "tundra.syntax.rust-cargo" local function gen_moc(src) return Moc { Pass = "GenerateSources", Source = src } end local function gen_uic(src) return Uic { Pass = "GenerateSources", Source = src ...
--[[ ############################################################################## S V U I By: Failcoder ############################################################################## --]] --[[ GLOBALS ]]-- local _G = _G; local unpack = _G.unpack; local select = _G.select; --[[ ADDON ]]-- local SV = _G['SVUI']; lo...
local turbo = require("turbo") local testHandler = class("exampleHandler", turbo.web.RequestHandler) function testHandler:get() self:write("<html><body><h1>Example!</h1></body></html>") end local mod = { title = "test module", handlers = { {"/test", testHandler} } } return mod
object_mobile_smuggler_broker_ria = object_mobile_shared_smuggler_broker_ria:new { } ObjectTemplates:addTemplate(object_mobile_smuggler_broker_ria, "object/mobile/smuggler_broker_ria.iff")
local _M = {}; if module then roam = _M end module ("roam", package.seeall) function wait(seconds) local start = os.time() repeat until os.time() > start + seconds end function deepcopy(orig) local orig_type = type(orig) local copy if orig_type == 'table' then copy = {} for orig_k...
-- -- Created by IntelliJ IDEA. -- User: crzang -- Date: 13.01.15 -- Time: 1:04 -- To change this template use File | Settings | File Templates. -- local crzang = { widget = require("crzang.widget"); lib=require("crzang.lib") } return crzang
-- Setup nvim-cmp. local has_words_before = function() local line, col = unpack(vim.api.nvim_win_get_cursor(0)) return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match('%s') == nil end local luasnip = require('luasnip') local cmp = require('cmp') cmp.setup({ snippet = { -...
--[[ 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 Players = game:GetService("Players") local Modules = Players.LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local Url = require(Modules.NotLApp.Http.Url) --[[ Documentation of endpoint: https://economy.roblox.com/docs#%21/Currency/get_v1_users_userId_currency input: userId ]] return function(requestImp...
--- --- UI界面的统一注册 --- local GUICollections = { ["xxx"] = require(""), }
-- Load the test file. dofile("./mods/utils/test.lua") -- Load the file for testing. dofile("./mods/utils/interpolate.lua") dofile("./mods/utils/list.lua") dofile("./mods/utils/transform.lua") dofile("./mods/utils/mathutil.lua") dofile("./mods/utils/tableutil.lua") local function test_big_linear() test.equals(0, t...
vim.cmd'colorscheme onedark'
require 'Libs/Utility/math' require 'Libs/Utility/logger' function MessageAll(s) --luacheck: allow defined top for _, player in pairs(game.players) do if player.mod_settings["pitch-display-messages"].value then player.print(s) end end end function DeepCopy(orig) --luacheck: allow d...
local pickers = require('telescope.pickers') local finders = require('telescope.finders') local conf = require('telescope.config').values local actions = require('telescope.actions') local action_state = require('telescope.actions.state') local index = require('jopvim.index') local jopvim = require('jopvim') local M =...
-- !weather -- Starts any of the weather pattern on the server (by number or name) ChatCommands["!carpackage"] = function(playerId, command) Log(">> !carpackage") local player = System.GetEntity(playerId) -- Only allow the following SteamId to invoke the command local steamid = player.player:GetSteam64Id() ...
--[[ @cond ___LICENSE___ -- Copyright (c) 2017 Zefiros Software. -- -- 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, ...
--[[ All Monsters used in the game. Gets and Sets. ]] local Monster = {} Monster.__index = Monster function Monster:new() local monsters = { m = { name = "Ghost of Dead", msg = "Booooooooooooooooooohhhhhhhhhhh", damage = 8, ...
Hephaistos.Recenter(ScreenData.GameStats, 'CategoryStartX', 'CategoryStartY')
--[[ RA-MOD ]]-- local fs = require "nixio.fs" local running=(luci.sys.call("pidof redsocks2 > /dev/null") == 0) local button="" if running then m = Map("redsocks2", translate("redsocks2"), translate("redsocks2 is running")) else m = Map("redsocks2", translate("redsocks2"), translate("redsocks2 is not running")) e...
local fx = require 'fxcommon' local samplers = require 'samplers' -- Declare resources local shadowMap = fx.Texture2D.new { format = C.R8G8B8A8_UNORM, width = 2048, height = 2048 } -- Create a pass local blurH = fx.ComputePass.new { textures = { [0] = sm }, samplers = { [0] = samplers.linearClamp } }
function love.conf(t) t.title = "Animations Test" t.author = "Elijah Mirecki" t.url = "https//elijah.mirecki.com" t.version = "11.0" t.window.width = 640 t.window.height = 800 t.window.vsync = false end
-- it cases for `hs.bytes` local spec = require "cp.spec" local expect = require "cp.spec.expect" local bytes = require "hs.bytes" local describe, it, context = spec.describe, spec.it, spec.context return describe "hs.bytes" { context "bytesToHex" { it "retu...
--[[ SPDX-FileCopyrightText: Copyright 2021 by Sebastian Thomschke and contributors SPDX-License-Identifier: MIT SPDX-ArtifactOfProjectHomePage: https://github.com/sebthom/more-clink-completions Clink command line completions for "javac" command (Java Compiler). See https://chrisant996.github.io/clink/clink...
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] require("lualib_bundle"); __TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["5"] = 3,["6"] = 3,["7"] = 3,["9"] = 5,["10"] = 7,["11"] = 11,["12"] = 12,["13"] = 13,["15"] = 16,["16"] = 11,["17"] = 19,["18"] = 20,["19"] = 20,["20"] = 20,["21"] ...
--I  Script -peyquinn//Seperate Functions//----------------------------------------------------------------------- --Scripted By peyquinn --If you steel then you are a noob --This model is avalible for ScriptBuilder --I worked hard on this so dont steal :@ --Anti-Steal is gonna be in my models player="peyquinn"--Your...
-- Copyright (c) 2021, The Pallene Developers -- Pallene is licensed under the MIT license. -- Please refer to the LICENSE and AUTHORS files for details -- SPDX-License-Identifier: MIT local trycatch = require "pallene.trycatch" local function boom(n, cb) if n == 1 then cb() else boom(n-1, cb)...
-- -- Goalpipes for cover2 -- function PipeManager:OnInitCover2() AI.LogEvent("OnInitCover2 CALLED"); --------------------------------------------- AI.BeginGoalPipe("cv_get_back_to_idlepos"); AI.PushGoal("bodypos",0,BODYPOS_STAND); AI.PushGoal("firecmd",0,0); AI.PushGoal("run",0,0); AI.PushGoal("lookaroun...
---------------------- GREEN BELT PICTURES green_belt_horizontal = { filename="__Engineersvsenvironmentalist__/graphics/entity/transport-belts/green-transport-belt.png", priority = "extra-high", width = 40, height = 40, frame_count = 32 } green_belt_vertical = { filename="__Engineersvsenvi...
--STD addon by Microeinstein --rPrint is not mine, but I modified it a bit __std = {} function term.wash() term.setBackgroundColor(colors.black) term.setTextColor(colors.white) term.clear() term.setCursorPos(1, 1) end function term.input(text, prefix) prefix = prefix or "" term.write(text..prefix) return prefi...
local wibox = require('wibox') local gears = require('gears') local clickable_container = require('widget.material.clickable-container') local dpi = require('beautiful').xresources.apply_dpi function build(imagebox, args) local margin = dpi(7) -- return wibox.container.margin(container, 7, 7, 7, 7) return wibox...
function BaseEnemigo(x,y) local self = BaseEntity(x,y) self.hp = 1 self.red_flicker = false self.fliker_timer = 0 self.entity_id = 0 self.can_damage_player_on_touch = true self.can_get_damaged = true self.shoot = false self.entity_tipe = "foe" ...
-- Test the yank command test.open('19az.txt') local lineno = test.lineno local colno = test.colno local assertEq = test.assertEq test.key('j') assertEq(colno(), 0) assertEq(lineno(), 1) assertEq(buffer:get_cur_line(), "0123456789\n") -- Test yanking the line test.key('y', 'y') assertEq(colno(), 0) assertEq(lineno(), 1...
-- Generated by CSharp.lua Compiler local System = System local DCETHotfix = DCET.Hotfix local DCETModel = DCET.Model System.namespace("DCET.Hotfix", function (namespace) namespace.class("G2C_TestHotfixMessageHandler", function (namespace) local Run Run = function (this, session, message) return System....
addEventHandler( "onClientPlayerVehicleEnter", getLocalPlayer(), function( vehicle ) setElementData( vehicle, "groundoffset", 0.2 + getElementDistanceFromCentreOfMassToBaseOfModel( vehicle ) ) end ) addEvent( "CantFallOffBike", true ) addEventHandler( "CantFallOffBike", getLocalPlayer(), function( ) --outputDeb...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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...
function Server_Created(game, settings) local overriddenBonuses = {}; for _, bonus in pairs(game.Map.Bonuses) do --skip negative bonuses unless ChangeNegavtive was checked if (bonus.Amount > 0 or Mod.Settings.ChangeNegavtive) then --skip superbonuses if (isSuperBonus(bonus) == false ) then local...
<%- partial('../sidebar') %> <div id='content'> <div class='panel'> <div class='header'> <ul class='breadcrumb'> <li><a href='/'>主页</a><span class='divider'>/</span></li> <li class='active'>设置</li> </ul> </div> <div class='inner'> <% if the_error then %> <div cla...
require("strict") local MRC = require("MRC") local testDir = "spec/MRC" describe("Testing MRC class #MRC.", function() it("Test parsing of modA", function() local mrc = MRC:singleton() local modA={ {kind="module...
data:extend{ -- Startup Settings (loaded before the prototype stage) { type = "bool-setting", name = "betterbots-enable-wired-roboports", setting_type = "startup", default_value = false, order = "a-a" }, --[[ { type = "bool-setting", name = "b...
object_draft_schematic_structure_component_structure_ore_mining_unit_advanced = object_draft_schematic_structure_component_shared_structure_ore_mining_unit_advanced:new { } ObjectTemplates:addTemplate(object_draft_schematic_structure_component_structure_ore_mining_unit_advanced, "object/draft_schematic/structure/comp...
return function(request) print("HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n") print("<html><body><h1>Delegated Request Info</h1><ul>") for k, v in pairs(request) do if "table" == type(v) then print(string.format("<li><b>%s</b>:</li><ul>", k)) for k, v in pairs(v) do ...
--[[ Copyright 2020 Manticore Games, Inc. 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, d...
local _M = { _VERSION = '0.0.1' } local lrucache = require("resty.lrucache") --创建缓存实例,并指定最多缓存多少条目 local cache, err = lrucache.new(200) --[[ set cache cache:cache dictionary key:cache key value:cache value exptime:expire time ]] function _M.set(key, value, exptime) if not exptime then exptime = 0 ...
require "GoFlightRP48" RadioUnit = 0 RadioDelay = 10 RadioStack = 0 GFRP48_DefineRotary(RadioUnit, 0, "SetMHZ"); GFRP48_DefineRotary(RadioUnit, 1, "SetKHZ"); GFRP48_DefineRotary(RadioUnit, 2, "SetOuter"); GFRP48_DefineRotary(RadioUnit, 3, "SetInner"); GFRP48_DefinePush(RadioUnit, 0, "ToggleSwapStack"); GFRP48_Define...
--Copyright 2018 Ibispi --the main file -------------------------------------------------------------------------------- ui = { } -------------------------------------------------------------------------------- ui.currentlySetCanvas = nil ui.canvasTable = {} ui.tooltip = {} ui.tooltip.settings = {} ------------------...
return { name = "Ambassador", version = "0.08", description = "A library that greatly simplifies communication between server and client", author = "brianush1", license = "Apache 2.0", dependencies = {} }
local Plugin = script.Parent.Parent.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local RoactRodux = require(Libs.RoactRodux) local Utility = require(Plugin.Core.Util.Utility) local Constants = require(Plugin.Core.Util.Constants) local ContextGetter = require(Plugin.Core.Util....
object_mobile_dressed_legacy_b3po = object_mobile_shared_dressed_legacy_b3po:new { } ObjectTemplates:addTemplate(object_mobile_dressed_legacy_b3po, "object/mobile/dressed_legacy_b3po.iff")
local require = require local Group = require 'war3.group' local Text = require 'war3.text' local e = require 'lib.event_manager':new() local l = require 'war3.listener':new(e) e:addEvent( '單位-受到傷害', 'GetTriggerUnit GetSpellAbilityId', function(_, source, ability) Text:new( { ...
return function (Data) if Data == "[空]" then Data = "" end Data = MultiFilter(Data) return tostring(Data) end
uint = require("nums.uintn") a8 = uint.u8(19) b8 = uint.u8(142) c8 = uint.u8(254) a32 = uint.u32(6000) b32 = uint.u32(9) c32 = uint.u32(12345678) require("test_uint.add") require("test_uint.sub") require("test_uint.mul") require("test_uint.div") require("test_uint.mod") require("test_uint.pow") require("test_uint.un...
local DifferenceCheck = require(script.Parent.Parent.DifferenceCheck) -- stolen from Rodux local function createReducer(initialState, handlers) return function(state, action) if state == nil then state = initialState end local handler = handlers[action.type] if handler then return handler(state, actio...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) AddEventHandler('esx:playerLoaded', function(source) local xPlayer = ESX.GetPlayerFromId(source) end) ESX.RegisterServerCallback('garages:getOwnedVehicles', function (source, cb) local xPlayer = ESX.GetPlayerFromId(source) lo...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] PoliciesManager must initiate PTU on a User request -- [HMI API] UpdateSDL request/response -- -- Description: -- SDL should request PTU in case user requests PTU -- 1. Used prec...
object_mobile_azure_cabal_sb_penitent_02 = object_mobile_shared_azure_cabal_sb_penitent_02:new { } ObjectTemplates:addTemplate(object_mobile_azure_cabal_sb_penitent_02, "object/mobile/azure_cabal_sb_penitent_02.iff")
-- Библиотеки require "src.libs.logger" require "src.libs.ui" require "src.libs.queue" -- Игровые файлы require "src.collision" require "src.pong" -- Настройки отладчика loggerConfig = { bouncing = false, trace = false, queue = false, } -- Настройки игры gameConfig = { metainfo = { ve...
--[[ --=====================================================================================================-- Script Name: Notify Me, for SAPP (PC & CE) Description: This script will beautify the server terminal during certain events: - script_load - script_unload - event_chat ...
require "Common/define" require "Controller/PromptCtrl" require "Controller/MessageCtrl" CtrlManager = {}; local this = CtrlManager; local ctrlList = {}; --控制器列表-- function CtrlManager.Init() logWarn("CtrlManager.Init----->>>"); ctrlList[CtrlName.Prompt] = PromptCtrl.New(); ctrlList[CtrlName.Message] = MessageCtrl...
local f = require 'plenary.functional' local co = coroutine local M = {} -- Unique constant to scope yields to the executor. See M.seq() for implementation details local SCOPE = {} local Result = {} function Result:ok() return self[1] == nil end function Result:match(cb, cbe) if self:ok() then return cb(unpack...
onEvent('PlayerBonusGrabbed', function(player, bonusId) if player and isExploiting[player] then return end TouchSensor.triggered(player, bonusId) end)
newoption { trigger = "with-sff", description = "Enable generation of single file format", } newoption { trigger = "with-dx11", description = "Enable DX11 backend sample", } newoption { trigger = "with-opengl", description = "Enable OpenGL backend sample", } newoption { trigger = "with-glfw", description = ...
local _={} _[1]={"error","trying to define variable \"define override function.a\", but a function with the same name exists; at test/tests/define override function.ans:3"} return {_[1]} --[[ { "error", 'trying to define variable "define override function.a", but a function with the same name exists; at test/tests/defi...
local function onupdate(inst, dt) if inst.sound then inst.SoundEmitter:PlaySound("dontstarve/characters/wx78/spark") inst.sound = nil end inst.Light:SetIntensity(inst.i) inst.i = inst.i - dt * 2 if inst.i <= 0 then if inst.killfx then inst:Remove() ...
ELONA.i18n:add { buff = { _1 = { name = "聖なる盾", apply = "{name($1)}は光り輝いた。", description = "PVを{$1}上昇/耐恐怖", }, _2 = { name = "沈黙の霧", apply = "{name($1)}はぼやけた霧に覆われた。", description = "魔法の使用を禁止", }, _3 = { name = "リジェネレーション", ...
--[[ The Distillation registry, as its name implies is used to register distillation recipes. Distillation recipes have 2 outputs: a vapour and a distilled fluid ]] local DistillationRegistry = foundation.com.Class:extends("DistillationRegistry") local ic = DistillationRegistry.instance_class function ic:initia...
--[[ # Element: Pet Happiness Toggles the visibility of an indicator based on the Pets Happiness ## Widget .texture - A `Texture` used to display the group role icon. PetHappiness - A `Frame` used to display the group role icon. ## Notes A default texture will be applied if the widget is a Texture and doesn't hav...
local Transform = require 'component/common' local PSpawner = require 'particles/pemitter' local PSystem = Class('ParticleSystem') function PSystem:init(pos, properties) properties = properties or {} self.pos = pos self.emitter = PSpawner(pos, properties) self.particles = {} self.spawn_rate = properties.spa...
local module = {} function module.Make(routine, behavior, npcs) local throttle = behavior.throttle local section = 0 local function Update() task.delay(behavior.rate, Update) local index = 0 section = (section + 1) % throttle for _, info in pairs(npcs) do index += 1 if (index + section) % throttle...
--define the class ACF_defineGunClass("SB", { spread = 0.08, name = "Smoothbore Cannon", desc = "More modern smoothbore cannons that can only fire munitions that do not rely on spinning for accuracy.", muzzleflash = "cannon_muzzleflash_noscale", rofmod = 1.72, sound = "weapons/ACF_Gun/cannon_new.mp3", soundDista...
local Class = require "Base.Class" local Object = require "Base.Object" local FileChooser = require "Card.FileChooser" local FileStaging = require "Card.FileStaging" local FileSystem = require "Card.FileSystem" local Path = require "Path" local Loader = Class {} Loader:include(Object) function Loader:init(history, af...
---------------------------------------------------------------------------------- -- -- scene_template.lua -- ---------------------------------------------------------------------------------- local director = require( "director" ) local ui = require("ui") local action = require("action") local timer = require("timer...
class "BasicFileProvider" function BasicFileProvider:BasicFileProvider(...) local arg = {...} for k,v in pairs(arg) do if type(v) == "table" then if v.__ptr ~= nil then arg[k] = v.__ptr end end end if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then self.__ptr = Polycode.BasicFileProvider(unpac...
local TileGrid = class("TileGrid") --地形描述 function TileGrid:ctor() self:init() end --定义几个关键数据,按照红方左边定义,红方在下方,是我方 function TileGrid:init() self._kingTownPos = Vector2(-13, 0) self._minorTowerPos = Vector2(-5.5, -9.5) -- self._bridgePos = Vector2(-5.5, 0) -- self._bridgeSize = Vector2(3, 2) self._bridgeX0 = -5.5...
if GetResourceState('es_extended'):find('start') then ESX = true AddEventHandler('skinchanger:loadSkin', function(skin, cb) if not skin.model then skin.model = 'mp_m_freemode_01' end client.setPlayerAppearance(skin) if cb then cb() end end) AddEventHandler('esx_skin:openSaveableMenu', function(submitCb, canc...
object_tangible_quest_imperial_itp_thrawn_starship = object_tangible_quest_imperial_shared_itp_thrawn_starship:new { } ObjectTemplates:addTemplate(object_tangible_quest_imperial_itp_thrawn_starship, "object/tangible/quest/imperial/itp_thrawn_starship.iff")
SKILL.name = "Wall of Protection" SKILL.LevelReq = 10 SKILL.SkillPointCost = 3 SKILL.Incompatible = { } SKILL.RequiredSkills = { } SKILL.icon = "vgui/skills/Spell_holy_powerwordshield.png" SKILL.category = "Followers of Sigmar"-- Common Passives, Warrior, Lore of Light, Lore of Life SKILL.slot = "MELEE" -- ULT, RAN...
local key = ModPath .. ' ' .. RequiredScript if _G[key] then return else _G[key] = true end local function project_instigators_player() local instigators = { managers.player:player_unit() } return instigators end local function project_instigators_vehicle() local instigators = {} local instigators_nr = 1 local v...
return function(type_name,t) t.__is_constructor__ = true t.type_name = type_name t.create = function(self,...) local c = {__comp_name__ = type_name} t:make(c,...) return c end return setmetatable(t,{__call = t.create}) end
function printn( s, -- string: a string n) -- number: a number for i = 1, n do print(s) end end printn(10, "hello")
local Cache = require('iterables/Cache') local Iterable = require('iterables/Iterable') local WeakCache = require('class')('WeakCache', Cache) function WeakCache:__init(array, constructor, parent) Cache.__init(self, array, constructor, parent) setmetatable(self._objects, {__mode = 'v'}) end function Weak...
PrefabFiles = { "brook", "swordcane", "violin", } Assets = { Asset( "IMAGE", "images/saveslot_portraits/brook.tex" ), Asset( "ATLAS", "images/saveslot_portraits/brook.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/brook.tex" ), Asset( "ATLAS", "images/selectscreen_portraits/brook.xml"...