【问题标题】:EntityProcessingSystem cannot be used with Type ArgumentsEntityProcessingSystem 不能与类型参数一起使用
【发布时间】:2014-04-20 10:15:35
【问题描述】:

我正在使用 Artemis 并尝试扩展 EntityProcessingSystem<SpatialForm, Transform>。但是,它告诉我The non-generic type 'Artemis.System.EntityProcessingSystem' cannot be used with type arguments;但是,它必须与类型参数一起使用。知道这里发生了什么吗?

我正在使用 Artemis - https://github.com/thelinuxlich/artemis_CSharp 和 StarWarrior 作为我的教程 - https://github.com/thelinuxlich/starwarrior_CSharp

【问题讨论】:

    标签: c# generic-type-argument entity-system artemis


    【解决方案1】:

    这个问题有点晚了,但对于其他有同样问题的人来说。

    参见:[Github 论坛][1]

    问题

    public class RenderSystem : EntityProcessingSystem<SpatialFormComponent, TransformComponent>
    

    至少它让我的项目超过了那个点。

    【讨论】:

    • 这里应该有链接吗?我也不能使用类型参数。
    猜你喜欢
    • 2013-01-03
    • 2011-10-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多