local U=require("\109\111\115\101\115")local e=require("\115\117\112\112\111\114\116\046\102\097\099\116\111\114\121")local Q=require("\115\117\112\112\111\114\116\046\102\105\120\116\117\114\101\115")function IsInToolsMode()return false end function UniqueString(e)e=e or""return U.uniqueId(e.."\037\100")end function DoUniqueString(U)return UniqueString(U)end function RandomInt(U,e)return math.random(U,e)end function Time()return os.time()end function GetSystemDate()return os.date("\037\089-\037\109-\037\100")end function GetSystemTime()return os.date("\037\072\058\037\077\058\037\083")end function LoadKeyValues(U)return Q.require(U)end function CreateUnitByName(U,Q,R,k,A,C)return e.create("\100\111\116\097\095\117\110\105\116",{name=U,origin=Q;owner=A;playerOwner=k;team=C})end function EmitGlobalSound(U) end function EmitSoundOnClient(U,e) end function EmitSoundOn(U,e) end function EmitSoundOnLocationWithCaster(U,e,Q) end function EmitSoundOnLocationForAllies(U,e,Q) end function EmitAnnouncerSound(U) end function EmitAnnouncerSoundForPlayer(U,e) end function EmitAnnouncerSoundForTeam(U,e) end function EmitAnnouncerSoundForTeamOnLocation(U,e,Q) end
local m = require("moses")
local Factory = require("support.factory")
local Fixtures = require("support.fixtures")

function IsInToolsMode()
  return false
end

function UniqueString(base)
  base = base or ""
  return m.uniqueId(base .. "%d")
end

function DoUniqueString(base)
  return UniqueString(base)
end

function RandomInt(min, max)
  return math.random(min, max)
end

function Time()
  return os.time()
end

function GetSystemDate()
  return os.date("%Y-%m-%d")
end

function GetSystemTime()
  return os.date("%H:%M:%S")
end

function LoadKeyValues(filename)
  return Fixtures.require(filename)
end

function CreateUnitByName(name, location, _findClearSpace, npcOwner, unitOwner, teamNumber)
  return Factory.create("dota_unit", {
    name = name,
    origin = location,
    owner = unitOwner,
    playerOwner = npcOwner,
    team = teamNumber,
  })
end

function EmitGlobalSound(_event) end
function EmitSoundOnClient(_event, _player) end
function EmitSoundOn(_event, _entity) end
function EmitSoundOnLocationWithCaster(_location, _event, _entity) end
function EmitSoundOnLocationForAllies(_location, _event, _entity) end
function EmitAnnouncerSound(_event) end
function EmitAnnouncerSoundForPlayer(_event, _playerId) end
function EmitAnnouncerSoundForTeam(_event, _team) end
function EmitAnnouncerSoundForTeamOnLocation(_event, _team, _location) end
