当前位置: 首页>>代码示例>>Java>>正文


Java DotaUserMessages.CDOTAUserMsg_ParticleManager方法代码示例

本文整理汇总了Java中skadistats.clarity.wire.common.proto.DotaUserMessages.CDOTAUserMsg_ParticleManager方法的典型用法代码示例。如果您正苦于以下问题:Java DotaUserMessages.CDOTAUserMsg_ParticleManager方法的具体用法?Java DotaUserMessages.CDOTAUserMsg_ParticleManager怎么用?Java DotaUserMessages.CDOTAUserMsg_ParticleManager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在skadistats.clarity.wire.common.proto.DotaUserMessages的用法示例。


在下文中一共展示了DotaUserMessages.CDOTAUserMsg_ParticleManager方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: logCreate

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入方法依赖的package包/类
private void logCreate(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
        int entityHandle = message.getCreateParticle().getEntityHandle();
//        int entityIndex = Handle.indexForHandle(entityHandle);
//        int entitySerial = Handle.serialForHandle(entityHandle);
        Entity parent = entities.getByHandle(entityHandle);
        log.info("{} {} [index={}, entity={}({}), effect={}, attach={}]",
            getTick(),
            "PARTICLE_CREATE",
            message.getIndex(),
            entityHandle,
            parent == null ? "NOT_FOUND" : parent.getDtClass().getDtName(),
            message.getCreateParticle().getParticleNameIndex(),
            message.getCreateParticle().getAttachType()
        );
        //log.info(message.toString());
    }
 
开发者ID:skadistats,项目名称:clarity-examples,代码行数:17,代码来源:Main.java

示例2: logUpdateOrientation

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入方法依赖的package包/类
private void logUpdateOrientation(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
    log.info("{} {} [index={}, controlPoint={}, forward=[{}, {}, {}], right=[{}, {}, {}], up=[{}, {}, {}]]",
        getTick(),
        "PARTICLE_UPDATE_ORIENT",
        message.getIndex(),
        message.getUpdateParticleOrient().getControlPoint(),
        message.getUpdateParticleOrient().getForward().getX(),
        message.getUpdateParticleOrient().getForward().getY(),
        message.getUpdateParticleOrient().getForward().getZ(),
        message.getUpdateParticleOrient().getRight().getX(),
        message.getUpdateParticleOrient().getRight().getY(),
        message.getUpdateParticleOrient().getRight().getZ(),
        message.getUpdateParticleOrient().getUp().getX(),
        message.getUpdateParticleOrient().getUp().getY(),
        message.getUpdateParticleOrient().getUp().getZ()
    );
    //log.info(message.toString());
}
 
开发者ID:skadistats,项目名称:clarity-examples,代码行数:19,代码来源:Main.java

示例3: logUpdateEnt

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入方法依赖的package包/类
private void logUpdateEnt(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
    int entityHandle = message.getUpdateParticleEnt().getEntityHandle();
    Entity parent = entities.getByHandle(entityHandle);
    log.info("{} {} [index={}, entity={}({}), controlPoint={}, attachmentType={}, attachment={}, includeWearables={}]",
        getTick(),
        "PARTICLE_UPDATE_ENT",
        message.getIndex(),
        entityHandle,
        parent == null ? "NOT_FOUND" : parent.getDtClass().getDtName(),
        message.getUpdateParticleEnt().getControlPoint(),
        ParticleAttachmentType.forId(message.getUpdateParticleEnt().getAttachType()),
        message.getUpdateParticleEnt().getAttachment(),
        message.getUpdateParticleEnt().getIncludeWearables()
    );
    //log.info(message.toString());
}
 
开发者ID:skadistats,项目名称:clarity-examples,代码行数:17,代码来源:Main.java

示例4: logUpdate

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入方法依赖的package包/类
private void logUpdate(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
    log.info("{} {} [index={}, controlPoint={}, position=[{}, {}, {}]]",
        getTick(),
        "PARTICLE_UPDATE",
        message.getIndex(),
        message.getUpdateParticle().getControlPoint(),
        message.getUpdateParticle().getPosition().getX(),
        message.getUpdateParticle().getPosition().getY(),
        message.getUpdateParticle().getPosition().getZ()
    );
    //log.info(message.toString());
}
 
开发者ID:skadistats,项目名称:clarity-examples,代码行数:13,代码来源:Main.java

示例5: logDestroy

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入方法依赖的package包/类
private void logDestroy(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
    log.info("{} {} [index={}, immediately={}]",
        getTick(),
        "PARTICLE_DESTROY",
        message.getIndex(),
        message.getDestroyParticle().getDestroyImmediately()
    );
    //log.info(message.toString());
}
 
开发者ID:skadistats,项目名称:clarity-examples,代码行数:10,代码来源:Main.java

示例6: logRelease

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入方法依赖的package包/类
private void logRelease(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
    log.info("{} {} [index={}]",
        getTick(),
        "PARTICLE_RELEASE",
        message.getIndex()
    );
    //log.info(message.toString());
}
 
开发者ID:skadistats,项目名称:clarity-examples,代码行数:9,代码来源:Main.java

示例7: onMessage

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入方法依赖的package包/类
@OnMessage(DotaUserMessages.CDOTAUserMsg_ParticleManager.class)
public void onMessage(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
    switch(message.getType()) {
        case DOTA_PARTICLE_MANAGER_EVENT_CREATE:
            logCreate(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_UPDATE:
            logUpdate(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FORWARD:
            logUnhanded(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ORIENTATION:
            logUpdateOrientation(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK:
            logUnhanded(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_UPDATE_ENT:
            logUpdateEnt(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_UPDATE_OFFSET:
            logUnhanded(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_DESTROY:
            logDestroy(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_DESTROY_INVOLVING:
            logUnhanded(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_RELEASE:
            logRelease(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_LATENCY:
            logUnhanded(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_SHOULD_DRAW:
            logUnhanded(message);
            break;
        case DOTA_PARTICLE_MANAGER_EVENT_FROZEN:
            logUnhanded(message);
            break;
    }

}
 
开发者ID:skadistats,项目名称:clarity-examples,代码行数:46,代码来源:Main.java

示例8: logUnhanded

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入方法依赖的package包/类
private void logUnhanded(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
    log.info(message.toString());
}
 
开发者ID:skadistats,项目名称:clarity-examples,代码行数:4,代码来源:Main.java


注:本文中的skadistats.clarity.wire.common.proto.DotaUserMessages.CDOTAUserMsg_ParticleManager方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。