mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-21 17:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,37 @@
|
||||
package pet
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
import localization.LocalizationManager;
|
||||
|
||||
public class GuiPet extends PetBase
|
||||
{
|
||||
|
||||
public var idx:int;
|
||||
|
||||
private var _petName:String;
|
||||
|
||||
private var _onPetLoadedCallback:Function;
|
||||
|
||||
public function GuiPet(idx:int, lBits:uint, uBits:uint, eBits:uint, type:int, name:String, onPetLoadedCallback:Function)
|
||||
{
|
||||
this._onPetLoadedCallback = onPetLoadedCallback;
|
||||
super(lBits,uBits,eBits,this.onPetLoaded);
|
||||
this.idx = idx;
|
||||
this._petName = name;
|
||||
}
|
||||
|
||||
public function get petName() : String
|
||||
{
|
||||
return LocalizationManager.translatePetName(this._petName);
|
||||
}
|
||||
|
||||
private function onPetLoaded(content:MovieClip) : void
|
||||
{
|
||||
if(this._onPetLoadedCallback != null)
|
||||
{
|
||||
this._onPetLoadedCallback(content,this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user