content
stringlengths
5
1.05M
--[[ Layout (96 KB) -------------- 0x0000 Meta Data (736 Bytes) 0x02E0 SpriteMap (12 KB) 0x32E0 Flags Data (288 Bytes) 0x3400 MapData (18 KB) 0x7C00 Sound Tracks (13 KB) 0xB000 Compressed Lua Code (20 KB) 0x10000 Persistant Data (2 KB) 0x10800 GPIO (128 Bytes) 0x10880 Reserved (768 Bytes) 0x10B80 Draw State (64 Bytes) ...
local Object = require 'lib.classic.classic' local Utils = require 'mixins.utils' local Physics = Object:extend() function Physics:new(parent, world, x, y, w, h, acceleration, damping) self.parent = parent self.world = world self.x, self.y = x, y self.w, self.h = w, h self.world:add(self.parent, self.x, self...
local ok, wk = pcall(require, 'which-key') if not ok then return end local M = {} local config = { opts = { mode = 'n', prefix = '<leader>', buffer = nil, silent = true, noremap = true, nowait = true, }, vopts = { mode = 'v', prefix = '<leader>', buffer = nil, silent = ...
coa2_relay_captain = Creature:new { randomNameType = NAME_GENERIC, socialGroup = "imperial", faction = "imperial", level = 29, chanceHit = 0.38, damageMin = 280, damageMax = 290, baseXp = 3005, baseHAM = 8300, baseHAMmax = 10100, armor = 0, resists = {25,25,25,25,25,25,25,25,-1}, meatType = "", meatAmount...
require("toggleterm").setup { size = 10, -- size can be a number or function which is passed the current terminal open_mapping = [[<c-\>]], hide_numbers = true, -- hide the number column in toggleterm buffers shade_filetypes = {}, shade_terminals = true, shading_factor = '1', -- the degree by ...
RegisterNetEvent("_teleport:setCoords") AddEventHandler("_teleport:setCoords", function(coords) local ped = PlayerPedId() SetPedCoordsKeepVehicle(ped, coords.x, coords.y, coords.z) end)
require "ClassBase" local ads_plugin = nil local function onAdsResult( code, msg ) print("on ads result listener.") print("code:"..code..",msg:"..msg) if code == AdsResultCode.kAdsReceived then --do elseif code == AdsResultCode.kAdsShown then --do elseif code == AdsResultCode.kAdsD...
------------------------------------------------- -- World View ------------------------------------------------- include( "FLuaVector" ); local g_pathFromSelectedUnitToMouse = nil; local turn1Color = Vector4( 0, 1, 0, 0.25 ); local turn2Color = Vector4( 1, 1, 0, 0.25 ); local turn3PlusColor = Vector4( 0.25, 0, 1, 0....
--- Acts as a command processor for specialization commands, delegating -- to the specialization commands. -- @classmod SpecializationCommand -- region imports local class = require('classes/class') local prototype = require('prototypes/prototype') local specialization_pool = require('classes/specializations/speciali...
TOOL.Category = "Wire Extras/GUI Panels" TOOL.Name = "Set Draw Params" TOOL.Command = nil TOOL.ConfigName = "" TOOL.ClientConVar["drawx"] = "" TOOL.ClientConVar["drawy"] = "" TOOL.ClientConVar["draww"] = "" TOOL.ClientConVar["drawh"] = "" TOOL.ClientConVar["drawres"] = "" if CLIENT then language.Add( "Tool_...
AddCSLuaFile() DEFINE_BASECLASS( "weapon_csbasegun" ) CSParseWeaponInfo( SWEP , [[WeaponData { "MaxPlayerSpeed" "220" "WeaponType" "Shotgun" "FullAuto" 1 "WeaponPrice" "1700" "WeaponArmorRatio" "1.0" "CrosshairMinDistance" "8" "CrosshairDeltaDistance" "6" "Team" "ANY" "BuiltRightHanded" "0" "P...
local Observer = require('stdlib.utils.observer') local UnitTracker = require('stdlib.triggers.UnitTracker') ---DamageDetection --- Listen to any damage event that happens on the map. --- Example: --- ---DamageDetection:add(function() --- print("Damage Event with dmg: " .. Event:getEventDamage()) ---end) --- ---@cl...
local Block = Object:extend() function Block:new(x, y) self.x = x self.y = y end function Block:update(dt) end function Block:draw() love.graphics.rectangle('fill', self.x, self.y, block_size, block_size) end return Block
-- Localize globals local math, setmetatable, table = math, setmetatable, table -- Set environment local _ENV = {} setfenv(1, _ENV) local metatable = {__index = _ENV} function less_than(a, b) return a < b end --> empty min heap function new(less_than) return setmetatable({less_than = less_than}, metatable) end fu...
-- $Id: icon_generator.lua 4354 2009-04-11 14:32:28Z licho $ ----------------------------------------------------------------------- ----------------------------------------------------------------------- -- -- Icon Generator Config File -- --// Info if (info) then local ratios = {["1to1"]=(1/1)} --{...
return function(data) return { type = "SetUnknownComponents", data = data, } end
-- TODO Tangentspace Normal Mapping if (true) then return NOTREADY() end -- <Resources> -- models/senior.f3d -- materials/senior.tga.mtl -- shaders/normalmap_full.shd -- gpuprogs/tangentnormalmap.cg
-- "Madness" camVar = 1; cameraZoom = 0.7 hudZoom = 1.0 camHudAngle = 0.0 cameraAngle = 0.0 function update(elapsed) camShenigans() if leftVar > 0 then leftVar = leftVar - (leftVar / 10) end if downVar > 0 then downVar = downVar - (downVar / 10) end if upVar > 0 then upVar = upVar - (upVar / 10) end if...
--mobs_fallout v0.0.3 --maikerumine --made for Extreme Survival game --dofile(minetest.get_modpath("mobs_fallout").."/api.lua") --REFERENCE --function (mod_name_here):spawn_specific(name, nodes, neighbors, min_light, max_light, interval, chance, active_object_count, min_height, max_height) --dofile(minetest.get_modp...
slot2 = "LoadCcsCachedBean" LoadCcsCachedBean = class(slot1) LoadCcsCachedBean.ctor = function (slot0) slot4 = AbstractBean ClassUtil.extends(slot2, slot0) slot4 = TickBase ClassUtil.extends(slot2, slot0) slot0._ccsConfigs = {} slot0._tempCaches = {} slot0._curCcsIndex = 1 slot0._curCcsNum = 0 end LoadCcs...
--------------------------------------------- -- Familiar -- pet powers increase. --------------------------------------------- require("scripts/globals/msg") --------------------------------------------- function onMobSkillCheck(target, mob, skill) return 0 end function onMobWeaponSkill(target, mob, skill) m...
--[[ misc - nitro na klawisz @author Jakub 'XJMLN' Starzak <jack@pszmta.pl @package PSZMTA.psz-misc @copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl> Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie. ]]-- addEventHandler( "onClientResourceStart", getResourceRootElement(), func...
local ffi=require'ffi' ffi.cdef[[ typedef void *webview_t; // Creates a new webview instance. If debug is non-zero - developer tools will // be enabled (if the platform supports them). Window parameter can be a // pointer to the native window handle. If it's non-null - then child WebView // is embedded into the given p...
BattleScene.text("* Susie cooked up a cure!") BattleScene.text("* What, you want me to cook\nsomething?", "face_2", "susie") BattleScene.text("* Susie put a hot dog in the\nmicrowave!") local susie = BattleScene.getCharacter("susie") local target = BattleScene.getTarget() target:explode(0, 0, true) target:hurt(target.h...
local ultimateHealthPot = 8473 local greatHealthPot = 7591 local greatManaPot = 7590 local greatSpiritPot = 8472 local strongHealthPot = 7588 local strongManaPot = 7589 local healthPot = 7618 local manaPot = 7620 local smallHealthPot = 8704 local antidotePot = 8474 local greatEmptyPot = 7635 local strongEmptyPot = 7634...
local rules = require "scripts.rules" local animations = require "character.animations" local Character = require "character.character" local Skeleton = Character:new() function Skeleton:new(o, control) o = o or Character:new(o, control) setmetatable(o, self) self.__index = self return o end function Skelet...
-- local U = require('utils') -- local err = U.get_hl_color('ErrorMsg', 'fg') -- local warn = U.get_hl_color('WarningMsg', 'fg') require('lualine').setup({ options = { theme = 'horizon' } })
-- richtext library --[[ This version is modified by UmmUmmDe to fix some bugs that were affecting the Pokemon Engine. ]] --[[ Copyright (c) 2010 Robin Wellner Copyright (c) 2014 Florian Fischer (class changes, initial color, ...) This software is provided 'as-is', without any express or implied warranty. In no even...
-- Moonstone Web Development Framework,A Framework To Develop Websites And Webpages Using Lua Programming Language -- Copyright (c)2019-Present Rabia Alhaffar,All Rights Reserved!!! -- You Can Also Use C/C++/HTML/CSS/Javascript/PHP/VBScript/JScript/C#/Lua/Visual Basic .NET/ASP Code Within The Main Lua Code,But With S...
local path, Delta = ... local Thread = Delta.lib.Thread local Switch = {} local Services = {} local Processes = {} Services.DHCP = Thread.new(Delta.dofile(path.."Switch.lua", Delta)) function Switch.run() Thread.run(Services) end return Switch
-- 001 local style = utaha.styleCollection -- Global Font Styles style :addFont("font.normal", "res/fonts/wqy-zenhei.ttf", 18) :addFont("font.small", "res/fonts/wqy-zenhei.ttf", 12) :addFont("font.big", "res/fonts/wqy-zenhei.ttf", 20) -- Flat Menu Styles :setFont("FlatMenu.font", "font.normal...
local M = {} -- perform a correct deep merge of several maps function M.tbl_merge(self, ...) return vim.tbl_deep_extend("force", ...) end -- this function sets a global key mapping function M.keymap(self, mode, lhs, rhs, options) return vim.api.nvim_set_keymap( mode, lhs, rhs, self:tbl_merge({si...
do local function getTermLength() if sys.uname() == 'windows' then return 80 end local tputf = io.popen('tput cols', 'r') local w = tonumber(tputf:read('*a')) local rc = {tputf:close()} if rc[3] == 0 then return w else return 80 end end local barDone = true local previo...
-- -- Author: Reyn -- Date: 2016-06-18 15:41:04 -- require('init') local q1 = Queue(10) console_colorful("=======enqueue=======") console_colorful("sapce = " .. q1:space()) print(q1:enqueue('a')) q1.serial() print(q1:enqueue('b')) q1.serial() print(q1:enqueue('c')) q1.serial() print(q1:enqueue('d')) q1.serial() print(...
-------------------------------- -- @module Controller -- @parent_module cc -------------------------------- -- Activate receives key event from external key. e.g. back,menu.<br> -- Controller receives only standard key which contained within enum Key by default.<br> -- warning The API only work on the android platfo...
env = {} f = load("return x", nil, nil, env) env.x = tonumber(io.read()) -- user enters 2 a = f() env.x = tonumber(io.read()) -- user enters 3 b = f() print(a + b) --> outputs 5
local function make_char_bool(str) local booltab = {} for ix=1,#str do booltab[str:sub(ix,ix)] = true end return booltab end local l = ljcurses local a = l.attributes local b = l.boxes local k = l.keys local state_signs = { SKP='-', ADD='+', OPT='o', REC=' ' } local excluded_char = make_char_bool '[]<>/? ' lo...
-- Media is a common area for providing sources of media, like fonts, textures, -- colors, and so forth. It's similar to LibSharedMedia and other mods, though -- it does not pretend to be the sole provider of media. It also doesn't require -- you to learn a custom API for accessing tabular data. For these reasons, I --...
-- Submodule for sending messages to remote processes. module('concurrent._distributed._message', package.seeall) require 'mime' -- The existing version of this function for message sending is renamed. _send = concurrent._message.send -- Sends a message to local or remote processes. If the process is local the -- o...
local entityMeta = FindMetaTable("Entity") local playerMeta = FindMetaTable("Player") ix.net = ix.net or {} ix.net.globals = ix.net.globals or {} -- Check if there is an attempt to send a function. Can't send those. local function CheckBadType(name, object) local objectType = type(object) if (objectType == "funct...
local K, C, L, _ = unpack(select(2, ...)) if C["skins"].skada ~= true then return end -- Skada skin local frame = CreateFrame("Frame") frame:RegisterEvent("PLAYER_LOGIN") frame:SetScript("OnEvent", function(self, event) if not IsAddOnLoaded("Skada") then return end local barmod = Skada.displays["bar"] -- Used to ...
VFS.Include(SPRINGMON_DIR .. "utils/shared.lua", nil, VFS.ZIP) local absPathToVfsPath = {} -- vfsFilePath -> { context1 = true, context2 = true... } -- where context is one of: "widget", "gadget_synced", "gadget_unsynced") local fileContextMap = {} -- We won't update listeners until at least WAIT_TIME has passed af...
-------------------------------------------------------------------------- -- Crytek Source File. -- Copyright (C), Crytek Studios, 2001-2006. -------------------------------------------------------------------------- -- $Id$ -- $DateTime$ -- Description: Shooting target. -- -----------------------------------------...
---------------------------------------- -- -- Copyright (c) 2015, 128 Technology, Inc. -- -- author: Hadriel Kaplan <hadriel@128technology.com> -- -- This code is licensed under the MIT license. -- -- Version: 1.0 -- ------------------------------------------ -- prevent wireshark loading this file as a plugin if not ...
local enabled = false local Log = {} function Log.setEnabled(bool) enabled = bool end function Log.info(message) if enabled then print("Sentry Info: "..message) end end function Log.warn(message) if enabled then warn("Sentry Warn: "..message) end end function Log.error(message) if enabled then coroutin...
local widget, version = "Font", 2 local LBO = LibStub("LibLimeOption-1.0") if not LBO:NewWidget(widget, version) then return end local SM = LibStub("LibSharedMedia-3.0", true) local _G = _G local type = _G.type local CreateFrame = _G.CreateFrame local menu = LibLimeOption10FontMenu or nil local file, size, attribute,...
_G.NPCCache = {} _G.BlockCache = {} _G.EffectCache = {} _G.BGOCache = {} _G.PlayerCache = {} _G.SectionCache = {} _G.NPC_MAX_ID = 1000 _G.BLOCK_MAX_ID = 1000 _G.EFFECT_MAX_ID = 1000 _G.BGO_MAX_ID = 1000 _G.PLAYER_MAX_CHARACTERS = 7 _G.SECTION_MAX_ID = 200 _G.NPC_MAX_AMOUNT = 8000 _G.BLOCK_MAX_AMOUNT ...
Lasergun = Class { __includes=LineTower, init = function(self, gridOrigin, worldOrigin, orientation) self.towerType = "LASERGUN" LineTower.init(self, animationController:createInstance(self.towerType), gridOrigin, worldOrigin, constants.STRUCTURE.LASERGUN.WIDTH, constants...
local utils = require 'utils' local unitindex = require 'units/unitindex' UnitsLayer = {} function UnitsLayer:initLayer(game, spawnlayer) self.game = game self.spawnlayer = spawnlayer self.objects = self.objects or {} self.draw = UnitsLayer.draw self.update = UnitsLayer.update self.mousemoved = UnitsLayer...
--- Wheels function init() local mode = 1 local lastClock = 0 local dt = 0.5 local mdt = function() return dt / mode end local makeArray = function(count, f) local array = {} for i = 1, count do array[i] = f(i) end return array end local reduceArray = function(a, f...
local bin = require "plc52.bin" local Reader = require("lightning-dissector.utils").Reader local OrderedDict = require("lightning-dissector.utils").OrderedDict local f = require("lightning-dissector.constants").fields.payload.deserialized function deserialize(payload) local reader = Reader:new(payload) local pack...
function fib(N) local array = {1,1} while #array < N do array[#array + 1] = array[#array - 1] + array[#array] end return array end print(table.concat(fib(100), ","))
object_static_item_item_component_power_pack = object_static_item_shared_item_component_power_pack:new { } ObjectTemplates:addTemplate(object_static_item_item_component_power_pack, "object/static/item/item_component_power_pack.iff")
local i = get() if i == "one" then if check1() then do1() end elseif i == "two" then if check2() then do2() else -- do nothing end else return end
return { { effect_list = { { type = "BattleBuffCastSkill", trigger = { "onStartGame" }, arg_list = { skill_id = 2121 } }, { type = "BattleBuffAddBuff", trigger = { "onBulletHit" }, arg_list = { buff_id = 2120, weaponType = 16, rant = 700 ...
Network:Subscribe( 'DamageActor', function( WNO, sender ) if sender == nil or not IsValid( sender ) then return end if not WNO or not IsValid( WNO ) then return end local actor = AM.actors_id[WNO:GetId()] if not actor then return end local weapon = sender:GetEquippedWeapon() if not weapon then return end lo...
--[[--------------------------------------------- AdvLib (C) Mijyuoon 2014-2020 Contains various helper functions -----------------------------------------------]] adv = { -- Constants here HttpCache = {}, Markup = {}, } ----- Config section ---------------------------- local Use_MoonScript = true local Use_Prin...
--[[ MIT LICENSE Copyright (c) 2013 Enrique García Cota + Eike Decker + Jeffrey Friedl 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 limitatio...
-- TimeComplexity O(n*m) where n is the number of cached queries and m is the average number of ids in each document. -- SpaceComplexity O(1) local invalidateKey = KEYS[1] local queryKey = KEYS[2] local objectKey = KEYS[3] local commonIndexKey = KEYS[4] local now = ARGV[1] local oid = ARGV[2] local ojson = ARG...
-- -- Lua global definition file. -- -- @filename LGlobal.lua -- The declared global name. local DeclaredNames = {} -- The internal global variable table check method. local function __inner_declare(Name, InitValue) if not rawget(_G, Name) then rawset(_G, Name, InitValue or false) else error(...
local ThemeColor = LoadModule('Theme.Colors.lua') local function CallSongFunc(func) local song = GAMESTATE:GetCurrentSong() if song then return song[func](song) end return '' end return Def.ActorFrame { InitCommand = function(self) self :xy(SCREEN_CENTER_X, SCREEN_CENTER_Y + 120) end, OnCommand = function(...
-- THIS FILE IS GENERATED. DO NOT EDIT MANUALLY. -- stylua: ignore start return {properties = {["perlnavigator.enableWarnings"] = {default = true,description = "Enable warnings using -Mwarnings command switch",scope = "resource",type = "boolean"},["perlnavigator.includePaths"] = {default = {},description = "Array of pa...
local addonName = "KibsItemLevelContinued" local addonNamespace = LibStub and LibStub(addonName .. "-1.0", true) if not addonNamespace or addonNamespace.loaded.CharacterFrameAdapter then return end addonNamespace.loaded.CharacterFrameAdapter = true local CharacterFrameAdapter = {} local CharacterFrameAdapterMeta...
---@class src.app ---@field win src.app.win ---@field palettes src.app.palettes ---@field skins src.app.skins ---@field fonts src.app.fonts ---@field stack src.app.stack local app = proto.set_name({}, "src.app") function app:init() self.palettes = require("src.app.palettes"):init() self.skins = require("src.app.sk...
local appId = 'com.apple.Safari' local switchTabLeft = hs.hotkey.new({'cmd', 'alt'}, 'j', function() hs.eventtap.keyStroke({'cmd', 'alt'}, 'i') end) return { id = appId, enable= function() switchTabLeft:enable() end, disable = function() switchTabLeft:disable() end }
object_draft_schematic_dance_prop_prop_torch_r = object_draft_schematic_dance_prop_shared_prop_torch_r:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_torch_r, "object/draft_schematic/dance_prop/prop_torch_r.iff")
---@class lstg.mbg.Force local M = {} --local M = class('lstg.mbg.Batch') local Player = require('game.mbg.Player') local Time = require('game.mbg.Time') local Main = require('game.mbg.Main') local Math = require('game.mbg._math') --local MathHelper = Math M.record = 0 local function _ctor(data) local ret = {} ...
project "Selene" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin/int/" .. outputdir .. "/%{prj.name}") pchheader "slnpch.h" pchsource "src/slnpch.cpp" defines { "_CRT_SECURE_NO...
--[[ This module implements an elementary mixin library with support for private fields. See the comments preceding the interface functions for documentation. ]] local Mixin = {} --# Constants local TYPE_ERROR_FORMAT = 'The non-table value %q cannot be mixed.' --# State local private = setmetatable({}...
local _M = { _VERSION = '0.0.1' } local style = '<style>div{border:24px solid #e3f2fd;border-top:24px solid #1e88e5;border-radius:50%;width:128px;height:128px;margin:128px auto 0;animation:spin 2s linear infinite;-webkit-animation:spin 2s linear infinite}@-webkit-keyframes spin{0%{transform:rotate(0);-webkit-transform...
-- Copyright (C) 2018 XiaoShan mivm.cn local m, s ,o m = Map("k3screenctrl", translate("Screen"), translate("Customize your device screen")) s = m:section(TypedSection, "general", translate("General Setting") ) s.anonymous = true o = s:option(ListValue, "screen_time", translate("Screen time :"), translate("This tim...
package.path = "../?.lua;"..package.path local colorman = require("lj2color.colorman") local function printColorValue(cv) --print(cv.name) print(string.format("%10s %-20s%4d %4d %4d", cv.dbname, cv.name, cv.color[1], cv.color[2], cv.color[3])); end local function printColors(name) local colors = colorman.getColo...
----------------------------------------------------------------------------- -- Valider class v1.1.1 -- Author: aimingoo@wandoujia.com -- Copyright (c) 2015.06 -- -- The promise module from NGX_4C architecture -- 1) N4C is programming framework. -- 2) N4C = a Controllable & Computable Communication Cluster architectur...
--[=[ Lexical scanner for creating a sequence of tokens from Lua source code. This is a heavily modified version of the original Penlight Lexer module: https://github.com/stevedonovan/Penlight Authors: stevedonovan <https://github.com/stevedonovan> ----------- Original Penlight lexer author ryanjmulder <https...
-- Editors: -- Earth Salamander #42, 03.02.2018 storegga_arm_slam = class({}) LinkLuaModifier( "modifier_storegga_arm_slam", "modifier/modifier_storegga_arm_slam", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- function storegga_arm_slam:ProcsMagicStic...
gl.setup(1024, 768) local image = resource.load_image "beamer.png" function node.render() gl.clear(1,1,1,1) util.draw_correct(image, 0, 0, WIDTH, HEIGHT) end
-- luacheck: globals include redraw util params local UI = include("lib/ui") local settings = include("lib/settings") local function round(value) return util.round(value, 0.0001) end return UI.Page.new({ title = "fall: delays", type = UI.Page.MENU, enc_handler = function(page, n, d) page.menu:handle_menu_...
---@class UnityEngine.Camera : UnityEngine.Behaviour ---@field nearClipPlane float ---@field farClipPlane float ---@field fieldOfView float ---@field renderingPath UnityEngine.RenderingPath ---@field actualRenderingPath UnityEngine.RenderingPath ---@field allowHDR bool ---@field allowMSAA bool ---@field allowDynamicRes...
local E, L = unpack(ElvUI) -- Import Functions/Constants, Config, Locales local CF = E:NewModule("CooldownFlash", "AceEvent-3.0", "AceHook-3.0") CF.modName = L["中部冷却闪光"] local cooldowns, animating, watching = { }, { }, { } local GetTime = GetTime local testtable local CreateFrame = CreateFrame local tinsert, select, t...
local M = {} M.schema = require('candle.schema') M.highlight = setmetatable({}, { __newindex = function(_, hlgroup, opt) local cmd = {'hi', hlgroup} if opt.fg then table.insert(cmd, 'guifg='..opt.fg) end if opt.bg then table.insert(cmd, 'guibg='..opt.bg) end if opt.gui then table.insert(cmd, 'gui='....
require "Scripts/PlayerAccount/menu" signinmenu = menu:new{canvasName = "SignIn"} function signinmenu:Show() menu.Show(self) if self.context.username then self:SetText("UsernameText", self.context.username) end end function signinmenu:OnAction(entityId, actionName) if actionName == "SignInCl...
--- Module File local Message = { } --- Message Variables local messages = { } local messageDrawX = false local messageDrawY = false local messageDrawWidth = 300 local messageDrawHeight = 300 local messageDrawOpacity = 0.75 local messageCurrentTurn = 0 local messageTime = false function Message.loadAssets() print("...
Monsters = {} local numberOfEnemies = 5 local function hasValue (tab, val) for i,value in ipairs(tab) do if value.x == val.x then return true end end return false end function Monsters:init() math.randomseed(os.time()) while #Monsters < numberOfEnemies do local layer = Overworld.layers["Monsters"].o...
-- Importing modules local MGet = require "elasticsearch.endpoints.MGet" local parser = require "elasticsearch.parser" local MockTransport = require "lib.MockTransport" local getmetatable = getmetatable -- Setting up environment local _ENV = lunit.TEST_CASE "tests.endpoints.MGetTest" -- Declaring local variables loca...
local IComparable = require("api.IComparable") local IDrawable = require("api.gui.IDrawable") local Draw = require("api.Draw") local FigureDrawable = class.class("FigureDrawable", { IDrawable, IComparable }) function FigureDrawable:init(chip_id, color) self.batch = nil self.dirty = true self.chip_id = chip_i...
print("Loading lua file") print("CTEST_FULL_OUTPUT") function initScene() print("in initScene()") transform = osg.PositionAttitudeTransform() geode = osg.Geode() shape = osg.ShapeDrawable() shape:setShape( osg.Sphere(osg.Vec3(0,0,0),15) ) geode:addDrawable(shape) transform:addChild(geode) return true end ini...
-------------------------------- -- @module MovementData -- @extend Ref -- @parent_module ccs ---@class ccs.MovementData:ccs.Ref local MovementData = {} ccs.MovementData = MovementData -------------------------------- --- ---@param boneName string ---@return ccs.MovementBoneData function MovementData:getMovementBon...
local LookupTable, parent = torch.class('LookupTable_ft', 'nn.LookupTable') LookupTable.__version = 1 function LookupTable:__init(nIndex, nOutput, updateMask) parent.__init(self, nIndex, nOutput) self.updateMask = torch.ones(nIndex):view(nIndex, 1):expand(nIndex, nOutput) if updateMask ~= nil then self:...
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/GTWCode/GTW-RPG Bugtracker: https://forum.404rq.com/bug-reports Suggestions: https://forum.404rq.com/mta-se...
--[[ lexer.lua Created by Masatoshi Teruya on 14/04/28. Copyright 2014 Masatoshi Teruya. All rights reserved. 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 rest...
pg = pg or {} pg.enemy_data_statistics_322 = { [14601102] = { cannon = 20, hit_growth = 210, bubble_fx = "", speed_growth = 0, pilot_ai_template_id = 10001, air = 0, speed = 25, dodge = 11, id = 14601102, cannon_growth = 936, rarity = 4, reload_growth = 0, dodge_growth = 162, luck = 0, st...
return { HOOK_EXECUTE_COMMAND = { CalledWhen = "A player executes an in-game command, or the admin issues a console command. Note that built-in console commands are exempt to this hook - they are always performed and the hook is not called.", DefaultFnName = "OnExecuteCommand", -- also used as pagename Desc = ...
object_tangible_collection_rebel_battle_leggings = object_tangible_collection_shared_rebel_battle_leggings:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_rebel_battle_leggings, "object/tangible/collection/rebel_battle_leggings.iff")
local Theme = require 'supernova.core.theme' local Style = require 'supernova.core.style' local ANSI = require 'supernova.core.ansi' local ChainMetatable = require 'supernova.core.chain_metatable' local Color = require 'supernova.core.color' local Sgr = require 'supernova.core.sgr' local Controller = { is_controller...
-- Requirements local composer = require "composer" local fx = require "com.ponywolf.ponyfx" -- Variables local to scene local scene = composer.newScene() local field, moon, ship, stars, info, music function scene:create( event ) local sceneGroup = self.view -- add display objects to this group -- music music ...
local server = require('test.luatest_helpers.server') local t = require('luatest') local g = t.group() g.before_all = function() g.server = server:new{ alias = 'default', } g.server:start() end g.after_all = function() g.server:drop() end g.test_different_logs_on_new_and_free = function() ...
----------------------------------- -- Area: Lower Jeuno -- NPC: Zauko -- Involved in Quests: Save the Clock Tower, Community Service -- !pos -3 0 11 245 ----------------------------------- require("scripts/zones/Lower_Jeuno/globals") local ID = require("scripts/zones/Lower_Jeuno/IDs") require("scripts/globals/keyitem...
-- TrafficConeGod local VECTOR3_NEW = Vector3.new return function(Sunshine, entity) local transform = entity.transform local oscillator = entity.oscillator if transform and oscillator then local cFrame = transform.cFrame Sunshine:update(function() local offset = math.sin(entity...
require"luarocks.require" require"luarocks.pack" require"luarocks.build" require"luarocks.make_manifest" pcall("require", "luadoc") require"lfs" require"markdown" require"cosmo" require"logging" require"logging.console" --pcall("require", "luadoc") require"luadoc" taglet = require"luadoc.taglet.standard" ---------...
-- -- Script to format code -- local script_path = path.getdirectory(_SCRIPT) local source_path = path.join(script_path, "..", "src") function doformat() local srcfiles = table.flatten { os.matchfiles(path.join(script_path, "..", "Decoder", "**.h")), os.matchfiles(path.join(script_path, "..", "Decoder", "**.c"))...