本文整理汇总了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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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());
}
示例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
));
}
示例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;
}
}
示例9: logUnhanded
import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入依赖的package包/类
private void logUnhanded(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
log.info(message.toString());
}
示例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));
}
示例11: S2CombatLogEntry
import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入依赖的package包/类
public S2CombatLogEntry(StringTable combatLogNames, DotaUserMessages.CMsgDOTACombatLogEntry entry) {
this.combatLogNames = combatLogNames;
this.e = entry;
}
示例12: getType
import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入依赖的package包/类
@Override
public DotaUserMessages.DOTA_COMBATLOG_TYPES getType() {
return e.getType();
}
示例13: getType
import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入依赖的package包/类
DotaUserMessages.DOTA_COMBATLOG_TYPES getType();