Skip to content

Commit bb5e161

Browse files
Folder Movearounds + Structure -> Data
Signed-off-by: CrusherNotDrip <crushernotdrip@tilnotdrip.org>
1 parent 9f0f5e3 commit bb5e161

65 files changed

Lines changed: 210 additions & 202 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

project.hxp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ class Project extends HXProject
183183
addHaxeFlag('-dce no');
184184
addHaxeFlag("--macro include('funkin')");
185185
addHaxeFlag("--macro include('flixel', true, ['flixel.addons.editors.spine.*', 'flixel.addons.nape.*', 'flixel.system.macros.*', 'flixel.addons.tile.FlxRayCastTilemap'])");
186-
addHaxeFlag("--macro addMetadata('@:build(funkin.macros.ZProperty.buildZProperty())', 'flixel.FlxBasic')");
187-
addHaxeFlag("--macro addMetadata('@:build(funkin.macros.ZProperty.buildRearrangeFunction())', 'flixel.group.FlxTypedGroup')");
186+
addHaxeFlag("--macro addMetadata('@:build(funkin.util.macro.ZProperty.buildZProperty())', 'flixel.FlxBasic')");
187+
addHaxeFlag("--macro addMetadata('@:build(funkin.util.macro.ZProperty.buildRearrangeFunction())', 'flixel.group.FlxTypedGroup')");
188188
addHaxeFlag('--no-output', FUNKIN_DOX_GENERATION.isEnabled(this));
189189
addHaxeFlag('-xml docs/dox/' + Std.string(target).toLowerCase() + '.xml', FUNKIN_DOX_GENERATION.isEnabled(this));
190190
}

src/funkin/Constants.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package funkin;
22

33
#if FUNKIN_GIT_DETAILS
4-
import funkin.macros.GitDefines;
4+
import funkin.util.macro.GitDefines;
55
#end
66

77
class Constants
@@ -14,7 +14,7 @@ class Constants
1414
/**
1515
* The version of Friday Night Funkin' that TechNotDrip Engine is based off of.
1616
*/
17-
public static final FNF_VERSION:String = '0.8.1';
17+
public static final FNF_VERSION:String = '0.8.5';
1818

1919
#if FUNKIN_GIT_DETAILS
2020
/**

src/funkin/FunkinGame.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package funkin;
33
import flixel.FlxBasic;
44
import flixel.FlxGame;
55
import flixel.util.typeLimit.NextState;
6-
import funkin.objects.ui.PerformanceStats;
7-
import funkin.states.ui.TitleState;
6+
import funkin.ui.PerformanceStats;
7+
import funkin.ui.title.TitleState;
88
import lime.utils.Assets as LimeAssets;
99
import openfl.utils.Assets as OpenFlAssets;
1010
#if FUNKIN_DISCORD_RPC
11-
import funkin.api.DiscordRPC;
11+
import funkin.api.discord.DiscordRPC;
1212
#end
1313

1414
class FunkinGame extends FlxGame
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
package funkin.objects;
1+
package funkin;
22

33
import animate.FlxAnimate;
44
import animate.FlxAnimateFrames;
55
import flixel.animation.FlxAnimation;
66
import flixel.graphics.FlxGraphic;
77
import flixel.group.FlxSpriteGroup.FlxTypedSpriteGroup;
88
import flixel.util.FlxSignal.FlxTypedSignal;
9-
import funkin.structures.ObjectStructure;
109

1110
using funkin.util.FlxAnimateUtil;
1211

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package funkin.structures;
1+
package funkin.api.discord;
22

33
#if FUNKIN_DISCORD_RPC
44
/**
55
* Discord Configuration.
66
*/
7-
typedef DiscordStructure =
7+
typedef DiscordData =
88
{
99
var id:String;
1010

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
package funkin.api;
1+
package funkin.api.discord;
22

33
#if FUNKIN_DISCORD_RPC
4-
import funkin.structures.DiscordStructure;
54
import haxe.Json;
65
import hxdiscord_rpc.Discord;
76
import hxdiscord_rpc.Types;
@@ -238,7 +237,7 @@ class DiscordRPC
238237
*/
239238
public static function loadDiscordConfig():Void
240239
{
241-
var discordConfig:DiscordStructure = cast Json.parse(Paths.content.json('config/discord'));
240+
var discordConfig:DiscordData = cast Json.parse(Paths.content.json('config/discord'));
242241

243242
clientID = discordConfig.id;
244243
largeImageKey = discordConfig.iconKey;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package funkin.data.alphabet;
2+
3+
import funkin.data.object.ObjectData;
4+
5+
typedef AlphabetData =
6+
{
7+
var offsets:Array<AlphabetDataOffsets>;
8+
}
9+
10+
typedef AlphabetDataOffsets =
11+
{
12+
> PointData,
13+
var character:String;
14+
}
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
package funkin.structures;
1+
package funkin.data.icon;
22

3-
import funkin.structures.ObjectStructure.AnimationArrayStructure;
4-
import funkin.structures.ObjectStructure.PointStructure;
3+
import funkin.data.object.ObjectData;
54

6-
typedef IconStructure =
5+
typedef IconData =
76
{
87
/**
98
* Used for split animations, basically icons normally.
@@ -28,9 +27,9 @@ typedef IconStructure =
2827
/**
2928
* The scale to use for this icon.
3029
*/
31-
var scale:PointStructure;
30+
var scale:PointData;
3231

33-
var animations:Array<AnimationArrayStructure>;
32+
var animations:Array<AnimationDataArray>;
3433
var healthAnimations:Array<HealthAnimation>;
3534
}
3635

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package funkin.structures;
1+
package funkin.data.object;
22

33
/**
44
* The base structure for an object for use with Flixel.
55
*
66
* An system for converting this to an object is implimented inside of funkin.objects.FunkinSprite
77
*/
8-
typedef ObjectStructure =
8+
typedef ObjectData =
99
{
1010
/**
1111
* The identifier for this object.
@@ -32,10 +32,10 @@ typedef ObjectStructure =
3232
* The placement of where this object should be.
3333
*/
3434
@:optional
35-
var ?position:PositionStructure;
35+
var ?position:PositionData;
3636

3737
@:optional
38-
var ?animation:AnimationStructure;
38+
var ?animation:AnimationData;
3939

4040
@:optional
4141
var ?alpha:Float;
@@ -50,14 +50,14 @@ typedef ObjectStructure =
5050
var ?flipY:Bool;
5151

5252
@:optional
53-
var ?scale:PointStructure;
53+
var ?scale:PointData;
5454

5555
@:optional
56-
var ?scrollFactor:PointStructure;
56+
var ?scrollFactor:PointData;
5757
}
5858

5959
// TODO: when we make a custom json parser, make it so you can use an array or dis
60-
typedef PointStructure =
60+
typedef PointData =
6161
{
6262
@:optional
6363
var ?x:Float;
@@ -66,23 +66,23 @@ typedef PointStructure =
6666
var ?y:Float;
6767
}
6868

69-
typedef PositionStructure =
69+
typedef PositionData =
7070
{
71-
> PointStructure,
71+
> PointData,
7272

7373
@:optional
7474
var ?z:Int;
7575
}
7676

77-
typedef AnimationStructure =
77+
typedef AnimationData =
7878
{
7979
@:optional
8080
var ?type:String;
8181

82-
var anims:Array<AnimationArrayStructure>;
82+
var anims:Array<AnimationDataArray>;
8383
}
8484

85-
typedef AnimationArrayStructure =
85+
typedef AnimationDataArray =
8686
{
8787
var name:String;
8888

@@ -104,5 +104,5 @@ typedef AnimationArrayStructure =
104104
var ?flipY:Bool;
105105

106106
@:optional
107-
var ?offsets:PointStructure;
107+
var ?offsets:PositionData;
108108
}

src/funkin/data/save/Save.hx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
package funkin.data.save;
22

33
import flixel.util.FlxSave;
4-
import funkin.structures.SaveStructure;
5-
import funkin.util.FunkinControls;
4+
import funkin.data.save.SaveData;
5+
import funkin.input.FunkinControls;
66

77
class Save
88
{
99
/**
1010
* The path of which saves are loaded from. Usually the company name.
1111
*/
12-
public static final SAVE_PATH:String = 'TilNotDrip';
12+
public static final SAVE_PATH:String = 'TilNotDrip' #if debug + '_DEBUG' #end;
1313

1414
/**
1515
* The name of which saves are loaded from. Usually the name of the application.
1616
*/
17-
public static final SAVE_NAME:String = 'TechNotDrip';
17+
public static final SAVE_NAME:String = 'TechNotDrip' #if debug + '_DEBUG' #end;
1818

1919
/**
2020
* The current version of save file.
2121
*/
22-
public static final SAVE_VERSION:Version = '1.1.0';
22+
public static final SAVE_VERSION:Version = '1.0.0';
2323

2424
/**
2525
* The version rule for save files, means that they are compatible with this version.
@@ -36,9 +36,9 @@ class Save
3636
/**
3737
* The recently loaded save data.
3838
*/
39-
public var data:SaveStructure = null;
39+
public var data:SaveData = null;
4040

41-
public function new(?data:SaveStructure)
41+
public function new(?data:SaveData)
4242
{
4343
if (data == null)
4444
{
@@ -91,16 +91,16 @@ class Save
9191
/**
9292
* Options for the game
9393
*/
94-
public var options(get, set):OptionStructure;
94+
public var options(get, set):SaveOptionData;
9595

96-
function set_options(value:OptionStructure):OptionStructure
96+
function set_options(value:SaveOptionData):SaveOptionData
9797
{
9898
data.options = value;
9999
flush();
100100
return data.options;
101101
}
102102

103-
function get_options():OptionStructure
103+
function get_options():SaveOptionData
104104
{
105105
return data.options;
106106
}
@@ -151,7 +151,7 @@ class Save
151151
/**
152152
* @return Returns the default save options
153153
*/
154-
public static function getDefault():SaveStructure
154+
public static function getDefault():SaveData
155155
{
156156
return {
157157
version: SAVE_VERSION,

0 commit comments

Comments
 (0)