You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

62 lines
2.8 KiB

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityApiGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class CombatEntity {
public CoreGame.Render.DropItemDataComponent dropItemData { get { return (CoreGame.Render.DropItemDataComponent)GetComponent(CombatComponentsLookup.DropItemData); } }
public bool hasDropItemData { get { return HasComponent(CombatComponentsLookup.DropItemData); } }
public void AddDropItemData(int newDropItemID, DropItemType newType, int newQuality, int newDropItemCount) {
var index = CombatComponentsLookup.DropItemData;
var component = (CoreGame.Render.DropItemDataComponent)CreateComponent(index, typeof(CoreGame.Render.DropItemDataComponent));
component.dropItemID = newDropItemID;
component.type = newType;
component.quality = newQuality;
component.dropItemCount = newDropItemCount;
AddComponent(index, component);
}
public void ReplaceDropItemData(int newDropItemID, DropItemType newType, int newQuality, int newDropItemCount) {
var index = CombatComponentsLookup.DropItemData;
var component = (CoreGame.Render.DropItemDataComponent)CreateComponent(index, typeof(CoreGame.Render.DropItemDataComponent));
component.dropItemID = newDropItemID;
component.type = newType;
component.quality = newQuality;
component.dropItemCount = newDropItemCount;
ReplaceComponent(index, component);
}
public void RemoveDropItemData() {
RemoveComponent(CombatComponentsLookup.DropItemData);
}
}
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherApiGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public sealed partial class CombatMatcher {
static Entitas.IMatcher<CombatEntity> _matcherDropItemData;
public static Entitas.IMatcher<CombatEntity> DropItemData {
get {
if (_matcherDropItemData == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.DropItemData);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherDropItemData = matcher;
}
return _matcherDropItemData;
}
}
}