Skip to content

Instantly share code, notes, and snippets.

@yelvert

yelvert/attack.h Secret

Created October 28, 2014 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yelvert/2a03353bf578121b78d7 to your computer and use it in GitHub Desktop.
Save yelvert/2a03353bf578121b78d7 to your computer and use it in GitHub Desktop.
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Tickable.h"
#include "CharacterAttack.generated.h"
/**
*
*/
UCLASS(BlueprintType, Blueprintable)
class COMICMOBA_API UCharacterAttack : public UObject, public FTickableGameObject
{
GENERATED_UCLASS_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Character")
FString Name;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Character")
float Cooldown;
};
#pragma once
#include "GameFramework/Character.h"
#include "CharacterAttack.h"
#include "ComicMOBACharacter.generated.h"
UCLASS(config = Game, BlueprintType, Blueprintable)
class AMyCharacter : public ACharacter
{
GENERATED_UCLASS_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Character")
UCharacterAttack* Attack;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment