本文整理汇总了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());
}
示例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: 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;
}
}
示例8: logUnhanded
import skadistats.clarity.wire.common.proto.DotaUserMessages; //导入方法依赖的package包/类
private void logUnhanded(DotaUserMessages.CDOTAUserMsg_ParticleManager message) {
log.info(message.toString());
}