public void AddVoxelHand(uint voxelMapId, uint entityId, float radius, MyMwcVoxelHandModeTypeEnum handMode, MyMwcVoxelMaterialsEnum?material) { var msg = new MyEventAddVoxelHand(); msg.EntityId = entityId; msg.Radius = radius; msg.HandMode = handMode; msg.VoxelMaterial = material; msg.VoxelMapEntityId = voxelMapId; Peers.SendToAll(ref msg, NetDeliveryMethod.ReliableOrdered, 0); }
void OnAddVoxelHand(ref MyEventAddVoxelHand msg) { MyScriptWrapper.AddVoxelHand(msg.VoxelMapEntityId, msg.EntityId, msg.Radius, msg.VoxelMaterial, msg.HandMode); }