Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
substatica committed Dec 22, 2023
0 parents commit c3ecf2f
Show file tree
Hide file tree
Showing 10 changed files with 832 additions and 0 deletions.
133 changes: 133 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Dd]ebug/
[Rr]elease/
x64/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.svclog
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml
*.azurePubxml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
packages/
## TODO: If the tool you use requires repositories.config, also uncomment the next line
!packages/repositories.config

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
![Ss]tyle[Cc]op.targets
~$*
*~
*.dbmdl
*.[Pp]ublish.xml

*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac desktop service store files
.DS_Store

_NCrunch*
Empty file.
Binary file added .vs/as2-save-edit/v16/Server/sqlite3/storage.ide
Binary file not shown.
25 changes: 25 additions & 0 deletions as2-save-edit.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "as2-save-edit", "as2-save-edit\as2-save-edit.csproj", "{8A0B6037-49FB-415C-BE6F-83D3DAD75E24}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8A0B6037-49FB-415C-BE6F-83D3DAD75E24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8A0B6037-49FB-415C-BE6F-83D3DAD75E24}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8A0B6037-49FB-415C-BE6F-83D3DAD75E24}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8A0B6037-49FB-415C-BE6F-83D3DAD75E24}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {82CD9AD3-9438-4A29-A7BA-1B458F5048F1}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions as2-save-edit/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
92 changes: 92 additions & 0 deletions as2-save-edit/JsonClasses.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JsonClasses
{
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
public class BodySlot
{
public int SlotType { get; set; }
public bool IsHidden { get; set; }
public ReservedItem ReservedItem { get; set; }
public List<int> ItemCellIds { get; set; }
public List<int> configurationIds { get; set; }
}

public class CompanionInventory
{
public List<SlotDatum> SlotData { get; set; }
}

public class Hands
{
public List<BodySlot> BodySlots { get; set; }
}

public class Inventory
{
public List<SlotDatum> SlotData { get; set; }
}

public class Player
{
public Hands hands { get; set; }
public Inventory inventory { get; set; }
public ResourceList resources { get; set; }
public List<object> freeCraftingRecipes { get; set; }
}

public class ReservedItem
{
public int ReservedItemCellId { get; set; }
public int ReservedItemIdx { get; set; }
public bool HasData { get; set; }
}

public class Resource
{
public int resourceId { get; set; }
public int amount { get; set; }
}

public class ResourceList
{
public List<Resource> Resources { get; set; }
}

public class SavedGame
{
public List<SavedGameState> savedGameStates { get; set; }
}

public class SavedGameState
{
public string name { get; set; }
public int version { get; set; }
public int slot { get; set; }
public int difficulty { get; set; }
public int levelCellID { get; set; }
public string sessionGuid { get; set; }
public object checkpointGuid { get; set; }
public List<string> reachedCheckpointsGuids { get; set; }
public double levelCompletionFraction { get; set; }
public DateTime lastPlayedDate { get; set; }
public List<object> triggeredTutorials { get; set; }
public int playerIndexToLoad { get; set; }
public List<Player> players { get; set; }
public List<string> triggeredSequenceGUIDs { get; set; }
public CompanionInventory companionInventory { get; set; }
}

public class SlotDatum
{
public List<int> ItemCellIds { get; set; }
public List<int> configurationIds { get; set; }
public bool IsHidden { get; set; }
}


}
Loading

0 comments on commit c3ecf2f

Please sign in to comment.