From 803ba8e15e051eea801c867da5cdc1cbd20d66ee Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 5 Mar 2011 19:58:55 -0600 Subject: [PATCH] Moved definition of private.Player from core.lua to Player.lua --- Player.lua | 13 ++++++++++++- core.lua | 12 ------------ 2 files changed, 12 insertions(+), 13 deletions(-) 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 = {} -- 1.7.9.5