Skip to content
Snippets Groups Projects
Commit 239cec99 authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Added new class that will hold parameters for abilities.

parent 01979b13
No related branches found
No related tags found
1 merge request!53ToolTips, new ability parameter system & misc clean ups.
using System.Collections;
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.InputSystem;
namespace BigSock {
/*
The parameters we send to all abilities.
*/
public class AbilityParam : IAbilityParam {
/*
The position the actor is currently aiming at.
Ex.: For player, it's the cursor position.
*/
public Vector2? TargetPos { get; set; }
/*
The direction the actor is moving.
*/
public Vector2? MovementDir { get; set; }
/*
The character that activated the ability.
*/
public Character Actor { get; set; }
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: b73814bfc110bc94086fae9763407d07
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.InputSystem;
namespace BigSock {
/*
The parameters we send to all abilities.
*/
public interface IAbilityParam {
/*
The position the actor is currently aiming at.
Ex.: For player, it's the cursor position.
*/
Vector2? TargetPos { get; set; }
/*
The direction the actor is moving.
*/
Vector2? MovementDir { get; set; }
/*
The character that activated the ability.
*/
Character Actor { get; set; }
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 337bd5294aa3e514f853b1a94eeb4c32
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment