Дядя Женя
Дядя Женя
CC#
Created by Дядя Женя on 1/12/2024 in #help
Design/Pattern/Architecture help needed
of course I could make insanely large class containing every possible delta and make a tower of if statements in the response handler. That would even be fast server-side because server is on TypeScript and doesn't need to create full object to serialize. But I feel there is something better
12 replies
CC#
Created by Дядя Женя on 1/12/2024 in #help
Design/Pattern/Architecture help needed
and the general logic would be somewhere inside like
static class Shop
{
public static async Task BuyRequest(int id)
{
var response = await REST.BuyShop(id);
if (response.currencyLost != null)
Profile.UpdateCurrency(response.currencyLost);
if (response.towerLost != null)
Profile.UpdateTower(response.towerLost);
if (response.questProgressChanged)
Quests.ChangeProgress(response.quest.id, response.quest.value);
// etc...
}
}
static class Shop
{
public static async Task BuyRequest(int id)
{
var response = await REST.BuyShop(id);
if (response.currencyLost != null)
Profile.UpdateCurrency(response.currencyLost);
if (response.towerLost != null)
Profile.UpdateTower(response.towerLost);
if (response.questProgressChanged)
Quests.ChangeProgress(response.quest.id, response.quest.value);
// etc...
}
}
12 replies
CC#
Created by Дядя Женя on 1/12/2024 in #help
Design/Pattern/Architecture help needed
So the ingame shop button code would simply become:
await Shop.BuyRequest(someId, orSomething);
await Shop.BuyRequest(someId, orSomething);
12 replies
CC#
Created by Дядя Женя on 1/12/2024 in #help
Design/Pattern/Architecture help needed
And this was just one example. What I want is the underlying system that would help me to synchronize any data that could've possibly changed during any request processing. As well as triggering any animations or popups that may be needed in the process.
12 replies
CC#
Created by Дядя Женя on 1/1/2024 in #help
Compile .NET project with nuget packages Visual Studio
seems like it worked, thank you very much
13 replies
CC#
Created by Дядя Женя on 1/1/2024 in #help
Compile .NET project with nuget packages Visual Studio
and Unity wants every dependency .dll to also be inside the folder
13 replies
CC#
Created by Дядя Женя on 1/1/2024 in #help
Compile .NET project with nuget packages Visual Studio
Unity fails to load Arch.dll because it cannot find any of it's dependencies, which are nuget packages
13 replies
CC#
Created by Дядя Женя on 1/1/2024 in #help
Compile .NET project with nuget packages Visual Studio
I want to use it in Unity as managed dll plugin
13 replies
CC#
Created by Дядя Женя on 1/1/2024 in #help
Compile .NET project with nuget packages Visual Studio
Basically I want Arch.dll to be compiled and all the referenced dlls it has to also be in the output folder
13 replies
CC#
Created by Дядя Женя on 1/1/2024 in #help
Compile .NET project with nuget packages Visual Studio
13 replies
CC#
Created by Legion on 12/30/2023 in #help
✅ Is there a library for processing FBX or GLTF files?
If you need that for Unity, however, unity can also act as rendering engine, and in case you're ok with the result quality just load all of the models to unity, bump it on the scene and render to texture via script, no need in 3rd party plugins for that
21 replies
CC#
Created by Legion on 12/30/2023 in #help
✅ Is there a library for processing FBX or GLTF files?
much easier to make blender plugin instead of all of that. You will need to create / find rendering engine, shaders etc. All of which are already embedded in blender
21 replies
CC#
Created by trashboy on 12/30/2023 in #help
guys help me with visual studio
No, I'm trying to find that
16 replies
CC#
Created by trashboy on 12/30/2023 in #help
guys help me with visual studio
there was some kind of setting in VS for that
16 replies
CC#
Created by Jaynix on 12/30/2023 in #help
Are there multiple types of compiled code? Can I get a simplified explanation of what it is?
just trying to give the author general idea of what's happening. @univershal SyncRооtcorrect me if i'm completely wrong
24 replies
CC#
Created by Jaynix on 12/30/2023 in #help
Are there multiple types of compiled code? Can I get a simplified explanation of what it is?
not truly an expect of super-low-level stuff myself, but trying to answer your general question: every program you create in some way ends up being a list of assembly instructions that are given to your OS to interpret further to run commands on your CPU. Some programming languages, often referred to as low-level programming languages are compiled directly into those assembly instructions. Other languages do it other ways. Some are compiling themselves into one of those low-level languages that are then compiled into assembly, some, like javascrtipt, are interpreted in runtime by other programs
24 replies
CC#
Created by Jaynix on 12/30/2023 in #help
Are there multiple types of compiled code? Can I get a simplified explanation of what it is?
yeah, but it kinda gives you an idea
24 replies