Skip to content

Centralize PlatformNetwork Instance #17

@Phantom139

Description

@Phantom139

Alpha 5 will add TCP Requests and HTTP Requests to the PhantomBot project. As a means to prevent unnecessary and redundant coding practices within the bot, I'm going to use the existing Socket class to handle this. The only problem is that intertwining Socket instances throughout the codebase calling send and recv back and forth may cause some undesired issues, therefore I'm going to "centralize" PlatformNetwork as a core class which is responsible for all "Socket" instances active in the bot.

This requires adding event triggers to the bot, which will require task delegation. @Ragora has provided a easy Delegate Library (https://github.com/Ragora/EasyDelegate) for my Galactic 2D project, and it works perfectly find for that application. It will work just as fine for this case as well.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions