コード例 #1
0
 public static void Broadcast(this MessageSessionManager manager, Entity entity, IMessage message,
                              int exceptEntityId = Entity.InvalidEntityId)
 {
     if (!entity.Has <Pos>())
     {
         return;
     }
 }
コード例 #2
0
 public static void Broadcast <T>(this MessageSessionManager manager, Entity entity,
                                  int exceptEntityId = Entity.InvalidEntityId) where T : IMessage, new()
 {
     Broadcast(manager, entity, entity.ToMessage <T>(), exceptEntityId);
 }