Time limiting a method in C#

后端 未结 6 2034
小蘑菇
小蘑菇 2021-02-02 17:16

I have a Game framework where there is a list of Bots who implement IBotInterface. These bots are custom made by user with the only limitation that they must implement the inter

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-02 17:56

    another design option may be to allow each bot to be its own process, then use an IPC mechanism to exchange data. You can usually terminate a process without any terrible repercussions.

提交回复
热议问题