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


Java DotaUserMessages类代码示例

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


DotaUserMessages类属于skadistats.clarity.wire.common.proto包,在下文中一共展示了DotaUserMessages类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: onNewCombatLogMessage

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入依赖的package包/类
@OnMessage(DotaUserMessages.CMsgDOTACombatLogEntry.class)
public void onNewCombatLogMessage(DotaUserMessages.CMsgDOTACombatLogEntry message) {
    logEntries.add(new S2CombatLogEntry(
        stringTables.forName(STRING_TABLE_NAME),
        message
    ));
}
 
开发者ID:skadistats,项目名称:clarity,代码行数:8,代码来源:CombatLog.java

示例8: 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

示例9: 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

示例10: getType

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入依赖的package包/类
@Override
public DotaUserMessages.DOTA_COMBATLOG_TYPES getType() {
    return DotaUserMessages.DOTA_COMBATLOG_TYPES.valueOf((int) e.getProperty(indices.typeIdx));
}
 
开发者ID:skadistats,项目名称:clarity,代码行数:5,代码来源:S1CombatLogEntry.java

示例11: S2CombatLogEntry

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入依赖的package包/类
public S2CombatLogEntry(StringTable combatLogNames, DotaUserMessages.CMsgDOTACombatLogEntry entry) {
    this.combatLogNames = combatLogNames;
    this.e = entry;
}
 
开发者ID:skadistats,项目名称:clarity,代码行数:5,代码来源:S2CombatLogEntry.java

示例12: getType

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入依赖的package包/类
@Override
public DotaUserMessages.DOTA_COMBATLOG_TYPES getType() {
    return e.getType();
}
 
开发者ID:skadistats,项目名称:clarity,代码行数:5,代码来源:S2CombatLogEntry.java

示例13: getType

import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入依赖的package包/类
DotaUserMessages.DOTA_COMBATLOG_TYPES getType(); 
开发者ID:skadistats,项目名称:clarity,代码行数:2,代码来源:CombatLogEntry.java


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