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); }
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(); }
EqualityComparer <VpElement> .Default.Equals(Vp, item.Vp);
void OnAvatarEnter(Instance sender, AvatarEnterEventArgsT <Avatar <Vector3>, Vector3> args) { Vp.ConsoleMessage(string.Format("{0} enters {1}.", args.Avatar.Name, sender.Configuration.World)); }