-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathStateJobs.cs
More file actions
41 lines (35 loc) · 1.16 KB
/
StateJobs.cs
File metadata and controls
41 lines (35 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
using KindredExtract;
using ProjectM;
using ProjectM.Network;
using Unity.Jobs;
[System.AttributeUsage(System.AttributeTargets.Interface)]
public sealed class JobProducerTypeKindredAttribute : System.Attribute
{
/// <summary>
/// <para>ProducerType is the type containing a static method named "Execute" method which is the method invokes by the job system.</para>
/// </summary>
public System.Type ProducerType { get; }
/// <summary>
/// <para></para>
/// </summary>
/// <param name="producerType">The type containing a static method named "Execute" method which is the method invokes by the job system.</param>
public JobProducerTypeKindredAttribute(System.Type producerType) => this.ProducerType = producerType;
}
[JobProducerTypeKindred(typeof(IJobExtensions.JobStruct<>))]
public interface IJobKindred
{
/// <summary>
/// <para>Implement this method to perform work on a worker thread.</para>
/// </summary>
void Execute();
}
struct PlayerStateJob : IJobKindred
{
public User user;
public void Execute()
{
ServerChatUtils.SendSystemMessageToClient(Core.EntityManager, user, "Test");
}
}
*/