Skip to content

Library for my ESO addon Clock - Tamriel Standard Time. It gives public access to the in-game time, date and moon.

License

Notifications You must be signed in to change notification settings

Tyxz/LibClock-Tamriel-Standard-Time

Repository files navigation

LibClock - Tamriel Standard Time

Build Status codecov GitHub issues GitHub last commit Run on Repl.it

Version: 1.0.0 Documentation
Build for game version: 100030 Download

How to use

  1. Link it in your Addon.txt

    ## DependsOn: LibClockTST

  2. Create an instance of the library in your addon

    local TST = LibClockTST:Instance()

  3. Subscribe to or get the needed data

    1. Subscribe

      local function myTimeAndDateUpdate(time date)
          d(time, date) 
      end
      TST:Register("MyAddonHandle", myTimeAndDateUpdate)
      
    2. Get

      local time, date = TST:GetTime(), TST:GetDate()