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P5XA6727BQC
CD5FF75KTOBTMVMTMCKMR6F5DFKOF26I5K43ITNHGBI3ZAZHA4RAC
VZRSH4U473FCZOP5EXURPXXN5J6F3ZLT435YY7A2JHLG2ZZB5KLQC
HXTSBPAP75A7EC4RKWYQMVPPHPNZFPHUORBZWDHGEB6MPAGI7G7AC
CPSTCZQDYQXOBGGW57QYLVGQLCMLXAIIBEZP3IQF3VFNHQC3CUPQC
S256EPZUSOF4TV2KGOFZDJXUFDD57GZFYTCARFJ3SD24RPC56PHAC
VPXUP5WZTVC3OVD73TNKPK43IAGFXGUGCEJT56JM4IT4APYQXUHAC
M2C63XUU3TKYAUPPSPEFVF4CMBQMCVLZATANFWQW35MMYNRB2SEAC
R5JJA7VQ5HCQ6TZEFMORFMPYBXTMIOBAH6YMDCG4QZKBJZCQLR4AC
MDJQTAONL4M7SFFORMXLJHA7WBDTDTRZAZ544JR23SODSCWSVZ3AC
HB5RMIPYB4VPFTMHUE4ZWLTC4WAFCJDZYPSNTXE2S45EKDZDISSQC
ZNC4WD5O2EXUDW4HTLOFGH3CR3RBVFOZ7AHA5UZ7IFCL7H77KH4AC
XF52N4U7HWXOF4PDSCR7LCUENLTSXLWEZGS2IJ6562KYI567Z2GAC
5YUI4V7A6ONEYREG5CXWHMBYCOP6Q3GMMQD2OTHXZAGKCGM4FWBAC
V5E2JXXCUIBCDKY3KGP6BPAKKYMGDWSUIODFQHTUFULY7447S5DAC
TKLR43RQKXB47J2YVVSJ7CAZAJZYOKXSDUXAUOVQMFUN73KZVUVQC
fileFormatVersion: 2
guid: 4e9b3a15c02111a4091e4b40f121d779
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections.Generic;
using UnityEngine;
public class TaggableUnit : MonoBehaviour
{
public TagCounter CurrentTags { private set; get; } = new TagCounter();
public void AddTags(IEnumerable<TagSlot> amountSlots) {
foreach (var slot in amountSlots) {
CurrentTags.AddTagSlot(slot);
}
}
public IEnumerable<TagSlot> GetTags() {
return CurrentTags.AsEnumerable();
}
}
fileFormatVersion: 2
guid: fd712b97a8bf04c4691bdbe4ca12d51e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections.Generic;
using UnityEngine;
public class TagsChangedEventArgs : EventArgs
{
}
public class TagSystem : MonoBehaviour
{
[SerializeField] EventAggregator _eventAggregator;
public void ApplyTags(IEnumerable<MonoBehaviour> units, IEnumerable<TagSlot> tags) {
foreach (var unit in units) {
if (taggableUnit != null) {
taggableUnit.AddTags(tags);
}
}
}
}
_eventAggregator?.OnTagsChanged(this, eventArgs);
var eventArgs = new TagsChangedEventArgs { Unit = taggableUnit, Change = tags };
var taggableUnit = unit.GetComponent<TaggableUnit>();
public TaggableUnit Unit;
public IEnumerable<TagSlot> Change;
eventAggregator: {fileID: 11400000, guid: 7674cb78dbff8d447b6c39984750a2da, type: 2}
runeWeavings: []
_eventAggregator: {fileID: 11400000, guid: 7674cb78dbff8d447b6c39984750a2da, type: 2}
_runeWeavings:
- runeWeaving:
martialSequence:
combatMoveRefs:
- {fileID: 11400000, guid: 58c5b630ea50af94c9793b9d5e497a52, type: 2}
runeBindingSequence:
runeRefs:
- {fileID: 11400000, guid: 3478dbc1ec12f4d4cb446b6d35214b52, type: 2}
weaveName:
weaveName: pq
--- !u!114 &1095075972
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1095075963}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e9b3a15c02111a4091e4b40f121d779, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1171631379
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1171631381}
- component: {fileID: 1171631380}
m_Layer: 0
m_Name: TagSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1171631380
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1171631379}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fd712b97a8bf04c4691bdbe4ca12d51e, type: 3}
m_Name:
m_EditorClassIdentifier:
_eventAggregator: {fileID: 11400000, guid: 7674cb78dbff8d447b6c39984750a2da, type: 2}
--- !u!4 &1171631381
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1171631379}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 51.6, y: 3.1, z: 61.78}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 14
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1460840151
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1460840143}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e9b3a15c02111a4091e4b40f121d779, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &6172734562627839307
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9057831270114817296}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e9b3a15c02111a4091e4b40f121d779, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &4479033565303223252
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2775200704764093955}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e9b3a15c02111a4091e4b40f121d779, type: 3}
m_Name:
m_EditorClassIdentifier: