Пример #1
0
 void OnAvatarEnter(Instance sender, AvatarEnterEventArgsT <Avatar <Vector3>, Vector3> args)
 {
     Vp.ConsoleMessage(
         args.Avatar, "Immigration",
         string.Format("{0} welcome to {1}.", args.Avatar.Name, sender.Configuration.World.Name)
         , new Color(0, 0, 192), TextEffectTypes.Bold);
 }
Пример #2
0
 protected override void OnModelCreating(DbModelBuilder modelBuilder)
 {
     modelBuilder.Entity <Facturas>()
     .HasMany <Productos>(f => f.Productos)
     .WithMany(p => p.Facturas)
     .Map(Vp =>
     {
         Vp.MapLeftKey("FacturaId");
         Vp.MapRightKey("IdProducto");
         Vp.ToTable("FacturasProductos");
     });
 }
 private void ProcessCommandLine(string command)
 {
     if (command == "/x")
     {
         // exit chat mode, releaset command processing and return to previous processor.
         Console.RevertPrompt();
     }
     else
     {
         Vp.Say(command);
     }
     Console.ReadLine();
 }
Пример #4
0
 EqualityComparer <VpElement> .Default.Equals(Vp, item.Vp);
Пример #5
0
 void OnAvatarEnter(Instance sender, AvatarEnterEventArgsT <Avatar <Vector3>, Vector3> args)
 {
     Vp.ConsoleMessage(string.Format("{0} enters {1}.", args.Avatar.Name, sender.Configuration.World));
 }