Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mr BigSock
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gard Aleksander Furre
Mr BigSock
Commits
cde5b976
Commit
cde5b976
authored
2 years ago
by
Robin Halseth Sandvik
Browse files
Options
Downloads
Patches
Plain Diff
Added ability parameters for charging.
parent
60c83e03
No related branches found
Branches containing commit
No related tags found
1 merge request
!56
New ability fire rework. (Charging)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs
+12
-0
12 additions, 0 deletions
MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs
MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs
+12
-0
12 additions, 0 deletions
MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs
with
24 additions
and
0 deletions
MrBigsock/Assets/Code/Core/Abilities/Base/AbilityParam.cs
+
12
−
0
View file @
cde5b976
...
...
@@ -29,6 +29,18 @@ namespace BigSock {
The character that activated the ability.
*/
public
Character
Actor
{
get
;
set
;
}
/*
How long the ability was charged.
*/
public
float
ChargeTime
{
get
;
set
;
}
/*
How much of the allowed charge was done in percent.
Ex.: if min is 1s, max is 3s, and the ability was charged for 2s,
then 0.5 since it was charged for half the time between min and max.
*/
public
float
ChargeTimePercent
{
get
;
set
;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
MrBigsock/Assets/Code/Core/Abilities/Base/IAbilityParam.cs
+
12
−
0
View file @
cde5b976
...
...
@@ -30,6 +30,18 @@ namespace BigSock {
*/
Character
Actor
{
get
;
set
;
}
/*
How long the ability was charged.
*/
float
ChargeTime
{
get
;
set
;
}
/*
How much of the allowed charge was done in percent.
Ex.: if min is 1s, max is 3s, and the ability was charged for 2s,
then 0.5 since it was charged for half the time between min and max.
*/
float
ChargeTimePercent
{
get
;
set
;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment