mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-04 13:47:04 -04:00
Removed NioTSO client and server
- NioTSO client isn't needed because we're using RayLib - Added FreeSO's API server to handle most backend operations
This commit is contained in:
parent
f12ba1502b
commit
22191ce648
591 changed files with 53264 additions and 3362 deletions
7
server/tso.common/Security/AvatarPermissions.cs
Executable file
7
server/tso.common/Security/AvatarPermissions.cs
Executable file
|
@ -0,0 +1,7 @@
|
|||
namespace FSO.Common.Security
|
||||
{
|
||||
public enum AvatarPermissions
|
||||
{
|
||||
WRITE
|
||||
}
|
||||
}
|
11
server/tso.common/Security/ISecurityContext.cs
Executable file
11
server/tso.common/Security/ISecurityContext.cs
Executable file
|
@ -0,0 +1,11 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace FSO.Common.Security
|
||||
{
|
||||
public interface ISecurityContext
|
||||
{
|
||||
void DemandAvatar(uint id, AvatarPermissions permission);
|
||||
void DemandAvatars(IEnumerable<uint> id, AvatarPermissions permission);
|
||||
void DemandInternalSystem();
|
||||
}
|
||||
}
|
22
server/tso.common/Security/NullSecurityContext.cs
Executable file
22
server/tso.common/Security/NullSecurityContext.cs
Executable file
|
@ -0,0 +1,22 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace FSO.Common.Security
|
||||
{
|
||||
public class NullSecurityContext : ISecurityContext
|
||||
{
|
||||
public static NullSecurityContext INSTANCE = new NullSecurityContext();
|
||||
|
||||
|
||||
public void DemandAvatar(uint id, AvatarPermissions permission)
|
||||
{
|
||||
}
|
||||
|
||||
public void DemandAvatars(IEnumerable<uint> id, AvatarPermissions permission)
|
||||
{
|
||||
}
|
||||
|
||||
public void DemandInternalSystem()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue