Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ModMinigame< T > Class Template Reference
Inheritance diagram for ModMinigame< T >:
MiniGame

Public Member Functions

void Load ()
 
void Kill ()
 
- Public Member Functions inherited from MiniGame
virtual void OnActivate ()
 
virtual void OnDeactivate ()
 
virtual void SlidePosition (float w)
 
void Deactivate ()
 
void SetAudioMixer (GameObject go)
 
void Say (string lang)
 
virtual bool CanExit ()
 
void Exit ()
 
bool OnPlay (int a)
 
void GetSlotReward (string id, int pay=1, int bet=1)
 

Public Attributes

game
 
- Public Attributes inherited from MiniGame
Balance balance = new Balance()
 
GameObject go
 
AssetBundle asset
 
string path
 
bool isActive
 

Additional Inherited Members

- Public Types inherited from MiniGame
enum  Type {
  Slot , Blackjack , Scratch , Basket ,
  CoinDrop
}
 
- Static Public Member Functions inherited from MiniGame
static void RegisterMiniGame (string id, MiniGame g, string _path)
 
static void Activate (Type type)
 
- Static Public Attributes inherited from MiniGame
static Dictionary< string, MiniGameminigames = new Dictionary<string, MiniGame>()
 
- Properties inherited from MiniGame
virtual string id [get]
 

Detailed Description

Type Constraints
T :Component 

Definition at line 3 of file ModMinigame.cs.

Member Function Documentation

◆ Kill()

void ModMinigame< T >.Kill ( )
inline

Definition at line 23 of file ModMinigame.cs.

24 {
25 Object.Destroy(go);
26 game = null;
27 if ((bool)asset)
28 {
29 asset.Unload(unloadAllLoadedObjects: true);
30 }
31 }
GameObject go
Definition: MiniGame.cs:27
AssetBundle asset
Definition: MiniGame.cs:29

References MiniGame.asset, ModMinigame< T >.game, and MiniGame.go.

◆ Load()

void ModMinigame< T >.Load ( )
inline

Definition at line 7 of file ModMinigame.cs.

8 {
9 Debug.Log(path);
10 if (!game)
11 {
12 asset = AssetBundle.LoadFromFile(path + "/Asset_" + id + "/asset");
13 Object @object = asset.LoadAsset(id);
14 Debug.Log(@object);
15 go = Object.Instantiate(@object) as GameObject;
16 Debug.Log(go);
17 game = go.GetComponentInChildren<T>();
18 }
20 Debug.Log(game);
21 }
string path
Definition: MiniGame.cs:31
void SetAudioMixer(GameObject go)
Definition: MiniGame.cs:101

References MiniGame.asset, AssetBundle, Debug, ModMinigame< T >.game, MiniGame.go, MiniGame.path, and MiniGame.SetAudioMixer().

Member Data Documentation

◆ game

T ModMinigame< T >.game

Definition at line 5 of file ModMinigame.cs.

Referenced by ModMinigame< T >.Kill(), and ModMinigame< T >.Load().


The documentation for this class was generated from the following file: