Skip to content

Commit

Permalink
feat: add initial .net7 api
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmuffin committed Oct 7, 2023
1 parent 2fc9fb6 commit 21da2b3
Show file tree
Hide file tree
Showing 61 changed files with 7,938 additions and 0 deletions.
34 changes: 34 additions & 0 deletions managed/CounterStrikeSharp.API/BaseNative.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* This file is part of CounterStrikeSharp.
* CounterStrikeSharp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* CounterStrikeSharp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with CounterStrikeSharp. If not, see <https://www.gnu.org/licenses/>. *
*/

using System;
using System.Collections.Generic;
using System.Reflection.Metadata;
using System.Runtime.InteropServices;
using System.Text;

namespace CounterStrikeSharp.API
{
public abstract class NativeObject
{
public IntPtr Handle { get; internal set; }

protected NativeObject(IntPtr pointer)
{
Handle = pointer;
}
}
}
32 changes: 32 additions & 0 deletions managed/CounterStrikeSharp.API/ConVarFlags.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* This file is part of CounterStrikeSharp.
* CounterStrikeSharp is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* CounterStrikeSharp is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with CounterStrikeSharp. If not, see <https://www.gnu.org/licenses/>. *
*/

using System;
using System.Collections.Generic;
using System.Text;

namespace CounterStrikeSharp.API
{
[Flags]
public enum ConVarFlags
{
None = 0,
Unregistered = (1 << 0),
DevelopmentOnly = (1 << 1),
Notify = (1 << 8),
Replicated = (1<<13)
}
}
Loading

0 comments on commit 21da2b3

Please sign in to comment.