This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
globals | |
unit array UnitMovingPointU | |
real array UnitMovingPointX | |
real array UnitMovingPointY | |
real array UnitMovingPointSp | |
boolean array UnitMovingPointCo | |
boolean array UnitMovingPointReach | |
boolean array UnitMovingPointReachEx | |
boolean array UnitMovingPointRm | |
real array UnitMovingPointDm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local assert = require("assert") | |
local type = require("apitype") | |
local vector2 = require("vector2") | |
local unit = { | |
__units = { }, | |
__properties = { | |
x = { | |
get = function(self) return GetUnitX(self.handle) end, | |
set = function(self, value) SetUnitX(self.handle, value) end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.IO; | |
namespace TinkerWorX.JassToTypeScript | |
{ | |
internal class TypeDefinition | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit = { | |
__units = { }, | |
__properties = { | |
x = { | |
get = function(self) return GetUnitX(self.handle) end, | |
set = function(self, value) SetUnitX(self.handle, value) end | |
}, | |
y = { | |
get = function(self) return GetUnitY(self.handle) end, | |
set = function(self, value) SetUnitY(self.handle, value) end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[--------------------------------------------- | |
********************************************************************************** | |
Simplex Noise Module, Translated by Levybreak | |
Modified by Jared "Nergal" Hewitt for use with MapGen for Love2D | |
Modified by Nikolaj "William" Mariager for updates to Lua 5.3 | |
Original Source: http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
The code there is in java, the original implementation by Ken Perlin | |
********************************************************************************** | |
--]]--------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local v = SimplexNoise.FractalSum2DNoise(map.cell.x + x / 48.00, map.cell.y + y / 48.00, 3) | |
local mx = x - 24 | |
local my = y - 24 | |
local tx = mx * 128.00 | |
local ty = my * 128.00 | |
local tz = v * 256.00 | |
math.randomseed((map.cell.x * 48 + mx) + (map.cell.y * 48 + my) * 48) | |
if deformTerrain then | |
TerrainDeformCrater(tx, ty, 1, -tz, 0, false) | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Version: 0 | |
RefreshRate: 00:00:02 | |
IsInGame: True | |
GameName: | |
MapName: | |
NumberOfPlayers: 0 | |
GameTime: 00:32:09.2500000 | |
{ | |
"shops": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Trig_Melee_Initialization_Actions takes nothing returns nothing | |
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, GetPlayableMapRect() ) | |
call CreateTextTagLocBJ( "WWWWW", Location(-256, -256), 0, 10, 100, 100, 100, 0 ) | |
call AddSpecialEffectLocBJ( Location(-256, -256), "Abilities\\Weapons\\SpiritOfVengeanceMissile\\SpiritOfVengeanceMissile.mdl" ) | |
call CreateTextTagLocBJ( "WWWWW", Location( 0, -256), 0, 10, 100, 100, 100, 0 ) | |
call AddSpecialEffectLocBJ( Location( 0, -256), "Abilities\\Weapons\\SpiritOfVengeanceMissile\\SpiritOfVengeanceMissile.mdl" ) | |
call CreateTextTagLocBJ( "WWWWW", Location( 256, -256), 0, 10, 100, 100, 100, 0 ) | |
call AddSpecialEffectLocBJ( Location( 256, -256), "Abilities\\Weapons\\SpiritOfVengeanceMissile\\SpiritOfVengeanceMissile.mdl" ) | |
call CreateTextTagLocBJ( "WWWWW", Location(-256, 0), 0, 10, 100, 100, 100, 0 ) | |
call AddSpecialEffectLocBJ( Location(-256, 0), "Abilities\\Weapons\\SpiritOfVengean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ative BlzGetTriggerPlayerMouseX takes nothing returns real | |
native BlzGetTriggerPlayerMouseY takes nothing returns real | |
native BlzGetTriggerPlayerMousePosition takes nothing returns location | |
native BlzGetTriggerPlayerMouseButton takes nothing returns mousebuttontype | |
native BlzSetAbilityTooltip takes integer abilCode, string tooltip, integer level returns nothing | |
native BlzSetAbilityActivatedTooltip takes integer abilCode, string tooltip, integer level returns nothing | |
native BlzSetAbilityExtendedTooltip takes integer abilCode, string extendedTooltip, integer level returns nothing | |
native BlzSetAbilityActivatedExtendedTooltip takes integer abilCode, string extendedTooltip, integer level returns nothing | |
native BlzSetAbilityResearchTooltip takes integer abilCode, string researchTooltip, integer level returns nothing | |
native BlzSetAbilityResearchExtendedTooltip takes integer abil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Blizzard.Data | |
{ | |
public struct Point : IEquatable<Point> | |
{ | |
public static bool operator ==(Point left, Point right) => left.Equals(right); | |
public static bool operator !=(Point left, Point right) => !left.Equals(right); |