Skip to content

Commit

Permalink
feat: State Reference copying.
Browse files Browse the repository at this point in the history
  • Loading branch information
christides11 committed Feb 28, 2023
1 parent 1beec07 commit 732e9cc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,13 @@ public override int GetState()
{
return (int)state;
}

public override FighterStateReferenceBase Copy()
{
return new BaseStateReference()
{
state = state
};
}
}
}
5 changes: 5 additions & 0 deletions Assets/HnSF/State/FighterStateReferenceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ public virtual int GetState()
{
return 0;
}

public virtual FighterStateReferenceBase Copy()
{
return new FighterStateReferenceBase();
}
}
}
16 changes: 8 additions & 8 deletions UserSettings/Layouts/default-2021.dwlt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ MonoBehaviour:
m_MinSize: {x: 300, y: 200}
m_MaxSize: {x: 24288, y: 16192}
vertical: 0
controlID: 46
controlID: 109
--- !u!114 &3
MonoBehaviour:
m_ObjectHideFlags: 52
Expand Down Expand Up @@ -249,7 +249,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 52
controlID: 83
--- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
Expand Down Expand Up @@ -385,22 +385,22 @@ MonoBehaviour:
m_SkipHidden: 0
m_SearchArea: 1
m_Folders:
- Assets/HnSF/Samples/TDAction/Fighters/Shared/States
- Assets/HnSF/Samples/TDAction/Scripts/Fighter
m_Globs: []
m_OriginalText:
m_ViewMode: 1
m_StartGridSize: 16
m_LastFolders:
- Assets/HnSF/Samples/TDAction/Fighters/Shared/States
- Assets/HnSF/Samples/TDAction/Scripts/Fighter
m_LastFoldersGridSize: 16
m_LastProjectPath: C:\Projects\Unity\hack-and-slash-framework
m_LockTracker:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 178}
m_SelectedIDs: 56660000
m_LastClickedID: 26198
m_ExpandedIDs: 00000000986400009a6400009c6400009e640000a0640000a2640000a4640000a6640000a8640000aa640000ac640000ae64000000ca9a3b
scrollPos: {x: 0, y: 114}
m_SelectedIDs: a6640000
m_LastClickedID: 25766
m_ExpandedIDs: 00000000986400009a6400009e640000a0640000a2640000a4640000a8640000aa640000ac640000ae64000000ca9a3b
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
Expand Down

0 comments on commit 732e9cc

Please sign in to comment.