public void AddIpl(Ipl ipl, PhysicsModelLoadMode loadMode) { foreach (var inst in ipl.Insts) { if (loadMode == PhysicsModelLoadMode.Dff) { this.actions.Add(world => { var dff = this.assetCollection.GetDff(inst.Id); if (dff != null && this.dffMeshes.TryGetValue(dff, out var mesh)) { var euler = inst.Rotation.ToEuler(); euler = new Vector3(euler.X, euler.Y, -euler.Z); world.AddStatic(mesh, inst.Position, euler.ToQuaternion()); } }); } else { this.actions.Add(world => { var col = this.assetCollection.GetCol(inst.Id); if (col != null && this.colMeshes.TryGetValue(col, out var meshes)) { foreach (var mesh in meshes) { var euler = inst.Rotation.ToEuler(); euler = new Vector3(euler.X, euler.Y, -euler.Z); world.AddStatic(mesh, inst.Position, euler.ToQuaternion()); } } }); } } }
public Player(string nick) { player.NickName = nick; _PlayerHand = new List <Cards>(8); player.PlayerID = Ipl.GetPlayerId(nick); }
public int UpdateVoteCount([FromBody] Ipl obj) { return(objTeam.RecordVote(obj)); }