Ejemplo n.º 1
0
 /// <summary>
 /// Creates a container with the given data & GO. Type is assigned in constructor.
 /// No more stupid long calls to get the Type. You're welcome.
 /// </summary>
 /// <param name="data"></param>
 /// <param name="assetGameObject"></param>
 public GameAssetContainer(GameAssetData data, GameObject assetGameObject)
 {
     Data       = data;
     Type       = AssetManager.GetAssetByStringID(data.AssetTypeID);
     GameObject = assetGameObject;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a container with only type information. Intended as the 'shell'
 /// to initiate certain game actions with.
 /// </summary>
 public GameAssetContainer(GameAsset assetType)
 {
     Type = assetType;
 }
Ejemplo n.º 3
0
 public GameAssetContainer(GameAssetData data, GameAsset assetType, GameObject assetGameObject)
 {
     Data       = data;
     Type       = assetType;
     GameObject = assetGameObject;
 }
Ejemplo n.º 4
0
 public AssetCreatedEventArgs(GameAssetData data, GameAsset asset, GameObject gameObject)
 {
     Container = new GameAssetContainer(data, asset, gameObject);
 }