-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e12217
commit 200572a
Showing
10 changed files
with
247 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace AltV.Net.Async | ||
{ | ||
public class DefaultAsyncResource : AsyncResource | ||
{ | ||
public override void OnStart() | ||
{ | ||
} | ||
|
||
public override void OnStop() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using AltV.Net.Elements.Entities; | ||
|
||
namespace AltV.Net.Example | ||
{ | ||
[EntityFactory(BaseObjectType.Player)] | ||
public class MyPlayerFactory : IEntityFactory<IPlayer> | ||
{ | ||
public IPlayer Create(IntPtr playerPointer, ushort id) | ||
{ | ||
return new MyPlayer(playerPointer, id); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace AltV.Net | ||
{ | ||
public class DefaultResource : Resource | ||
{ | ||
public override void OnStart() | ||
{ | ||
} | ||
|
||
public override void OnStop() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using AltV.Net.Elements.Entities; | ||
|
||
namespace AltV.Net | ||
{ | ||
[AttributeUsage(AttributeTargets.Class)] | ||
public sealed class EntityFactoryAttribute : Attribute | ||
{ | ||
private readonly BaseObjectType baseObjectType; | ||
|
||
public EntityFactoryAttribute(BaseObjectType baseObjectType) | ||
{ | ||
this.baseObjectType = baseObjectType; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters