/// <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; }
/// <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; }
public GameAssetContainer(GameAssetData data, GameAsset assetType, GameObject assetGameObject) { Data = data; Type = assetType; GameObject = assetGameObject; }
public AssetCreatedEventArgs(GameAssetData data, GameAsset asset, GameObject gameObject) { Container = new GameAssetContainer(data, asset, gameObject); }