Skip to content

Instantly share code, notes, and snippets.

@tempusthales
tempusthales / life_if_feudal_-_client_script_functions.cpp
Created December 30, 2017 02:57
Life if Feudal - Client script functions
namespace Global {
virtual Script cleanupPatches(()) {}
virtual Script updatePatchedTerCounterGui(( string loadedTerCount, string totalTerCount )) {}
virtual Script updateForestPatchingCounterGui(( string loadedTerCount, string totalTerCount )) {}
virtual Script updateObjPatchingCounterGui(( string loadedTerCount, string totalTerCount )) {}
virtual Script updateGeoPatchingCounterGui(( string loadedTerCount, string totalTerCount )) {}
virtual Script updatePatchingCounterGui(( string patchedTerCount, string totalTerCount )) {}
virtual Script joinToRemoteServer(( string addr, string password )) {}
virtual Script initLocalConnection(( string port )) {}
virtual Script updateVersionBarText(()) {}
@PrimaryFeather
PrimaryFeather / MultiTextureStyle.as
Last active October 4, 2020 10:03
A "MeshStyle" for Starling that allows batching of multiple textures in one draw call.
// =================================================================================================
//
// Starling Framework
// Copyright Gamua GmbH. All Rights Reserved.
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================
@SpotlightKid
SpotlightKid / roundedrect.lua
Last active February 27, 2018 23:12
Draw rectangles with rounded corners with LÖVE (http://love2d.org)
--- Draw rectangles with rounded corners with LÖVE (http://love2d.org)
local modname = ...
local M = {}
_G[modname] = M
package.loaded[modname] = M
local ipairs = ipairs
local lg = love.graphics
local PI = math.pi
local sin = math.sin