Quantcast

Moved definition of private.Player from core.lua to Player.lua

James D. Callahan III [03-06-11 - 01:58]
Moved definition of private.Player from core.lua to Player.lua
Filename
Player.lua
core.lua
diff --git a/Player.lua b/Player.lua
index d98be30..ecfcb57 100644
--- a/Player.lua
+++ b/Player.lua
@@ -40,7 +40,18 @@ local L		= LibStub("AceLocale-3.0"):GetLocale(MODNAME)

 local private	= _G.select(2, ...)

-local Player	= private.Player
+------------------------------------------------------------------------------
+-- Data which is stored regarding a players statistics (luadoc copied from Collectinator, needs updating)
+------------------------------------------------------------------------------
+-- @class table
+-- @name Player
+-- @field known_filtered Total number of items known filtered during the scan.
+-- @field Faction Player's faction
+-- @field Class Player's class
+-- @field ["Reputation"] Listing of players reputation levels
+local Player = {}
+private.Player = Player
+private.player_name = _G.UnitName("player")

 -------------------------------------------------------------------------------
 -- Constants
diff --git a/core.lua b/core.lua
index 8ab3464..de30d44 100644
--- a/core.lua
+++ b/core.lua
@@ -99,18 +99,6 @@ private.acquire_list	= {}
 local F 	= private.filter_flags
 local A		= private.acquire_types

-------------------------------------------------------------------------------
--- Data which is stored regarding a players statistics (luadoc copied from Collectinator, needs updating)
-------------------------------------------------------------------------------
--- @class table
--- @name Player
--- @field known_filtered Total number of items known filtered during the scan.
--- @field Faction Player's faction
--- @field Class Player's class
--- @field ["Reputation"] Listing of players reputation levels
-local Player = {}
-private.Player = Player
-
 -- Global Frame Variables
 addon.optionsFrame = {}