forked from whztt07/UnityGameplayAbilitySystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTagComponent.cs
More file actions
41 lines (32 loc) · 1.09 KB
/
Copy pathTagComponent.cs
File metadata and controls
41 lines (32 loc) · 1.09 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 System;
using System.Collections;
using System.Collections.Generic;
using Unity.Collections;
using Unity.Entities;
using UnityEngine;
public interface ITagIdentifier {
void MatchTag(int TagHash);
}
public struct TagContainer : ITagIdentifier {
private NativeList<int> Tags;
//private NativeHashMap<int, int>
public void MatchTag(int TagHash) {
throw new System.NotImplementedException();
}
}
public struct GameplayTagComponent : IComponentData {
public int Tag;
//public int Parent1Tag;
//public int Parent2Tag;
//public int Parent3Tag;
//public int Parent4Tag;
//public int Parent5Tag;
//public int Parent6Tag;
}
[InternalBufferCapacity(32)]
public struct GameplayTagsBuffer : IBufferElementData {
public GameplayTagComponent Value;
// These implicit conversions are optional, but can help reduce typing.
public static implicit operator GameplayTagComponent(GameplayTagsBuffer e) { return e.Value; }
public static implicit operator GameplayTagsBuffer(GameplayTagComponent e) { return new GameplayTagsBuffer { Value = e }; }
}