zoukankan      html  css  js  c++  java
  • Class WriteGroupAttribute

    [WriteGroup]可以排除在创建已声明写入同一组件的查询时未知的组件。

    这允许安全地扩展组件系统而无需编辑先前存在的系统。

    目标是为期望将数据从一组组件(输入)转换为另一组(输出[s])的系统能够声明显式转换,并且它们专门知道一组输入。如果有其他输入要写入同一输出,则查询不应该匹配,因为它是一个无意义/未处理的设置。它既可以防止无意义的组​​件(两个系统写入相同的输出值),也可以通过在实体上放置具有相同写锁定的组件来“关闭”现有系统/查询,让另一个系统处理它。

    Inheritance

    System.Object

    System.Attribute

    WriteGroupAttribute

    Namespace: Unity.Entities
    Syntax
    [AttributeUsage(AttributeTargets.Struct, AllowMultiple = true)]
    public class WriteGroupAttribute : Attribute, _Attribute
    Constructors
    WriteGroupAttribute(Type)
    Declaration
    public WriteGroupAttribute(Type targetType)
    Fields
    TargetType
    Declaration
    public Type TargetType
  • 相关阅读:
    [BJOI2006]狼抓兔子
    [HNOI2016]最小公倍数
    hihocoder 1419 重复旋律4
    [NOI2015]品酒大会
    [SDOI2016]生成魔咒
    [ZJOI2009]狼和羊的故事
    BZOJ4361 isn
    [SDOI2009]虔诚的墓主人
    BZOJ 3329 Xorequ
    [ZJOI2013]丽洁体
  • 原文地址:https://www.cnblogs.com/longsl/p/11328046.html
Copyright © 2011-2022 走看看